Function at 0x4046a0
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], 0x4694a0
call fcn.00413ea5
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x34], 0x4ec0de09
jmp 0x404710
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x34], 0xf26a5a2f
nop
nop
nop
nop
nop
mov eax, dword [ebp - 0x34]
cmp eax, 0xb18c96ec
jg 0x404730
cmp eax, 0xa1c90b0d
jne 0x404710
jmp 0x4046fd
cmp eax, 0xbc29684a
jg 0x404760
cmp eax, 0xb18c96ed
jne 0x404710
mov eax, dword [ebp - 0x28]
mov dword [esp], eax
call fcn.00413f26
mov dword [ebp - 0x34], 0xdfff837c
jmp 0x404710
cmp eax, 0xc208e1fb
jg 0x4047a9
cmp eax, 0xbc29684b
jne 0x404710
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.004140f4
mov dword [ebp - 0x2c], eax
mov ecx, 0x4ec263a5
cmp eax, dword [ebp - 0x1c]
jne 0x4047a1
mov ecx, 0xd80e6c88
mov dword [ebp - 0x34], ecx
jmp 0x404710
cmp eax, 0xc5958bb8
jg 0x4047d2
cmp eax, 0xc208e1fc
jne 0x404710
mov dword [ebp - 0x30], 0
mov byte [ebp - 9], 1
mov dword [ebp - 0x34], 0x10b1157a
jmp 0x404710
cmp eax, 0xd80e6c87
jg 0x4047f7
cmp eax, 0xc5958bb9
jne 0x404710
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x34], 0xc208e1fc
jmp 0x404710
cmp eax, 0xdfff837b
jg 0x404821
cmp eax, 0xd80e6c88
jne 0x404710
mov eax, dword [ebp - 0x2c]
add dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x2c]
sub dword [ebp - 0x1c], eax
mov dword [ebp - 0x34], 0x3c532196
jmp 0x404710
cmp eax, 0xf26a5a2e
jg 0x40483f
cmp eax, 0xdfff837c
jne 0x404710
mov dword [ebp - 0x34], 0x4ffbaa56
jmp 0x404710
cmp eax, 0xf25b234
jg 0x404864
cmp eax, 0xf26a5a2f
jne 0x404710
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x34], 0x3d993897
jmp 0x404710
cmp eax, 0x10b11579
jg 0x404882
cmp eax, 0xf25b235
jne 0x404710
mov dword [ebp - 0x34], 0x61fff11d
jmp 0x404710
cmp eax, 0x7f884e29
jg 0x4048eb
cmp eax, 0x7e5ce4b1
jg 0x404902
cmp eax, 0x7b876827
jg 0x404925
cmp eax, 0x7600c0cc
jg 0x40493c
cmp eax, 0x6857d554
jg 0x404953
cmp eax, 0x661ed989
jg 0x40496a
cmp eax, 0x111ff8be
jg 0x4049a1
cmp eax, 0x10b1157a
jne 0x404710
mov al, byte [ebp - 9]
test al, al
mov eax, 0x4097870d
jne 0x4048e3
mov eax, 0x6857d555
mov dword [ebp - 0x34], eax
jmp 0x404710
cmp eax, 0x7f884e2a
jne 0x404710
mov dword [ebp - 0x34], 0x7e5ce4b2
jmp 0x404710
cmp eax, 0x7e5ce4b2
jne 0x404710
mov eax, 0x7600c0cd
cmp dword [ebp - 0x28], 0
jne 0x40491d
mov eax, 0x4ffbaa56
mov dword [ebp - 0x34], eax
jmp 0x404710
cmp eax, 0x7b876828
jne 0x404710
mov dword [ebp - 0x34], 0x61fff11d
jmp 0x404710
cmp eax, 0x7600c0cd
jne 0x404710
mov dword [ebp - 0x34], 0xb18c96ed
jmp 0x404710
cmp eax, 0x6857d555
jne 0x404710
mov dword [ebp - 0x34], 0xf26a5a2f
jmp 0x404710
cmp eax, 0x661ed98a
jne 0x404710
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.004021e0
mov dword [ebp - 0x34], 0x3c532196
jmp 0x404710
cmp eax, 0x3c532195
jg 0x4049bf
cmp eax, 0x111ff8bf
jne 0x404710
mov dword [ebp - 0x34], 0x4e38e1c6
jmp 0x404710
cmp eax, 0x3d993896
jg 0x4049e9
cmp eax, 0x3c532196
jne 0x404710
mov eax, 0xbc29684b
cmp dword [ebp - 0x1c], 0
jne 0x4049e1
mov eax, 0x111ff8bf
mov dword [ebp - 0x34], eax
jmp 0x404710
cmp eax, 0x4097870c
jg 0x404a07
cmp eax, 0x3d993897
jne 0x404710
mov dword [ebp - 0x34], 0x4e38e1c6
jmp 0x404710
cmp eax, 0x4e38e1c5
jg 0x404a25
cmp eax, 0x4097870d
jne 0x404710
mov dword [ebp - 0x34], 0x7e5ce4b2
jmp 0x404710
cmp eax, 0x4ec0de08
jg 0x404a43
cmp eax, 0x4e38e1c6
jne 0x404710
mov dword [ebp - 0x34], 0xc208e1fc
jmp 0x404710
cmp eax, 0x625a1134
jg 0x404a6b
cmp eax, 0x61fff11c
jg 0x404a8d
cmp eax, 0x4ec0de09
je 0x404aa4
cmp eax, 0x4ec263a5
jne 0x404abc
mov dword [ebp - 0x34], 0x7e5ce4b2
jmp 0x404710
cmp eax, 0x625a1135
jne 0x404710
mov eax, dword [ebp - 0x28]
mov dword [esp], eax
call fcn.00413f26
mov dword [ebp - 0x34], 0xb18c96ed
jmp 0x404710
cmp eax, 0x61fff11d
jne 0x404710
mov dword [ebp - 0x34], 0x7f884e2a
jmp 0x404710
mov eax, 0xf25b235
cmp dword [ebp - 0x10], 0
je 0x404ab4
mov eax, 0x661ed98a
mov dword [ebp - 0x34], eax
jmp 0x404710
cmp eax, 0x4ffbaa56
jne 0x404710
mov eax, dword [ebp - 0x30]
add esp, 0x3c
pop esi
pop edi
pop ebp
ret