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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55c0fe
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x260
push ebx
push esi
push edi
mov dword [ebp - 0x26c], ecx
cmp dword [ebp + 8], 0
jne 0x519246
push 0x21e
push str.doccore.cpp
call fcn.00542d30
test eax, eax
je 0x519246
int3
xor eax, eax
test eax, eax
jne 0x51922c
mov ecx, dword [ebp - 0x26c]
add ecx, 0x10
call fcn.0050da34
lea ecx, [ebp - 0x124]
call fcn.0051a270
mov ecx, dword [ebp + 0xc]
and ecx, 0x1000
test ecx, ecx
je 0x519386
lea edx, [ebp - 0x124]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0051140c
test eax, eax
je 0x519386
lea ecx, [ebp - 0x138]
call fcn.0050d7fa
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x138]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0050c9f3
mov dword [ebp - 0x128], 0
lea eax, [ebp - 0x134]
push eax
lea ecx, [ebp - 0x13c]
push ecx
lea edx, [ebp - 0x12c]
push edx
lea eax, [ebp - 0x130]
push eax
lea ecx, [ebp - 0x138]
call fcn.0053f6e2
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
je 0x519306
mov ecx, dword [ebp - 0x13c]
imul ecx, dword [ebp - 0x130]
imul ecx, dword [ebp - 0x12c]
mov dword [ebp - 0x128], ecx
mov edx, dword [ebp - 0x118]
shl edx, 1
cmp dword [ebp - 0x128], edx
jle 0x519374
lea eax, [ebp - 0x244]
push eax
lea ecx, [ebp - 0x240]
push ecx
push 0x104
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
mov eax, dword [ebp - 0x244]
mov byte [eax], 0
push 0x105
mov ecx, dword [ebp - 0x26c]
add ecx, 0x10
call fcn.0050e378
push eax
push 0
push 0x593b5c
lea ecx, [ebp - 0x240]
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x26c]
add ecx, 0x10
call fcn.0050e480
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x138]
call fcn.0050dbc2
mov ecx, dword [ebp - 0x26c]
add ecx, 0x10
call fcn.0053f6c4
test eax, eax
jne 0x5194ea
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x26c]
add ecx, 0x10
call fcn.0053f6e2
push eax
mov ecx, dword [ebp - 0x26c]
call fcn.0050b8d0
test eax, eax
je 0x5194ea
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x26c]
add ecx, 0xc
call fcn.0050de7d
lea edx, [ebp - 0x264]
push edx
lea eax, [ebp - 0x258]
push eax
lea ecx, [ebp - 0x24c]
push ecx
mov edx, dword [ebp - 0x26c]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x51943c
lea ecx, [ebp - 0x24c]
push ecx
lea edx, [ebp - 0x124]
push edx
call fcn.00511568
add esp, 8
lea eax, [ebp - 0x264]
push eax
lea ecx, [ebp - 0x258]
push ecx
lea edx, [ebp - 0x24c]
push edx
mov eax, dword [ebp - 0x26c]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
mov dword [ebp - 0x250], 0
mov dword [ebp - 0x25c], 0
lea edx, [ebp - 0x250]
push edx
mov eax, dword [ebp - 0x250]
push eax
push 0
push 4
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_GetFileSecurityA]
test eax, eax
je 0x5194e3
mov edx, dword [ebp - 0x250]
push edx
call fcn.0050986c
add esp, 4
mov dword [ebp - 0x25c], eax
lea eax, [ebp - 0x250]
push eax
mov ecx, dword [ebp - 0x250]
push ecx
mov edx, dword [ebp - 0x25c]
push edx
push 4
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_GetFileSecurityA]
test eax, eax
je 0x5194c8
mov ecx, dword [ebp - 0x25c]
push ecx
push 4
mov ecx, dword [ebp - 0x26c]
add ecx, 0x10
call fcn.0053f6e2
push eax
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityA]
mov edx, dword [ebp - 0x25c]
mov dword [ebp - 0x268], edx
mov eax, dword [ebp - 0x268]
push eax
call fcn.005098d5
add esp, 4
mov eax, 1
jmp 0x51950f
mov ecx, dword [ebp - 0x26c]
add ecx, 0x10
call fcn.0050da34
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x26c]
call fcn.0050b8d0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc