Function at 0x405360
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x3c
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov esi, dword [ebp + 0x14]
mov edi, dword [ebp + 0x18]
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], 0xffffffff
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
mov dword [esp + 4], 0x420461
call fcn.00416945
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x34], 0x2e7c878e
jmp 0x4053d0
mov dword [ebp - 0x34], 0xa1e14dff
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [ebp - 0x34]
cmp eax, 0x787323d4
jg 0x405400
cmp eax, 0x60e0f3d0
jg 0x405410
cmp eax, 0x8a6c7b06
jg 0x405440
cmp eax, 0x89a546f5
jne 0x4053d0
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x34], 0x39dc54da
jmp 0x4053d0
cmp eax, 0x787323d5
jne 0x4053d0
jmp 0x4053bd
cmp eax, 0x60e0f3d1
jne 0x4053d0
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x20]
mov dword [esp + 0xc], eax
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp], esi
call fcn.004026a0
mov dword [ebp - 0x34], 0xf36ce387
jmp 0x4053d0
cmp eax, 0x909c12c2
jg 0x405461
cmp eax, 0x8a6c7b07
jne 0x4053d0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x34], 0x222d97aa
jmp 0x4053d0
cmp eax, 0xa1e14dfe
jg 0x40548a
cmp eax, 0x909c12c3
jne 0x4053d0
mov eax, dword [ebp - 0x28]
mov dword [esp], eax
call fcn.004169c6
mov dword [ebp - 0x34], 0xd7d39333
jmp 0x4053d0
cmp eax, 0xd7d39332
jg 0x4054b4
cmp eax, 0xa1e14dff
jne 0x4053d0
mov eax, 0x909c12c3
cmp dword [ebp - 0x28], 0
jne 0x4054ac
mov eax, 0xd7d39333
mov dword [ebp - 0x34], eax
jmp 0x4053d0
cmp eax, 0x3a644e57
jg 0x405531
cmp eax, 0x39dc54d9
jg 0x405554
cmp eax, 0x3673c8b5
jg 0x405564
cmp eax, 0x2e7c878d
jg 0x40557b
cmp eax, 0x222d97a9
jg 0x40559e
cmp eax, 0x11063ce2
jg 0x4055b5
cmp eax, 0xf36ce386
jg 0x4055cc
cmp eax, 0xf12e5ab1
jg 0x4055ef
cmp eax, 0xd7d39333
je 0x405635
cmp eax, 0xd7d6c932
jne 0x405641
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x34], 0x8a6c7b07
jmp 0x4053d0
cmp eax, 0x3a644e58
jne 0x4053d0
mov eax, dword [ebp - 0x2c]
add dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x2c]
sub dword [ebp - 0x1c], eax
mov dword [ebp - 0x34], 0xf36ce387
jmp 0x4053d0
cmp eax, 0x39dc54da
jne 0x4053d0
jmp 0x405658
cmp eax, 0x3673c8b6
jne 0x4053d0
mov dword [ebp - 0x34], 0x8a6c7b07
jmp 0x4053d0
cmp eax, 0x2e7c878e
jne 0x4053d0
mov eax, 0x787323d5
cmp dword [ebp - 0x10], 0
je 0x405596
mov eax, 0x60e0f3d1
mov dword [ebp - 0x34], eax
jmp 0x4053d0
cmp eax, 0x222d97aa
jne 0x4053d0
mov dword [ebp - 0x34], 0xa1e14dff
jmp 0x4053d0
cmp eax, 0x11063ce3
jne 0x4053d0
mov dword [ebp - 0x34], 0x89a546f5
jmp 0x4053d0
cmp eax, 0xf36ce387
jne 0x4053d0
mov eax, 0xf12e5ab2
cmp dword [ebp - 0x1c], 0
jne 0x4055e7
mov eax, 0x3673c8b6
mov dword [ebp - 0x34], eax
jmp 0x4053d0
cmp eax, 0xf12e5ab2
jne 0x4053d0
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x20]
mov dword [esp + 0xc], eax
mov dword [esp + 8], ecx
mov dword [esp], edx
mov dword [esp + 4], 1
call fcn.00416b94
mov dword [ebp - 0x2c], eax
mov ecx, 0xdf9ccac6
cmp eax, dword [ebp - 0x1c]
jne 0x40562d
mov ecx, 0x3a644e58
mov dword [ebp - 0x34], ecx
jmp 0x4053d0
mov dword [ebp - 0x34], 0x89a546f5
jmp 0x4053d0
cmp eax, 0xdf9ccac6
jne 0x4053d0
mov dword [ebp - 0x34], 0xa1e14dff
jmp 0x4053d0
mov eax, dword [ebp - 0xc]
add esp, 0x3c
pop esi
pop edi
pop ebp
ret