For Example .I have a function that code in C++ :
void MyFunc(int s) {
struct itemRec {
int code;
int index;
} bItem;
bItem.code = 0x0000000B;
bItem.index = s;
__asm {
push eax
push edx
mov ecx,0x00625388
push 00000000h
lea edx,bItem
push edx
push 00000016h
mov eax,0x00487273
call eax
pop edx
pop eax
}
}
and when I compile that function,so I found in asm that code :
push ebp
mov ebp,esp
sub esp,00000008h
mov eax,[ebp+08h]
mov dword ptr [ebp-08h],0000000Bh
mov [ebp-04h],eax
push eax
push edx
mov ecx,00625388h
push 00000000h
lea edx,[ebp-08h]
push edx
push 00000016h
mov eax,0x00487273h
call eax
pop edx
pop eax
mov esp,ebp
pop ebp
retn
It's my example.So when I search in other asm file,I found that asm code :
push ebp
mov ebp,esp
sub esp,00000008h
mov eax,[ebp+08h]
add eax,eax
mov ecx,[eax+eax+L1000D004]
add eax,eax
lea edx,[ebp+08h]
mov [ebp+08h],ecx
mov [ebp-04h],eax
mov [ebp-08h],edx
push eax
push ecx
mov ecx,ds:[00838344h]
add ecx,0000843Ch
add ecx,00007EBCh
push ecx
add ecx,0000054Ch
mov eax,[ebp-08h]
push eax
mov eax,0051F900h
call eax
mov ecx,[eax+0Ch]
cmp ecx,[ebp+08h]
pop ecx
jnz L100010A8
add eax,00000010h
add ecx,[ebp-04h]
mov [ecx],eax
L100010A8:
pop ecx
pop eax
mov esp,ebp
pop ebp
retn
Please help me and tell me know what the real code in C++ (same my example) .And parameter to function that has address 0051F900h .Please help me