Function at 0x45add1
Capabilities:
Get file size
Read file on windows
Read file via mapping

Disassembly:
push 0x40
mov eax, 0x5d39cb
call fcn.0056df1d
mov esi, edx
mov dword [ebp - 0x4c], esi
test ecx, ecx
je 0x45b060
xor eax, eax
cmp ax, word [ecx]
je 0x45b060
push eax
push 0x80
push 3
push eax
push 1
push SysReAllocString
push ecx
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x2c], eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov ebx, eax
mov dword [ebp - 0x40], ebx
cmp ebx, 0xffffffff
je 0x45b060
push 0
push ebx
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
je 0x45b059
cmp edi, 0x400000
ja 0x45b059
mov eax, dword [esi + 4]
xor ecx, ecx
sub eax, dword [esi]
sar eax, 4
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x48], eax
cmp edi, 0x200000
jbe 0x45ae82
push ecx
push ecx
push ecx
push 2
push ecx
push ebx
call dword [sym.imp.KERNEL32.DLL_CreateFileMappingW]
mov dword [ebp - 0x3c], eax
test eax, eax
je 0x45b04b
xor ecx, ecx
push ecx
push ecx
push ecx
push 4
push eax
call dword [sym.imp.KERNEL32.DLL_MapViewOfFile]
mov esi, eax
jmp 0x45aeb3
push 4
push 0x3000
push edi
push ecx
call dword [sym.imp.KERNEL32.DLL_VirtualAlloc]
push 0
mov esi, eax
lea eax, [ebp - 0x44]
push eax
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x45b03d
cmp dword [ebp - 0x44], edi
jne 0x45b03d
test esi, esi
je 0x45affa
xor ecx, ecx
inc ecx
mov dword [ebp - 0x2c], ecx
cmp edi, 0x1e
jbe 0x45affa
mov dword [ebp - 0x2c], ecx
mov ebx, esi
mov ecx, dword [ebx]
call fcn.0045a1a2
test eax, eax
je 0x45aff7
movzx edx, word [ebx + 0x1a]
movzx ecx, word [ebx + 0x1c]
mov eax, dword [ebx + 0x12]
add ecx, edx
add eax, 0x1e
add ecx, eax
mov eax, edi
sub eax, dword [ebp - 0x38]
mov dword [ebp - 0x34], ecx
cmp ecx, eax
jg 0x45aff7
xor eax, eax
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x28], eax
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x28], al
lea eax, [ebx + 0x1e]
push edx
push eax
call fcn.0043cf29
and dword [ebp - 4], 0
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 0x10
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.0057db0d
mov edx, eax
pop ecx
cmp edx, dword [ebp - 0x48]
jge 0x45af91
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebx + 0x12]
shl edx, 4
add edx, dword [eax]
mov dword [ebp - 0x30], edx
cmp dword [edx + 0xc], 0
mov dword [edx], ecx
mov eax, dword [ebx + 0x16]
mov dword [edx + 4], eax
mov eax, dword [ebx + 0xe]
mov dword [edx + 8], eax
je 0x45af6e
push dword [edx + 0xc]
call fcn.0056d55e
mov eax, dword [ebp - 0x30]
pop ecx
and dword [eax + 0xc], 0
push dword [ebx + 0x12]
call fcn.0056d555
mov ecx, dword [ebp - 0x30]
mov dword [ecx + 0xc], eax
mov ecx, dword [ebp - 0x34]
push dword [ebx + 0x12]
sub ecx, dword [ebx + 0x12]
add ecx, ebx
push ecx
push eax
call fcn.00570780
add esp, 0x10
mov ecx, dword [ebp - 0x38]
add ecx, dword [ebp - 0x34]
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x38], ecx
cmp eax, 0x10
jb 0x45afd8
mov ecx, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], ecx
cmp eax, 0x1000
jb 0x45afcc
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.0040379f
mov eax, dword [ebp - 0x34]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x30]
push eax
push ecx
call fcn.0056d0c8
pop ecx
pop ecx
mov ecx, dword [ebp - 0x38]
and dword [ebp - 0x18], 0
lea ebx, [ecx + esi]
mov eax, edi
mov dword [ebp - 0x14], 0xf
sub eax, ecx
mov byte [ebp - 0x28], 0
cmp eax, 0x1e
ja 0x45aecf
mov ebx, dword [ebp - 0x40]
mov edi, dword [ebp - 0x2c]
mov ecx, edi
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x40], ecx
test eax, eax
je 0x45b020
test esi, esi
je 0x45b017
push esi
call dword [sym.imp.KERNEL32.DLL_UnmapViewOfFile]
mov eax, dword [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
jmp 0x45b04e
mov dword [ebp - 0x2c], ecx
test esi, esi
je 0x45b04b
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.DLL_VirtualFree]
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x2c], eax
jmp 0x45b04b
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.DLL_VirtualFree]
mov edi, dword [ebp - 0x2c]
push ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, edi
jmp 0x45b062
push ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor eax, eax
call fcn.0056decc
ret