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

Disassembly:
mov eax, 0x4dcfce
call fcn.0049a3f8
sub esp, 0x25c
mov eax, dword [0x50ffd8]
push ebx
push esi
mov esi, ecx
push edi
lea edi, [esi + 0x10]
mov ecx, edi
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x24c], esi
call fcn.0045c760
xor ebx, ebx
test byte [ebp + 0xd], 0x10
mov dword [ebp - 0x138], ebx
mov dword [ebp - 0x134], ebx
mov dword [ebp - 0x130], ebx
mov dword [ebp - 0x12c], ebx
mov dword [ebp - 0x128], ebx
mov dword [ebp - 0x124], ebx
je 0x4b794c
lea eax, [ebp - 0x138]
push eax
push dword [ebp + 8]
call fcn.004b22e3
test eax, eax
je 0x4b794c
call fcn.004b0bcc
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x240], eax
lea eax, [ebp - 0x240]
push eax
push dword [ebp + 8]
mov dword [ebp - 4], ebx
call fcn.004b1429
lea eax, [ebp - 0x260]
push eax
lea eax, [ebp - 0x258]
push eax
lea eax, [ebp - 0x25c]
push eax
lea eax, [ebp - 0x254]
push eax
push dword [ebp - 0x240]
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
je 0x4b78ba
mov esi, dword [ebp - 0x254]
imul esi, dword [ebp - 0x25c]
imul esi, dword [ebp - 0x258]
push ebx
push 2
push dword [ebp - 0x11c]
push dword [ebp - 0x120]
call fcn.0049add0
mov dword [ebp - 0x248], eax
mov ecx, edx
mov eax, esi
cdq
cmp edx, ecx
jb 0x4b7934
ja 0x4b78e7
cmp eax, dword [ebp - 0x248]
jbe 0x4b7934
lea eax, [ebp - 0x244]
push eax
lea eax, [ebp - 0x23c]
push eax
push 0x104
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
mov eax, dword [ebp - 0x244]
push 0x105
mov ecx, edi
mov byte [eax], bl
call fcn.0045c570
push eax
push ebx
push 0x4ec4a8
lea eax, [ebp - 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push 0xffffffffffffffff
mov ecx, edi
call fcn.0045c230
mov ecx, dword [ebp - 0x240]
or dword [ebp - 4], 0xffffffff
add ecx, 0xfffffff0
call fcn.00401590
mov esi, dword [ebp - 0x24c]
mov eax, dword [edi]
cmp dword [eax - 0xc], ebx
je 0x4b7a1c
push dword [ebp + 0x10]
mov ecx, esi
push dword [ebp + 0xc]
push eax
call fcn.004b15ac
test eax, eax
je 0x4b7a1c
push dword [ebp + 8]
lea ecx, [esi + 0xc]
call fcn.0045c690
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x268]
push eax
lea eax, [ebp - 0x250]
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x4b79cd
lea eax, [ebp - 0x250]
push eax
lea eax, [ebp - 0x138]
push eax
call fcn.004b23ef
pop ecx
pop ecx
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x268]
push eax
lea eax, [ebp - 0x250]
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 0x4b7a17
push dword [ebp + 0xc]
call fcn.004b0b97
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 0x4b7a10
push ebx
push 4
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityA]
push ebx
call fcn.004b0bc2
pop ecx
xor eax, eax
inc eax
jmp 0x4b7a33
mov ecx, edi
call fcn.0045c760
push dword [ebp + 0x10]
mov ecx, esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004b15ac
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.00497e50
leave
ret 0xc