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

Disassembly:
push 0xd4
mov eax, 0x1017cbe3
call fcn.10077149
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [ebp - 0xc8], eax
mov dword [ebp - 0xdc], ecx
push ecx
mov dword [ebp - 4], ecx
xor eax, eax
mov dword [ebp - 0x18], ecx
lea ecx, [ebp - 0x28]
push 0x101d7658
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.10020030
lea ecx, [ebp - 0xc4]
mov byte [ebp - 4], 1
call fcn.1004ed69
call fcn.1003d555
test al, al
je 0x1003edc7
pop edi
push ebp
push ecx
pop ebx
push ebp
push eax
pop esp
push eax
push edx
pop esi
pop esp
pop esi
pop esi
pop eax
pop ebp
push edi
push edi
pop eax
pop ecx
pop esp
pop ecx
push ebx
pop edi
push ebx
call fcn.1003d59a
test al, al
je 0x1003ede9
push ebp
push edi
push eax
pop edi
pop eax
push esp
push esp
push ebx
push esi
push esi
pop edx
push ecx
push ebp
pop eax
push edx
pop edx
push ebx
pop ebp
push edi
pop ecx
push edx
pop edx
pop esi
pop ebx
pop esi
call fcn.1003dab9
test al, al
je 0x1003ee04
push edx
push edi
push esi
pop ecx
pop esi
pop ebx
pop edi
pop edi
pop ebp
push edx
push edi
pop edx
push edi
pop eax
push ecx
pop ebx
pop ebx
pop edi
cmp dword [ebp + 0x20], 8
lea eax, [ebp + 0xc]
cmovae eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1003f055
cmp dword [ebp + 0x20], 8
lea eax, [ebp + 0xc]
cmovae eax, dword [ebp + 0xc]
xor edi, edi
push edi
push 0x80
push 4
push edi
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0xd0], esi
cmp esi, 0xffffffff
jne 0x1003ee70
mov ecx, dword [ebp - 0xc8]
push 0x101d7658
call fcn.1001fed0
push edi
push 1
lea ecx, [ebp - 0x28]
call fcn.1001ff70
push edi
jmp 0x1003f072
call fcn.1003dab9
test al, al
je 0x1003ee8d
pop ebp
push ebx
push ebx
pop ecx
pop edx
pop eax
push ecx
pop ebp
pop edx
pop ecx
push edx
pop edx
pop ebx
pop edi
push edi
pop ebp
pop ecx
pop eax
pop edx
push edi
call fcn.1003d84c
test al, al
je 0x1003eeb3
push edi
push ebx
push ebx
push edi
push ebp
pop edi
pop edi
pop ebx
pop edi
push esi
push ebx
pop ecx
pop eax
pop esp
push ecx
push eax
push esi
pop eax
push eax
pop edx
pop esi
push edi
pop esp
mov esi, dword [ebp - 0xd0]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0xd4], eax
inc eax
push eax
mov dword [ebp - 0xd8], eax
call fcn.10031bf4
mov edi, eax
mov dword [ebp - 0xcc], edi
pop ecx
test edi, edi
jne 0x1003eef1
mov ecx, dword [ebp - 0xc8]
push 0x101d7658
call fcn.1001fed0
jmp 0x1003f064
call fcn.1003d738
test al, al
je 0x1003ef12
push esi
push edx
push ecx
pop edx
pop eax
push esi
push esi
pop ecx
push ecx
push esi
pop eax
pop ebp
pop edi
push edx
push ebx
push edi
push ebp
push esi
mov edi, dword [ebp - 0xcc]
call fcn.1003d5df
test al, al
je 0x1003ef2b
push eax
pop edx
pop esp
push eax
push ebx
push eax
pop eax
pop ebp
pop ebp
push edi
pop edx
push esp
pop ebx
push edi
push esi
push ebx
push dword [ebp - 0xd8]
push 0
push edi
call fcn.10054b20
add esp, 0xc
lea eax, [ebp - 0xe0]
push 0
push eax
push dword [ebp - 0xd4]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
call fcn.1003db43
test al, al
je 0x1003ef82
push eax
pop eax
push eax
push eax
push ebx
push ebx
push eax
pop esi
pop ecx
push ebp
pop esi
pop edi
pop esp
pop esi
push edi
pop ebx
push edi
push edi
pop eax
pop edx
push ecx
push ebx
pop ebp
pop eax
push ecx
pop esi
push ebx
push esi
pop ebp
pop edx
push ebx
pop edi
mov edi, dword [ebp - 0xcc]
call fcn.1003d510
test al, al
je 0x1003efa2
push eax
pop esp
push edx
push eax
pop ecx
pop esp
pop eax
pop ebp
pop eax
pop eax
push ebp
pop ebx
pop eax
pop ebp
push ecx
push eax
pop ebx
pop ebp
pop ecx
push eax
push edi
push ebp
pop esi
push dword [ebp - 0xd0]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0xd4]
lea ecx, [ebp - 0xc4]
push edi
call fcn.1004f7b6
push edi
call fcn.10031bfd
pop ecx
call fcn.1003d9ea
test al, al
je 0x1003efe1
push esp
push esi
push esi
push esp
pop esi
push ebp
pop edx
push ecx
push edx
pop esp
pop edi
push edx
pop edi
push ebp
pop eax
pop ebx
push ebp
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0xc4]
call fcn.1004f004
push eax
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 2
push eax
call fcn.1004108a
pop ecx
pop ecx
push 0
push 1
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 4
call fcn.1003cfda
call fcn.1003d624
test al, al
je 0x1003f033
pop edi
pop ebx
push esp
push ecx
pop ecx
pop edi
pop eax
pop eax
pop esi
push edi
push esp
push eax
push esp
push edi
push ecx
push esp
push edi
push esi
push ebp
pop esi
push ebx
pop eax
pop edi
pop edx
push esp
push ecx
cmp dword [ebp - 0x30], 0
jbe 0x1003f049
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.10020280
push 0
push 1
lea ecx, [ebp - 0x40]
call fcn.1001ff70
mov ecx, dword [ebp - 0xc8]
lea eax, [ebp - 0x28]
push eax
call fcn.10022060
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.1001ff70
push 0
push 1
lea ecx, [ebp + 0xc]
call fcn.1001ff70
mov eax, dword [ebp - 0xc8]
call fcn.10077104
ret