I have the following assembly line and I have my problems to understand it, because until now I have always seen lines like this: mov eax, 0
and so on.
But now, I have the following (I use IDA PRO):
mov ds:dword_4870058 , offset loc_4048E0
When I click on offset loc_4048E0
, I see:
loc_4048E0:
mov al, 10h
jmp sub_402774
when I interpret dword_4870058
as a global variable, can I assume that dword_4870058
gets the value 10h
(if I regard al
as a return value register) . This is the only thing that I can imagine.
Is it a right or wrong assumption ?
http://stackoverflow.com/questions/1658294/whats-the-purpose-of-the-lea-instruction
– evlncrn8 Sep 12 '14 at 02:55