Function at 0x1006abd
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x100a2e0
call fcn.0100a110
sub esp, 0xabc
push esi
push edi
xor edi, edi
lea ecx, [ebp - 0x28c]
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], edi
call fcn.01008c91
cmp dword [ebp + 8], edi
mov dword [ebp - 4], edi
je 0x1006dac
mov esi, dword [0x10010a0]
push 4
push dword [ebp + 8]
call esi
test eax, eax
jne 0x1006dac
cmp dword [ebp + 0xc], edi
je 0x1006dac
push 2
push dword [ebp + 0xc]
call esi
test eax, eax
jne 0x1006dac
cmp dword [ebp + 0x10], edi
je 0x1006dac
push 2
push dword [ebp + 0x10]
call esi
test eax, eax
jne 0x1006dac
push ebx
push edi
push 1
push dword [ebp + 0x10]
lea ecx, [ebp - 0x4b0]
call fcn.01008192
lea eax, [ebp - 0x10]
push eax
mov byte [ebp - 4], 1
call fcn.0100699b
mov ebx, eax
cmp ebx, edi
jne 0x1006d8f
push 0x1001920
push dword [ebp + 0xc]
call dword [0x10011a4]
mov edi, eax
test edi, edi
pop ecx
pop ecx
mov dword [ebp + 0xc], edi
jne 0x1006b85
mov ebx, 0x80004005
jmp 0x1006d6f
push dword [ebp + 0x10]
mov esi, dword [0x10011d8]
push 0x1003da0
push edi
call esi
add esp, 0xc
lea eax, [ebp - 0x28c]
push eax
lea ecx, [ebp - 0x4b0]
call fcn.010083fc
test eax, eax
jne 0x1006d61
mov esi, dword [0x10011e4]
lea eax, [ebp - 0x288]
push eax
push dword [ebp - 0x10]
lea eax, [ebp - 0xac8]
push dword [ebp + 0x10]
push 0x1003d28
push eax
call esi
lea eax, [ebp - 0xac8]
push 0x1003d20
push eax
call dword [0x10011a4]
mov edi, eax
xor ebx, ebx
add esp, 0x1c
cmp edi, ebx
mov dword [ebp - 0x14], edi
je 0x1006c0f
push edi
push 1
lea eax, [ebp - 0x1c]
push 8
push eax
call dword [0x100118c]
push edi
call dword [0x10011d4]
add esp, 0x14
jmp 0x1006c15
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x50]
push eax
call dword [0x1001090]
cmp dword [ebp - 0x48], ebx
mov dword [ebp - 0x20], 0x1003d08
jne 0x1006c36
mov dword [ebp - 0x20], 0x1003cf8
mov eax, dword [ebp - 0x28c]
cmp eax, ebx
je 0x1006c48
lea ecx, [eax + 0x10]
mov dword [ebp - 0x24], ecx
jmp 0x1006c4b
mov dword [ebp - 0x24], ebx
cmp eax, ebx
je 0x1006c54
mov edi, dword [eax + 4]
jmp 0x1006c56
xor edi, edi
cmp eax, ebx
je 0x1006c5d
mov ebx, dword [eax + 4]
movzx eax, word [ebp - 0x28]
push eax
movzx eax, word [ebp - 0x2a]
push eax
movzx eax, word [ebp - 0x2c]
push eax
movzx eax, word [ebp - 0x34]
push eax
movzx eax, word [ebp - 0x2e]
push eax
movzx eax, word [ebp - 0x32]
push dword [eax*4 + 0x100c4ec]
movzx eax, word [ebp - 0x30]
push dword [eax*4 + 0x100c520]
lea ecx, [ebp - 0x28c]
call fcn.010088d3
push eax
push dword [ebp - 0x20]
lea eax, [ebp - 0x288]
push dword [ebp - 0x24]
push dword [edi*4 + 0x100c548]
push ebx
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push eax
push 0x1003c70
push dword [ebp + 0xc]
call dword [0x10011d8]
add esp, 0x44
xor edi, edi
push dword [edi + 0x100c53c]
lea eax, [ebp - 0x288]
push eax
push dword [ebp - 0x10]
lea eax, [ebp - 0x8c0]
push dword [ebp + 0x10]
push 0x1003c10
push eax
call esi
push dword [ebp + 0x10]
lea eax, [ebp - 0x6b8]
push 0x10012e0
push eax
call esi
push dword [edi + 0x100c53c]
lea eax, [ebp - 0x288]
push eax
lea eax, [ebp - 0x6b6]
push 0x1003bfc
push eax
call esi
mov ecx, dword [ebp + 8]
add esp, 0x34
lea eax, [ebp - 0x6b8]
push eax
lea eax, [ebp - 0x8c0]
push eax
call fcn.0100809a
mov ebx, eax
test ebx, ebx
jne 0x1006d6f
add edi, 8
cmp edi, 0xc
jb 0x1006cc6
lea eax, [ebp - 0x28c]
push eax
lea ecx, [ebp - 0x4b0]
call fcn.010081f8
test eax, eax
je 0x1006bb9
lea ecx, [ebp - 0x4b0]
call fcn.010082df
jmp 0x1006d6f
push dword [ebp + 0x10]
push 0x1003bd4
push edi
call esi
add esp, 0xc
cmp dword [ebp + 0xc], 0
je 0x1006d7f
push dword [ebp + 0xc]
call dword [0x10011d4]
pop ecx
cmp dword [ebp - 0x14], 0
je 0x1006d8f
push dword [ebp - 0x14]
call dword [0x10011d4]
pop ecx
lea eax, [ebp - 0x10]
push eax
call fcn.01006982
and byte [ebp - 4], 0
lea ecx, [ebp - 0x4b0]
call fcn.010083f7
mov esi, ebx
pop ebx
jmp 0x1006db1
mov esi, 0x80070057
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28c]
call fcn.01008d59
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret 0xc