Function at 0x4a70b0
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b9e86
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x38
push ebx
push esi
push edi
mov eax, dword [0x4eaf00]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
cmp dword [ebp + 8], 0
jne 0x4a70f9
push 0x99
push 0x4cd564
push str.szFilename
call fcn.0047ffac
add esp, 0xc
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jne 0x4a711e
push 0x9a
push str..Crc32Static.cpp
push str.lstrlen_szFilename_
call fcn.0047ffac
add esp, 0xc
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov eax, dword [ebp + 0xc]
mov dword [eax], 0xffffffff
mov dword [ebp - 4], 0
push 0
push 0x8000027
push 3
push 0
push 1
push SysReAllocStringLen
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffff
jne 0x4a716d
xor al, al
jmp 0x4a7308
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
lea edx, [ebp - 0x38]
push edx
mov eax, dword [ebp - 0x18]
push eax
call fcn.004a6ef0
add esp, 8
mov byte [ebp - 0x45], al
movzx ecx, byte [ebp - 0x45]
test ecx, ecx
jne 0x4a71b0
xor al, al
jmp 0x4a7308
mov edx, dword [ebp - 0x38]
or edx, dword [ebp - 0x34]
je 0x4a72b3
push 0
push 0
push 0
push 2
push 0
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x4a71e5
xor al, al
jmp 0x4a7308
cmp dword [ebp - 0x34], 0
jl 0x4a72b3
jg 0x4a71fb
cmp dword [ebp - 0x38], 0
jbe 0x4a72b3
cmp dword [ebp - 0x34], 0
jg 0x4a7214
jl 0x4a720c
cmp dword [ebp - 0x38], 0xa00000
jae 0x4a7214
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x3c], ecx
jmp 0x4a721b
mov dword [ebp - 0x3c], 0xa00000
mov edx, dword [ebp - 0x3c]
push edx
mov eax, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x24]
mov cl, 0x20
call fcn.004a7b40
and edx, 0
push eax
push 4
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp - 0x3c]
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x2c]
sub edx, 1
mov dword [ebp - 0x2c], edx
test ecx, ecx
jbe 0x4a727c
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x40]
mov dl, byte [ecx]
push edx
call fcn.004a7350
add esp, 8
mov eax, dword [ebp - 0x40]
add eax, 1
mov dword [ebp - 0x40], eax
jmp 0x4a724f
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov edx, dword [ebp - 0x3c]
xor eax, eax
add edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x24]
adc ecx, eax
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x3c]
xor eax, eax
mov ecx, dword [ebp - 0x38]
sub ecx, edx
mov edx, dword [ebp - 0x34]
sbb edx, eax
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x34], edx
jmp 0x4a71e5
jmp 0x4a72cc
mov dword [ebp - 4], 0xffffffff
jmp 0x4a72da
cmp dword [ebp - 0x18], 0
je 0x4a72ea
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x14], 0
je 0x4a72fa
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
not eax
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret