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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
test dl, dl
je 0x4b4b27
add esp, 0xfffffff0
call fcn.00402ab0
mov ebx, ecx
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4b4d9a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0xb], 1
push 0
push ebx
call sub.kernel32.dll_GetFileSize
mov esi, eax
test esi, esi
jle 0x4b4d62
push 0
push 0
push 0
push 0x8000002
push 0
push ebx
call sub.kernel32.dll_CreateFileMappingW
mov edi, eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x30], edi
test edi, edi
je 0x4b4d62
push 0
push 0
push 0
push 4
push edi
call sub.kernel32.dll_MapViewOfFile
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
test eax, eax
je 0x4b4d62
cmp dword [eax], 0x4034b50
jne 0x4b4d62
xor edx, edx
push ebp
push 0x4b4d58
push dword fs:[edx]
mov dword fs:[edx], esp
sub esi, 2
mov edx, eax
add edx, esi
movzx edx, word [edx]
sub esi, edx
add eax, esi
sub eax, 0xa
movzx ebx, word [eax]
mov eax, ebx
shl eax, 4
call fcn.0065b454
mov edx, dword [ebp - 4]
mov dword [edx + 0x38], eax
mov eax, dword [ebp - 4]
add esi, dword [eax + 0x34]
sub esi, 4
mov esi, dword [esi]
mov edi, ebx
dec edi
test edi, edi
jl 0x4b4d4e
inc edi
mov dword [ebp - 0x20], 0
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
add ebx, esi
cmp dword [ebx], 0x2014b50
jne 0x4b4d4e
test byte [ebx + 8], 1
jne 0x4b4d4e
mov ax, word [ebx + 0xa]
test ax, ax
je 0x4b4c28
cmp ax, 8
jne 0x4b4d4e
mov eax, dword [ebx + 0x2a]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
add eax, dword [ebp - 0x1c]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x14]
movzx ecx, word [edx + 0x1a]
add eax, 0x1e
push eax
lea eax, [ebp - 0xc]
pop edx
call fcn.00403358
lea eax, [ebp - 0x24]
push eax
mov cl, 0x5c
mov dl, 0x2f
mov eax, dword [ebp - 0xc]
call fcn.0065b9cc
mov edx, dword [ebp - 0x24]
lea eax, [ebp - 0xc]
call fcn.0040330c
cmp dword [ebp - 0xc], 0
je 0x4b4d2f
mov eax, dword [ebp - 0xc]
call fcn.0065b8d8
cmp al, 0x5c
je 0x4b4d2f
cmp dword [ebx + 0x18], 0
je 0x4b4d2f
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
mov edx, dword [ebp - 0x20]
shl edx, 4
add eax, edx
mov dword [ebp - 0x18], eax
cmp word [ebx + 0xa], 0
setne al
mov edx, dword [ebp - 0x18]
mov byte [edx + 0xc], al
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
add eax, dword [ebp - 0x1c]
add eax, 0x1e
mov edx, dword [ebp - 0x14]
movzx edx, word [edx + 0x1a]
add eax, edx
mov edx, dword [ebp - 0x14]
movzx edx, word [edx + 0x1c]
add eax, edx
mov edx, dword [ebp - 0x18]
mov dword [edx], eax
mov eax, dword [ebx + 0x14]
mov edx, dword [ebp - 0x18]
mov dword [edx + 4], eax
mov eax, dword [ebx + 0x18]
mov edx, dword [ebp - 0x18]
mov dword [edx + 8], eax
test byte [ebx + 9], 8
jne 0x4b4d08
mov eax, dword [ebp - 0xc]
call fcn.0040351c
mov edx, eax
lea eax, [ebp - 0x10]
call fcn.00403de4
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.user32.dll_OemToCharW
jmp 0x4b4d13
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 0xc]
call fcn.0065c958
lea eax, [ebp - 0x28]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp + 8]
call fcn.00403b24
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.0065779c
movzx eax, word [ebx + 0x1c]
add eax, 0x2e
movzx edx, word [ebx + 0x1e]
add eax, edx
movzx edx, word [ebx + 0x20]
add eax, edx
add esi, eax
inc dword [ebp - 0x20]
dec edi
jne 0x4b4bf7
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4b4d62
mov dl, 1
mov eax, dword [ebp - 4]
call fcn.00658220
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b4da1
lea eax, [ebp - 0x28]
call fcn.00403880
lea eax, [ebp - 0x24]
call fcn.00403274
lea eax, [ebp - 0x10]
call fcn.00403880
lea eax, [ebp - 0xc]
call fcn.00403274
ret