Function at 0x4e8e04
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
mov ecx, 9
push 0
push 0
dec ecx
jne 0x4e8e0c
push ebx
push esi
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
call fcn.00403fd8
mov esi, dword [0x54c6b8]
xor eax, eax
push ebp
push 0x4e9071
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x44]
mov eax, 0x4e9088
call fcn.00454810
mov eax, dword [ebp - 0x44]
push eax
push ebp
lea eax, [ebp - 0x48]
call fcn.004e8c84
pop ecx
mov ecx, dword [ebp - 0x48]
lea eax, [ebp - 0x1c]
pop edx
call fcn.00403e70
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 0x14]
call fcn.00403fe8
push eax
call sub.kernel32.dll_CreateFileA_1
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0xffffffff
je 0x4e9049
push 0
mov eax, dword [ebp - 0x3c]
push eax
call sub.kernel32.dll_GetFileSize_1
mov ebx, eax
push 0
push 0
push 0
push 2
push 0
mov eax, dword [ebp - 0x3c]
push eax
call sub.kernel32.dll_CreateFileMappingA
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
je 0x4e9049
xor eax, eax
push ebp
push 0x4e9042
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push 0
push 4
mov eax, dword [ebp - 0x40]
push eax
call sub.kernel32.dll_MapViewOfFile
mov dword [ebp - 8], eax
xor eax, eax
mov dword [ebp - 4], eax
push ebp
lea eax, [ebp - 0x44]
call fcn.004e8a88
pop ecx
mov edx, dword [ebp - 0x44]
lea eax, [ebp - 0x18]
call fcn.00403c40
mov eax, dword [ebp - 0x18]
mov edx, 0x4e90a4
call fcn.00403f34
je 0x4e8f0a
call fcn.004036bc
jmp 0x4e9049
add dword [ebp - 4], 4
cmp ebx, dword [ebp - 4]
jle 0x4e9022
push ebp
lea eax, [ebp - 0x44]
call fcn.004e8a88
pop ecx
mov edx, dword [ebp - 0x44]
lea eax, [ebp - 0x20]
call fcn.00403c40
push ebp
lea eax, [ebp - 0x44]
call fcn.004e8a88
pop ecx
mov edx, dword [ebp - 0x44]
lea eax, [ebp - 0x24]
call fcn.00403c40
push ebp
lea eax, [ebp - 0x44]
call fcn.004e8a88
pop ecx
mov edx, dword [ebp - 0x44]
lea eax, [ebp - 0x28]
call fcn.00403c40
push ebp
lea eax, [ebp - 0x44]
call fcn.004e8a88
pop ecx
mov edx, dword [ebp - 0x44]
lea eax, [ebp - 0x34]
call fcn.00403c40
push ebp
lea eax, [ebp - 0x44]
call fcn.004e8a88
pop ecx
mov edx, dword [ebp - 0x44]
lea eax, [ebp - 0x30]
call fcn.00403c40
push ebp
lea eax, [ebp - 0x44]
call fcn.004e8a88
pop ecx
mov edx, dword [ebp - 0x44]
lea eax, [ebp - 0x38]
call fcn.00403c40
push ebp
lea eax, [ebp - 0x44]
call fcn.004e8a88
pop ecx
mov edx, dword [ebp - 0x44]
lea eax, [ebp - 0x2c]
call fcn.00403c40
add dword [ebp - 4], 0x19
lea edx, [ebp - 0x44]
mov eax, dword [ebp - 0x20]
call fcn.004544ac
mov edx, dword [ebp - 0x44]
lea eax, [ebp - 0x20]
call fcn.00403c40
lea eax, [ebp - 0x44]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
call fcn.00403e70
mov edx, dword [ebp - 0x44]
mov eax, dword [0x54c74c]
mov eax, dword [eax]
call fcn.0045a2a8
test al, al
jne 0x4e9019
mov eax, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x2c]
push eax
mov eax, dword [esi]
push eax
mov eax, dword [ebp - 0x38]
push eax
mov eax, dword [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x34]
push eax
mov eax, dword [esi]
push eax
mov eax, dword [esi]
push eax
mov eax, dword [esi]
push eax
mov eax, dword [esi]
push eax
mov eax, dword [esi]
push eax
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x1c]
call fcn.004e7bd4
cmp ebx, dword [ebp - 4]
jg 0x4e8f17
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e9049
mov eax, dword [ebp - 0x3c]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 0x40]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e9078
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.00403bcc
lea eax, [ebp - 0x38]
mov edx, 0xa
call fcn.00403bcc
ret