hello, im using assembly in delphi, but my program crash several times when I use this function for a long time...im finding that the problem is in "add esp, 04"
lea eax,value
push eax
call addr2
add esp,04
push 0
mov ecx,esi
mov eax,addr
call eax
add esp,04
other problem:
...
lea esi,[ecx+04h]
lea eax,test2
push eax
call addr2
add esp,04 //4*1 = 4 in hexadecial
push HP2
push esi
call Base
add esp,08 //4*2 = 8 in hexadecial