, , EBP (0012FF80). prev-EBP .
(, , 32- Windows -FPO) 1.
, :
push ebp ; back up the previous ebp on the stack
mov ebp, esp ; set up the new frame pointer
,
call 0x00401000
EIP ( ), :
[ebp+0xc]
[ebp+0x8]
[ebp+0x4]
[ebp]
, %p printf 4 , [ebp+0xc] ( %p). EBP, , (0012FF80), - .
, " ", ( "" ).
Re Q2) . , push eax, 4 esp, eax [esp], :
push eax
; <=>
sub esp, 4
mov [esp], eax