Function at 0x1009a5d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
push esi
push edi
push ecx
lea edi, [ebp - 0x74]
mov ecx, 0x1d
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp + 8]
push eax
call fcn.1006a430
push eax
call fcn.100a1d90
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x1009a616
mov edx, dword [ebp + 8]
push edx
call fcn.100a1d30
add esp, 4
jmp 0x1009a7a8
mov ecx, dword [ebp - 4]
call fcn.100a0d00
test eax, eax
je 0x1009a65c
mov ecx, dword [ebp - 4]
call fcn.100a0d00
mov esi, eax
mov ecx, dword [ebp - 4]
call fcn.100a0c40
cmp esi, eax
jae 0x1009a65c
mov eax, dword [ebp + 8]
push eax
call fcn.100a1dc0
add esp, 4
mov byte [ebp - 0x59], al
mov ecx, dword [ebp - 4]
call fcn.100a0af0
mov cl, byte [ebp - 0x59]
mov byte [eax], cl
mov eax, dword [ebp + 8]
jmp 0x1009a7a8
mov edx, dword [ebp - 4]
cmp dword [edx + 0x4c], 0
jne 0x1009a66f
call fcn.1006a430
jmp 0x1009a7a8
mov ecx, dword [ebp - 4]
call fcn.1009ef40
nop
mov eax, dword [ebp - 4]
cmp dword [eax + 0x38], 0
jne 0x1009a6c9
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x4c]
mov dword [ebp - 0x60], edx
mov eax, dword [ebp + 8]
push eax
call fcn.100a1dc0
add esp, 4
mov byte [ebp - 0x61], al
mov ecx, dword [ebp - 0x60]
push ecx
movzx edx, byte [ebp - 0x61]
push edx
call fcn.1006d600
add esp, 8
movzx eax, al
test eax, eax
je 0x1009a6b9
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x68], ecx
jmp 0x1009a6c1
call fcn.1006a430
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x68]
jmp 0x1009a7a8
mov dword [ebp - 8], 0x20
mov edx, dword [ebp + 8]
push edx
call fcn.100a1dc0
add esp, 4
mov byte [ebp - 0x35], al
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x38]
mov dword [ebp - 0x6c], ecx
lea edx, [ebp - 0x50]
push edx
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x44]
push edx
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x35]
push ecx
mov edx, dword [ebp - 4]
add edx, 0x40
push edx
mov ecx, dword [ebp - 0x6c]
call fcn.1009d9a0
mov dword [ebp - 0x70], eax
cmp dword [ebp - 0x70], 0
je 0x1009a726
cmp dword [ebp - 0x70], 1
je 0x1009a726
cmp dword [ebp - 0x70], 3
je 0x1009a773
jmp 0x1009a7a3
mov eax, dword [ebp - 0x50]
lea ecx, [ebp - 0x2c]
sub eax, ecx
mov dword [ebp - 0x58], eax
je 0x1009a758
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x4c]
push eax
mov ecx, dword [ebp - 0x58]
push ecx
push 1
lea edx, [ebp - 0x2c]
push edx
call fcn.100f9563
add esp, 0x10
cmp dword [ebp - 0x58], eax
je 0x1009a758
call fcn.1006a430
jmp 0x1009a7a8
mov eax, dword [ebp - 4]
mov byte [eax + 0x3d], 1
lea ecx, [ebp - 0x35]
cmp dword [ebp - 0x44], ecx
je 0x1009a76c
mov eax, dword [ebp + 8]
jmp 0x1009a7a8
call fcn.1006a430
jmp 0x1009a7a8
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x4c]
push eax
movzx ecx, byte [ebp - 0x35]
push ecx
call fcn.1006d600
add esp, 8
movzx edx, al
test edx, edx
je 0x1009a796
mov eax, dword [ebp + 8]
mov dword [ebp - 0x74], eax
jmp 0x1009a79e
call fcn.1006a430
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x74]
jmp 0x1009a7a8
call fcn.1006a430
push edx
mov ecx, ebp
push eax
lea edx, [0x1009a7cc]
call fcn.10118e3d
pop eax
pop edx
pop edi
pop esi
add esp, 0x74
cmp ebp, esp
call fcn.10118e91
mov esp, ebp
pop ebp
ret 4