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

Disassembly:
push 0xfc
mov eax, 0x522841
call fcn.005196a4
mov edi, dword [ebp + 8]
xor ebx, ebx
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0xd0], edi
mov dword [ebp - 0xd8], eax
mov dword [ebp - 0x108], ebx
push ebx
xor eax, eax
mov dword [ebp - 4], ebx
mov esi, 0x5255e4
mov dword [ebp - 0x18], 7
push esi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], ax
call fcn.0041b090
lea ecx, [ebp - 0xc8]
mov byte [ebp - 4], 1
call fcn.004eb34b
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 0x4d9bf1
cmp dword [ebp + 0x20], 8
lea eax, [ebp + 0xc]
push ebx
cmovae eax, dword [ebp + 0xc]
push 0x80
push 4
push ebx
push 1
push bind
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0xfc], eax
cmp eax, 0xffffffff
jne 0x4d999b
push esi
mov ecx, edi
call fcn.0041e330
jmp 0x4d9bfc
lea ecx, [ebp - 0xe4]
mov dword [ebp - 0xe4], ebx
push ecx
xorps xmm0, xmm0
push eax
movlpd qword [ebp - 0xf8], xmm0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edx, eax
cmp edx, 0xffffffff
je 0x4d99cf
mov ecx, dword [ebp - 0xe4]
xor eax, eax
add eax, edx
adc ecx, ebx
jmp 0x4d99db
mov ecx, dword [ebp - 0xf4]
mov eax, dword [ebp - 0xf8]
push ebx
push ebx
push 0x2800
push ecx
push eax
mov dword [ebp - 0xf4], eax
mov dword [ebp - 0xf0], ecx
call fcn.00518ba0
or ecx, ebx
pop ebx
mov dword [ebp - 0xd4], eax
mov dword [ebp - 0x100], edx
je 0x4d9a0d
inc eax
mov dword [ebp - 0xd4], eax
push 0x2801
mov byte [ebp - 4], 2
call fcn.00427781
xor ebx, ebx
mov esi, eax
inc ebx
mov dword [ebp - 4], ebx
pop ecx
test esi, esi
jne 0x4d9a45
push 0x5255e4
mov ecx, edi
call fcn.0041e330
push esi
push ebx
lea ecx, [ebp - 0x2c]
call fcn.0041c110
push esi
push ebx
jmp 0x4d9c0a
xor ebx, ebx
xorps xmm0, xmm0
push 0x2801
push ebx
push esi
mov byte [ebp - 0xc9], bl
movlpd qword [ebp - 0xec], xmm0
call fcn.004f1300
add esp, 0xc
mov dword [ebp - 0xd0], ebx
cmp dword [ebp - 0xd4], ebx
jle 0x4d9b79
mov eax, dword [ebp - 0xe8]
mov dword [ebp - 0x100], eax
mov eax, dword [ebp - 0xec]
mov dword [ebp - 0xe8], eax
mov eax, dword [ebp + 0x28]
test eax, eax
je 0x4d9aa1
cmp byte [eax], 1
je 0x4d9b5a
push ebx
lea eax, [ebp - 0xdc]
mov dword [ebp - 0xdc], ebx
push eax
push 0x2800
push esi
push dword [ebp - 0xfc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 0xdc], ebx
je 0x4d9b63
push dword [ebp - 0xdc]
lea ecx, [ebp - 0xc8]
push esi
call fcn.004ebd06
mov eax, dword [ebp - 0xe8]
add eax, dword [ebp - 0xdc]
mov ecx, dword [ebp - 0x100]
adc ecx, ebx
mov dword [ebp - 0xe8], eax
mov dword [ebp - 0x100], ecx
cmp dword [ebp - 0xd8], ebx
je 0x4d9b3f
mov edx, ecx
mov ecx, eax
call fcn.00519000
mov edx, dword [ebp - 0xf0]
mov ecx, dword [ebp - 0xf4]
movsd qword [ebp - 0xe0], xmm0
call fcn.00519000
movsd xmm1, qword [ebp - 0xe0]
divsd xmm1, xmm0
mov eax, dword [ebp - 0xd8]
movsd qword [eax], xmm1
mov eax, dword [ebp - 0xd0]
inc eax
mov dword [ebp - 0xd0], eax
cmp eax, dword [ebp - 0xd4]
jl 0x4d9a91
jmp 0x4d9b79
mov byte [ebp - 0xc9], 1
jmp 0x4d9b79
mov eax, dword [ebp - 0xd8]
test eax, eax
je 0x4d9b79
movsd xmm0, qword [0x563790]
movsd qword [eax], xmm0
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0xc8]
call fcn.004eb554
push eax
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 4
push eax
call fcn.004dad52
pop ecx
pop ecx
push ebx
push 1
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 6
call fcn.004dbc24
cmp dword [ebp - 0x34], 0
jbe 0x4d9bbc
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0041af70
cmp byte [ebp - 0xc9], 0
je 0x4d9bd3
push ebx
push 0x5255e4
lea ecx, [ebp - 0x2c]
call fcn.0041b090
push esi
call fcn.0042778a
pop ecx
push dword [ebp - 0xfc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push 1
lea ecx, [ebp - 0x44]
call fcn.0041c110
lea eax, [ebp - 0x2c]
mov ecx, edi
push eax
call fcn.004d8bde
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.0041c110
push ebx
push 1
lea ecx, [ebp + 0xc]
call fcn.0041c110
mov eax, edi
call fcn.005195f1
ret