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

Disassembly:
push 0x40
mov eax, 0x5c369d
call fcn.00542a0f
mov esi, edx
mov dword [ebp - 0x4c], esi
test ecx, ecx
je 0x456004
xor eax, eax
cmp ax, word [ecx]
je 0x456004
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 0x456004
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
je 0x455ffd
cmp edi, 0x400000
ja 0x455ffd
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 0x455e26
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 0x455fef
xor ecx, ecx
push ecx
push ecx
push ecx
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
jmp 0x455e57
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 0x455fe1
cmp dword [ebp - 0x44], edi
jne 0x455fe1
test esi, esi
je 0x455f9e
xor ecx, ecx
inc ecx
mov dword [ebp - 0x2c], ecx
cmp edi, 0x1e
jbe 0x455f9e
mov dword [ebp - 0x2c], ecx
mov ebx, esi
mov ecx, dword [ebx]
call fcn.00455146
test eax, eax
je 0x455f9b
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 0x455f9b
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.0043f8cc
and dword [ebp - 4], 0
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 0x10
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.0055596a
mov edx, eax
pop ecx
cmp edx, dword [ebp - 0x48]
jge 0x455f35
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 0x455f12
push dword [edx + 0xc]
call fcn.0054204a
mov eax, dword [ebp - 0x30]
pop ecx
and dword [eax + 0xc], 0
push dword [ebx + 0x12]
call fcn.00542041
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.00547fb0
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 0x455f7c
mov ecx, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], ecx
cmp eax, 0x1000
jb 0x455f70
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.00403fef
mov eax, dword [ebp - 0x34]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x30]
push eax
push ecx
call fcn.00541bf5
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 0x455e73
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 0x455fc4
test esi, esi
je 0x455fbb
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x455ff2
mov dword [ebp - 0x2c], ecx
test esi, esi
je 0x455fef
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x2c], eax
jmp 0x455fef
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 0x456006
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
call fcn.005429be
ret