Function at 0x14001b4a0
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xd8
movaps xmmword [rsp + 0xc0], xmm6
mov r14, rcx
mov rax, qword [0x14029a038]
xor rax, rsp
mov qword [rsp + 0xb8], rax
mov al, byte [0x14029c020]
mov byte [rsp + 0x67], al
test al, 0x19
jne 0x14001b968
movabs rax, 0xaaaaaaaaaaaaaaaa
xor ecx, ecx
mov qword [rsp + 0x78], rcx
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x68], rax
lea rdi, [rsp + 0x80]
mov byte [rdi], 0xaa
lea rdx, str.UnregisterTaskQueue
lea r8, str....._base_task_sequence_manager_task_queue_impl.cc
lea rbx, [rsp + 0x90]
mov rcx, rbx
mov r9d, 0x12d
call fcn.140120f60
mov rcx, rdi
mov rdx, rbx
call fcn.140179980
mov rsi, qword [r14 + 0x18]
mov eax, dword [rsi + 8]
mov ecx, eax
or ecx, 0x80000000
lock cmpxchg dword [rsi + 8], ecx
jne 0x14001b53e
mov edx, eax
shr edx, 0x1e
and edx, 1
test eax, eax
mov ecx, 2
cmovns ecx, edx
cmp ecx, 1
jne 0x14001baee
test eax, 0x3fffffff
jne 0x14001b95a
mov qword [rsi + 0x20], 0
test byte [0x14029c020], 0x19
jne 0x14001bb37
lea rbx, [r14 + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x14001ba5e
mov byte [r14 + 0x52], 1
mov r15, qword [r14 + 0x28]
mov r12, qword [r14 + 0x60]
lea rax, [r14 + 0x60]
xorps xmm0, xmm0
movups xmmword [r14 + 0x38], xmm0
movups xmmword [r14 + 0x28], xmm0
mov qword [r14 + 0x48], 0
mov rcx, qword [r14 + 0x68]
cmp r12, rcx
je 0x14001b5eb
mov rdx, qword [r12]
mov qword [rdx + 8], 0
add r12, 0x10
cmp r12, rcx
jne 0x14001b5cc
mov rsi, qword [r14 + 0x60]
mov r12, qword [r14 + 0x68]
jmp 0x14001b5ee
mov rsi, r12
movups xmmword [rax], xmm0
mov qword [rax + 0x10], 0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov rcx, qword [r14 + 0xa0]
test rcx, rcx
je 0x14001b61e
mov rax, qword [rcx]
mov rax, qword [rax + 8]
mov rdx, r14
call qword [case.0x1401e7f70.0]
mov rcx, qword [r14 + 0x180]
mov qword [r14 + 0x180], 0
test rcx, rcx
jne 0x14001b7e5
lea rdi, [r14 + 0xa0]
mov rcx, qword [r14 + 0x188]
mov qword [r14 + 0x188], 0
test rcx, rcx
jne 0x14001b80d
lea rcx, [r14 + 0x1e8]
xorps xmm6, xmm6
movups xmmword [rdi], xmm6
call fcn.1400d5620
mov dword [r14 + 0xe0], 0
mov r13, qword [r14 + 0xc8]
mov rbp, qword [r14 + 0xd0]
movups xmmword [r14 + 0xc8], xmm6
mov qword [r14 + 0xd8], 0
mov rdi, qword [r14 + 0xb0]
mov rbx, qword [r14 + 0xb8]
movups xmmword [r14 + 0xb0], xmm6
test rdi, rdi
je 0x14001b6d2
cmp byte [rdi + 0x50], 0
je 0x14001b6be
mov byte [rdi + 0x50], 0
mov rcx, qword [rdi]
test rcx, rcx
jne 0x14001b835
mov rcx, rdi
call fcn.14017b254
test rbx, rbx
je 0x14001b6f5
cmp byte [rbx + 0x50], 0
je 0x14001b6e1
mov byte [rbx + 0x50], 0
mov rcx, qword [rbx]
test rcx, rcx
jne 0x14001b86d
mov rcx, rbx
call fcn.14017b254
mov rcx, rbp
sub rcx, r13
jne 0x14001b8c6
test r13, r13
jne 0x14001b8b9
test rsi, rsi
je 0x14001b73b
cmp r12, rsi
je 0x14001b733
mov rcx, qword [r12 - 8]
add r12, 0xfffffffffffffff0
test rcx, rcx
je 0x14001b70f
lock dec dword [rcx]
jne 0x14001b70f
mov rax, qword [rcx + 0x10]
call qword [case.0x1401e7f70.0]
jmp 0x14001b70f
mov rcx, rsi
call fcn.14017b254
test r15, r15
jne 0x14001b7bb
test byte [rsp + 0x67], 0x19
mov rsi, qword [rsp + 0x78]
je 0x14001b78f
cmp byte [rsi], 0
je 0x14001b78f
mov eax, dword [0x1402a2be8]
mov ecx, dword [0x14029dfe4]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14001ba6b
lea rcx, [0x1402a2820]
mov rdx, rsi
mov r8, qword [rsp + 0x70]
mov r9, qword [rsp + 0x68]
call fcn.140103fa0
mov rcx, qword [rsp + 0xb8]
xor rcx, rsp
call fcn.14017e7b0
movaps xmm6, xmmword [rsp + 0xc0]
add rsp, 0xd8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rsi, qword [r15 + 0x20]
mov qword [r15 + 0x20], 0
mov rcx, r15
call fcn.140008120
mov rcx, r15
call fcn.14017b254
mov r15, rsi
test rsi, rsi
je 0x14001b740
jmp 0x14001b7bb
lock dec dword [rcx]
jne 0x14001b639
mov rax, qword [rcx + 0x10]
lea rdx, [0x140076c10]
cmp rax, rdx
je 0x14001b8a5
call qword [case.0x1401e7f70.0]
jmp 0x14001b639
lock dec dword [rcx]
jne 0x14001b65b
mov rax, qword [rcx + 0x10]
lea rdx, [0x140076c10]
cmp rax, rdx
je 0x14001b8af
call qword [case.0x1401e7f70.0]
jmp 0x14001b65b
mov rax, qword [rcx + 0x20]
mov qword [rcx + 0x20], 0
mov r14, qword [rdi]
mov qword [rdi], rax
test r14, r14
je 0x14001b85f
mov rcx, r14
call fcn.140008120
mov rcx, r14
call fcn.14017b254
mov rax, qword [rdi]
mov rcx, rax
test rax, rax
je 0x14001b6ca
jmp 0x14001b835
mov rax, qword [rcx + 0x20]
mov qword [rcx + 0x20], 0
mov rdi, qword [rbx]
mov qword [rbx], rax
test rdi, rdi
je 0x14001b897
mov rcx, rdi
call fcn.140008120
mov rcx, rdi
call fcn.14017b254
mov rax, qword [rbx]
mov rcx, rax
test rax, rax
je 0x14001b6ed
jmp 0x14001b86d
call fcn.14017b254
jmp 0x14001b639
call fcn.14017b254
jmp 0x14001b65b
mov rcx, r13
call fcn.14017b254
jmp 0x14001b70a
movabs rdx, 0xc30c30c30c30c30d
mov rax, rcx
imul rdx
add rdx, rcx
mov rax, rdx
shr rax, 0x3f
sar rdx, 7
add rdx, rax
cmp rdx, 2
mov eax, 1
cmovae rax, rdx
lea rcx, [r13 + 0xa0]
mov rdx, qword [rcx - 8]
test rdx, rdx
je 0x14001b934
mov dl, byte [rdx + 4]
test dl, dl
jne 0x14001b934
cmp qword [rcx], 0
je 0x14001b934
mov rdx, qword [rcx - 8]
test rdx, rdx
je 0x14001bc1d
mov dl, byte [rdx + 4]
test dl, dl
jne 0x14001bc1d
mov rdx, qword [rcx]
mov qword [rdx + 0x10], 0xffffffffffffffff
add rcx, 0xa8
dec rax
jne 0x14001b8fb
add rbp, 0xffffffffffffff58
mov rcx, rbp
call fcn.140118040
cmp rbp, r13
je 0x14001b701
jmp 0x14001b940
lea rcx, [rsi + 0x10]
call fcn.140169b20
jmp 0x14001b573
mov rax, qword [0x14029bf90]
lea rcx, [0x140179e10]
cmp rax, rcx
jne 0x14001badb
lea rdi, [rsp + 0x90]
mov qword [rdi], 0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rdi]
movabs rcx, 0x8637bd05af7
cmp rax, rcx
jge 0x14001bc20
imul rax, rax, 0xf4240
cqo
idiv qword [0x1402a2810]
mov qword [rsp + 0x88], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edi, eax
mov eax, dword [0x1402a2be8]
mov ecx, dword [0x14029dfe4]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14001baa3
xor eax, eax
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x88]
mov qword [rsp + 0x48], rcx
mov dword [rsp + 0x40], edi
mov qword [rsp + 0x38], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
lea rax, str.TaskQueueImpl::UnregisterTaskQueue
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x58], 0
lea rcx, [0x1402a2820]
lea r9, [0x14029c020]
lea rdi, [rsp + 0x90]
mov rdx, rdi
mov r8b, 0x58
mov qword [rsp + 0x78], r9
call fcn.1400ffbf0
mov rax, qword [rdi]
jmp 0x14001b4f8
mov rcx, rbx
call fcn.1400fdfc0
jmp 0x14001b59d
lea rcx, [0x1402a2be8]
call fcn.14017b2bc
cmp dword [0x1402a2be8], 0xffffffff
jne 0x14001b776
lea rcx, [0x1402a2820]
xor edx, edx
call fcn.140002e30
lea rcx, [0x1402a2be8]
call fcn.14017b25c
jmp 0x14001b776
lea rcx, [0x1402a2be8]
call fcn.14017b2bc
cmp dword [0x1402a2be8], 0xffffffff
jne 0x14001b9f2
lea rcx, [0x1402a2820]
xor edx, edx
call fcn.140002e30
lea rcx, [0x1402a2be8]
call fcn.14017b25c
jmp 0x14001b9f2
lea rcx, [rsp + 0x88]
call qword [case.0x1401e7f70.0]
jmp 0x14001b9c5
test ecx, ecx
jne 0x14001b573
mov ecx, 0x3fffffff
and eax, ecx
mov edx, eax
neg edx
lock xadd dword [rsi + 8], edx
test edx, edx
jns 0x14001b573
and edx, ecx
cmp edx, eax
jne 0x14001b573
lea rdi, [rsi + 0x10]
test byte [0x14029c8d0], 0x19
jne 0x14001bc92
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x14001b573
mov rax, qword [0x14029bf90]
lea rcx, [0x140179e10]
cmp rax, rcx
jne 0x14001bc7f
lea rdi, [rsp + 0x90]
mov qword [rdi], 0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rdi]
movabs rcx, 0x8637bd05af7
cmp rax, rcx
jge 0x14001bd14
imul rax, rax, 0xf4240
cqo
idiv qword [0x1402a2810]
mov qword [rsp + 0x88], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edi, eax
mov eax, dword [0x1402a2be8]
mov ecx, dword [0x14029dfe4]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14001bc47
xor eax, eax
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x88]
mov qword [rsp + 0x48], rcx
mov dword [rsp + 0x40], edi
mov qword [rsp + 0x38], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
lea rax, str.ScopedAllowBaseSyncPrimitivesOutsideBlockingScope
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x58], 0
lea rcx, [0x1402a2820]
lea r9, [0x14029c020]
lea rdx, [rsp + 0x90]
mov r8b, 0x45
call fcn.1400ffbf0
jmp 0x14001b588
int3
mov rcx, qword [0x1402a2810]
cqo
idiv rcx
imul r8, rax, 0xf4240
imul rax, rdx, 0xf4240
cqo
idiv rcx
add rax, r8
jmp 0x14001b9bd
lea rcx, [0x1402a2be8]
call fcn.14017b2bc
cmp dword [0x1402a2be8], 0xffffffff
jne 0x14001bbc1
lea rcx, [0x1402a2820]
xor edx, edx
call fcn.140002e30
lea rcx, [0x1402a2be8]
call fcn.14017b25c
jmp 0x14001bbc1
lea rcx, [rsp + 0x88]
call qword [case.0x1401e7f70.0]
jmp 0x14001bb94
mov rax, qword [0x14029f540]
xor rax, rdi
lea rcx, [0x140074fa0]
mov qword [rsp + 0xa8], rcx
lea rcx, [0x140278c88]
mov qword [rsp + 0xb0], rcx
mov qword [rsp + 0x98], rax
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], 0
lea rdx, [0x14029c8d0]
lea r8, str.WaitableEvent::Signal
lea r9, [0x1402780e8]
mov cl, 0x49
call fcn.140075040
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax + 8]
test rax, rax
je 0x14001bb29
mov rcx, qword [rsp + 0x98]
call qword [case.0x1401e7f70.0]
jmp 0x14001bb29
mov rcx, qword [0x1402a2810]
cqo
idiv rcx
imul r8, rax, 0xf4240
imul rax, rdx, 0xf4240
cqo
idiv rcx
add rax, r8
jmp 0x14001bb8c