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