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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x771269
mov eax, dword fs:[0]
push eax
sub esp, 0x498
mov eax, dword [0x86dc84]
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 0x676b3d
push 0x1f1
push 0x7e98cc
call fcn.0052630c
test eax, eax
je 0x676b3d
int3
mov ecx, dword [ebp - 0x494]
add ecx, 0x10
call fcn.00526c12
lea ecx, [ebp - 0x244]
call fcn.0052abaf
mov ecx, dword [ebp + 0xc]
and ecx, 0x1000
je 0x676cbf
lea edx, [ebp - 0x244]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0052b848
test eax, eax
je 0x676cbf
lea ecx, [ebp - 0x248]
call fcn.00526fe1
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x248]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0052c7bb
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.00521578
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
test eax, eax
je 0x676bf5
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.00526145
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 0x676cad
ja 0x676c4d
mov edx, dword [ebp - 0x49c]
cmp edx, dword [ebp - 0x4a4]
jbe 0x676cad
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.0052b5af
push eax
push 0
push 0x7e9904
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.00524633
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x248]
call fcn.005257e5
mov ecx, dword [ebp - 0x494]
add ecx, 0x10
call fcn.00522d1f
movzx edx, al
test edx, edx
jne 0x676e32
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov ecx, dword [ebp - 0x494]
add ecx, 0x10
call fcn.00521578
push eax
mov ecx, dword [ebp - 0x494]
call fcn.0052638e
test eax, eax
je 0x676e32
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x494]
add ecx, 0xc
call fcn.00524f7f
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 0x676d78
lea edx, [ebp - 0x474]
push edx
lea eax, [ebp - 0x244]
push eax
call fcn.0052b62c
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 0x676e2b
mov eax, dword [ebp - 0x480]
push eax
call fcn.00529566
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 0x676e10
mov eax, dword [ebp - 0x46c]
push eax
push 4
mov ecx, dword [ebp - 0x494]
add ecx, 0x10
call fcn.00521578
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.00522aa9
add esp, 4
mov eax, 1
jmp 0x676e57
mov ecx, dword [ebp - 0x494]
add ecx, 0x10
call fcn.00526c12
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.0052638e
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.005287fb
mov esp, ebp
pop ebp
ret 0xc