Function at 0x405e20
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], 0x421461
call fcn.00417735
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x34], 0x71de3f7f
jmp 0x405eb0
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.00402710
mov dword [ebp - 0x34], 0x4d951ae8
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [ebp - 0x34]
cmp eax, 0xe3ae7b6
jg 0x405ed0
cmp eax, 0xc410c157
jne 0x405eb0
jmp 0x405e7d
cmp eax, 0x7dea987d
jg 0x405ef0
cmp eax, 0x131c1cbc
jg 0x405f06
cmp eax, 0xe3ae7b7
jne 0x405eb0
jmp 0x4060b9
cmp eax, 0x7dea987e
jne 0x405eb0
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x34], 0xe3ae7b7
jmp 0x405eb0
cmp eax, 0x15fa8438
jg 0x405f29
cmp eax, 0x131c1cbd
jne 0x405eb0
mov eax, 0x70a41a0b
cmp dword [ebp - 0x28], 0
jne 0x405f24
mov eax, 0x37e61597
mov dword [ebp - 0x34], eax
jmp 0x405eb0
cmp eax, 0x71de3f7e
jg 0x405f90
cmp eax, 0x70a41a0a
jg 0x405fb3
cmp eax, 0x5196a87f
jg 0x405fd5
cmp eax, 0x4d951ae7
jg 0x405ff3
cmp eax, 0x46d0b6e1
jg 0x406016
cmp eax, 0x37e61596
jg 0x406039
cmp eax, 0x28b0cbd4
jg 0x406050
cmp eax, 0x15fa8439
je 0x406096
cmp eax, 0x1692ba71
jne 0x4060a2
mov dword [ebp - 0x34], 0x131c1cbd
jmp 0x405eb0
cmp eax, 0x71de3f7f
jne 0x405eb0
mov eax, 0x1692ba71
cmp dword [ebp - 0x10], 0
je 0x405fab
mov eax, 0xc410c157
mov dword [ebp - 0x34], eax
jmp 0x405eb0
cmp eax, 0x70a41a0b
jne 0x405eb0
mov eax, dword [ebp - 0x28]
mov dword [esp], eax
call fcn.004177b6
mov dword [ebp - 0x34], 0x37e61597
jmp 0x405eb0
cmp eax, 0x5196a880
jne 0x405eb0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x34], 0x131c1cbd
jmp 0x405eb0
cmp eax, 0x4d951ae8
jne 0x405eb0
mov eax, 0x28b0cbd5
cmp dword [ebp - 0x1c], 0
jne 0x40600e
mov eax, 0x5196a880
mov dword [ebp - 0x34], eax
jmp 0x405eb0
cmp eax, 0x46d0b6e2
jne 0x405eb0
mov eax, dword [ebp - 0x2c]
add dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x2c]
sub dword [ebp - 0x1c], eax
mov dword [ebp - 0x34], 0x4d951ae8
jmp 0x405eb0
cmp eax, 0x37e61597
jne 0x405eb0
mov dword [ebp - 0x34], 0x7dea987e
jmp 0x405eb0
cmp eax, 0x28b0cbd5
jne 0x405eb0
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.00417984
mov dword [ebp - 0x2c], eax
mov ecx, 0x15fa8439
cmp eax, dword [ebp - 0x1c]
jne 0x40608e
mov ecx, 0x46d0b6e2
mov dword [ebp - 0x34], ecx
jmp 0x405eb0
mov dword [ebp - 0x34], 0x131c1cbd
jmp 0x405eb0
cmp eax, 0x18d47e35
jne 0x405eb0
mov dword [ebp - 0x34], 0x7dea987e
jmp 0x405eb0
mov eax, dword [ebp - 0xc]
add esp, 0x3c
pop esi
pop edi
pop ebp
ret