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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51cca9
mov eax, dword fs:[0]
push eax
sub esp, 0x498
mov eax, dword [0x5c5c30]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x494], ecx
cmp dword [ebp + 8], 0
jne 0x4aafdd
push 0x1f1
push 0x57c4bc
call fcn.0045b590
test eax, eax
je 0x4aafdd
int3
mov ecx, dword [ebp - 0x494]
add ecx, 0x10
call fcn.0040c700
lea ecx, [ebp - 0x244]
call fcn.004a7cb0
mov ecx, dword [ebp + 0xc]
and ecx, 0x1000
je 0x4ab15f
lea edx, [ebp - 0x244]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.004a7720
test eax, eax
je 0x4ab15f
lea ecx, [ebp - 0x248]
call fcn.0040ac00
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x248]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0046b8f0
mov dword [ebp - 0x24c], 0
lea eax, [ebp - 0x250]
push eax
lea ecx, [ebp - 0x254]
push ecx
lea edx, [ebp - 0x258]
push edx
lea eax, [ebp - 0x25c]
push eax
lea ecx, [ebp - 0x248]
call fcn.0040d7e0
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
test eax, eax
je 0x4ab095
mov ecx, dword [ebp - 0x254]
imul ecx, dword [ebp - 0x25c]
imul ecx, dword [ebp - 0x258]
mov dword [ebp - 0x24c], ecx
mov eax, dword [ebp - 0x24c]
cdq
mov esi, eax
mov edi, edx
push 0
push 2
mov edx, dword [ebp - 0x228]
push edx
mov eax, dword [ebp - 0x22c]
push eax
call fcn.004df8a0
mov dword [ebp - 0x49c], esi
mov dword [ebp - 0x498], edi
mov dword [ebp - 0x4a4], eax
mov dword [ebp - 0x4a0], edx
mov ecx, dword [ebp - 0x498]
cmp ecx, dword [ebp - 0x4a0]
jb 0x4ab14d
ja 0x4ab0ed
mov edx, dword [ebp - 0x49c]
cmp edx, dword [ebp - 0x4a4]
jbe 0x4ab14d
lea eax, [ebp - 0x468]
push eax
lea ecx, [ebp - 0x464]
push ecx
push 0x104
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
mov eax, dword [ebp - 0x468]
mov word [eax], 0
push 0x105
mov ecx, dword [ebp - 0x494]
add ecx, 0x10
call fcn.0040bf20
push eax
push 0
push 0x57c4f4
lea ecx, [ebp - 0x464]
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x494]
add ecx, 0x10
call fcn.00426f40
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x248]
call fcn.0040ad40
mov ecx, dword [ebp - 0x494]
add ecx, 0x10
call fcn.0040b370
movzx edx, al
test edx, edx
jne 0x4ab2d2
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov ecx, dword [ebp - 0x494]
add ecx, 0x10
call fcn.0040d7e0
push eax
mov ecx, dword [ebp - 0x494]
call fcn.0046a490
test eax, eax
je 0x4ab2d2
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x494]
add ecx, 0xc
call fcn.0040adb0
lea eax, [ebp - 0x488]
push eax
lea ecx, [ebp - 0x47c]
push ecx
lea edx, [ebp - 0x474]
push edx
mov eax, dword [ebp - 0x494]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x4ab218
lea edx, [ebp - 0x474]
push edx
lea eax, [ebp - 0x244]
push eax
call fcn.004a79a0
add esp, 8
lea ecx, [ebp - 0x488]
push ecx
lea edx, [ebp - 0x47c]
push edx
lea eax, [ebp - 0x474]
push eax
mov ecx, dword [ebp - 0x494]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
mov dword [ebp - 0x480], 0
mov dword [ebp - 0x46c], 0
lea eax, [ebp - 0x480]
push eax
mov ecx, dword [ebp - 0x480]
push ecx
push 0
push 4
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_GetFileSecurityW]
test eax, eax
je 0x4ab2cb
mov eax, dword [ebp - 0x480]
push eax
call fcn.004263b0
add esp, 4
mov dword [ebp - 0x48c], eax
mov ecx, dword [ebp - 0x48c]
mov dword [ebp - 0x46c], ecx
lea edx, [ebp - 0x480]
push edx
mov eax, dword [ebp - 0x480]
push eax
mov ecx, dword [ebp - 0x46c]
push ecx
push 4
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_GetFileSecurityW]
test eax, eax
je 0x4ab2b0
mov eax, dword [ebp - 0x46c]
push eax
push 4
mov ecx, dword [ebp - 0x494]
add ecx, 0x10
call fcn.0040d7e0
push eax
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityW]
mov ecx, dword [ebp - 0x46c]
mov dword [ebp - 0x490], ecx
mov edx, dword [ebp - 0x490]
push edx
call fcn.004263d0
add esp, 4
mov eax, 1
jmp 0x4ab2f7
mov ecx, dword [ebp - 0x494]
add ecx, 0x10
call fcn.0040c700
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x494]
call fcn.0046a490
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004d1610
mov esp, ebp
pop ebp
ret 0xc