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

Disassembly:
push 0x98
mov eax, 0x1017d10b
call fcn.10077939
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0xa0], eax
and dword [ebp - 4], 0
call fcn.1003ca93
test al, al
je 0x1003dfa2
pop ecx
pop ecx
pop ebx
push esi
pop ebp
pop esp
pop esi
pop ebx
pop ecx
pop edi
pop esp
push ebp
pop esi
pop ebx
pop edi
pop ecx
push eax
push edx
push ebp
pop esp
push ebp
push esi
pop esi
push edx
pop eax
push eax
push ebx
call fcn.1003c97f
test al, al
je 0x1003dfc0
push ebp
pop eax
push ebp
push ecx
pop esp
push ebp
push eax
push esp
pop ecx
pop edi
push ecx
push edi
push ecx
push ebp
pop ecx
push eax
pop esp
push edi
push esp
pop edx
push eax
call fcn.1003c52f
test al, al
je 0x1003dfdd
pop eax
push edi
push ebp
push ebx
push esp
push ebx
push ecx
pop edi
pop ebx
pop eax
pop esp
push esi
push ebp
pop ebp
push edi
pop ebp
push eax
push ebx
push edi
push edi
call fcn.1003cb1d
test al, al
je 0x1003e001
push ecx
push edi
pop edx
pop ebp
pop esi
push edi
push ecx
pop eax
pop ebx
push ecx
push edx
pop ecx
push ebp
pop esp
push ebp
pop edi
push esp
pop edi
pop ebp
pop edi
pop esp
push esi
push esi
pop ebp
push esi
pop edx
push eax
and dword [ebp - 0x18], 0
lea ecx, [ebp - 0x28]
xor eax, eax
mov dword [ebp - 0x14], 7
push eax
push 0x101d73f8
mov word [ebp - 0x28], ax
call fcn.1001fe10
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 1
call fcn.1004f29f
and dword [ebp - 0x98], 0
call fcn.1003c4ea
test al, al
je 0x1003e056
push edx
pop esi
pop ebx
pop edx
pop edx
push eax
push esi
pop ebx
pop eax
push edi
pop edi
push edx
pop eax
push eax
push edx
pop eax
push ecx
push ebp
pop ebx
push edx
pop esi
pop ebp
pop ebx
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 0x1003e145
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 bind
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x9c], eax
cmp eax, 0xffffffff
je 0x1003e13e
call fcn.1003cba7
test al, al
je 0x1003e0bd
pop ebx
push ecx
push eax
push esi
pop ecx
pop eax
push ebx
pop ebx
pop ebp
push edi
pop edx
push edx
push eax
pop edx
push edx
pop ebp
pop eax
call fcn.1003c86b
test al, al
je 0x1003e0d9
pop eax
pop eax
push ebx
push eax
pop esi
push edi
pop ecx
push edi
push ebp
pop ebp
pop ecx
push esp
pop eax
pop eax
push ebx
pop edx
pop ebp
pop ebx
pop esp
call fcn.1003c5b9
test al, al
je 0x1003e0f7
push eax
push edx
push edx
push ebp
pop ebx
push esi
push eax
push edx
pop esi
pop edx
push ecx
push edi
pop edi
push edx
pop esp
push edx
push ecx
pop eax
pop ecx
push ecx
pop ecx
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.10032069
mov dword [ebp - 0x98], eax
pop ecx
test eax, eax
jne 0x1003e169
call fcn.1003c4ea
test al, al
je 0x1003e13e
push edx
pop esi
pop ebx
pop edx
pop edx
push eax
push esi
pop ebx
pop eax
push edi
pop edi
push edx
pop eax
push eax
push edx
pop eax
push ecx
push ebp
pop ebx
push edx
pop esi
pop ebp
pop ebx
and dword [ebp - 0x98], 0
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.1001fd50
push 0
push 1
lea ecx, [ebp + 8]
call fcn.1001fd50
mov eax, dword [ebp - 0x98]
call fcn.100778f4
ret
push dword [ebx]
push 0
push eax
call fcn.10056120
add esp, 0xc
call fcn.1003cba7
test al, al
je 0x1003e190
pop ebx
push ecx
push eax
push esi
pop ecx
pop eax
push ebx
pop ebx
pop ebp
push edi
pop edx
push edx
push eax
pop edx
push edx
pop ebp
pop eax
call fcn.1003c86b
test al, al
je 0x1003e1ac
pop eax
pop eax
push ebx
push eax
pop esi
push edi
pop ecx
push edi
push ebp
pop ebp
pop ecx
push esp
pop eax
pop eax
push ebx
pop edx
pop ebp
pop ebx
pop esp
call fcn.1003c5b9
test al, al
je 0x1003e1ca
push eax
push edx
push edx
push ebp
pop ebx
push esi
push eax
push edx
pop esi
pop edx
push ecx
push edi
pop edi
push edx
pop esp
push edx
push ecx
pop eax
pop ecx
push ecx
pop ecx
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.1003c4ea
test al, al
je 0x1003e211
pop ebx
pop edi
pop eax
push esi
push ebx
pop ecx
pop ecx
push ecx
push ebx
push edx
push esi
pop esi
push esi
pop ebx
pop ebp
push esp
push edx
push ecx
push esi
push edi
push eax
push edi
push edx
push edi
pop ecx
pop ebp
push eax
push dword [ebp - 0x9c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1003e145