void _stdcall SetConsoleVariable(const char* Command)
{
asm_
{
push Command
mov eax, 0x485FF0
call eax
}
}
PUSH Command CALL DWORD PTR DS:[SetConsoleVariable] ;0x485FF0, 2 lines.
PUSH Command CALL SetConsoleVariable SetConsoleVariable: PUSH EBP MOV EBP,ESP PUSH DWORD PTR SS:[EBP+8] MOV EAX,485FF0 CALL EAX ;then call the right function POP EBP RETN 4