Function at 0x10080060
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10108dce
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x10188068]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.1007f740
test al, al
jne 0x100800a8
mov eax, 0x45c
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [ebp + 0x1c], 0
jne 0x100800c5
mov eax, 0x461
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp + 0xc]
cmp ebx, 0x5a
jl 0x100802f2
mov eax, dword [ebp + 0x10]
cmp eax, 0x5a
jl 0x100802f2
cmp ebx, 0x708
jg 0x100802db
cmp eax, 0x708
jg 0x100802db
xor esi, esi
xor edi, edi
cmp dword [ebp + 0x2c], esi
je 0x10080144
push 0x24
call fcn.100fcb34
add esp, 4
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], edi
test eax, eax
je 0x10080120
push dword [ebp + 0x10]
mov ecx, eax
push ebx
call fcn.10086610
mov esi, eax
jmp 0x10080122
xor esi, esi
mov dword [ebp - 4], 0xffffffff
test esi, esi
jne 0x10080144
mov eax, 0x460
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [ebp + 0x28], 0
je 0x1008017e
push 0x24
call fcn.100fcb34
add esp, 4
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 1
test eax, eax
je 0x10080171
push dword [ebp + 0x10]
mov ecx, eax
push ebx
call fcn.10086610
mov edi, eax
jmp 0x10080173
xor edi, edi
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x1008012d
test esi, esi
jne 0x10080186
xor ecx, ecx
jmp 0x10080189
mov ecx, dword [esi + 0x1c]
test edi, edi
jne 0x10080191
xor eax, eax
jmp 0x10080194
mov eax, dword [edi + 0x1c]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push eax
push ecx
push 0
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x40]
push dword [ebp + 0x3c]
push dword [ebp + 0x38]
push dword [ebp + 0x34]
push 0
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push ebx
push dword [ebp + 8]
call fcn.1007fb70
add esp, 0x5c
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x100801f5
test esi, esi
je 0x100801e7
push dword [ebp + 0x2c]
mov ecx, esi
call fcn.10086c00
test edi, edi
je 0x100801f5
push dword [ebp + 0x28]
mov ecx, edi
call fcn.10086c00
test esi, esi
je 0x1008020b
mov ecx, esi
call fcn.10086680
push 0x24
push esi
call fcn.100683b6
add esp, 8
test edi, edi
je 0x10080221
mov ecx, edi
call fcn.10086680
push 0x24
push edi
call fcn.100683b6
add esp, 8
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x100802f7
cmp dword [ebp + 0x30], eax
je 0x100802f7
mov edi, dword [ebp + 0x10]
push edi
push ebx
call fcn.100878c0
push eax
mov dword [ebp - 0x14], eax
call fcn.100fcb64
mov esi, eax
add esp, 0xc
test esi, esi
je 0x1008012d
lea eax, [ebp - 0x14]
push eax
push esi
push dword [ebp + 0x1c]
push edi
push ebx
push dword [ebp + 0x24]
call fcn.10080310
add esp, 0x18
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x100802f7
push 0x1016164c
push dword [ebp + 0x30]
call fcn.100ff0ff
mov edi, eax
add esp, 8
test edi, edi
jne 0x100802ab
push esi
call fcn.100fcb6d
add esp, 4
mov eax, 0x45d
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
push dword [ebp - 0x14]
push 1
push esi
call fcn.101007e2
push edi
call fcn.10046433
push esi
call fcn.100fcb6d
mov eax, dword [ebp - 0x10]
add esp, 0x18
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 0x47b
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 0x47a
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret