Function at 0x10097560
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1010c3c8
mov eax, dword fs:[0]
push eax
sub esp, 0x70
push esi
push edi
push ecx
lea edi, [ebp - 0x7c]
mov ecx, 0x1c
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov eax, dword [0x102ac760]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x3c], 0
je 0x100975b2
mov ecx, dword [ebp - 0x14]
movzx edx, byte [ecx + 0x41]
test edx, edx
jne 0x100975be
mov al, 1
jmp 0x1009776a
mov dword [ebp - 0x18], 8
call fcn.1000ac30
mov esi, esp
push eax
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x14]
mov eax, dword [edx + 4]
call eax
cmp esi, esp
call fcn.100b4c28
mov dword [ebp - 0x50], eax
call fcn.1000ac30
mov dword [ebp - 0x54], eax
lea ecx, [ebp - 0x50]
push ecx
lea edx, [ebp - 0x54]
push edx
call fcn.1000ac10
add esp, 8
movzx eax, al
test eax, eax
je 0x1009760a
xor al, al
jmp 0x1009776a
push 0
push 8
lea ecx, [ebp - 0x44]
call fcn.10022110
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0x5c]
push edx
lea ecx, [ebp - 0x44]
call fcn.10011e80
mov ecx, eax
call fcn.1001f040
mov esi, eax
lea ecx, [ebp - 0x44]
call fcn.10003d40
add esi, eax
push esi
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x44]
call fcn.10011e80
mov ecx, eax
call fcn.1001f040
push eax
mov ecx, dword [ebp - 0x14]
add ecx, 0x44
push ecx
mov edx, dword [ebp - 0x14]
mov ecx, dword [edx + 0x3c]
call fcn.10098450
mov dword [ebp - 0x7c], eax
cmp dword [ebp - 0x7c], 0
je 0x10097685
cmp dword [ebp - 0x7c], 1
je 0x1009768c
cmp dword [ebp - 0x7c], 3
je 0x10097726
jmp 0x1009773e
mov eax, dword [ebp - 0x14]
mov byte [eax + 0x41], 0
lea ecx, [ebp - 0x6c]
push ecx
lea ecx, [ebp - 0x44]
call fcn.10011e80
mov ecx, eax
call fcn.1001f040
mov edx, dword [ebp - 0x20]
sub edx, eax
mov dword [ebp - 0x4c], edx
je 0x100976ef
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x4c]
push ecx
mov edx, dword [ebp - 0x4c]
push edx
push 1
lea eax, [ebp - 0x74]
push eax
lea ecx, [ebp - 0x44]
call fcn.10011e80
mov ecx, eax
call fcn.1001f040
push eax
call fcn.100b521a
add esp, 0x10
cmp dword [ebp - 0x4c], eax
je 0x100976ef
mov byte [ebp - 0x75], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.10003150
mov al, byte [ebp - 0x75]
jmp 0x1009776a
mov ecx, dword [ebp - 0x14]
movzx edx, byte [ecx + 0x41]
test edx, edx
jne 0x10097712
mov byte [ebp - 0x76], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.10003150
mov al, byte [ebp - 0x76]
jmp 0x1009776a
cmp dword [ebp - 0x4c], 0
jne 0x10097724
push 0
push 8
lea ecx, [ebp - 0x44]
call fcn.1000d850
jmp 0x10097756
mov byte [ebp - 0x77], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.10003150
mov al, byte [ebp - 0x77]
jmp 0x1009776a
mov byte [ebp - 0x78], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.10003150
mov al, byte [ebp - 0x78]
jmp 0x1009776a
jmp 0x1009761d
push edx
mov ecx, ebp
push eax
lea edx, [0x100977a0]
call fcn.100b4c4b
pop eax
pop edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100b2738
add esp, 0x7c
cmp ebp, esp
call fcn.100b4c28
mov esp, ebp
pop ebp
ret