Function at 0x1400820c4
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1c0]
sub rsp, 0x2c0
mov rax, qword [0x14017d140]
xor rax, rsp
mov qword [rbp + 0x1b0], rax
mov rbx, rdx
mov qword [rsp + 0x70], rdx
mov rdi, rcx
mov rcx, qword [0x14017d3a8]
lea r13, [0x14017d3a8]
cmp rcx, r13
je 0x14008213a
test byte [rcx + 0x1c], 1
je 0x14008213a
cmp byte [rcx + 0x19], 4
jb 0x14008213a
mov rcx, qword [rcx + 0x10]
lea r8, [0x140007d88]
mov edx, reloc.ADVAPI32.dll_GetTraceEnableFlags
call fcn.14001dd24
mov rcx, qword [0x14017d3a8]
xor r15d, r15d
mov r14d, r15d
cmp qword [rdi + 0x210], r15
jne 0x140082168
lea r8, [0x140007a50]
lea rcx, [0x140007a68]
mov edx, 0xbc
call fcn.1400a8be8
mov rcx, qword [0x14017d3a8]
cmp qword [rdi + 0x128], r15
jne 0x140082190
lea r8, [0x140007a98]
lea rcx, [0x140007a68]
mov edx, 0xbd
call fcn.1400a8be8
mov rcx, qword [0x14017d3a8]
mov rsi, r15
mov qword [rsp + 0x68], r15
mov dword [rsp + 0x60], r15d
mov r12b, r15b
cmp rcx, r13
je 0x1400821cd
test byte [rcx + 0x1c], 1
je 0x1400821cd
cmp byte [rcx + 0x19], 4
jb 0x1400821cd
mov r9, qword [rdi + 0x128]
mov rcx, qword [rcx + 0x10]
lea r8, [0x140007d88]
mov edx, reloc.ADVAPI32.dll_RegisterTraceGuidsW
call fcn.14001ec40
call qword [sym.imp.KERNEL32.dll_GetTickCount]
movups xmm1, xmmword [rdi + 0xfc]
mov r15, qword [rdi + 0x20]
mov r13d, eax
mov rax, qword [rdi + 0x210]
movdqu xmmword [rbp - 0x80], xmm1
movups xmm0, xmmword [rax]
movdqu xmmword [rbp - 0x70], xmm0
cmp r15, 0xffffffffffffffff
jne 0x140082208
or r15, r15
cmp qword [rdi + 0x28], 0xffffffffffffffff
cmovne r15, qword [rdi + 0x28]
mov rbx, qword [rbx]
lea rcx, [rdi + 0x10]
call fcn.14001def4
mov dword [rsp + 0x58], 1
lea rcx, [rbp - 0x60]
mov qword [rsp + 0x50], rcx
lea rcx, [rsp + 0x60]
lea r8, [rbp - 0x70]
mov qword [rsp + 0x48], rcx
mov rcx, qword [rsp + 0x70]
mov qword [rsp + 0x40], rax
mov rax, qword [rdi + 0x128]
mov dword [rsp + 0x38], reloc.ADVAPI32.dll_TraceEvent
mov qword [rsp + 0x30], r15
and qword [rsp + 0x28], rsi
lea rdx, [rbp - 0x80]
xor r9d, r9d
mov qword [rsp + 0x20], rax
call qword [rbx + 0x158]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, r13d
add dword [rdi + reloc.ADVAPI32.dll_TraceEvent], eax
test ebx, ebx
jns 0x1400822ca
mov rcx, qword [0x14017d3a8]
lea r15, [0x14017d3a8]
cmp rcx, r15
je 0x140082320
test byte [rcx + 0x1c], 1
je 0x140082320
cmp byte [rcx + 0x19], 2
jb 0x140082320
mov r9, qword [rdi + 0x210]
mov rcx, qword [rcx + 0x10]
lea r8, [0x140007d88]
mov r9, qword [r9 + 0x18]
mov edx, CoRevokeClassObject
mov dword [rsp + 0x20], ebx
call fcn.14001ecbc
jmp 0x140082319
cmp dword [rsp + 0x60], reloc.ADVAPI32.dll_TraceEvent
jb 0x1400822ec
lea r8, [0x140007ab0]
lea rcx, [0x140007a68]
mov edx, 0xe3
call fcn.1400a8be8
lea rdx, [rsp + 0x68]
lea rcx, [rbp - 0x60]
xor r8d, r8d
mov r12b, 1
call fcn.1400a99e4
mov rsi, qword [rsp + 0x68]
mov ebx, eax
lea r15, [0x14017d3a8]
test eax, eax
js 0x140082329
mov qword [rdi + 0x118], rsi
mov rcx, qword [0x14017d3a8]
test ebx, ebx
jns 0x140082391
test r12b, r12b
je 0x140082376
mov rcx, qword [rdi + 0x48]
lea rdx, [rbp - 0x60]
mov rax, qword [rcx]
call qword [rax + 0x168]
mov r14d, eax
test eax, eax
jns 0x140082376
mov rcx, qword [0x14017d3a8]
cmp rcx, r15
je 0x140082376
test byte [rcx + 0x1c], 1
je 0x140082376
cmp byte [rcx + 0x19], 2
jb 0x140082376
mov rcx, qword [rcx + 0x10]
lea r9, [rbp - 0x60]
lea r8, [0x140007d88]
mov edx, reloc.ole32.dll_CoRevokeClassObject
mov dword [rsp + 0x20], eax
call fcn.14001ecbc
mov rcx, rsi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [0x14017d3a8]
test r14d, r14d
jns 0x140082391
test ebx, ebx
cmovns ebx, r14d
cmp rcx, r15
je 0x1400823b7
test byte [rcx + 0x1c], 1
je 0x1400823b7
cmp byte [rcx + 0x19], 4
jb 0x1400823b7
mov rcx, qword [rcx + 0x10]
lea r8, [0x140007d88]
mov edx, CoDisconnectObject
call fcn.14001dd24
mov eax, ebx
mov rcx, qword [rbp + 0x1b0]
xor rcx, rsp
call fcn.140168920
mov rbx, qword [rsp + 0x310]
add rsp, 0x2c0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret