[php] void RunConsoleCommand(const char* szCommand )
{
DWORD ltClient = 0x377ED910;
__asm
{
mov eax, [ltClient]; //interface dereference
mov esi, [eax + 0x208]; //vtable dereference //we could push and call ESI now
mov edx, [esi + 0x01]; //jump operand dereference. EDX holds the EIP displacement
add edx, 5; //displacement adjustment
mov eax, esi; //setting up call to eax
add eax, edx;
push szCommand;
call eax;
add esp, 4;
}
}[/php]
Disassembly? You could go further and invent more PTC methods but it is useless.
Perhaps this forum should have a stickied thread of useful information in it, like structures and interface definitions.