Function at 0x140140a80
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, 0xe8
movaps xmmword [rsp + 0xd0], xmm6
mov r14, rcx
mov rax, qword [0x14029b028]
xor rax, rsp
mov qword [rsp + 0xc8], rax
mov al, byte [0x14029d8b0]
mov byte [rsp + 0x57], al
test al, 0x19
jne 0x1401410e9
movabs rax, 0xaaaaaaaaaaaaaaaa
xor ecx, ecx
mov qword [rsp + 0x60], rcx
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x68], rax
lea rsi, [rsp + 0xa0]
mov byte [rsi], 0xaa
lea rdx, str.UnregisterTaskQueue
lea r8, str....._base_task_sequence_manager_task_queue_impl.cc
lea rdi, [rsp + 0x78]
mov rcx, rdi
mov r9d, 0x116
call fcn.1400ed710
mov rcx, rsi
mov rdx, rdi
call fcn.1401415c0
mov rsi, qword [r14 + 0x18]
mov eax, dword [rsi + 8]
nop dword [rax + rax]
mov ecx, eax
or ecx, 0x80000000
lock cmpxchg dword [rsi + 8], ecx
jne 0x140140b20
mov edx, eax
shr edx, 0x1e
and edx, 1
test eax, eax
mov ecx, 2
cmovns ecx, edx
cmp ecx, 1
jne 0x1401411fd
test eax, 0x3fffffff
jne 0x1401411bb
movabs r13, 0xfffffffc00000000
mov rcx, qword [rsi + 0x20]
mov rax, rcx
and rax, r13
cmp rax, qword [0x1402aaec8]
je 0x1401410df
mov qword [rsi + 0x20], 0
test byte [0x14029d8b0], 0x19
jne 0x140140eec
lea rsi, [r14 + 0x20]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x140141235
mov byte [r14 + 0x52], 1
mov r15, qword [r14 + 0x28]
mov r12, qword [r14 + 0x60]
lea rdi, [r14 + 0x60]
xorps xmm6, xmm6
movups xmmword [r14 + 0x38], xmm6
movups xmmword [r14 + 0x28], xmm6
mov qword [r14 + 0x48], 0
mov rbx, qword [r14 + 0x68]
cmp r12, rbx
jne 0x140141243
mov qword [rsp + 0x58], r12
movups xmmword [rdi], xmm6
mov qword [rdi + 0x10], 0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov rcx, qword [r14 + 0xa0]
test rcx, rcx
je 0x140140c5b
mov rax, qword [rcx]
mov rax, qword [rax + 8]
lea rdx, [0x14017dfa0]
cmp rax, rdx
jne 0x140141282
movaps xmm0, xmmword [0x1402724c0]
lea r8, [rsp + 0xa0]
movaps xmmword [r8 + 0x10], xmm0
movaps xmmword [r8], xmm0
mov rax, qword [rcx + 0x38]
mov rax, qword [rax + 0x320]
xor edx, edx
mov byte [r8], dl
mov qword [r8 + 0x18], rax
lea r9, [rsp + 0x78]
mov byte [r9], dl
xorps xmm0, xmm0
movups xmmword [r9 + 8], xmm0
mov qword [r9 + 0x18], 0
mov rdx, r14
call fcn.14014f1b0
mov rsi, qword [r14 + 0x180]
mov qword [r14 + 0x180], 0
test rsi, rsi
jne 0x140140f88
mov rsi, qword [r14 + 0x188]
mov qword [r14 + 0x188], 0
test rsi, rsi
jne 0x140140fb3
mov rcx, qword [r14 + 0xa0]
mov rax, rcx
and rax, r13
cmp rax, qword [0x1402aaec8]
je 0x1401410d5
mov qword [r14 + 0xa0], 0
mov rcx, qword [r14 + 0xa8]
mov rax, rcx
and rax, r13
cmp rax, qword [0x1402aaec8]
je 0x140141290
xor esi, esi
mov qword [r14 + 0xa8], rsi
lea rcx, [r14 + 0x1e8]
call fcn.140141400
mov dword [r14 + 0xe0], 0
mov rbp, qword [r14 + 0xc8]
mov rdi, qword [r14 + 0xd0]
mov qword [r14 + 0xd8], rsi
xorps xmm0, xmm0
movups xmmword [r14 + 0xc8], xmm0
mov rsi, qword [r14 + 0xb0]
mov rbx, qword [r14 + 0xb8]
movups xmmword [r14 + 0xb0], xmm0
test rsi, rsi
je 0x140140d87
cmp byte [rsi + 0x50], 0
jne 0x140140ee3
mov rcx, qword [rsi + 0x30]
mov rax, rcx
and rax, r13
cmp rax, qword [0x1402aaec8]
je 0x1401410cb
mov qword [rsi + 0x30], 0
mov rcx, qword [rsi + 0x28]
mov rax, rcx
and rax, r13
cmp rax, qword [0x1402aaec8]
je 0x14014129a
mov qword [rsi + 0x28], 0
mov rcx, qword [rsi]
test rcx, rcx
jne 0x140140ea2
mov rcx, rsi
call fcn.14018482c
test rbx, rbx
je 0x140140de5
cmp byte [rbx + 0x50], 0
jne 0x140140eda
mov rcx, qword [rbx + 0x30]
mov rax, rcx
and rax, r13
cmp rax, qword [0x1402aaec8]
je 0x1401410c1
mov qword [rbx + 0x30], 0
mov rcx, qword [rbx + 0x28]
and r13, rcx
cmp r13, qword [0x1402aaec8]
je 0x1401412a4
mov qword [rbx + 0x28], 0
mov rcx, qword [rbx]
test rcx, rcx
jne 0x140140e6a
mov rcx, rbx
call fcn.14018482c
mov rcx, rdi
sub rcx, rbp
jne 0x140140feb
test rbp, rbp
jne 0x140140fde
mov rax, qword [rsp + 0x58]
test rax, rax
jne 0x1401412ae
test r15, r15
jne 0x140140e44
test byte [rsp + 0x57], 0x19
jne 0x140141194
mov rcx, qword [rsp + 0xc8]
xor rcx, rsp
call fcn.1401874c0
movaps xmm6, xmmword [rsp + 0xd0]
add rsp, 0xe8
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.140141330
mov rcx, r15
call fcn.14018482c
mov r15, rsi
test rsi, rsi
je 0x140140e0d
jmp 0x140140e44
mov rax, qword [rcx + 0x20]
mov qword [rcx + 0x20], 0
mov rsi, qword [rbx]
mov qword [rbx], rax
test rsi, rsi
je 0x140140e94
mov rcx, rsi
call fcn.140141330
mov rcx, rsi
call fcn.14018482c
mov rax, qword [rbx]
mov rcx, rax
test rax, rax
je 0x140140ddd
jmp 0x140140e6a
mov rax, qword [rcx + 0x20]
mov qword [rcx + 0x20], 0
mov r14, qword [rsi]
mov qword [rsi], rax
test r14, r14
je 0x140140ecc
mov rcx, r14
call fcn.140141330
mov rcx, r14
call fcn.14018482c
mov rax, qword [rsi]
mov rcx, rax
test rax, rax
je 0x140140d7f
jmp 0x140140ea2
mov byte [rbx + 0x50], 0
jmp 0x140140d96
mov byte [rsi + 0x50], 0
jmp 0x140140d35
mov rax, qword [0x14029ee18]
lea rcx, [0x140182e50]
cmp rax, rcx
jne 0x1401411dd
lea rsi, [rsp + 0x78]
mov qword [rsi], 0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rsi]
movabs rcx, 0x8637bd05af7
cmp rax, rcx
jge 0x1401412d5
imul rax, rax, 0xf4240
cqo
idiv qword [0x1402b0aa0]
mov qword [rsp + 0x78], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov qword [rsp + 0x38], rdi
mov dword [rsp + 0x30], eax
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
mov dword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
lea rdx, [0x14029d8b0]
lea r8, [0x14027a570]
mov cl, 0x45
xor r9d, r9d
call fcn.1401589f0
jmp 0x140140b8b
lock dec dword [rsi]
jne 0x140140c76
mov rax, qword [rsi + 0x10]
lea rcx, [0x1401f96d0]
cmp rax, rcx
je 0x140141079
mov rcx, rsi
call qword [case.0x1401eda70.0]
jmp 0x140140c76
lock dec dword [rsi]
jne 0x140140c91
mov rax, qword [rsi + 0x10]
lea rcx, [0x1401f96d0]
cmp rax, rcx
je 0x14014109d
mov rcx, rsi
call qword [case.0x1401eda70.0]
jmp 0x140140c91
mov rcx, rbp
call fcn.14018482c
jmp 0x140140dfa
movabs rdx, 0xc30c30c30c30c30d
mov rax, rcx
imul rdx
add rdx, rcx
mov rax, rdx
shr rax, 0x3f
sar rdx, 7
lea rcx, [rdx + rax]
cmp rcx, 1
adc rdx, rax
lea rax, [rbp + 0xa0]
mov rcx, qword [rax - 8]
test rcx, rcx
je 0x140141054
mov cl, byte [rcx + 4]
test cl, cl
jne 0x140141054
cmp qword [rax], 0
je 0x140141054
mov rcx, qword [rax - 8]
test rcx, rcx
je 0x1401412fc
mov cl, byte [rcx + 4]
test cl, cl
jne 0x1401412fc
mov rcx, qword [rax]
mov qword [rcx + 0x10], 0xffffffffffffffff
add rax, 0xa8
dec rdx
jne 0x14014101b
add rdi, 0xffffffffffffff58
mov rcx, rdi
call fcn.1400f2d60
cmp rdi, rbp
je 0x140140df1
jmp 0x14014105f
mov rcx, qword [rsi + 0x28]
mov rax, rcx
and rax, r13
cmp rax, qword [0x1402aaec8]
je 0x1401411c9
mov rcx, rsi
call fcn.14018482c
jmp 0x140140c76
mov rcx, qword [rsi + 0x28]
mov rax, rcx
and rax, r13
cmp rax, qword [0x1402aaec8]
je 0x1401411d3
mov rcx, rsi
call fcn.14018482c
jmp 0x140140c91
call fcn.1400da480
jmp 0x140140dad
call fcn.1400da480
jmp 0x140140d4c
call fcn.1400da480
jmp 0x140140cab
call fcn.1400da480
jmp 0x140140b76
mov rax, qword [0x14029ee18]
lea rcx, [0x140182e50]
cmp rax, rcx
jne 0x1401411ed
lea rsi, [rsp + 0x78]
mov qword [rsi], 0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rsi]
movabs rcx, 0x8637bd05af7
cmp rax, rcx
jge 0x1401412ff
imul rax, rax, 0xf4240
cqo
idiv qword [0x1402b0aa0]
mov qword [rsp + 0x78], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea rcx, [rsp + 0x78]
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x30], eax
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
mov dword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
lea rdx, [0x14029d8b0]
lea r8, str.TaskQueueImpl::UnregisterTaskQueue
mov cl, 0x58
mov qword [rsp + 0x60], rdx
mov qword [rsp + 0x70], r8
xor r9d, r9d
call fcn.1401589f0
jmp 0x140140ad8
mov rax, qword [rsp + 0x60]
cmp byte [rax], 0
je 0x140140e18
mov rcx, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x70]
mov r8, qword [rsp + 0x68]
call fcn.140143910
jmp 0x140140e18
lea rcx, [rsi + 0x10]
call fcn.140149e70
jmp 0x140140b55
call fcn.1400de100
jmp 0x140141090
call fcn.1400de100
jmp 0x1401410b4
lea rcx, [rsp + 0x78]
call qword [case.0x1401eda70.0]
jmp 0x140140f43
lea rcx, [rsp + 0x78]
call qword [case.0x1401eda70.0]
jmp 0x140141140
test ecx, ecx
jne 0x140140b55
mov ecx, 0x3fffffff
and eax, ecx
mov edx, eax
neg edx
lock xadd dword [rsi + 8], edx
test edx, edx
jns 0x140140b55
and edx, ecx
cmp edx, eax
jne 0x140140b55
lea rcx, [rsi + 0x10]
call fcn.140133410
jmp 0x140140b55
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
jmp 0x140140ba0
mov rbp, qword [r12]
mov rcx, qword [rbp + 8]
mov rax, rcx
and rax, r13
cmp rax, qword [0x1402aaec8]
jne 0x14014125f
call fcn.1400da480
mov qword [rbp + 8], 0
add r12, 0x10
cmp r12, rbx
jne 0x140141243
mov rax, qword [r14 + 0x60]
mov qword [rsp + 0x58], rax
mov r12, qword [r14 + 0x68]
jmp 0x140140bd8
mov rdx, r14
call qword [case.0x1401eda70.0]
jmp 0x140140c5b
call fcn.1400da480
jmp 0x140140cd0
call fcn.1400da480
jmp 0x140140d6b
call fcn.1400da480
jmp 0x140140dc9
cmp r12, rax
je 0x1401412c6
add r12, 0xfffffffffffffff0
mov rcx, r12
call fcn.140207f10
cmp r12, qword [rsp + 0x58]
jne 0x1401412b3
mov rcx, qword [rsp + 0x58]
call fcn.14018482c
jmp 0x140140e08
mov rcx, qword [0x1402b0aa0]
cqo
idiv rcx
imul r8, rax, 0xf4240
imul rax, rdx, 0xf4240
cqo
idiv rcx
add rax, r8
jmp 0x140140f3e
int3
mov rcx, qword [0x1402b0aa0]
cqo
idiv rcx
imul r8, rax, 0xf4240
imul rax, rdx, 0xf4240
cqo
idiv rcx
add rax, r8
jmp 0x14014113b