Function at 0x405060
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], 0x4684a0
call fcn.00412fa5
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x34], 0x2ba9799a
jmp 0x4050c0
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
cmp eax, 0x7ed5d333
jg 0x405100
cmp eax, 0x70e6d5c4
jg 0x405120
cmp eax, 0x60982bfa
jg 0x40513b
cmp eax, 0x981ad14a
jg 0x405152
cmp eax, 0x9465a92f
jne 0x4050c0
mov eax, 0xad8d00d5
cmp dword [ebp - 0x28], 0
jne 0x4050f6
mov eax, 0x27041056
mov dword [ebp - 0x34], eax
jmp 0x4050c0
cmp eax, 0x7ed5d334
jne 0x4050c0
mov al, byte [ebp - 9]
test al, al
mov eax, 0x4cd185d6
jne 0x4050bd
mov eax, 0xa7d6f804
jmp 0x4050bd
cmp eax, 0x70e6d5c5
jne 0x4050c0
mov eax, dword [ebp - 0x28]
mov dword [esp], eax
call fcn.00413026
mov dword [ebp - 0x34], 0xbaa498f8
jmp 0x4050c0
cmp eax, 0x60982bfb
jne 0x4050c0
mov dword [ebp - 0x34], 0x9465a92f
jmp 0x4050c0
cmp eax, 0xa7d6f803
jg 0x40519f
cmp eax, 0x981ad14b
jne 0x4050c0
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.004131f4
mov dword [ebp - 0x2c], eax
mov ecx, 0xc8971e50
cmp eax, dword [ebp - 0x1c]
jne 0x405197
mov ecx, 0x4f0d5e59
mov dword [ebp - 0x34], ecx
jmp 0x4050c0
cmp eax, 0xad8d00d4
jg 0x4051bd
cmp eax, 0xa7d6f804
jne 0x4050c0
mov dword [ebp - 0x34], 0x409b213e
jmp 0x4050c0
cmp eax, 0xbaa498f7
jg 0x4051db
cmp eax, 0xad8d00d5
jne 0x4050c0
mov dword [ebp - 0x34], 0x70e6d5c5
jmp 0x4050c0
cmp eax, 0x525a7f61
jg 0x405221
cmp eax, 0x4f0d5e58
jg 0x405243
cmp eax, 0x4cd185d5
jg 0x405275
cmp eax, 0x409b213d
jg 0x40528c
cmp eax, 0xbb7a2d9a
jg 0x4052a3
cmp eax, 0xbaa498f8
jne 0x4050c0
mov dword [ebp - 0x34], 0x27041056
jmp 0x4050c0
cmp eax, 0x525a7f62
jne 0x4050c0
mov eax, dword [ebp - 0x28]
mov dword [esp], eax
call fcn.00413026
mov dword [ebp - 0x34], 0x70e6d5c5
jmp 0x4050c0
cmp eax, 0x4f0d5e59
jne 0x4050c0
mov eax, dword [ebp - 0x2c]
add dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x1c]
mov ecx, 0xffcacf47
sub ecx, dword [ebp - 0x2c]
lea eax, [ecx + eax + 0x3530b9]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x34], 0xbb7a2d9b
jmp 0x4050c0
cmp eax, 0x4cd185d6
jne 0x4050c0
mov dword [ebp - 0x34], 0x2afadf15
jmp 0x4050c0
cmp eax, 0x409b213e
jne 0x4050c0
mov dword [ebp - 0x34], 0xfa3ea49c
jmp 0x4050c0
cmp eax, 0xc82c7001
jg 0x4052cd
cmp eax, 0xbb7a2d9b
jne 0x4050c0
mov eax, 0x981ad14b
cmp dword [ebp - 0x1c], 0
jne 0x4052c5
mov eax, 0x1e4286be
mov dword [ebp - 0x34], eax
jmp 0x4050c0
cmp eax, 0x2ba97999
jg 0x405334
cmp eax, 0x2afadf14
jg 0x405357
cmp eax, 0x29133e14
jg 0x40536e
cmp eax, 0x27041055
jg 0x405385
cmp eax, 0x23bf6587
jg 0x405395
cmp eax, 0x1e4286bd
jg 0x4053ac
cmp eax, 0xfa3ea49b
jg 0x4053ca
cmp eax, 0xc82c7002
je 0x4053e5
cmp eax, 0xc8971e50
jne 0x4053f1
mov dword [ebp - 0x34], 0x409b213e
jmp 0x4050c0
cmp eax, 0x2ba9799a
jne 0x4050c0
mov eax, 0x29133e15
cmp dword [ebp - 0x10], 0
je 0x40534f
mov eax, 0xf0d8f9aa
mov dword [ebp - 0x34], eax
jmp 0x4050c0
cmp eax, 0x2afadf15
jne 0x4050c0
mov dword [ebp - 0x34], 0x60982bfb
jmp 0x4050c0
cmp eax, 0x29133e15
jne 0x4050c0
mov dword [ebp - 0x34], 0x9465a92f
jmp 0x4050c0
cmp eax, 0x27041056
jne 0x4050c0
jmp 0x405428
cmp eax, 0x23bf6588
jne 0x4050c0
mov dword [ebp - 0x34], 0x2afadf15
jmp 0x4050c0
cmp eax, 0x1e4286be
jne 0x4050c0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x34], 0x9465a92f
jmp 0x4050c0
cmp eax, 0xfa3ea49c
jne 0x4050c0
mov byte [ebp - 9], 1
mov dword [ebp - 0x34], 0x7ed5d334
jmp 0x4050c0
mov dword [ebp - 0x34], 0xfa3ea49c
jmp 0x4050c0
cmp eax, 0xf0d8f9aa
jne 0x4050c0
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.00402440
mov dword [ebp - 0x34], 0xbb7a2d9b
jmp 0x4050c0
mov eax, dword [ebp - 0x30]
add esp, 0x3c
pop esi
pop edi
pop ebp
ret