.intel_syntax
push eax
push edx
push ecx
push ebx
mov eax,[esp+20]
function:
call 0xdeadbee4
function2:
mov [0xdeadbeef],eax #self modifying code... :/
pop eax
function3:
call [0xdeadbeef]