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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc0
push ebx
xor ebx, ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], ebx
test dl, dl
je 0x4d228a
add esp, 0xfffffff0
call fcn.00405360
mov dword [ebp - 0xc], ecx
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4d2494
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.00404dfc
mov dl, 1
mov eax, dword [0x429c38]
call fcn.00404dfc
mov edx, dword [ebp - 4]
mov dword [edx + 0x14], eax
mov eax, dword [ebp - 4]
add eax, 4
mov edx, dword [ebp - 0xc]
call fcn.00406c60
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
call fcn.00406cec
push eax
call sub.KERNEL32.DLL_CreateFileW
mov edx, dword [ebp - 4]
mov dword [edx + 8], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 8], 0xffffffff
jne 0x4d2332
lea eax, [ebp - 0x20]
push eax
lea edx, [ebp - 0x24]
mov eax, 0x4d21c4
call fcn.0040a154
mov eax, dword [ebp - 0x24]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x28], 0x11
lea edx, [ebp - 0x2c]
xor ecx, ecx
pop eax
call fcn.00414c28
mov eax, dword [ebp - 0x20]
call fcn.004d21e4
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
push eax
call sub.KERNEL32.DLL_GetFileSize
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x4d237e
lea eax, [ebp - 0x30]
push eax
lea edx, [ebp - 0x34]
mov eax, 0x4d21c4
call fcn.0040a154
mov eax, dword [ebp - 0x34]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x28], 0x11
lea edx, [ebp - 0x2c]
xor ecx, ecx
pop eax
call fcn.00414c28
mov eax, dword [ebp - 0x30]
call fcn.004d21e4
push 0
push 0
push 0
push 2
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
push eax
call sub.KERNEL32.DLL_CreateFileMappingW
mov edx, dword [ebp - 4]
mov dword [edx + 0xc], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0xc], 0
jne 0x4d23b8
lea edx, [ebp - 0x38]
mov eax, 0x4d21cc
call fcn.0040a154
mov eax, dword [ebp - 0x38]
call fcn.004d21e4
push 0
push 0
push 0
push 4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
push eax
call sub.KERNEL32.DLL_MapViewOfFile
mov edx, dword [ebp - 4]
mov dword [edx + 0x10], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0x10], 0
jne 0x4d23f0
lea edx, [ebp - 0x3c]
mov eax, 0x4d21d4
call fcn.0040a154
mov eax, dword [ebp - 0x3c]
call fcn.004d21e4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
add eax, 0x20
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
add eax, dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x18]
jae 0x4d246c
mov ecx, dword [ebp - 0x14]
mov dl, 1
mov eax, dword [0x4d1f8c]
call fcn.004d2570
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x4d243d
lea edx, [ebp - 0x40]
mov eax, 0x4d21dc
call fcn.0040a154
mov eax, dword [ebp - 0x40]
call fcn.004d21e4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x14]
mov edx, dword [ebp - 0x1c]
call fcn.004350a4
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 8]
mov edx, dword [ebp - 0x1c]
add eax, dword [edx + 4]
mov edx, 4
call fcn.004d3894
add dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x18]
jb 0x4d2410
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d249b
lea eax, [ebp - 0x40]
mov edx, 5
call fcn.00406c58
lea eax, [ebp - 0x24]
mov edx, 2
call fcn.00406c58
ret