Function at 0x10066340
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x101a8cb0]
xor eax, ebp
mov dword [ebp - 0xc], eax
cmp dword [ebp + 0xc], 0
je 0x10066369
mov eax, dword [ebp + 0xc]
push eax
call fcn.1002d6f0
add esp, 4
test eax, eax
jne 0x10066373
mov eax, 1
jmp 0x1006660c
mov ecx, dword [ebp + 8]
push ecx
call fcn.10009b30
add esp, 4
mov word [ebp - 8], ax
movzx edx, word [ebp - 8]
test edx, edx
je 0x10066394
mov ax, word [ebp - 8]
jmp 0x1006660c
mov eax, 0xc
mov word [ebp - 8], ax
mov ecx, dword [ebp + 8]
mov dword [ecx + 4], 0
mov edx, dword [ebp + 8]
mov dword [edx + 8], 0
mov eax, dword [ebp + 8]
mov dword [eax + 0x14a], 0
cmp dword [ebp + 0x10], 0
je 0x10066462
cmp dword [0x101ccac8], 0
je 0x10066462
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 4]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [0x101ccacc]
push eax
mov ecx, dword [0x101ccac8]
push ecx
call fcn.1000d0a0
add esp, 0x18
mov word [ebp - 8], ax
movzx edx, word [ebp - 8]
test edx, edx
jne 0x10066462
mov eax, dword [ebp - 0x218]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 8]
add edx, 0xc
push edx
call fcn.1000b360
add esp, 0xc
mov word [ebp - 8], ax
movzx eax, word [ebp - 8]
test eax, eax
jne 0x10066462
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 4]
mov dword [ecx + 4], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x218]
mov dword [eax + 8], ecx
mov edx, dword [ebp + 8]
mov dword [edx + 0x14e], 0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x218]
mov dword [eax + 0x152], ecx
movzx edx, word [ebp - 8]
test edx, edx
je 0x1006660a
push 0x101aa790
mov eax, dword [ebp + 0xc]
push eax
call fcn.10003c90
add esp, 8
mov dword [ebp - 0x214], eax
cmp dword [ebp - 0x214], 0
jne 0x100664b4
push 0x185
push 0x101aa794
push 0xc9
push 0x40003
call fcn.10002e30
add esp, 0x10
mov eax, 0xc9
jmp 0x1006660c
mov dword [ebp - 0x21c], 1
cmp dword [ebp - 0x21c], 0
je 0x100665b7
mov ecx, dword [ebp - 0x214]
push ecx
push 0x100
lea edx, [ebp - 0x210]
push edx
call fcn.10066290
add esp, 0xc
test eax, eax
je 0x1006651f
mov eax, dword [ebp - 0x214]
push eax
call fcn.1002ac50
add esp, 4
push 0x190
push 0x101aa7a0
push 0xca
push 0x40003
call fcn.10002e30
add esp, 0x10
mov eax, 0xca
jmp 0x1006660c
mov ecx, dword [ebp + 0x10]
push ecx
lea edx, [ebp - 0x210]
push edx
call fcn.100338a0
add esp, 8
test eax, eax
jne 0x10066540
mov dword [ebp - 0x21c], 0
mov eax, dword [ebp - 0x214]
push eax
push 1
push 4
lea ecx, [ebp - 0x224]
push ecx
call fcn.10032e00
add esp, 0x10
cmp eax, 1
je 0x10066591
mov edx, dword [ebp - 0x214]
push edx
call fcn.1002ac50
add esp, 4
push 0x19a
push 0x101aa7ac
push 0xca
push 0x40003
call fcn.10002e30
add esp, 0x10
mov eax, 0xca
jmp 0x1006660c
cmp dword [ebp - 0x21c], 0
je 0x100665b2
push 1
mov eax, dword [ebp - 0x224]
push eax
mov ecx, dword [ebp - 0x214]
push ecx
call fcn.10033a60
add esp, 0xc
jmp 0x100664be
mov edx, dword [ebp + 8]
mov dword [edx + 0x14e], 0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x224]
mov dword [eax + 0x152], ecx
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x214]
mov dword [edx + 0x14a], eax
mov ecx, dword [ebp - 0x214]
push ecx
call fcn.10034f20
add esp, 4
mov dword [ebp - 0x220], eax
mov edx, dword [ebp - 0x220]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.10066660
add esp, 8
xor eax, eax
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.1002aab0
mov esp, ebp
pop ebp
ret