Function at 0x4071c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5460f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa0
mov dword [ebp - 0xa4], ecx
mov eax, dword [ebp - 0xa4]
cmp dword [eax + 0x44], 0
je 0x4071fe
mov ecx, dword [ebp - 0xa4]
movzx edx, byte [ecx + 0x49]
test edx, edx
jne 0x40720a
mov al, 1
jmp 0x407485
mov dword [ebp - 0x10], 8
push 0xffffffffffffffff
mov eax, dword [ebp - 0xa4]
mov edx, dword [eax]
mov ecx, dword [ebp - 0xa4]
mov eax, dword [edx + 0xc]
call eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x3c], 0xffffffff
mov ecx, dword [ebp - 0x3c]
xor edx, edx
cmp ecx, dword [ebp - 0x38]
sete dl
movzx eax, dl
test eax, eax
je 0x407249
xor al, al
jmp 0x407485
lea ecx, [ebp - 0x59]
mov dword [ebp - 0x58], ecx
lea edx, [ebp - 0x30]
mov dword [ebp - 0xa8], edx
mov dword [ebp - 4], 0
push 0
push 0
lea ecx, [ebp - 0x30]
call fcn.00406780
push 0
push 8
lea ecx, [ebp - 0x30]
call fcn.00407b50
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x30]
call fcn.00406820
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x40], eax
xor ecx, ecx
jne 0x40728f
mov edx, dword [ebp - 0x40]
mov dword [ebp - 0x64], edx
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x68], eax
cmp dword [ebp - 0x1c], 0x10
jb 0x4072ad
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x6c], ecx
jmp 0x4072b3
lea edx, [ebp - 0x30]
mov dword [ebp - 0x6c], edx
lea eax, [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0x6c]
push ecx
lea ecx, [ebp - 0x44]
call fcn.00408a00
xor edx, edx
jne 0x4072c3
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x70], eax
mov ecx, dword [ebp - 0xa4]
mov edx, dword [ecx + 0x44]
mov dword [ebp - 0x74], edx
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x64]
add ecx, dword [ebp - 0x68]
push ecx
mov edx, dword [ebp - 0x70]
push edx
mov eax, dword [ebp - 0xa4]
add eax, 0x4c
push eax
mov ecx, dword [ebp - 0x74]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x74]
mov eax, dword [edx + 0x18]
call eax
mov dword [ebp - 0xac], eax
cmp dword [ebp - 0xac], 0
je 0x407329
cmp dword [ebp - 0xac], 1
je 0x407333
cmp dword [ebp - 0xac], 3
je 0x407420
jmp 0x407443
mov ecx, dword [ebp - 0xa4]
mov byte [ecx + 0x49], 0
cmp dword [ebp - 0x1c], 0x10
jb 0x407341
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x78], edx
jmp 0x407347
lea eax, [ebp - 0x30]
mov dword [ebp - 0x78], eax
lea ecx, [ebp - 0x30]
push ecx
mov edx, dword [ebp - 0x78]
push edx
lea ecx, [ebp - 0x48]
call fcn.00408a00
xor eax, eax
jne 0x407357
mov ecx, dword [ebp - 0x14]
sub ecx, dword [ebp - 0x48]
mov dword [ebp - 0x34], ecx
je 0x4073db
cmp dword [ebp - 0x1c], 0x10
jb 0x407374
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x7c], edx
jmp 0x40737a
lea eax, [ebp - 0x30]
mov dword [ebp - 0x7c], eax
lea ecx, [ebp - 0x30]
push ecx
mov edx, dword [ebp - 0x7c]
push edx
lea ecx, [ebp - 0x4c]
call fcn.00408a00
xor eax, eax
jne 0x40738a
mov ecx, dword [ebp - 0x4c]
mov dword [ebp - 0x80], ecx
mov edx, dword [ebp - 0xa4]
mov eax, dword [edx + 0x54]
push eax
mov ecx, dword [ebp - 0x34]
push ecx
push 1
mov edx, dword [ebp - 0x80]
push edx
call fcn.0052a11d
add esp, 0x10
cmp dword [ebp - 0x34], eax
je 0x4073db
mov byte [ebp - 0x4d], 0
mov dword [ebp - 4], 2
push 0
push 1
lea ecx, [ebp - 0x30]
call fcn.00406780
mov dword [ebp - 4], 0xffffffff
mov al, byte [ebp - 0x4d]
jmp 0x407485
mov eax, dword [ebp - 0xa4]
movzx ecx, byte [eax + 0x49]
test ecx, ecx
jne 0x40740c
mov byte [ebp - 0x4e], 1
mov dword [ebp - 4], 3
push 0
push 1
lea ecx, [ebp - 0x30]
call fcn.00406780
mov dword [ebp - 4], 0xffffffff
mov al, byte [ebp - 0x4e]
jmp 0x407485
cmp dword [ebp - 0x34], 0
jne 0x40741e
push 0
push 8
lea ecx, [ebp - 0x30]
call fcn.00406590
jmp 0x407466
mov byte [ebp - 0x4f], 1
mov dword [ebp - 4], 4
push 0
push 1
lea ecx, [ebp - 0x30]
call fcn.00406780
mov dword [ebp - 4], 0xffffffff
mov al, byte [ebp - 0x4f]
jmp 0x407485
mov byte [ebp - 0x50], 0
mov dword [ebp - 4], 5
push 0
push 1
lea ecx, [ebp - 0x30]
call fcn.00406780
mov dword [ebp - 4], 0xffffffff
mov al, byte [ebp - 0x50]
jmp 0x407485
jmp 0x40727e
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret