__asm
{
mov ecx, dword ptr ds:[ADDR_LTCLIENT]
mov eax, dword ptr ds:[ecx + 0x208]
push szCommand
call eax
add esp, 0x4
}
#define ADDR_LTCLIENT 0x377DA848
void __cdecl PushToConsole( const char* cCommand )
{
void* address = ( void* ) ADDR_LTCLIENT;
__asm
{
mov ecx, dword ptr ds:[address]
mov eax, dword ptr ds:[ecx + 0x208]
push cCommand
call eax
add esp, 0x4
}
}