Function at 0x1009b190
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.100a2950
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x1009b1d6
mov edx, dword [ebp + 8]
push edx
call fcn.100a28f0
add esp, 4
jmp 0x1009b368
mov ecx, dword [ebp - 4]
call fcn.100a18c0
test eax, eax
je 0x1009b21c
mov ecx, dword [ebp - 4]
call fcn.100a18c0
mov esi, eax
mov ecx, dword [ebp - 4]
call fcn.100a1800
cmp esi, eax
jae 0x1009b21c
mov eax, dword [ebp + 8]
push eax
call fcn.100a2980
add esp, 4
mov byte [ebp - 0x59], al
mov ecx, dword [ebp - 4]
call fcn.100a16b0
mov cl, byte [ebp - 0x59]
mov byte [eax], cl
mov eax, dword [ebp + 8]
jmp 0x1009b368
mov edx, dword [ebp - 4]
cmp dword [edx + 0x4c], 0
jne 0x1009b22f
call fcn.1006a430
jmp 0x1009b368
mov ecx, dword [ebp - 4]
call fcn.1009fb00
nop
mov eax, dword [ebp - 4]
cmp dword [eax + 0x38], 0
jne 0x1009b289
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x4c]
mov dword [ebp - 0x60], edx
mov eax, dword [ebp + 8]
push eax
call fcn.100a2980
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 0x1009b279
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x68], ecx
jmp 0x1009b281
call fcn.1006a430
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x68]
jmp 0x1009b368
mov dword [ebp - 8], 0x20
mov edx, dword [ebp + 8]
push edx
call fcn.100a2980
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.1009e560
mov dword [ebp - 0x70], eax
cmp dword [ebp - 0x70], 0
je 0x1009b2e6
cmp dword [ebp - 0x70], 1
je 0x1009b2e6
cmp dword [ebp - 0x70], 3
je 0x1009b333
jmp 0x1009b363
mov eax, dword [ebp - 0x50]
lea ecx, [ebp - 0x2c]
sub eax, ecx
mov dword [ebp - 0x58], eax
je 0x1009b318
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.100fae83
add esp, 0x10
cmp dword [ebp - 0x58], eax
je 0x1009b318
call fcn.1006a430
jmp 0x1009b368
mov eax, dword [ebp - 4]
mov byte [eax + 0x3d], 1
lea ecx, [ebp - 0x35]
cmp dword [ebp - 0x44], ecx
je 0x1009b32c
mov eax, dword [ebp + 8]
jmp 0x1009b368
call fcn.1006a430
jmp 0x1009b368
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 0x1009b356
mov eax, dword [ebp + 8]
mov dword [ebp - 0x74], eax
jmp 0x1009b35e
call fcn.1006a430
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x74]
jmp 0x1009b368
call fcn.1006a430
push edx
mov ecx, ebp
push eax
lea edx, [0x1009b38c]
call fcn.1011a76d
pop eax
pop edx
pop edi
pop esi
add esp, 0x74
cmp ebp, esp
call fcn.1011a7c1
mov esp, ebp
pop ebp
ret 4