Function at 0x100664d2
Capabilities:
Check if file exists
Get file size
Read file on windows

Disassembly:
push 0x98
mov eax, 0x10170cde
call fcn.1016d10a
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0xa0], eax
and dword [ebp - 4], 0
call fcn.10064d7e
test al, al
je 0x10066510
pop ebx
pop ecx
pop edi
pop ebx
pop esp
pop edi
push eax
push eax
pop edi
push edx
pop eax
pop edx
pop esi
push esp
push ebx
pop ebx
pop ebp
push edx
pop esi
push ebp
pop ecx
pop ebp
push ecx
push esi
push ebx
call fcn.10064973
test al, al
je 0x10066530
push ebx
push esp
pop ebp
pop eax
pop ecx
pop eax
pop ebx
pop ebx
push edi
pop esi
push eax
pop ebp
push edx
pop esp
push ecx
push esi
pop ebp
pop esi
push esp
push edi
pop ecx
push ebp
pop ecx
call fcn.10064f1c
test al, al
je 0x1006654e
push ecx
pop edi
push esi
pop ecx
pop ebx
pop eax
pop ecx
push ecx
pop esp
pop eax
pop ecx
push ebp
push ebp
push ebx
push esi
pop esp
push esi
push edx
push esp
push esi
push edx
call fcn.10064a42
test al, al
je 0x10066576
pop edi
pop ecx
push esp
pop eax
push ecx
push esp
push ecx
push esp
push ebx
push esi
pop edi
pop esp
push esp
push edx
push ecx
push ecx
pop edi
push edx
push ebp
pop edi
pop eax
push ebp
push eax
pop ebx
pop edx
push ecx
push ebp
pop eax
pop esp
push esp
push esp
and dword [ebp - 0x18], 0
lea ecx, [ebp - 0x28]
xor eax, eax
mov dword [ebp - 0x14], 7
push eax
push 0x101744f4
mov word [ebp - 0x28], ax
call fcn.10006830
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 1
call fcn.100770e9
and dword [ebp - 0x98], 0
call fcn.10065078
test al, al
je 0x100665cd
pop ebx
pop edx
pop edx
pop eax
push ecx
pop esi
pop edi
push ecx
pop ebx
pop ebp
pop ecx
push edx
push edi
push ebp
pop eax
pop esp
push edi
pop esi
pop ebp
push ecx
pop ebx
push eax
push ecx
push ecx
push esi
call fcn.10064e4d
test al, al
je 0x100665ed
pop esp
push esp
push ebp
pop edi
pop ecx
pop esp
push esi
pop ecx
pop eax
push ebp
pop esp
pop ecx
push ecx
pop edi
push ebp
push esp
pop edi
push eax
pop eax
pop ebp
push ebp
push ecx
push esi
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1006671c
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
push 0
cmovae eax, dword [ebp + 8]
push 0x80
push 4
push 0
push 1
push connect
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x9c], eax
cmp eax, 0xffffffff
je 0x10066715
call fcn.10064b56
test al, al
je 0x1006665c
pop esp
pop ebx
pop esi
push ebp
push edx
pop ecx
push ebp
pop ecx
pop ebp
pop edi
push edi
push ebx
pop esi
pop ebp
pop ebp
pop eax
pop ecx
pop edi
pop ebp
push edx
push esp
push ebp
pop esi
pop ecx
pop ebp
call fcn.10064ed7
test al, al
je 0x10066684
push esi
push edx
push edi
push esp
pop esp
pop ecx
pop ebx
push esi
push ebx
push eax
pop ebx
push edx
push edx
pop edi
push ebx
pop edi
push esp
push edx
push ebp
push esp
push ebp
pop eax
push ebp
push edx
push ebp
push eax
push eax
push eax
pop edi
push edi
pop esi
call fcn.100649fd
test al, al
je 0x100666ac
pop edx
push edi
push eax
pop edx
pop edx
pop ebx
pop edx
push ebp
pop ebx
pop esi
push edi
push edx
pop edi
push ebx
pop edi
push ecx
push ebp
pop ebp
push edx
push esi
push esi
push edx
pop eax
pop ecx
pop edi
push edx
push ebx
push edi
push ebp
push edx
pop esp
push 0
push dword [ebp - 0x9c]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, dword [ebp - 0xa0]
push eax
mov dword [ebx], eax
call fcn.10062f2d
mov dword [ebp - 0x98], eax
pop ecx
test eax, eax
jne 0x10066740
call fcn.10065078
test al, al
je 0x100666f5
pop ebx
pop edx
pop edx
pop eax
push ecx
pop esi
pop edi
push ecx
pop ebx
pop ebp
pop ecx
push edx
push edi
push ebp
pop eax
pop esp
push edi
pop esi
pop ebp
push ecx
pop ebx
push eax
push ecx
push ecx
push esi
call fcn.10064e4d
test al, al
je 0x10066715
pop esp
push esp
push ebp
pop edi
pop ecx
pop esp
push esi
pop ecx
pop eax
push ebp
pop esp
pop ecx
push ecx
pop edi
push ebp
push esp
pop edi
push eax
pop eax
pop ebp
push ebp
push ecx
push esi
and dword [ebp - 0x98], 0
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.10006390
push 0
push 1
lea ecx, [ebp + 8]
call fcn.10006390
mov eax, dword [ebp - 0x98]
call fcn.1016d0c5
ret
push dword [ebx]
push 0
push eax
call fcn.10080190
add esp, 0xc
call fcn.10064b56
test al, al
je 0x1006676f
pop esp
pop ebx
pop esi
push ebp
push edx
pop ecx
push ebp
pop ecx
pop ebp
pop edi
push edi
push ebx
pop esi
pop ebp
pop ebp
pop eax
pop ecx
pop edi
pop ebp
push edx
push esp
push ebp
pop esi
pop ecx
pop ebp
call fcn.10064ed7
test al, al
je 0x10066797
push esi
push edx
push edi
push esp
pop esp
pop ecx
pop ebx
push esi
push ebx
push eax
pop ebx
push edx
push edx
pop edi
push ebx
pop edi
push esp
push edx
push ebp
push esp
push ebp
pop eax
push ebp
push edx
push ebp
push eax
push eax
push eax
pop edi
push edi
pop esi
call fcn.100649fd
test al, al
je 0x100667bf
pop edx
push edi
push eax
pop edx
pop edx
pop ebx
pop edx
push ebp
pop ebx
pop esi
push edi
push edx
pop edi
push ebx
pop edi
push ecx
push ebp
pop ebp
push edx
push esi
push esi
push edx
pop eax
pop ecx
pop edi
push edx
push ebx
push edi
push ebp
push edx
pop esp
push 0
lea eax, [ebp - 0xa4]
push eax
mov eax, dword [ebp - 0xa0]
push dword [eax]
push dword [ebp - 0x98]
push dword [ebp - 0x9c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
call fcn.10064b9b
test al, al
je 0x10066805
pop esp
pop esi
pop ecx
pop edx
pop edx
push ebx
push edx
push ebp
pop ecx
pop ebp
pop eax
pop esi
push ebx
pop esp
pop eax
push ebp
push esi
push esp
pop eax
push esi
push ebx
push eax
push esp
pop ecx
pop edi
push ebx
call fcn.10064c25
test al, al
je 0x10066824
push eax
pop esi
pop edx
push ebp
pop ebx
push ebx
pop eax
push ebx
push ebx
push eax
push edx
push esp
pop ecx
pop esi
push ebx
pop edi
push ebx
push ebx
push esp
pop ebp
pop esi
pop esp
call fcn.10064d39
test al, al
je 0x1006684d
push edi
push eax
pop ebx
pop ebx
push esp
pop ecx
push esi
pop eax
push edx
pop ecx
pop edi
push esp
pop esp
pop edx
push ebx
pop edx
push esi
pop ebx
push ecx
push eax
pop edi
pop eax
pop eax
pop edi
pop esi
push ebx
pop ecx
push ebp
push edx
pop ebp
push ebp
push ebp
push dword [ebp - 0x9c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1006671c