Function at 0x402ca0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x308
push ebx
push ebp
push esi
push edi
push 0x40a2f8
mov dword [esp + 0x14], ecx
push str.play.exe.Mbxcfg
call dword [sym.imp.MSVCRT.dll_fopen]
mov ecx, dword [0x40a2d8]
mov edx, dword [0x40a2dc]
mov ebx, eax
mov eax, dword [str._r_nbox.cmdline_r_n]
mov dword [esp + 0x20], eax
mov eax, dword [0x40a2e0]
mov dword [esp + 0x24], ecx
mov cl, byte [0x40a2e4]
mov dword [esp + 0x2c], eax
mov byte [esp + 0x30], cl
mov ecx, 0x3b
xor eax, eax
lea edi, [esp + 0x31]
mov dword [esp + 0x28], edx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea edi, [esp + 0x20]
or ecx, 0xffffffff
xor eax, eax
mov ebp, dword [sym.imp.MSVCRT.dll_fwrite]
repne scasb al, byte es:[edi]
not ecx
push ebx
dec ecx
push 1
lea edx, [esp + 0x28]
push ecx
push edx
call ebp
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x30]
mov esi, str.box.packdefault1_r_n
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, str.box.packdefault1_r_n
or ecx, 0xffffffff
xor eax, eax
push ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [esp + 0x34]
mov eax, ecx
push 1
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x38]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0x3c]
push ecx
call ebp
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x40]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, str.box.encrypt1_r_n
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edx, ecx
mov esi, str.box.encrypt1_r_n
lea edi, [esp + 0x40]
push ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push 1
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x48]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x48]
push ecx
push eax
call ebp
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x50]
mov esi, str.box.sepfile_r_n
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, str.box.sepfile_r_n
or ecx, 0xffffffff
xor eax, eax
push ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [esp + 0x54]
mov edx, ecx
push 1
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x58]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x58]
push ecx
push eax
call ebp
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x60]
add esp, 0x48
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, str.dir.addfiles_r_n
or ecx, 0xffffffff
xor eax, eax
mov esi, str.dir.addfiles_r_n
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [esp + 0x18]
mov edx, ecx
push ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push 1
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x20]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x20]
push ecx
push eax
call ebp
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x28]
mov esi, str.exe.crc1_r_n
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, str.exe.crc1_r_n
or ecx, 0xffffffff
xor eax, eax
push ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [esp + 0x2c]
mov edx, ecx
push 1
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x30]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x30]
push ecx
push eax
call ebp
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x38]
mov esi, str.exe.pack1_r_n
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, str.exe.pack1_r_n
or ecx, 0xffffffff
xor eax, eax
push ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [esp + 0x3c]
mov edx, ecx
push 1
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x40]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x40]
push ecx
push eax
call ebp
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x48]
mov esi, str.exe.packedfilesvisible0_r_n
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, str.exe.packedfilesvisible0_r_n
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [esp + 0x48]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
push ebx
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x4c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
lea eax, [esp + 0x50]
push ecx
push eax
call ebp
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x58]
add esp, 0x40
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, str.box.pattern._r_n
or ecx, 0xffffffff
xor eax, eax
mov esi, str.box.pattern._r_n
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [esp + 0x18]
mov edx, ecx
push ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push 1
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x20]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x20]
push ecx
push eax
call ebp
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x28]
mov esi, str.box.separate0_r_n
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, str.box.separate0_r_n
or ecx, 0xffffffff
xor eax, eax
push ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [esp + 0x2c]
mov edx, ecx
push 1
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x30]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x30]
push ecx
push eax
call ebp
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x38]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, str.box.ziplevel0_r_n
or ecx, 0xffffffff
xor eax, eax
mov esi, str.box.ziplevel0_r_n
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [esp + 0x38]
mov edx, ecx
push ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push 1
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x40]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x40]
push ecx
push eax
call ebp
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x48]
mov esi, str.box.packdefault1_r_n
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, str.box.packdefault1_r_n
or ecx, 0xffffffff
xor eax, eax
push ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [esp + 0x4c]
mov edx, ecx
push 1
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x50]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x50]
push ecx
push eax
call ebp
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x58]
add esp, 0x40
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, str.exe.polymorph1_r_n
or ecx, 0xffffffff
xor eax, eax
mov esi, str.exe.polymorph1_r_n
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [esp + 0x18]
mov edx, ecx
push ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push 1
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x20]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x20]
push ecx
push eax
call ebp
mov esi, dword [esp + 0x20]
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x28]
rep stosd dword es:[edi], eax
mov ecx, dword [esi + 0x74]
lea edx, [esp + 0x28]
stosw word es:[edi], ax
push ecx
push str.exe.source_s_r_n
push edx
stosb byte es:[edi], al
call dword [sym.imp.MSVCRT.dll_sprintf]
lea edi, [esp + 0x34]
or ecx, 0xffffffff
xor eax, eax
push ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
lea eax, [esp + 0x3c]
push ecx
push eax
call ebp
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x44]
add esp, 0x2c
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea edi, [esi + 0x6c]
push 0x2e
mov ecx, edi
call sub.MFC42.DLL_CString::ReverseFind
mov dword [esp + 0x14], eax
inc eax
push 0x65
push eax
mov ecx, edi
call sub.MFC42.DLL_CString::SetAt
mov ecx, dword [esp + 0x14]
push 0x78
add ecx, 2
push ecx
mov ecx, edi
call sub.MFC42.DLL_CString::SetAt
mov edx, dword [esp + 0x14]
push 0x65
add edx, 3
mov ecx, edi
push edx
call sub.MFC42.DLL_CString::SetAt
mov eax, dword [edi]
lea ecx, [esp + 0x18]
push eax
push 0x40a1f4
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x225]
mov byte [esp + 0x224], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [esi + 0x64]
add esp, 0xc
cmp eax, 1
jne 0x4031a2
lea edx, [esp + 0x18]
lea eax, [esp + 0x218]
push edx
push str.exe.target1_s_r_n
push eax
jmp 0x4031b4
lea ecx, [esp + 0x18]
lea edx, [esp + 0x218]
push ecx
push str.exe.target_s_r_n
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
lea edi, [esp + 0x224]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
push ebx
dec ecx
push 1
lea eax, [esp + 0x220]
push ecx
push eax
call ebp
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x28]
mov esi, 0x40a1cc
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, 0x40a1cc
or ecx, 0xffffffff
xor eax, eax
push ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [esp + 0x2c]
mov edx, ecx
push 1
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x30]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x30]
push ecx
push eax
call ebp
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x38]
mov esi, str.box.contents_r_n
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, str.box.contents_r_n
or ecx, 0xffffffff
xor eax, eax
push ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [esp + 0x3c]
mov edx, ecx
push 1
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x40]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x40]
push ecx
push eax
call ebp
add esp, 0x30
lea ecx, [esp + 0x118]
lea edx, [esp + 0x10]
push ecx
push edx
mov ecx, dword [esp + 0x18]
call fcn.00403710
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x18]
mov esi, dword [sym.imp.MSVCRT.dll_sprintf]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x118]
lea ecx, [esp + 0x18]
push eax
push str.00__s
push ecx
call esi
lea edi, [esp + 0x24]
or ecx, 0xffffffff
xor eax, eax
push ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
lea edx, [esp + 0x2c]
push ecx
push edx
call ebp
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x34]
lea edx, [esp + 0x134]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x134]
push edx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, dword [0x40a1ac]
push str.00__s_r_n
stosb byte es:[edi], al
mov eax, dword [0x40a1a8]
mov dword [esp + 0x140], ecx
mov dword [esp + 0x13c], eax
lea eax, [esp + 0x3c]
push eax
call esi
lea edi, [esp + 0x40]
or ecx, 0xffffffff
xor eax, eax
push ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
push ecx
lea ecx, [esp + 0x4c]
push ecx
call ebp
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x50]
mov edx, dword [0x40a194]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x150]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [0x40a198]
lea ecx, [esp + 0x150]
mov dword [esp + 0x150], edx
mov dword [esp + 0x154], eax
push ecx
lea edx, [esp + 0x54]
push str.00__s_r_n
push edx
call esi
lea edi, [esp + 0x5c]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x44
repne scasb al, byte es:[edi]
not ecx
push ebx
dec ecx
push 1
lea eax, [esp + 0x20]
push ecx
push eax
call ebp
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x28]
mov esi, 0x40a190
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, 0x40a190
or ecx, 0xffffffff
xor eax, eax
push ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [esp + 0x2c]
mov edx, ecx
push 1
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x30]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x30]
push ecx
push eax
call ebp
push ebx
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x24
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x308
ret