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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x562e32
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x5b38f0]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push esi
push edi
mov eax, dword [0x5b38f0]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov esi, edx
mov dword [esp + 0x24], esi
test ecx, ecx
je 0x45036a
xor eax, eax
cmp ax, word [ecx]
je 0x45036a
push eax
push 0x80
push 3
push eax
push 1
push SysReAllocString
push ecx
mov dword [esp + 0x38], eax
mov dword [esp + 0x2c], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
mov dword [esp + 0x28], ebx
cmp ebx, 0xffffffff
je 0x45036a
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
je 0x450363
cmp edi, 0x400000
ja 0x450363
mov eax, dword [esi + 4]
xor ecx, ecx
sub eax, dword [esi]
sar eax, 4
mov dword [esp + 0x14], ecx
mov dword [esp + 0x2c], eax
cmp edi, 0x200000
jbe 0x4501c8
push ecx
push ecx
push ecx
push 2
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [esp + 0x1c], eax
test eax, eax
je 0x450356
xor ecx, ecx
push ecx
push ecx
push ecx
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
jmp 0x450203
push 4
push 0x3000
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push 0
mov esi, eax
lea eax, [esp + 0x24]
push eax
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4501f3
cmp dword [esp + 0x20], edi
je 0x450203
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
xor esi, esi
test esi, esi
je 0x450328
mov dword [esp + 0x10], 1
cmp edi, 0x1e
jbe 0x450328
mov ebx, esi
mov ecx, dword [ebx]
call fcn.0044f557
test eax, eax
je 0x450324
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 [esp + 0x14]
mov dword [esp + 0x18], ecx
cmp ecx, eax
jg 0x450324
and dword [esp + 0x40], 0
lea eax, [ebx + 0x1e]
push edx
push eax
lea ecx, [esp + 0x38]
mov dword [esp + 0x4c], 0xf
mov byte [esp + 0x38], 0
call fcn.0040eb60
and dword [esp + 0x58], 0
lea eax, [esp + 0x30]
cmp dword [esp + 0x44], 0x10
cmovae eax, dword [esp + 0x30]
push eax
call fcn.0052d4ff
mov edx, eax
pop ecx
cmp edx, dword [esp + 0x2c]
jge 0x4502ed
mov eax, dword [esp + 0x24]
mov ecx, dword [ebx + 0x12]
shl edx, 4
add edx, dword [eax]
mov dword [esp + 0x10], 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 0x4502c8
push dword [edx + 0xc]
call fcn.00529e12
mov eax, dword [esp + 0x14]
pop ecx
and dword [eax + 0xc], 0
push dword [ebx + 0x12]
call fcn.0050a92a
mov ecx, dword [esp + 0x14]
mov dword [ecx + 0xc], eax
mov ecx, dword [esp + 0x1c]
push dword [ebx + 0x12]
sub ecx, dword [ebx + 0x12]
add ecx, ebx
push ecx
push eax
call fcn.00527280
add esp, 0x10
mov ebx, dword [esp + 0x14]
lea ecx, [esp + 0x30]
add ebx, dword [esp + 0x18]
or dword [esp + 0x58], 0xffffffff
push 0
push 1
mov dword [esp + 0x1c], ebx
call fcn.00403344
mov eax, edi
mov dword [esp + 0x10], 1
sub eax, dword [esp + 0x14]
add ebx, esi
cmp eax, 0x1e
ja 0x45021e
mov ebx, dword [esp + 0x28]
mov edi, dword [esp + 0x1c]
test edi, edi
je 0x450344
test esi, esi
je 0x45033b
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x450356
test esi, esi
je 0x450356
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
jmp 0x45036c
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.0052b1ec
mov esp, ebp
pop ebp
ret