Function at 0x407800
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
call fcn.00406f70
test eax, eax
jne 0x407818
call fcn.00406f80
test eax, eax
je 0x407828
mov dword [ebp - 0xc], 0x5a64a8
mov dword [ebp - 4], 0x6188
jmp 0x407836
mov dword [ebp - 0xc], 0x4352c8
mov dword [ebp - 4], 0x6f20
push 1
mov eax, dword [ebp + 0xc]
push eax
call fcn.004074a0
add esp, 8
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
call fcn.0041763b
add esp, 0xc
mov ecx, dword [ebp + 0xc]
push ecx
push 0x104
push 0x76f018
call fcn.0041763b
add esp, 0xc
mov edx, dword [ebp + 0xc]
push edx
push 0x104
push 0x76f120
call fcn.0041763b
add esp, 0xc
push 0x76de10
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00417695
add esp, 0xc
push 0x76de20
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
call fcn.00417695
add esp, 0xc
push 0x76de30
push 0x104
push 0x76f018
call fcn.00417695
add esp, 0xc
push 0x76de40
push 0x104
push 0x76f120
call fcn.00417695
add esp, 0xc
mov ecx, dword [ebp - 4]
push ecx
call fcn.00417488
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x407905
mov dword [0x76ee00], 0xd
mov eax, 5
jmp 0x407c55
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 8]
push ecx
call fcn.004115e0
add esp, 0xc
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 8]
push eax
call fcn.00405e20
add esp, 8
mov dword [ebp - 0x14], 0
push 0x4276b8
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x10]
push edx
call fcn.00417d6f
add esp, 0xc
test eax, eax
jne 0x40796e
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 4]
push ecx
push 1
mov edx, dword [ebp - 8]
push edx
call fcn.004180d0
add esp, 0x10
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
push eax
call fcn.00417e2d
add esp, 4
mov ecx, dword [ebp - 8]
push ecx
call fcn.0041746d
add esp, 4
mov edx, dword [ebp - 0x14]
cmp edx, dword [ebp - 4]
je 0x407996
mov dword [0x76ee00], 8
mov eax, 2
jmp 0x407c55
call fcn.00406f70
test eax, eax
jne 0x4079a8
call fcn.00406f80
test eax, eax
je 0x4079b8
mov dword [ebp - 0xc], 0x5a5ae0
mov dword [ebp - 4], 0x9c3
jmp 0x4079c6
mov dword [ebp - 0xc], 0x434908
mov dword [ebp - 4], 0x9bf
mov eax, dword [ebp - 4]
push eax
call fcn.00417488
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4079ef
mov dword [0x76ee00], 0xd
mov eax, 5
jmp 0x407c55
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 8]
push eax
call fcn.004115e0
add esp, 0xc
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 8]
push edx
call fcn.00405e20
add esp, 8
mov dword [ebp - 0x14], 0
push 0x4276bc
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp - 0x10]
push ecx
call fcn.00417d6f
add esp, 0xc
test eax, eax
jne 0x407a58
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 4]
push eax
push 1
mov ecx, dword [ebp - 8]
push ecx
call fcn.004180d0
add esp, 0x10
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x10]
push edx
call fcn.00417e2d
add esp, 4
mov eax, dword [ebp - 8]
push eax
call fcn.0041746d
add esp, 4
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [ebp - 4]
je 0x407a80
mov dword [0x76ee00], 8
mov eax, 2
jmp 0x407c55
call fcn.00406f70
test eax, eax
jne 0x407a92
call fcn.00406f80
test eax, eax
je 0x407aa2
mov dword [ebp - 0xc], 0x5a3268
mov dword [ebp - 4], 0x2876
jmp 0x407ab0
mov dword [ebp - 0xc], 0x432090
mov dword [ebp - 4], 0x2876
mov edx, dword [ebp - 4]
push edx
call fcn.00417488
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x407ad9
mov dword [0x76ee00], 0xd
mov eax, 5
jmp 0x407c55
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 8]
push edx
call fcn.004115e0
add esp, 0xc
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 8]
push ecx
call fcn.00405e20
add esp, 8
mov dword [ebp - 0x14], 0
push 0x4276c0
push 0x76f018
lea edx, [ebp - 0x10]
push edx
call fcn.00417d6f
add esp, 0xc
test eax, eax
jne 0x407b43
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 4]
push ecx
push 1
mov edx, dword [ebp - 8]
push edx
call fcn.004180d0
add esp, 0x10
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
push eax
call fcn.00417e2d
add esp, 4
mov ecx, dword [ebp - 8]
push ecx
call fcn.0041746d
add esp, 4
mov edx, dword [ebp - 0x14]
cmp edx, dword [ebp - 4]
je 0x407b6b
mov dword [0x76ee00], 8
mov eax, 2
jmp 0x407c55
call fcn.00406f70
test eax, eax
jne 0x407b7d
call fcn.00406f80
test eax, eax
je 0x407b8d
mov dword [ebp - 0xc], 0x5ac630
mov dword [ebp - 4], 0x1a6678
jmp 0x407b9b
mov dword [ebp - 0xc], 0x43c1e8
mov dword [ebp - 4], 0x167080
mov eax, dword [ebp - 4]
push eax
call fcn.00417488
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x407bc4
mov dword [0x76ee00], 0xd
mov eax, 5
jmp 0x407c55
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 8]
push eax
call fcn.004115e0
add esp, 0xc
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 8]
push edx
call fcn.00405e20
add esp, 8
mov dword [ebp - 0x14], 0
push 0x4276c4
push 0x76f120
lea eax, [ebp - 0x10]
push eax
call fcn.00417d6f
add esp, 0xc
test eax, eax
jne 0x407c2e
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 4]
push edx
push 1
mov eax, dword [ebp - 8]
push eax
call fcn.004180d0
add esp, 0x10
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.00417e2d
add esp, 4
mov edx, dword [ebp - 8]
push edx
call fcn.0041746d
add esp, 4
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 4]
je 0x407c53
mov dword [0x76ee00], 8
mov eax, 2
jmp 0x407c55
xor eax, eax
mov esp, ebp
pop ebp
ret