Function at 0x4a5ee0
Capabilities:
Check if file exists
Delete file
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x6403f4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, ecx
push ebx
mov ebx, dword [ebp + 0xc]
push esi
cmp dword [eax + 0x10], 0
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x210], eax
mov dword [ebp - 0x21c], esi
jne 0x4a611f
test ebx, ebx
je 0x4a611f
test esi, esi
js 0x4a611f
mov ecx, dword [eax + 0x20]
mov edi, dword [eax + 0x1c]
sub ecx, edi
mov eax, 0x532ae21d
imul ecx
sar edx, 8
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, eax
jge 0x4a611f
imul eax, esi, 0x314
mov dword [ebp - 0x214], eax
mov eax, dword [eax + edi]
test byte [eax + 0x26], 0x10
jne 0x4a611f
xor edi, edi
test byte [eax + 8], 1
jne 0x4a6103
push 0x208
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.005163e0
push ebx
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00531e5a
add esp, 0x18
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4a5fbd
lea eax, [ebp - 0x20c]
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4a6103
mov eax, dword [ebp - 0x210]
mov ecx, dword [ebp - 0x214]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax + ecx]
mov eax, dword [eax + 0x18]
mov dword [ebp - 0x218], eax
test eax, eax
jne 0x4a6008
lea edi, [eax + 1]
jmp 0x4a60f8
push 0
push 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x4a60f8
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x4a60f8
push 0
push 0
push 0
push 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 0x228], eax
test eax, eax
je 0x4a60f8
push 0
push 0
push 0
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x224], eax
test eax, eax
je 0x4a60ec
push dword [ebp - 0x218]
mov ecx, dword [ebp - 0x210]
push eax
push dword [ebp - 0x21c]
call fcn.004a6170
test eax, eax
je 0x4a60e0
mov eax, dword [ebp - 0x210]
mov ecx, dword [ebp - 0x214]
mov eax, dword [eax + 0x1c]
mov ecx, dword [ecx + eax]
lea eax, [ebp - 0x230]
push eax
movzx eax, word [ecx + 0xc]
push eax
movzx eax, word [ecx + 0xe]
push eax
call dword [sym.imp.KERNEL32.dll_DosDateTimeToFileTime]
test eax, eax
je 0x4a60db
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
test eax, eax
je 0x4a60db
lea eax, [ebp - 0x220]
push eax
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
mov edi, 1
push dword [ebp - 0x224]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 0x228]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
jne 0x4a610a
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004742a8
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004742a8
mov esp, ebp
pop ebp
ret 8