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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x574113
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x5c8910]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push esi
push edi
mov eax, dword [0x5c8910]
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 0x450e77
xor eax, eax
cmp ax, word [ecx]
je 0x450e77
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 0x450e77
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
je 0x450e70
cmp edi, 0x400000
ja 0x450e70
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 0x450cd5
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 0x450e63
xor ecx, ecx
push ecx
push ecx
push ecx
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
jmp 0x450d10
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 0x450d00
cmp dword [esp + 0x20], edi
je 0x450d10
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
xor esi, esi
test esi, esi
je 0x450e35
mov dword [esp + 0x10], 1
cmp edi, 0x1e
jbe 0x450e35
mov ebx, esi
mov ecx, dword [ebx]
call fcn.00450064
test eax, eax
je 0x450e31
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 0x450e31
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.0040eb6a
and dword [esp + 0x58], 0
lea eax, [esp + 0x30]
cmp dword [esp + 0x44], 0x10
cmovae eax, dword [esp + 0x30]
push eax
call fcn.0053df59
mov edx, eax
pop ecx
cmp edx, dword [esp + 0x2c]
jge 0x450dfa
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 0x450dd5
push dword [edx + 0xc]
call fcn.0053b82d
mov eax, dword [esp + 0x14]
pop ecx
and dword [eax + 0xc], 0
push dword [ebx + 0x12]
call fcn.0051b796
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.005382c0
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.00403364
mov eax, edi
mov dword [esp + 0x10], 1
sub eax, dword [esp + 0x14]
add ebx, esi
cmp eax, 0x1e
ja 0x450d2b
mov ebx, dword [esp + 0x28]
mov edi, dword [esp + 0x1c]
test edi, edi
je 0x450e51
test esi, esi
je 0x450e48
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x450e63
test esi, esi
je 0x450e63
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 0x450e79
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.0053bd6c
mov esp, ebp
pop ebp
ret