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

Disassembly:
push ebp
lea ebp, [esp - 0x1b0]
sub esp, 0x230
mov eax, dword [0x551bd0]
xor eax, ebp
mov dword [ebp + 0x1ac], eax
mov eax, dword [ebp + 0x1bc]
push esi
push edi
mov edi, ecx
xor esi, esi
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x68], eax
cmp dword [edi + 0x10], esi
je 0x487267
xor eax, eax
jmp 0x487447
push ebx
cmp eax, esi
je 0x487444
mov ebx, dword [ebp + 0x1b8]
cmp ebx, esi
jl 0x487444
mov eax, dword [edi + 0x2c]
sub eax, dword [edi + 0x28]
add edi, 0x1c
cdq
mov ecx, 0x314
idiv ecx
cmp ebx, eax
jge 0x487444
push ebx
mov ecx, edi
call fcn.00486c08
mov eax, dword [eax]
test byte [eax + 0x26], 0x10
jne 0x487444
push ebx
mov ecx, edi
mov dword [ebp - 0x64], esi
call fcn.00486c08
mov eax, dword [eax]
test byte [eax + 8], 1
jne 0x487436
xor eax, eax
push 0x206
mov word [ebp - 0x5c], ax
lea eax, [ebp - 0x5a]
push esi
push eax
call fcn.0049d740
push dword [ebp - 0x68]
lea eax, [ebp - 0x5c]
push 0x104
push eax
call fcn.0049b0d6
add esp, 0x18
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x48730e
lea eax, [ebp - 0x5c]
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
push esi
push 0x80
push 2
push esi
push esi
push 0xc0000000
push dword [ebp - 0x68]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x60], eax
cmp eax, 0xffffffff
je 0x487436
push ebx
mov ecx, edi
call fcn.00486c08
mov eax, dword [eax]
mov ebx, dword [eax + 0x18]
cmp ebx, esi
jne 0x48734f
mov dword [ebp - 0x64], 1
jmp 0x487428
push esi
push esi
push ebx
push dword [ebp - 0x60]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x487428
push dword [ebp - 0x60]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x487428
push esi
push esi
push esi
push 4
push esi
push dword [ebp - 0x60]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 0x78], eax
cmp eax, esi
je 0x487428
push esi
push esi
push esi
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x74], eax
cmp eax, esi
je 0x48741f
mov ecx, dword [ebp - 0x6c]
push ebx
push eax
push dword [ebp + 0x1b8]
call fcn.00486de5
test eax, eax
je 0x487416
push dword [ebp + 0x1b8]
mov ecx, edi
call fcn.00486c08
push dword [ebp + 0x1b8]
mov ecx, edi
mov ebx, eax
call fcn.00486c08
mov eax, dword [eax]
movzx eax, word [eax + 0xe]
lea ecx, [ebp - 0x80]
push ecx
mov ecx, dword [ebx]
movzx ecx, word [ecx + 0xc]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_DosDateTimeToFileTime]
test eax, eax
je 0x48740f
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
test eax, eax
je 0x48740f
lea eax, [ebp - 0x70]
push eax
push esi
push esi
push dword [ebp - 0x60]
call dword [sym.imp.KERNEL32.dll_SetFileTime]
mov dword [ebp - 0x64], 1
push dword [ebp - 0x74]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 0x78]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x60]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x64], esi
jne 0x48743f
push dword [ebp - 0x68]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0x64]
jmp 0x487446
xor eax, eax
pop ebx
mov ecx, dword [ebp + 0x1ac]
pop edi
xor ecx, ebp
pop esi
call fcn.0049a49b
add ebp, 0x1b0
leave
ret 8