Function at 0x492fd5
Capabilities:
Get common file path
Get disk size
Timestomp file

Disassembly:
mov eax, 0x49fe03
call fcn.0046c4dc
sub esp, 0x25c
mov eax, dword [0x4c5550]
xor eax, dword [ebp + 4]
push ebx
push esi
mov esi, ecx
push edi
lea edi, [esi + 0x10]
mov ecx, edi
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x20], esi
call fcn.00401d60
xor ebx, ebx
test byte [ebp + 0xd], 0x10
mov dword [ebp - 0x164], ebx
mov dword [ebp - 0x160], ebx
mov dword [ebp - 0x15c], ebx
mov dword [ebp - 0x158], ebx
mov dword [ebp - 0x154], ebx
mov dword [ebp - 0x150], ebx
je 0x4930fb
lea eax, [ebp - 0x164]
push eax
push dword [ebp + 8]
call fcn.0049139e
test eax, eax
je 0x4930fb
call fcn.0048a7ff
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 8]
mov dword [ebp - 4], ebx
call fcn.0048e6ef
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x14]
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
je 0x49307b
mov esi, dword [ebp - 0x28]
imul esi, dword [ebp - 0x30]
imul esi, dword [ebp - 0x2c]
push ebx
push 2
push dword [ebp - 0x148]
push dword [ebp - 0x14c]
call fcn.0046c980
mov dword [ebp - 0x1c], eax
mov ecx, edx
mov eax, esi
cdq
cmp edx, ecx
jb 0x4930e9
ja 0x4930a2
cmp eax, dword [ebp - 0x1c]
jbe 0x4930e9
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x268]
push eax
push 0x104
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
mov eax, dword [ebp - 0x18]
push 0x105
mov ecx, edi
mov byte [eax], bl
call fcn.00401f00
push eax
push ebx
push 0x4ae1d0
lea eax, [ebp - 0x268]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push 0xffffffffffffffff
mov ecx, edi
call fcn.00467d3b
mov ecx, dword [ebp - 0x14]
or dword [ebp - 4], 0xffffffff
add ecx, 0xfffffff0
call fcn.00401d40
mov esi, dword [ebp - 0x20]
mov eax, dword [edi]
cmp dword [eax - 0xc], ebx
je 0x4931b6
push dword [ebp + 0x10]
mov ecx, esi
push dword [ebp + 0xc]
push eax
call fcn.0048e82b
test eax, eax
je 0x4931b6
push dword [ebp + 8]
lea ecx, [esi + 0xc]
call fcn.00401fd0
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x24]
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x493167
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x164]
push eax
call fcn.00491491
pop ecx
pop ecx
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x24]
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_SetFileTime]
mov esi, dword [sym.imp.ADVAPI32.dll_GetFileSecurityA]
lea eax, [ebp + 0xc]
push eax
push ebx
push ebx
push 4
push dword [ebp + 8]
mov dword [ebp + 0xc], ebx
call esi
test eax, eax
je 0x4931b1
push dword [ebp + 0xc]
call fcn.0048a73b
pop ecx
mov ebx, eax
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 0xc]
push ebx
push 4
push dword [ebp + 8]
call esi
test eax, eax
je 0x4931aa
push ebx
push 4
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityA]
push ebx
call fcn.0048a76b
pop ecx
xor eax, eax
inc eax
jmp 0x4931cd
mov ecx, edi
call fcn.00401d60
push dword [ebp + 0x10]
mov ecx, esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0048e82b
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
xor ecx, dword [ebp + 4]
pop edi
pop esi
pop ebx
call fcn.0046b6d9
leave
ret 0xc