NAME=PE: corkami mz.exe - open
FILE=bins/pe/mz.exe
CMDS=q!
EXPECT=<<EOF
EOF
RUN

NAME=PE: corkami mz.exe - dis
FILE=bins/pe/mz.exe
CMDS=e asm.bytes=true; pid 4; 
EXPECT=<<EOF
0x00401000   section.sect_0:
0x00401000           6818104000  push 0x401018
0x00401005         ff15c8104000  call dword [sym.imp.msvcrt.dll_printf]
0x0040100b               83c404  add esp, 4
0x0040100e                   90  nop
EOF
RUN

NAME=PE: corkami mz.exe - dis asm.flags.real
FILE=bins/pe/mz.exe
CMDS=<<EOF
e asm.flags.real=true
pi 6
EOF
EXPECT=<<EOF
push 0x401018
call dword [printf]
add esp, 4
nop
push 0
call dword [ExitProcess]
EOF
RUN
