Function at 0x1006fc60
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x10097030]
xor eax, ebp
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x38], 0
lea eax, [ebp - 0x30]
push eax
call fcn.100579fa
add esp, 4
test eax, eax
je 0x1006fc95
xor eax, eax
jmp 0x1006ff3d
cmp dword [ebp - 0x30], 0
jne 0x1006fca2
xor eax, eax
jmp 0x1006ff3d
mov ecx, dword [ebp - 0x30]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push 1
mov eax, dword [ebp + 8]
push eax
call fcn.10057b6f
add esp, 0x10
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.10057bf1
add esp, 4
mov edx, dword [ebp - 0x30]
push edx
push 8
push 1
lea eax, [ebp - 0x2c]
push eax
call fcn.10057501
add esp, 0x10
push 8
lea ecx, [ebp - 0x2c]
push ecx
call fcn.100418d0
add esp, 8
test eax, eax
jne 0x1006fcfd
mov edx, dword [ebp - 0x30]
push edx
call fcn.10057595
add esp, 4
xor eax, eax
jmp 0x1006ff3d
push 0
push 0
push 0
push str.1.2.23beta03
call fcn.10042240
add esp, 0x10
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x1006fd2f
mov eax, dword [ebp - 0x30]
push eax
call fcn.10057595
add esp, 4
mov eax, 4
jmp 0x1006ff3d
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.10041a30
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x1006fd6a
push 0
push 0
lea edx, [ebp - 0xc]
push edx
call fcn.10043760
add esp, 0xc
mov eax, dword [ebp - 0x30]
push eax
call fcn.10057595
add esp, 4
mov eax, 4
jmp 0x1006ff3d
mov ecx, dword [ebp - 0xc]
push 0
push ecx
call fcn.10058fb0
add esp, 8
test eax, eax
je 0x1006fda1
push 0
lea edx, [ebp - 4]
push edx
lea eax, [ebp - 0xc]
push eax
call fcn.10043760
add esp, 0xc
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.10057595
add esp, 4
xor eax, eax
jmp 0x1006ff3d
mov edx, dword [ebp - 0x30]
push edx
mov eax, dword [ebp - 0xc]
push eax
call fcn.10042180
add esp, 8
push 8
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.100417f0
add esp, 8
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 0xc]
push eax
call fcn.100425b0
add esp, 8
push 0
push 0
push 0
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0x34]
push edx
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x18]
push ecx
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 0xc]
push eax
call fcn.10043c60
add esp, 0x24
push 4
lea ecx, [ebp - 0x18]
push ecx
mov edx, dword [ebp + 0x10]
push edx
call fcn.10056680
add esp, 0xc
push 4
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
call fcn.10056680
add esp, 0xc
cmp dword [ebp - 0x34], 8
jle 0x1006fe2b
mov edx, dword [ebp - 0xc]
push edx
call fcn.10043dc0
add esp, 4
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.10042eb0
add esp, 8
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 0xc]
push eax
call fcn.10043c40
add esp, 8
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
imul ecx, dword [ebp - 0x14]
push ecx
call fcn.10057660
add esp, 4
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x1006fe83
push 0
lea edx, [ebp - 4]
push edx
lea eax, [ebp - 0xc]
push eax
call fcn.10043760
add esp, 0xc
mov eax, 4
jmp 0x1006ff3d
mov ecx, dword [ebp - 0x14]
shl ecx, 2
push ecx
call fcn.10057660
add esp, 4
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
jne 0x1006fec7
push 0
lea edx, [ebp - 4]
push edx
lea eax, [ebp - 0xc]
push eax
call fcn.10043760
add esp, 0xc
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.100570f8
add esp, 4
mov dword [ebp - 0x1c], 0
mov eax, 4
jmp 0x1006ff3d
mov dword [ebp - 8], 0
jmp 0x1006fed9
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x14]
jae 0x1006fef6
mov ecx, dword [ebp - 8]
imul ecx, dword [ebp - 0x10]
add ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x38]
mov dword [eax + edx*4], ecx
jmp 0x1006fed0
mov ecx, dword [ebp - 0x38]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call fcn.100436c0
add esp, 8
mov eax, dword [ebp - 0x38]
push eax
call fcn.100570f8
add esp, 4
push 0
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 0xc]
push edx
call fcn.10043760
add esp, 0xc
mov eax, dword [ebp - 0x30]
push eax
call fcn.10057595
add esp, 4
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp - 0x1c]
mov dword [ecx], edx
mov eax, 1
mov ecx, dword [ebp - 0x24]
xor ecx, ebp
call fcn.1005634e
mov esp, ebp
pop ebp
ret