Function at 0x1000c760
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003f2a9
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
mov eax, dword [0x10052670]
xor eax, ebp
mov dword [ebp - 0x18], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x84], ecx
mov dword [ebp - 0x80], 0
mov eax, dword [ebp - 0x84]
cmp dword [eax + 0x44], 0
je 0x1000c7b5
mov ecx, dword [ebp - 0x84]
movzx edx, byte [ecx + 0x4a]
test edx, edx
jne 0x1000c7c1
mov al, 1
jmp 0x1000ca6b
mov dword [ebp - 0x10], 8
call fcn.1000ae40
movzx eax, ax
push eax
mov ecx, dword [ebp - 0x84]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x84]
mov eax, dword [edx + 0xc]
call eax
mov word [ebp - 0x3e], ax
call fcn.1000ae40
mov word [ebp - 0x40], ax
lea ecx, [ebp - 0x3e]
push ecx
lea edx, [ebp - 0x40]
push edx
call fcn.1000af00
add esp, 8
movzx eax, al
test eax, eax
je 0x1000c80f
xor al, al
jmp 0x1000ca6b
push 0
push 8
lea ecx, [ebp - 0x38]
call fcn.10004f10
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x50]
push edx
lea ecx, [ebp - 0x38]
call fcn.100051f0
mov dword [ebp - 0x88], eax
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0x8c], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x8c]
call fcn.10005c70
mov esi, eax
lea ecx, [ebp - 0x38]
call fcn.10003640
add esi, eax
push esi
lea ecx, [ebp - 0x5c]
push ecx
lea ecx, [ebp - 0x38]
call fcn.100051f0
mov dword [ebp - 0x90], eax
mov edx, dword [ebp - 0x90]
mov dword [ebp - 0x94], edx
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x94]
call fcn.10005c70
push eax
mov eax, dword [ebp - 0x84]
add eax, 0x4c
push eax
mov ecx, dword [ebp - 0x84]
mov ecx, dword [ecx + 0x44]
call fcn.1000ca90
mov dword [ebp - 0x44], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x5c]
call fcn.10004ee0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x50]
call fcn.10004ee0
mov edx, dword [ebp - 0x44]
mov dword [ebp - 0x98], edx
cmp dword [ebp - 0x98], 0
je 0x1000c8ee
cmp dword [ebp - 0x98], 1
je 0x1000c8f8
cmp dword [ebp - 0x98], 3
je 0x1000ca27
jmp 0x1000ca3f
mov eax, dword [ebp - 0x84]
mov byte [eax + 0x4a], 0
lea ecx, [ebp - 0x68]
push ecx
lea ecx, [ebp - 0x38]
call fcn.100051f0
mov dword [ebp - 0x9c], eax
mov edx, dword [ebp - 0x9c]
mov dword [ebp - 0xa0], edx
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0xa0]
call fcn.10005c70
mov ecx, dword [ebp - 0x14]
sub ecx, eax
mov dword [ebp - 0x3c], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x68]
call fcn.10004ee0
cmp dword [ebp - 0x3c], 0
jbe 0x1000c99f
mov edx, dword [ebp - 0x84]
mov eax, dword [edx + 0x54]
push eax
mov ecx, dword [ebp - 0x3c]
push ecx
push 1
lea edx, [ebp - 0x78]
push edx
lea ecx, [ebp - 0x38]
call fcn.100051f0
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp - 0xa4]
mov dword [ebp - 0xa8], eax
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x80]
or ecx, 1
mov dword [ebp - 0x80], ecx
mov ecx, dword [ebp - 0xa8]
call fcn.10005c70
push eax
call fcn.10014ad0
add esp, 0x10
cmp dword [ebp - 0x3c], eax
je 0x1000c99f
mov dword [ebp - 0xac], 1
jmp 0x1000c9a9
mov dword [ebp - 0xac], 0
mov dl, byte [ebp - 0xac]
mov byte [ebp - 0x69], dl
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x80]
and eax, 1
je 0x1000c9cd
and dword [ebp - 0x80], 0xfffffffe
lea ecx, [ebp - 0x78]
call fcn.10004ee0
movzx ecx, byte [ebp - 0x69]
test ecx, ecx
je 0x1000c9ed
mov byte [ebp - 0x79], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.100035c0
mov al, byte [ebp - 0x79]
jmp 0x1000ca6b
mov edx, dword [ebp - 0x84]
movzx eax, byte [edx + 0x4a]
test eax, eax
jne 0x1000ca13
mov byte [ebp - 0x7a], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.100035c0
mov al, byte [ebp - 0x7a]
jmp 0x1000ca6b
cmp dword [ebp - 0x3c], 0
jne 0x1000ca25
push 0
push 8
lea ecx, [ebp - 0x38]
call fcn.10004fc0
jmp 0x1000ca57
mov byte [ebp - 0x7b], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.100035c0
mov al, byte [ebp - 0x7b]
jmp 0x1000ca6b
mov byte [ebp - 0x7c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.100035c0
mov al, byte [ebp - 0x7c]
jmp 0x1000ca6b
jmp 0x1000c822
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.1000ecf0
mov esp, ebp
pop ebp
ret