Function at 0x409190
Capabilities:
Execute command
Write and execute a file
Write file on windows

Disassembly:
sub esp, 0x444
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x440], eax
movzx ecx, word [0x40d97c]
movzx edx, byte [0x40d97e]
push ebx
push ebp
push esi
mov word [esp + 0x10], cx
push edi
mov byte [esp + 0x16], dl
mov edx, dword [0x40dacc]
mov dword [esp + 0x104], edx
mov dx, word [0x40d9fc]
mov ecx, 0xc
mov esi, str.__________________________________________________
lea edi, [esp + 0x11c]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [0x40dac8]
mov dword [esp + 0x100], ecx
mov ecx, dword [0x40d9f8]
mov eax, 0xa
mov word [esp + 0x10], ax
mov eax, dword [str.System:_NEO]
mov word [esp + 0xf8], dx
movzx edx, byte [0x40da06]
mov dword [esp + 0xfc], eax
mov eax, dword [str.RomName:]
mov dword [esp + 0xf4], ecx
movzx ecx, word [0x40da04]
mov dword [esp + 0xf0], eax
mov eax, dword [str.Game:]
mov byte [esp + 0xe2], dl
movzx edx, byte [0x40da10]
mov word [esp + 0xe0], cx
mov ecx, dword [0x40da0c]
mov dword [esp + 0xdc], eax
mov eax, dword [str.Parent:]
mov dword [esp + 0xe8], ecx
mov ecx, dword [0x40dad4]
mov byte [esp + 0xec], dl
mov edx, dword [0x40dad8]
mov dword [esp + 0xe4], eax
mov eax, dword [str.NeoGeoRomData.Dat]
mov dword [esp + 0x10c], ecx
movzx ecx, word [0x40dae0]
push 0xbc
movsw word es:[edi], word [esi]
mov dword [esp + 0x114], edx
mov dword [esp + 0x10c], eax
mov eax, dword [0x40dadc]
lea edx, [esp + 0x24]
push 0
push edx
movsb byte es:[edi], byte [esi]
mov dword [esp + 0x120], eax
mov word [esp + 0x124], cx
mov dword [esp + 0x24], 0x53a960
call sub.MSVCR90.dll_memset
lea eax, [esp + 0x114]
push 0x40d548
push eax
call dword [sym.imp.MSVCR90.dll_fopen]
mov edi, eax
call fcn.004088d0
mov ebx, dword [sym.imp.MSVCR90.dll_printf]
push str.Save_NeoGeo_RomData_..._n_n
mov dword [esp + 0x34], eax
call ebx
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
add esp, 0x18
push 0x64
call ebp
mov esi, dword [sym.imp.MSVCR90.dll_fwrite]
mov edx, dword [esp + 0x18]
mov eax, dword [0x438028]
push 0
push 0xbc
lea ecx, [esp + 0x28]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
cmp dword [esp + 0x20], 0
je 0x4095de
cmp dword [esp + 0x3c], 0
jne 0x4095cb
push 0x100
lea ecx, [esp + 0x154]
push 0
push ecx
call sub.MSVCR90.dll_memset
push 0x100
lea edx, [esp + 0x260]
push 0
push edx
call sub.MSVCR90.dll_memset
push 0x100
lea eax, [esp + 0x36c]
push 0
push eax
call sub.MSVCR90.dll_memset
lea eax, [esp + 0x140]
add esp, 0x24
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x409391
push edi
sub eax, edx
push eax
lea ecx, [esp + 0x124]
push 1
push ecx
call esi
lea eax, [esp + 0x24]
add esp, 0x10
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4093b2
push edi
sub eax, ecx
push eax
lea edx, [esp + 0x1c]
push 1
push edx
call esi
lea eax, [esp + 0x10c]
add esp, 0x10
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4093d3
sub eax, ecx
push edi
push eax
lea eax, [esp + 0x104]
push 1
push eax
call esi
lea eax, [esp + 0x20]
add esp, 0x10
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4093f4
sub eax, ecx
push edi
push eax
lea ecx, [esp + 0x18]
push 1
push ecx
call esi
lea eax, [esp + 0x100]
add esp, 0x10
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x409415
push edi
sub eax, ecx
push eax
lea edx, [esp + 0xf8]
push 1
push edx
call esi
mov eax, dword [esp + 0x34]
add esp, 0x10
lea ecx, [esp + 0x250]
call fcn.00401080
lea eax, [esp + 0x250]
lea ecx, [eax + 1]
lea esp, [esp]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x409450
sub eax, ecx
push edi
push eax
lea eax, [esp + 0x258]
push 1
push eax
call esi
lea eax, [esp + 0x20]
add esp, 0x10
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x409471
sub eax, ecx
push edi
push eax
lea ecx, [esp + 0x18]
push 1
push ecx
call esi
lea eax, [esp + 0xec]
add esp, 0x10
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x409492
push edi
sub eax, ecx
push eax
lea edx, [esp + 0xe4]
push 1
push edx
call esi
mov eax, dword [esp + 0x30]
add esp, 0x10
lea ecx, [esp + 0x150]
call fcn.00401080
lea eax, [esp + 0x150]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4094c6
sub eax, ecx
push edi
push eax
lea eax, [esp + 0x158]
push 1
push eax
call esi
lea eax, [esp + 0x20]
add esp, 0x10
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4094e7
sub eax, ecx
push edi
push eax
lea ecx, [esp + 0x18]
push 1
push ecx
call esi
lea edx, [esp + 0xec]
push edx
call ebx
lea eax, [esp + 0x164]
push eax
call ebx
push 0x40d970
call ebx
add esp, 0x1c
push 0xa
call ebp
cmp dword [esp + 0x28], 0
je 0x40959e
lea eax, [esp + 0xe4]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x409532
push edi
sub eax, edx
push eax
lea ecx, [esp + 0xec]
push 1
push ecx
call esi
mov eax, dword [esp + 0x38]
add esp, 0x10
lea ecx, [esp + 0x350]
call fcn.00401080
lea eax, [esp + 0x350]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x409566
push edi
sub eax, ecx
push eax
lea edx, [esp + 0x358]
push 1
push edx
call esi
lea eax, [esp + 0x20]
add esp, 0x10
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x409587
sub eax, edx
push edi
push eax
lea eax, [esp + 0x18]
push 1
push eax
call esi
add esp, 0x10
lea eax, [esp + 0x10]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4095a5
push edi
sub eax, edx
push eax
lea ecx, [esp + 0x18]
push 1
push ecx
call esi
mov edx, dword [esp + 0x2c]
push edx
lea eax, [esp + 0x34]
push eax
call fcn.00408b50
add esp, 0x18
add dword [esp + 0x18], 0xbc
cmp dword [esp + 0x20], 0
jne 0x409315
lea eax, [esp + 0x11c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4095e8
push edi
sub eax, edx
push eax
lea ecx, [esp + 0x124]
push 1
push ecx
call esi
push edi
call dword [sym.imp.MSVCR90.dll_fclose]
push 0x40d970
call ebx
push str.NeoGeoRomData.Dat_n_n
call ebx
push str.pause
call dword [sym.imp.MSVCR90.dll_system]
mov ecx, dword [esp + 0x470]
add esp, 0x20
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004098be
add esp, 0x444
ret