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

Disassembly:
push ebp
mov ebp, esp
mov ecx, 8
push 0
push 0
dec ecx
jne 0x4e9b34
push ebx
push esi
push edi
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
call fcn.00403fd8
lea esi, [ebp - 8]
xor eax, eax
push ebp
push 0x4e9e42
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
mov edx, 0x4e9e58
call fcn.00403c40
xor ecx, ecx
push ebp
push 0x4e9e0b
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 0xc]
call fcn.00403fe8
push eax
call sub.kernel32.dll_CreateFileA_1
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0xffffffff
jne 0x4e9bab
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4e9e1a
push 0
mov eax, dword [ebp - 0x34]
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 - 0x34]
push eax
call sub.kernel32.dll_CreateFileMappingA
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
jne 0x4e9be1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4e9e1a
push 0
push 0
push 0
push 4
mov eax, dword [ebp - 0x38]
push eax
call sub.kernel32.dll_MapViewOfFile
mov dword [ebp - 4], eax
xor eax, eax
mov dword [esi], eax
mov edx, ebx
test edx, edx
jl 0x4e9c59
inc edx
xor eax, eax
mov ecx, dword [ebp - 4]
cmp byte [ecx + eax], 0x43
jne 0x4e9c55
mov ecx, dword [ebp - 4]
cmp byte [ecx + eax + 1], 0x48
jne 0x4e9c55
mov ecx, dword [ebp - 4]
cmp byte [ecx + eax + 2], 0x6f
jne 0x4e9c55
mov ecx, dword [ebp - 4]
cmp byte [ecx + eax + 3], 0x73
jne 0x4e9c55
mov ecx, dword [ebp - 4]
cmp byte [ecx + eax + 4], 0x74
jne 0x4e9c55
mov ecx, dword [ebp - 4]
cmp byte [ecx + eax + 5], 0x52
jne 0x4e9c55
mov ecx, dword [ebp - 4]
cmp byte [ecx + eax + 6], 0x65
jne 0x4e9c55
mov ecx, dword [ebp - 4]
cmp byte [ecx + eax + 7], 0x63
jne 0x4e9c55
mov dword [esi], eax
jmp 0x4e9c59
inc eax
dec edx
jne 0x4e9c02
add dword [esi], 8
cmp ebx, dword [esi]
jle 0x4e9de6
push ebp
lea eax, [ebp - 0x40]
call fcn.004e99ac
pop ecx
mov eax, dword [ebp - 0x40]
lea edx, [ebp - 0x3c]
call fcn.00408a98
mov eax, dword [ebp - 0x3c]
lea edx, [ebp - 0x14]
call fcn.0045442c
push ebp
lea eax, [ebp - 0x3c]
call fcn.004e99ac
pop ecx
mov eax, dword [ebp - 0x3c]
lea edx, [ebp - 0x18]
call fcn.00408a98
push ebp
lea eax, [ebp - 0x3c]
call fcn.004e99ac
pop ecx
mov edx, dword [ebp - 0x3c]
lea eax, [ebp - 0x1c]
call fcn.00403c40
push ebp
lea eax, [ebp - 0x3c]
call fcn.004e99ac
pop ecx
mov eax, dword [ebp - 0x3c]
lea edx, [ebp - 0x20]
call fcn.004e9a34
push ebp
lea eax, [ebp - 0x3c]
call fcn.004e99ac
pop ecx
mov edx, dword [ebp - 0x3c]
lea eax, [ebp - 0x28]
call fcn.00403c40
push ebp
lea eax, [ebp - 0x3c]
call fcn.004e99ac
pop ecx
mov edx, dword [ebp - 0x3c]
lea eax, [ebp - 0x24]
call fcn.00403c40
push ebp
lea eax, [ebp - 0x3c]
call fcn.004e99ac
pop ecx
mov edx, dword [ebp - 0x3c]
lea eax, [ebp - 0x30]
call fcn.00403c40
push ebp
lea eax, [ebp - 0x3c]
call fcn.004e9ac8
pop ecx
mov edx, dword [ebp - 0x3c]
lea eax, [ebp - 0x2c]
call fcn.00403c40
mov eax, dword [ebp - 0x14]
call fcn.00403e24
test eax, eax
je 0x4e9dc4
mov eax, dword [ebp - 0x18]
call fcn.00403e24
test eax, eax
je 0x4e9dc4
lea edx, [ebp - 0x3c]
mov eax, dword [ebp - 0x10]
call fcn.00454790
lea eax, [ebp - 0x3c]
mov edx, dword [ebp - 0x14]
call fcn.00403e2c
mov edx, dword [ebp - 0x3c]
mov eax, dword [0x54e774]
mov eax, dword [eax]
call fcn.0045a488
test al, al
jne 0x4e9dc4
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x20]
push eax
mov eax, dword [0x54e6e4]
mov eax, dword [eax]
push eax
mov eax, dword [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x28]
push eax
mov eax, dword [0x54e6e4]
mov eax, dword [eax]
push eax
mov eax, dword [0x54e6e4]
mov eax, dword [eax]
push eax
lea edx, [ebp - 0x3c]
mov eax, dword [ebp - 0x30]
call fcn.004564c0
mov eax, dword [ebp - 0x3c]
push eax
mov eax, dword [0x54e6e4]
mov eax, dword [eax]
push eax
mov eax, dword [0x54e6e4]
mov eax, dword [eax]
push eax
lea edx, [ebp - 0x40]
mov eax, dword [ebp - 0x10]
call fcn.00454790
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
call fcn.004e831c
cmp ebx, dword [esi]
jle 0x4e9dde
mov eax, dword [ebp - 4]
mov edx, dword [esi]
mov al, byte [eax + edx]
cmp al, 0x80
jne 0x4e9dd8
inc dword [esi]
jmp 0x4e9dde
inc dword [esi]
cmp ebx, dword [esi]
jg 0x4e9dc8
cmp ebx, dword [esi]
jg 0x4e9c64
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_UnmapViewOfFile
mov eax, dword [ebp - 0x38]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 0x34]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4e9e15
call fcn.004e826c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e9e49
lea eax, [ebp - 0x40]
mov edx, 2
call fcn.00403bcc
lea eax, [ebp - 0x30]
mov edx, 0xa
call fcn.00403bcc
ret