Function at 0x50aef6
Capabilities:
Get disk size
Timestomp file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a4df7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x26c
push ebx
push esi
push edi
mov dword [ebp - 0x270], ecx
cmp dword [ebp + 8], 0
jne 0x50af37
push 0x207
push str.doccore.cpp
call fcn.00542620
test eax, eax
je 0x50af37
int3
xor eax, eax
test eax, eax
jne 0x50af1d
mov ecx, dword [ebp - 0x270]
add ecx, 0x10
call fcn.004f0565
lea ecx, [ebp - 0x228]
call fcn.00401479
mov ecx, dword [ebp + 0xc]
and ecx, 0x1000
test ecx, ecx
je 0x50b068
lea edx, [ebp - 0x228]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.004f5a2c
test eax, eax
je 0x50b068
lea ecx, [ebp - 0x23c]
call fcn.0053eaa7
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x23c]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004f2e48
mov dword [ebp - 0x22c], 0
lea eax, [ebp - 0x238]
push eax
lea ecx, [ebp - 0x240]
push ecx
lea edx, [ebp - 0x230]
push edx
lea eax, [ebp - 0x234]
push eax
lea ecx, [ebp - 0x23c]
call fcn.0053ebe4
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
test eax, eax
je 0x50aff7
mov ecx, dword [ebp - 0x240]
imul ecx, dword [ebp - 0x234]
imul ecx, dword [ebp - 0x230]
mov dword [ebp - 0x22c], ecx
mov edx, dword [ebp - 0x21c]
shl edx, 1
cmp dword [ebp - 0x22c], edx
jbe 0x50b056
push 1
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x264]
push ecx
call fcn.0050ae20
add esp, 0xc
mov dword [ebp - 0x274], eax
mov edx, dword [ebp - 0x274]
mov dword [ebp - 0x278], edx
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x278]
push eax
mov ecx, dword [ebp - 0x270]
add ecx, 0x10
call fcn.004f0900
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x264]
call fcn.004f0700
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x23c]
call fcn.004f0700
mov ecx, dword [ebp - 0x270]
add ecx, 0x10
call fcn.0053ebc6
test eax, eax
jne 0x50b1d8
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov ecx, dword [ebp - 0x270]
add ecx, 0x10
call fcn.0053ebe4
push eax
mov ecx, dword [ebp - 0x270]
call fcn.004f1e23
test eax, eax
je 0x50b1d8
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x270]
add ecx, 0xc
call fcn.004f09b7
lea ecx, [ebp - 0x260]
push ecx
lea edx, [ebp - 0x254]
push edx
lea eax, [ebp - 0x248]
push eax
mov ecx, dword [ebp - 0x270]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x50b11e
lea eax, [ebp - 0x248]
push eax
lea ecx, [ebp - 0x228]
push ecx
call fcn.004f5b8a
add esp, 8
lea edx, [ebp - 0x260]
push edx
lea eax, [ebp - 0x254]
push eax
lea ecx, [ebp - 0x248]
push ecx
mov edx, dword [ebp - 0x270]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileTime]
mov dword [ebp - 0x24c], 0
mov dword [ebp - 0x258], 0
lea ecx, [ebp - 0x24c]
push ecx
mov edx, dword [ebp - 0x24c]
push edx
push 0
push 4
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_GetFileSecurityW]
test eax, eax
je 0x50b1d1
mov ecx, dword [ebp - 0x24c]
push ecx
call fcn.004f19d0
add esp, 4
mov dword [ebp - 0x268], eax
mov edx, dword [ebp - 0x268]
mov dword [ebp - 0x258], edx
lea eax, [ebp - 0x24c]
push eax
mov ecx, dword [ebp - 0x24c]
push ecx
mov edx, dword [ebp - 0x258]
push edx
push 4
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_GetFileSecurityW]
test eax, eax
je 0x50b1b6
mov ecx, dword [ebp - 0x258]
push ecx
push 4
mov ecx, dword [ebp - 0x270]
add ecx, 0x10
call fcn.0053ebe4
push eax
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityW]
mov edx, dword [ebp - 0x258]
mov dword [ebp - 0x26c], edx
mov eax, dword [ebp - 0x26c]
push eax
call fcn.004f1a19
add esp, 4
mov eax, 1
jmp 0x50b1fd
mov ecx, dword [ebp - 0x270]
add ecx, 0x10
call fcn.004f0565
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 - 0x270]
call fcn.004f1e23
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc