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

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x118]
sub rsp, 0x1f0
mov rax, qword [0x1400c5a08]
xor rax, rsp
mov qword [rbp + 0xe0], rax
mov rdi, rcx
mov dword [rbp - 0x80], r9d
xor r14d, r14d
lea rcx, [0x1400c9b48]
mov esi, r14d
mov r12d, r14d
mov r13d, r9d
mov r15, r8
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
nop dword [rax + rax]
mov rbx, qword [0x1400c9b50]
test rbx, rbx
je 0x1400854af
cmp qword [rbx], rdi
je 0x1400854aa
mov rbx, qword [rbx + 0x18]
test rbx, rbx
jne 0x14008549c
test rbx, rbx
jne 0x1400854fc
mov edx, 0x20
lea ecx, [rdx + 0x20]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
je 0x1400857ea
mov qword [rax], rdi
call qword [sym.imp.KERNEL32.dll_GetTickCount]
nop dword [rax + rax]
mov rcx, qword [0x1400c9b50]
sub eax, 0xea61
mov dword [rbx + 8], eax
mov qword [rbx + 0xc], r14
mov qword [rbx + 0x18], rcx
mov qword [0x1400c9b50], rbx
inc dword [rbx + 0xc]
inc dword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
nop dword [rax + rax]
sub eax, dword [rbx + 8]
cmp eax, 0xea60
jbe 0x1400857ea
call qword [sym.imp.KERNEL32.dll_GetTickCount]
nop dword [rax + rax]
mov dword [rbx + 8], eax
lea r9, [rbp - 0x70]
lea rax, [rbp - 0x7c]
lea rdx, [rbp - 0x30]
mov qword [rsp + 0x20], rax
call fcn.140085384
xor r8d, r8d
mov dword [rbp - 0x78], eax
mov r14d, eax
test eax, eax
je 0x14008556e
lea rax, [0x140000000]
cmp rdi, rax
jb 0x14008556e
mov edx, dword [rbp - 0x7c]
add rdx, rax
cmp rdx, rax
jbe 0x14008556e
cmp rdi, rdx
ja 0x14008556e
sub edi, eax
jmp 0x140085571
mov edi, r8d
test r15, r15
jne 0x140085584
test r14d, r14d
lea rax, [rbp - 0x30]
cmove rax, r15
mov r15, rax
cmp dword [rbx + 0x10], 1
jne 0x140085688
lea rcx, [0x1400c5088]
call fcn.140001090
xor ecx, ecx
test eax, eax
jne 0x140085688
cmp dword [0x1400c5088], ecx
jbe 0x140085666
mov dl, byte [rbp - 0x30]
lea r12d, [rcx + 1]
mov dword [rbp - 0x48], 0x1d1727a6
mov esi, r12d
mov dword [rbp - 0x44], 0x4e2792c8
mov r13d, ecx
mov dword [rbp - 0x40], 0x8b0f69bc
mov dword [rbp - 0x3c], 0x9d548c45
test dl, dl
je 0x140085625
mov r14d, ecx
lea r12, [rbp - 0x30]
movsx ecx, dl
call qword [sym.imp.msvcrt.dll_toupper]
nop dword [rax + rax]
add byte [rbp + r14 - 0x48], al
inc r12
lea ecx, [r13 + 1]
cmp ecx, 0x10
lea rax, [r14 + 1]
mov dl, byte [r12]
sbb r13d, r13d
and r13d, ecx
cmp ecx, 0x10
sbb r14, r14
and r14, rax
cmp dl, 0
jne 0x1400855e4
mov r14d, dword [rbp - 0x78]
mov r12d, esi
lea r9, [rbp - 0x68]
xor r8d, r8d
xor edx, edx
lea rcx, [rbp - 0x48]
call sub.ADVAPI32.dll_EventRegister
xor r13d, r13d
test eax, eax
jne 0x140085662
mov rcx, qword [rbp - 0x68]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_EventProviderEnabled]
nop dword [rax + rax]
mov rcx, qword [rbp - 0x68]
test al, al
cmovne esi, r13d
call sub.ADVAPI32.dll_EventUnregister
mov r13d, dword [rbp - 0x80]
mov rcx, qword [0x1400c50a8]
xor eax, eax
mov dword [0x1400c5088], eax
mov qword [0x1400c50a8], rax
call qword [sym.imp.ADVAPI32.dll_EventUnregister]
nop dword [rax + rax]
lea rcx, [0x1400c50c0]
call fcn.140001090
xor edx, edx
test eax, eax
jne 0x1400857cb
cmp dword [0x1400c50c0], 5
jbe 0x1400857a9
movabs r8, 0x400000000000
test qword [0x1400c50d0], r8
je 0x1400857a9
mov rax, qword [0x1400c50d8]
and rax, r8
cmp rax, qword [0x1400c50d8]
jne 0x1400857a9
mov eax, dword [rbp + 0x140]
lea rcx, [0x1400b3dc0]
mov dword [rbp - 0x80], eax
lea rdx, [0x1400bc2b3]
mov eax, dword [rbx + 0x10]
test r14d, r14d
mov dword [rbp - 0x5c], eax
mov eax, dword [rbx + 0xc]
mov dword [rbp - 0x58], eax
lea rax, [rbp - 0x30]
cmove rax, rcx
mov dword [rbp - 0x74], r12d
mov qword [rbp - 0x48], rax
mov eax, r14d
neg eax
mov dword [rbp - 0x78], esi
mov dword [rbp - 0x60], r13d
sbb ecx, ecx
mov qword [rbp - 0x50], r15
and dword [rbp - 0x7c], ecx
neg r14d
mov dword [rbp - 0x54], edi
mov dword [rbp - 0x68], 0xa
sbb eax, eax
and dword [rbp - 0x70], eax
lea rax, [rbp - 0x74]
mov qword [rsp + 0x78], rax
lea rax, [rbp - 0x78]
mov qword [rsp + 0x70], rax
lea rax, [rbp - 0x80]
mov qword [rsp + 0x68], rax
lea rax, [rbp - 0x60]
mov qword [rsp + 0x60], rax
lea rax, [rbp - 0x50]
mov qword [rsp + 0x58], rax
lea rax, [rbp - 0x5c]
mov qword [rsp + 0x50], rax
lea rax, [rbp - 0x58]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x48]
mov qword [rsp + 0x40], rax
lea rax, [rbp - 0x7c]
mov qword [rsp + 0x38], rax
lea rax, [rbp - 0x70]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x54]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x68]
mov qword [rsp + 0x20], rax
call fcn.1400021d0
xor edx, edx
mov rcx, qword [0x1400c50e0]
mov qword [0x1400c50e0], rdx
mov dword [0x1400c50c0], edx
call qword [sym.imp.ADVAPI32.dll_EventUnregister]
nop dword [rax + rax]
xor edx, edx
test r12d, r12d
je 0x1400857e7
test esi, esi
je 0x1400857e7
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
nop dword [rax + rax]
xor edx, edx
mov dword [rbx + 0xc], edx
lea rcx, [0x1400c9b48]
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
nop dword [rax + rax]
mov rcx, qword [rbp + 0xe0]
xor rcx, rsp
call fcn.140094220
lea r11, [rsp + 0x1f0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret