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

Disassembly:
push 0x40
mov eax, 0x5d7661
call fcn.0056d43d
mov esi, edx
mov dword [ebp - 0x4c], esi
test ecx, ecx
je 0x455d82
xor eax, eax
cmp ax, word [ecx]
je 0x455d82
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 0x455d82
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
je 0x455d7b
cmp edi, 0x400000
ja 0x455d7b
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 0x455ba4
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 0x455d6d
xor ecx, ecx
push ecx
push ecx
push ecx
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
jmp 0x455bd5
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 0x455d5f
cmp dword [ebp - 0x44], edi
jne 0x455d5f
test esi, esi
je 0x455d1c
xor ecx, ecx
inc ecx
mov dword [ebp - 0x2c], ecx
cmp edi, 0x1e
jbe 0x455d1c
mov dword [ebp - 0x2c], ecx
mov ebx, esi
mov ecx, dword [ebx]
call fcn.00454ec4
test eax, eax
je 0x455d19
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 0x455d19
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.0043f664
and dword [ebp - 4], 0
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 0x10
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.0058038c
mov edx, eax
pop ecx
cmp edx, dword [ebp - 0x48]
jge 0x455cb3
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 0x455c90
push dword [edx + 0xc]
call fcn.0056ca7a
mov eax, dword [ebp - 0x30]
pop ecx
and dword [eax + 0xc], 0
push dword [ebx + 0x12]
call fcn.0056ca71
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.005729d0
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 0x455cfa
mov ecx, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], ecx
cmp eax, 0x1000
jb 0x455cee
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.00403daf
mov eax, dword [ebp - 0x34]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x30]
push eax
push ecx
call fcn.0056c61e
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 0x455bf1
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 0x455d42
test esi, esi
je 0x455d39
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x455d70
mov dword [ebp - 0x2c], ecx
test esi, esi
je 0x455d6d
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x2c], eax
jmp 0x455d6d
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 0x455d84
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
call fcn.0056d3ec
ret