Function at 0x1000faf0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe0
push esi
push edi
mov dword [ebp - 4], 0
push 0x1008a064
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 4]
push ecx
call fcn.10057648
add esp, 0xc
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x1000fb2a
mov eax, 0x85855858
jmp 0x1000fd6c
mov edx, dword [ebp + 0x18]
push edx
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x20]
push ecx
mov edx, dword [ebp + 0x1c]
push edx
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x40]
push ecx
call fcn.1000fd80
add esp, 0x18
mov edx, dword [ebp - 4]
push edx
push 1
push 0x20
lea eax, [ebp - 0x40]
push eax
call fcn.10057999
add esp, 0x10
mov dword [ebp - 8], 0
jmp 0x1000fb70
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
mov ecx, dword [ebp + 0x10]
call fcn.100100b0
cmp dword [ebp - 8], eax
jae 0x1000fc5f
mov edx, dword [ebp - 8]
push edx
mov ecx, dword [ebp + 0x10]
call fcn.100061e0
mov ecx, 0x1c
mov esi, eax
lea edi, [ebp - 0xe0]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 4]
push eax
push 1
lea ecx, [ebp - 0xe0]
push ecx
call fcn.10056e80
add esp, 4
add eax, 1
push eax
lea edx, [ebp - 0xe0]
push edx
call fcn.10057999
add esp, 0x10
mov eax, dword [ebp - 4]
push eax
push 1
push 4
lea ecx, [ebp - 0xa0]
push ecx
call fcn.10057999
add esp, 0x10
mov edx, dword [ebp - 4]
push edx
push 1
push 4
lea eax, [ebp - 0x9c]
push eax
call fcn.10057999
add esp, 0x10
mov ecx, dword [ebp - 4]
push ecx
push 1
push 4
lea edx, [ebp - 0x98]
push edx
call fcn.10057999
add esp, 0x10
mov eax, dword [ebp - 4]
push eax
push 1
push 4
lea ecx, [ebp - 0x94]
push ecx
call fcn.10057999
add esp, 0x10
mov dword [ebp - 0xc], 0
jmp 0x1000fc32
mov edx, dword [ebp - 0xc]
add edx, 1
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x94]
jae 0x1000fc5a
mov ecx, dword [ebp - 4]
push ecx
push 1
push 4
mov edx, dword [ebp - 0xc]
lea eax, [ebp + edx*4 - 0x90]
push eax
call fcn.10057999
add esp, 0x10
jmp 0x1000fc29
jmp 0x1000fb67
mov dword [ebp - 0x10], 0
jmp 0x1000fc71
mov ecx, dword [ebp - 0x10]
add ecx, 1
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
cmp edx, dword [ebp - 0x2c]
jae 0x1000fcbb
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp + 0x14]
call fcn.1000fea0
push eax
lea ecx, [ebp - 0x58]
call fcn.1000fdf0
mov ecx, dword [ebp - 4]
push ecx
push 1
lea ecx, [ebp - 0x58]
call fcn.10004ca0
add eax, 1
push eax
lea ecx, [ebp - 0x58]
call fcn.10010070
push eax
call fcn.10057999
add esp, 0x10
lea ecx, [ebp - 0x58]
call fcn.1000fe60
jmp 0x1000fc68
mov dword [ebp - 0x14], 0
jmp 0x1000fccd
mov edx, dword [ebp - 0x14]
add edx, 1
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x28]
jae 0x1000fd17
mov ecx, dword [ebp - 0x14]
push ecx
mov ecx, dword [ebp + 0x18]
call fcn.1000fea0
push eax
lea ecx, [ebp - 0x70]
call fcn.1000fdf0
mov edx, dword [ebp - 4]
push edx
push 1
lea ecx, [ebp - 0x70]
call fcn.10004ca0
add eax, 1
push eax
lea ecx, [ebp - 0x70]
call fcn.10010070
push eax
call fcn.10057999
add esp, 0x10
lea ecx, [ebp - 0x70]
call fcn.1000fe60
jmp 0x1000fcc4
mov eax, dword [ebp - 0x30]
imul eax, dword [ebp - 0x34]
mov dword [ebp - 0x20], eax
imul ecx, dword [ebp - 0x38], 0xc
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 4]
push edx
push 1
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp + 0x1c]
call fcn.1000aaa0
push eax
call fcn.10057999
add esp, 0x10
mov ecx, dword [ebp - 4]
push ecx
push 1
mov edx, dword [ebp - 0x20]
push edx
mov ecx, dword [ebp + 0x20]
call fcn.10012ba0
push eax
call fcn.10057999
add esp, 0x10
mov eax, dword [ebp - 4]
push eax
call fcn.10057706
add esp, 4
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret