#define RunConsole 0x5d7430 #define ILTClient 0x3834BC4
void __cdecl RunCommand(const char* szCommand)
{
__asm
{
push szCommand
mov eax, RunConsole
call eax
add esp, 0x4
}
// Or !!
__asm
{
mov ecx,dword ptr ds:[ILTClient]
mov eax,dword ptr ds:[ecx + 0x1f8]
push szCommand
call eax
add esp, 0x4
}
}