Function at 0x4a3bb0
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b69a6
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x38
push ebx
push esi
push edi
mov eax, dword [0x4e6f00]
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 0x4a3bf9
push 0x99
push 0x4c9474
push str.szFilename
call fcn.0047cadc
add esp, 0xc
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jne 0x4a3c1e
push 0x9a
push str..Crc32Static.cpp
push str.lstrlen_szFilename_
call fcn.0047cadc
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 0x80000000
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 0x4a3c6d
xor al, al
jmp 0x4a3e08
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.004a39f0
add esp, 8
mov byte [ebp - 0x45], al
movzx ecx, byte [ebp - 0x45]
test ecx, ecx
jne 0x4a3cb0
xor al, al
jmp 0x4a3e08
mov edx, dword [ebp - 0x38]
or edx, dword [ebp - 0x34]
je 0x4a3db3
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 0x4a3ce5
xor al, al
jmp 0x4a3e08
cmp dword [ebp - 0x34], 0
jl 0x4a3db3
jg 0x4a3cfb
cmp dword [ebp - 0x38], 0
jbe 0x4a3db3
cmp dword [ebp - 0x34], 0
jg 0x4a3d14
jl 0x4a3d0c
cmp dword [ebp - 0x38], 0xa00000
jae 0x4a3d14
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x3c], ecx
jmp 0x4a3d1b
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.004a4640
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 0x4a3d7c
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x40]
mov dl, byte [ecx]
push edx
call fcn.004a3e50
add esp, 8
mov eax, dword [ebp - 0x40]
add eax, 1
mov dword [ebp - 0x40], eax
jmp 0x4a3d4f
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 0x4a3ce5
jmp 0x4a3dcc
mov dword [ebp - 4], 0xffffffff
jmp 0x4a3dda
cmp dword [ebp - 0x18], 0
je 0x4a3dea
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x14], 0
je 0x4a3dfa
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