I am using ASM first time ever and before i continue i need to know if i understood everything right when i wrote this. The current code looks like this:
push 0xDEADBEEF ; address of library name
mov eax, 0xDEADBEEF ; address of LoadLibraryA
call eax ; call LoadLibraryA
mov esi, eax ; store returned address
push 0xDEADBEEF ; address of function name
push esi
mov eax, 0xDEADBEEF ; address of GetProcAddress
call eax ; call GetProcAddress
mov esi, eax ; store returned address
push 0
push 0
push 0
call esi ; call the function returned by GetProcAddress
The 0xDEADBEEF's are just dummy addresses that i will patch later. Is there anything wrong? =)