Old Client Function:
My inline assembly code in c++:
And It's working.
But in new client function:
I was trying work with new client function, doesn't work.
How to use new client function in inline assembly?
Thanks for helps.
Code:
00414710 - push ecx 00414711 - mov ecx,[esp+0C] 00414715 - lea eax,[esp] 00414718 - push eax 00414719 - push 00 0041471B - push ecx 0041471C - call 00520550 00414721 - add esp,0C 00414724 - test al,al 00414726 - jne 00414734 00414728 - push 00 0041472A - call 00520640 0041472F - add esp,04 00414732 - pop ecx 00414733 - ret 00414734 - mov edx,[esp] 00414737 - mov ecx,[0061C028] : [1F708A70] 0041473D - push edx 0041473E - call 0041F000 00414743 - call 005204C0 00414748 - pop ecx
Code:
void InlineASM(int arg)
{
DWORD calladr = 0x0041F000;
__asm{
MOV EDX, 0x0061C028
MOV ECX, DWORD PTR DS:[EDX]
PUSH arg
CALL calladr
}
}
But in new client function:
Code:
004B1A10 - push ecx 004B1A11 - push esi 004B1A12 - mov esi,[esp+10] 004B1A16 - mov eax,0000FFFF 004B1A1B - push esi 004B1A1C - mov byte ptr [esp+08],01 004B1A21 - mov [esp+09],ax 004B1A26 - call dword ptr [00E3D824] 004B1A2C - add esp,04 004B1A2F - sub eax,01 004B1A32 - je 004B1A55 004B1A34 - sub eax,01 004B1A37 - jne 004B1A69 004B1A39 - lea ecx,[esp+04] 004B1A3D - push ecx 004B1A3E - push eax 004B1A3F - push esi 004B1A40 - call 0054EE80 004B1A45 - add esp,0C 004B1A48 - test al,al 004B1A4A - je 004B1A69 004B1A4C - lea edx,[esp+05] 004B1A50 - push edx 004B1A51 - push 01 004B1A53 - jmp 004B1A5C 004B1A55 - lea eax,[esp+05] 004B1A59 - push eax 004B1A5A - push 00 004B1A5C - push esi 004B1A5D - call 0054EEB0 004B1A62 - add esp,0C 004B1A65 - test al,al 004B1A67 - jne 004B1A76 004B1A69 - push 00 004B1A6B - call 0054EE10 004B1A70 - add esp,04 004B1A73 - pop esi 004B1A74 - pop ecx 004B1A75 - ret 004B1A76 - mov dl,[esp+06] 004B1A7A - push ecx 004B1A7B - mov cx,[esp+08] 004B1A80 - mov eax,esp 004B1A82 - mov [eax],cx 004B1A85 - mov ecx,[00FFE7AC] : [00000000] 004B1A8B - mov [eax+02],dl 004B1A8E - call 004BD540 004B1A93 - call 008A4040 004B1A98 - pop esi 004B1A99 - pop ecx 004B1A9A - ret
How to use new client function in inline assembly?
Thanks for helps.