Function at 0x404fe0
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], 0x41d493
call fcn.00412e81
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x34], 0x3a708df6
jmp 0x405070
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.00412fed
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x34], 0x30d18e8
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [ebp - 0x34]
cmp eax, 0x8d593277
jg 0x405090
cmp eax, 0x885f3431
jne 0x405070
jmp 0x40503d
cmp eax, 0xa0212a90
jg 0x4050b0
cmp eax, 0x8d593278
jne 0x405070
mov dword [ebp - 0x34], 0x5a92cef6
jmp 0x405070
cmp eax, 0xa6085aac
jg 0x4050c3
cmp eax, 0xa0212a91
jne 0x405070
jmp 0x405363
cmp eax, 0xc0fae07a
jg 0x4050e7
cmp eax, 0xa6085aad
jne 0x405070
mov al, byte [ebp - 9]
test al, al
mov eax, 0xccfd0caf
jne 0x4050e2
mov eax, 0x1930fcfe
mov dword [ebp - 0x34], eax
jmp 0x405070
cmp eax, 0x7bb4bf4c
jg 0x405159
cmp eax, 0x79b1cc7e
jg 0x405170
cmp eax, 0x5a92cef5
jg 0x405187
cmp eax, 0x42c5cd6e
jg 0x4051a9
cmp eax, 0x3e521193
jg 0x4051c0
cmp eax, 0x3a708df5
jg 0x4051e3
cmp eax, 0x1f90f910
jg 0x405206
cmp eax, 0x1930fcfd
jg 0x40523d
cmp eax, 0xc2c4bec9
jg 0x405265
cmp eax, 0xc0fae07b
jne 0x405070
mov dword [ebp - 0x34], 0x1112d3c2
jmp 0x405070
cmp eax, 0x7bb4bf4d
jne 0x405070
mov dword [ebp - 0x34], 0x79b1cc7f
jmp 0x405070
cmp eax, 0x79b1cc7f
jne 0x405070
mov dword [ebp - 0x34], 0x1112d3c2
jmp 0x405070
cmp eax, 0x5a92cef6
jne 0x405070
mov eax, dword [ebp - 0x28]
mov dword [esp], eax
call fcn.004130d7
mov dword [ebp - 0x34], 0xc2c4beca
jmp 0x405070
cmp eax, 0x42c5cd6f
jne 0x405070
mov dword [ebp - 0x34], 0x7bb4bf4d
jmp 0x405070
cmp eax, 0x3e521194
jne 0x405070
mov eax, 0xc812c543
cmp dword [ebp - 0x1c], 0
jne 0x4051db
mov eax, 0x10906f00
mov dword [ebp - 0x34], eax
jmp 0x405070
cmp eax, 0x3a708df6
jne 0x405070
mov eax, 0xc0fae07b
cmp dword [ebp - 0x10], 0
je 0x4051fe
mov eax, 0x1f90f911
mov dword [ebp - 0x34], eax
jmp 0x405070
cmp eax, 0x1f90f911
jne 0x405070
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.00402190
mov dword [ebp - 0x34], 0x3e521194
jmp 0x405070
cmp eax, 0x1930fcfe
jne 0x405070
mov eax, dword [ebp - 0x2c]
add dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x2c]
sub eax, dword [ebp - 0x1c]
neg eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x34], 0x3e521194
jmp 0x405070
cmp eax, 0xc812c542
jg 0x405283
cmp eax, 0xc2c4beca
jne 0x405070
mov dword [ebp - 0x34], 0xa0212a91
jmp 0x405070
cmp eax, 0xccfd0cae
jg 0x4052a1
cmp eax, 0xc812c543
jne 0x405070
mov dword [ebp - 0x34], 0x30d18e8
jmp 0x405070
cmp eax, 0xfab55700
jg 0x4052bf
cmp eax, 0xccfd0caf
jne 0x405070
mov dword [ebp - 0x34], 0x7bb4bf4d
jmp 0x405070
cmp eax, 0x30d18e7
jg 0x4052e8
cmp eax, 0xfab55701
jne 0x405070
mov eax, dword [ebp - 0x28]
mov dword [esp], eax
call fcn.004130d7
mov dword [ebp - 0x34], 0x5a92cef6
jmp 0x405070
cmp eax, 0x30d18e8
je 0x405309
cmp eax, 0x10906f00
jne 0x405340
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x34], 0x1112d3c2
jmp 0x405070
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.00412fed
mov dword [ebp - 0x2c], eax
cmp eax, dword [ebp - 0x1c]
setne byte [ebp - 9]
mov dword [ebp - 0x34], 0xa6085aad
jmp 0x405070
cmp eax, 0x1112d3c2
jne 0x405070
mov eax, 0x8d593278
cmp dword [ebp - 0x28], 0
jne 0x40535b
mov eax, 0xa0212a91
mov dword [ebp - 0x34], eax
jmp 0x405070
mov eax, dword [ebp - 0x30]
add esp, 0x3c
pop esi
pop edi
pop ebp
ret