Function at 0x140147ff4
Capabilities:
Check for time delay via gettickcount
Get disk size

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x50
mov r12, rdx
mov r14, rcx
mov rcx, qword [0x14017d3a8]
lea rbx, [0x14017d3a8]
lea r15, [0x140014bd0]
cmp rcx, rbx
je 0x140148051
test byte [rcx + 0x1c], 1
je 0x140148051
cmp byte [rcx + 0x19], 4
jb 0x140148051
mov rcx, qword [rcx + 0x10]
mov edx, UnregisterTraceGuids
mov r8, r15
call fcn.14001dd24
mov rcx, qword [0x14017d3a8]
and qword [rbp + 0x40], 0
cmp rcx, rbx
je 0x140148080
test byte [rcx + 0x1c], 1
je 0x140148080
cmp byte [rcx + 0x19], 4
jb 0x140148080
mov rcx, qword [rcx + 0x10]
mov edx, UnregisterTraceGuids
mov r9, r14
mov r8, r15
mov qword [rsp + 0x20], r12
call fcn.140028b0c
lea r9, [rbp - 8]
lea r8, [rbp + 0x48]
lea rdx, [rbp - 0x10]
mov rcx, r14
xor edi, edi
xor esi, esi
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
jne 0x1401480a9
mov rcx, r14
call fcn.140154be4
mov ebx, eax
jmp 0x1401480b3
mov rdi, qword [rbp + 0x48]
mov rsi, qword [rbp - 0x10]
xor ebx, ebx
test ebx, ebx
jns 0x140148105
mov rcx, qword [0x14017d3a8]
lea rax, [0x14017d3a8]
cmp rcx, rax
je 0x1401480f1
test byte [rcx + 0x1c], 1
je 0x1401480f1
cmp byte [rcx + 0x19], 2
jb 0x1401480f1
mov edx, EventEnabled
mov r9d, ebx
mov r8, r15
mov rcx, qword [rcx + 0x10]
call fcn.14001de24
mov rcx, qword [0x14017d3a8]
lea rdx, [0x14017d3a8]
test ebx, ebx
jns 0x14014822a
jmp 0x1401481f6
lea rdx, [rbp + 0x40]
xor r9d, r9d
xor r8d, r8d
mov rcx, r14
mov byte [rsp + 0x20], 1
call fcn.140147b04
mov ebx, eax
test eax, eax
jns 0x140148148
mov rcx, qword [0x14017d3a8]
lea rax, [0x14017d3a8]
cmp rcx, rax
je 0x1401480f1
test byte [rcx + 0x1c], 1
je 0x1401480f1
cmp byte [rcx + 0x19], 2
jb 0x1401480f1
mov edx, EventEnabled
jmp 0x1401480db
mov r9, qword [rbp + 0x40]
mov rax, rdi
mov rbx, rdi
sub rax, r9
sub rax, rsi
lea r15, [rax + r12]
sub rbx, r15
mov rcx, qword [0x14017d3a8]
lea rdx, [0x14017d3a8]
cmp rcx, rdx
je 0x1401481aa
test byte [rcx + 0x1c], 1
je 0x1401481aa
cmp byte [rcx + 0x19], 4
jb 0x1401481aa
mov rcx, qword [rcx + 0x10]
mov qword [rsp + 0x30], rbx
mov r8, rsi
mov rdx, rdi
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], rax
call fcn.140146ce0
mov rcx, qword [0x14017d3a8]
lea rdx, [0x14017d3a8]
cmp r15, rdi
jb 0x140148272
mov ebx, 0x80780030
cmp rcx, rdx
je 0x140148257
test byte [rcx + 0x1c], 1
je 0x1401481f6
cmp byte [rcx + 0x19], 2
jb 0x1401481f6
mov edx, reloc.ADVAPI32.dll_EventRegister
mov rcx, qword [rcx + 0x10]
lea r8, [0x140014bd0]
mov r9d, 0x80780030
call fcn.14001de24
mov rcx, qword [0x14017d3a8]
lea rdx, [0x14017d3a8]
cmp rcx, rdx
je 0x140148257
test byte [rcx + 0x1c], 1
je 0x14014822a
cmp byte [rcx + 0x19], 2
jb 0x14014822a
mov rcx, qword [rcx + 0x10]
lea r8, [0x140014bd0]
mov edx, 0x3d
mov r9, r14
mov dword [rsp + 0x20], ebx
call fcn.14001ecbc
mov rcx, qword [0x14017d3a8]
lea r14, [0x14017d3a8]
cmp rcx, r14
je 0x140148257
test byte [rcx + 0x1c], 1
je 0x140148257
cmp byte [rcx + 0x19], 4
jb 0x140148257
mov rcx, qword [rcx + 0x10]
lea r8, [0x140014bd0]
mov edx, 0x3e
call fcn.14001dd24
lea r11, [rsp + 0x50]
mov eax, ebx
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
shr rdi, 3
cmp rbx, rdi
jae 0x1401482a3
mov ebx, 0x80780030
cmp rcx, rdx
je 0x140148257
test byte [rcx + 0x1c], 1
je 0x1401481f6
cmp byte [rcx + 0x19], 2
jb 0x1401481f6
mov edx, reloc.ADVAPI32.dll_EventEnabled
jmp 0x1401481d2
mov r8b, 1
mov rdx, rbx
mov rcx, r14
call fcn.140147628
mov ebx, eax
test eax, eax
jns 0x1401482f6
mov rcx, qword [0x14017d3a8]
lea rdx, [0x14017d3a8]
cmp rcx, rdx
je 0x1401480f8
test byte [rcx + 0x1c], 1
je 0x1401480f8
cmp byte [rcx + 0x19], 2
jb 0x1401480f8
mov edx, reloc.ADVAPI32.dll_EventUnregister
mov r9d, eax
lea r8, [0x140014bd0]
jmp 0x1401480e1
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, eax
lea r9, [rbp + 0x48]
lea r8, [rbp - 8]
lea rdx, [rbp + 0x40]
mov rcx, r14
xor esi, esi
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
jne 0x140148325
mov rcx, r14
call fcn.140154be4
mov ebx, eax
jmp 0x14014832b
mov rsi, qword [rbp + 0x40]
xor ebx, ebx
test ebx, ebx
js 0x1401481e8
cmp rsi, r12
ja 0x1401480ea
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, edi
cmp eax, 0x3a98
jb 0x1401482fe
mov ebx, 0x8078005b
mov rcx, qword [0x14017d3a8]
lea rdx, [0x14017d3a8]
cmp rcx, rdx
je 0x140148257
test byte [rcx + 0x1c], 1
je 0x1401481f6
cmp byte [rcx + 0x19], 2
jb 0x1401481f6
mov edx, 0x3c
mov r9d, 0x8078005b
jmp 0x1401482ea