_declspec(naked) void MyMid()
{
static LPDIRECT3DDEVICE9 pDevice;
__asm
{
MOV EDI,EDI // This is a ASM code that we can find in Olly
PUSH EBP // This is a ASM code that we can find in Olly
MOV EBP,ESP // This is a ASM code that we can find in Olly
MOV EAX,DWORD PTR [EBP + 0x8] // What is this ? how can we find it?
MOV pDevice,EAX // Copy pDevice to Eax
}
WallHackD3D(pDevice);
__asm
{
JMP ret_MyMid
}
}
\x8B\xFF\x55\x8B\xEC\x6A\xFF\x68\x00\x00\x00\x00\x64\xA1\x00\x00\x00\x00\x50\x83\xEC\x28\x53\x56\x57\xA1\x00\x00\x00\x00
^^