Function at 0x403b60
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x14]
push esi
xor ebx, ebx
mov esi, eax
push edi
mov dword [esp + 0x10], ebx
mov byte [esp + 0x1c], bl
cmp dword [esi + 0x30], ebx
je 0x403bc6
call fcn.004036c0
mov ecx, str.LIST
call fcn.00403750
mov eax, dword [esi + 0x2c]
push eax
call dword [sym.imp.MSVCR90.dll_ftell]
mov ecx, esi
mov edx, eax
call fcn.004036d0
add edx, eax
push ebx
lea edi, [ebx + 4]
mov dword [esi + 0x4c], edx
call fcn.004036e0
add esp, 8
mov ecx, str.movi
mov eax, esi
call fcn.00403750
mov eax, dword [esi + 0x2c]
lea ecx, [ebx + 0xc]
mov edx, esi
call fcn.004037b0
cmp dword [esp + 0x20], 3
je 0x403c37
mov ecx, dword [esi]
cmp ecx, 0x85
jne 0x403be6
mov eax, dword [esp + 0x18]
mov al, byte [eax + 3]
test al, al
je 0x403c0f
cmp al, 0xb6
jmp 0x403c0d
cmp ecx, 0x86
jne 0x403bfd
mov edx, dword [esp + 0x18]
mov al, byte [edx + 4]
cmp al, 0x67
je 0x403c0f
cmp al, 0x41
jmp 0x403c0d
mov eax, dword [esp + 0x18]
mov al, byte [eax + 3]
shr al, 4
cmp al, 0xe
je 0x403c0f
cmp al, 0xd
jne 0x403c37
mov ebx, 1
cmp ecx, 0x85
je 0x403c51
cmp ecx, 0x86
je 0x403c51
mov ecx, dword [esp + 0x18]
movzx eax, byte [ecx + 8]
add eax, 9
mov dword [esp + 0x10], eax
sub ebp, eax
jmp 0x403c51
mov eax, dword [esi]
cmp eax, 0x85
je 0x403c4c
mov ebp, 0x1000
cmp eax, 0x86
jne 0x403c51
mov ebp, 0x1900
mov eax, esi
call fcn.004036c0
cmp dword [esi + 4], 0
je 0x403c6e
mov ecx, str.00dc
test ebx, ebx
jne 0x403c73
mov ecx, str.01wb
jmp 0x403c73
mov ecx, str.00wb
call fcn.00403750
push ebp
mov edi, 4
call fcn.004036e0
mov eax, dword [esi + 0x2c]
lea ecx, [edi + 4]
mov edx, esi
call fcn.004037b0
mov edi, dword [esi + 0x14]
add edi, dword [esi + 0x28]
mov eax, dword [esi + 0x34]
xor edx, edx
test ebx, ebx
sete dl
mov dword [eax + edi*4], edx
mov ecx, dword [esi + 0x38]
mov dword [ecx + edi*4], ebp
mov edx, dword [esi + 0x2c]
push edx
call dword [sym.imp.MSVCR90.dll_ftell]
mov edx, dword [esi + 0x3c]
mov ecx, 0xfffffff4
sub ecx, dword [esi + 0x4c]
add esp, 8
add eax, ecx
mov dword [edx + edi*4], eax
test ebx, ebx
je 0x403d9a
mov eax, dword [esi]
cmp eax, 0x84
jne 0x403ce7
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
xor eax, eax
cmp byte [edx + ecx + 3], al
jmp 0x403d32
cmp eax, 0x85
jne 0x403d10
mov edx, dword [esp + 0x18]
test byte [edx + 4], 0xc0
jne 0x403d04
mov eax, dword [esi + 0x40]
mov dword [eax + edi*4], 1
jmp 0x403d3b
mov ecx, dword [esi + 0x40]
mov dword [ecx + edi*4], 0
jmp 0x403d3b
cmp eax, 0x80
jne 0x403d23
mov edx, dword [esi + 0x40]
mov dword [edx + edi*4], 1
jmp 0x403d3b
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
xor eax, eax
cmp byte [ecx + edx + 3], 0xb3
mov ecx, dword [esi + 0x40]
sete al
mov dword [ecx + edi*4], eax
mov eax, dword [esi]
inc dword [esi + 0x14]
cmp eax, 0x85
je 0x403d5a
cmp eax, 0x86
je 0x403d5a
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
add eax, ecx
jmp 0x403d5e
mov eax, dword [esp + 0x18]
mov edx, dword [esi + 0x2c]
mov edi, dword [sym.imp.MSVCR90.dll_fwrite]
push edx
push ebp
push 1
push eax
call edi
add esp, 0x10
and ebp, 0x80000001
jns 0x403d7e
dec ebp
or ebp, 0xfffffffe
inc ebp
je 0x403df5
mov ecx, dword [esi + 0x2c]
push ecx
push 1
lea edx, [esp + 0x24]
push 1
push edx
call edi
add esp, 0x10
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
mov eax, dword [esi + 0x40]
push ebp
mov dword [eax + edi*4], 1
call sub.mfc90.dll_Ordinal_265
inc dword [esi + 0x28]
mov edi, eax
mov eax, dword [esi]
add esp, 4
cmp eax, 0x85
je 0x403dcf
cmp eax, 0x86
je 0x403dcf
mov ebx, dword [esp + 0x18]
mov eax, edi
call fcn.00403410
jmp 0x403dde
mov ecx, dword [esp + 0x18]
push esi
mov eax, edi
call fcn.00403440
add esp, 4
mov ecx, dword [esi + 0x2c]
push ecx
push ebp
push 1
push edi
call dword [sym.imp.MSVCR90.dll_fwrite]
push edi
call sub.mfc90.dll_Ordinal_266
add esp, 0x14
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret