Function at 0x14014a680
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, 0x118
movaps xmmword [rsp + 0x100], xmm6
mov rsi, rcx
mov rax, qword [0x14029b028]
xor rax, rsp
mov qword [rsp + 0xf8], rax
movabs r15, 0xaaaaaaaaaaaaaaaa
movaps xmm0, xmmword [0x14026cc70]
movaps xmmword [rsp + 0x90], xmm0
movaps xmmword [rsp + 0xa0], xmm0
movaps xmmword [rsp + 0xb0], xmm0
mov qword [rsp + 0xc0], r15
mov byte [rsp + 0x90], 0
xorps xmm6, xmm6
movups xmmword [rsp + 0x98], xmm6
movups xmmword [rsp + 0xa8], xmm6
mov qword [rsp + 0xb8], 0
movzx ebp, byte [0x1402aa130]
test bpl, 0x19
jne 0x14014b0da
xor edx, edx
mov r8, r15
mov r9, r15
movabs rdi, 0x8000000000000001
cmp byte [rsi + 0xe0], 0
jne 0x14014a760
mov rax, qword [rsi + 0x70]
mov rcx, qword [rax + 0x230]
mov rax, qword [rcx + 0x10]
cmp rax, qword [rcx + 0x18]
je 0x14014a92e
cmp dword [rax + 0x14], 2
sete bl
cmp byte [rsi + 0x89], bl
jne 0x14014a984
lea r12, [rsp + 0x98]
movabs rbx, 0xfffffffc00000000
mov r14, qword [rsi + 0x70]
mov r13, qword [r14 + 0x228]
test r13, r13
jne 0x14014af5e
cmp byte [r14 + 0x240], 0
jne 0x14014abe9
mov r15, qword [r14 + 0x2f8]
test r15, r15
jne 0x14014ae13
cmp byte [rsi + 0x128], 0
je 0x14014a851
cmp byte [rsi + 0x130], 0
je 0x14014a84a
mov eax, dword [0x1402ab5e0]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov r14, qword [rax + 0x190]
test r14, r14
je 0x14014a84a
mov rax, qword [r14 + 0x10]
test rax, rax
js 0x14014acd0
cmp dword [r14 + 0x24], 1
movabs r15, 0x4000000000000000
jne 0x14014ae8a
cmp qword [r14 + 0x18], 0
jne 0x14014b093
movabs rax, 0xbfffffffffffffff
lock and qword [r14 + 0x10], rax
mov r13, qword [rsi + 0x138]
cmp qword [r14 + 0x18], 0
jne 0x14014b048
mov rax, qword [r14 + 0x10]
and rax, r15
movabs rcx, 0xffffffffffffff
and r13, rcx
or r13, rax
mov qword [r14 + 0x10], r13
dec dword [r14 + 0x24]
mov byte [rsi + 0x128], 0
lea r15, [rsi - 0xc0]
mov rax, qword [rsi - 0xc8]
mov byte [rsp + 0x98], 0
mov qword [rsp + 0xb0], rax
mov rax, r15
and rax, rbx
cmp rax, qword [0x14029be48]
je 0x14014a945
mov qword [rsp + 0xb8], r15
mov byte [rsp + 0x90], 1
add rdi, 0xfffffffffffffffe
cmp qword [rsi + 0xa8], rdi
jne 0x14014aeec
mov rax, qword [rsi + 0x18]
cmp qword [rsi + 0x10], rax
je 0x14014ae68
mov rdi, qword [rax - 8]
cmp byte [rdi + 0xf], 0
jne 0x14014abb1
test bpl, 0x19
jne 0x14014ae6e
cmp byte [rsp + 0x90], 0
je 0x14014a900
mov rcx, qword [rsp + 0xb8]
test rcx, rcx
je 0x14014ae6b
mov rdx, r12
call fcn.1400e2810
mov rcx, qword [rsp + 0xb8]
and rbx, rcx
cmp rbx, qword [0x14029be48]
je 0x14014a93e
mov rcx, qword [rsp + 0xf8]
xor rcx, rsp
call fcn.140186020
xor eax, eax
movaps xmm6, xmmword [rsp + 0x100]
add rsp, 0x118
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
xor ebx, ebx
cmp byte [rsi + 0x89], bl
je 0x14014a760
jmp 0x14014a984
call fcn.1400dca60
jmp 0x14014a900
mov rcx, r15
mov r14, rdx
mov r13, r8
mov qword [rsp + 0x60], rsi
mov rsi, rbx
mov rbx, rdi
mov edi, ebp
mov rbp, r12
mov r12, r9
call fcn.1400dc910
mov r9, r12
mov r12, rbp
mov ebp, edi
mov rdi, rbx
mov rbx, rsi
mov rsi, qword [rsp + 0x60]
mov r8, r13
mov rdx, r14
jmp 0x14014a882
mov qword [rsp + 0x50], r9
mov qword [rsp + 0x58], r8
mov qword [rsp + 0x68], rdx
mov byte [rsi + 0x89], bl
mov eax, dword [0x1402b6440]
mov ecx, dword [0x1402ab5e0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14014ab6f
mov r12, qword [0x1402b6438]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x14014acc2
movzx ebx, bl
dec ebx
or ebx, 1
cmp byte [0x1402b63f4], 0
mov eax, 8
mov ecx, 1
cmove ecx, eax
xor r14d, r14d
add ebx, dword [0x1402b63f8]
mov dword [0x1402b63f8], ebx
cmovne r14d, ecx
mov eax, dword [0x1402b63fc]
cmp r14d, eax
je 0x14014ab52
test eax, eax
je 0x14014aadd
mov rax, qword [0x1402aaf18]
lea rcx, [0x140181ca0]
lea r13, [rsp + 0xd0]
cmp rax, rcx
jne 0x14014ad09
mov qword [r13], 0
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [r13]
movabs rcx, 0x8637bd05af7
cmp rax, rcx
jge 0x14014b13b
imul rax, rax, 0xf4240
cqo
idiv qword [0x1402b6458]
mov qword [rsp + 0xd0], rax
mov rcx, qword [0x1402b6448]
xor edx, edx
cmp rax, rcx
setns dl
movabs r8, 0x7fffffffffffffff
add r8, rdx
sub rax, rcx
cmovo rax, r8
lea rdx, [rax + rdi]
mov rcx, qword [0x1402b6400]
cmp rdx, 2
jb 0x14014ad2d
lea rdx, [rcx + rax]
sar rdx, 0x3f
btc rdx, 0x3f
add rcx, rax
cmovo rcx, rdx
mov rax, rcx
mov qword [0x1402b6400], rax
mov ecx, dword [0x1402b63fc]
call qword [sym.imp.WINMM.dll_timeEndPeriod]
mov dword [0x1402b63fc], r14d
test ebx, ebx
je 0x14014ab52
mov rax, qword [0x1402aaf18]
lea rcx, [0x140181ca0]
lea r13, [rsp + 0xd0]
cmp rax, rcx
jne 0x14014ad1b
mov qword [r13], 0
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [r13]
movabs rcx, 0x8637bd05af7
cmp rax, rcx
jge 0x14014ad48
imul rax, rax, 0xf4240
cqo
idiv qword [0x1402b6458]
mov qword [0x1402b6448], rax
mov ecx, dword [0x1402b63fc]
call qword [sym.imp.WINMM.dll_timeBeginPeriod]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov rdx, qword [rsp + 0x68]
mov r8, qword [rsp + 0x58]
mov r9, qword [rsp + 0x50]
jmp 0x14014a760
lea rcx, [0x1402b6440]
call fcn.140183590
cmp dword [0x1402b6440], 0xffffffff
jne 0x14014a9be
mov ecx, 8
call fcn.1401833f4
mov qword [rax], 0
mov qword [0x1402b6438], rax
lea rcx, [0x1402b6440]
call fcn.1401835f8
jmp 0x14014a9be
mov r15, r9
mov r13, r8
mov r14, rdx
add rsi, 8
test byte [0x1402aa220], 0x19
jne 0x14014ad6f
mov rax, qword [rsi]
mov rax, qword [rax + 0x10]
mov rcx, rsi
call qword [0x1402c9008]
mov rdx, r14
mov r8, r13
mov r9, r15
jmp 0x14014a8bf
lea r13, [r14 - 8]
mov al, byte [0x1402aa130]
mov byte [rsp + 0x60], al
test al, 0x19
mov qword [rsp + 0x68], rdx
mov qword [rsp + 0x58], r8
mov qword [rsp + 0x50], r9
jne 0x14014b198
xor eax, eax
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], r15
mov rcx, r13
call fcn.1400012f0
mov rax, qword [r14 + 0x300]
mov rax, qword [fcn.140106270]
lea rcx, [0x140181ca0]
lea r13, [rsp + 0x88]
cmp rax, rcx
jne 0x14014acf7
mov qword [r13], 0
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [r13]
movabs rcx, 0x8637bd05af7
cmp rax, rcx
jge 0x14014adec
imul rax, rax, 0xf4240
cqo
idiv qword [0x1402b6458]
mov r8, qword [rsp + 0x58]
mov r9, qword [rsp + 0x50]
add rax, 0x1c9c380
movabs rcx, 0x7fffffffffffffff
cmovno rcx, rax
mov qword [r14 + 0x248], rcx
mov byte [r14 + 0x240], 0
test byte [rsp + 0x60], 0x19
mov rdx, qword [rsp + 0x68]
je 0x14014a794
jmp 0x14014b162
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
jmp 0x14014a9d6
mov rcx, qword [0x1402b6790]
mov r15, rdx
mov r13, r8
mov qword [rsp + 0x50], r9
call fcn.1401c0cd0
mov r9, qword [rsp + 0x50]
mov r8, r13
mov rdx, r15
jmp 0x14014a7ea
mov rcx, r13
call qword [0x1402c9008]
mov rax, qword [r13]
jmp 0x14014ac80
mov rcx, r13
call qword [0x1402c9008]
mov rax, qword [r13]
jmp 0x14014aa7b
mov rcx, r13
call qword [0x1402c9008]
mov rax, qword [r13]
jmp 0x14014ab3f
cmp rcx, rax
je 0x14014aaca
add rcx, rdi
cmp rcx, 1
ja 0x14014aaca
jmp 0x14014b1fa
mov rcx, qword [0x1402b6458]
cqo
idiv rcx
imul r8, rax, 0xf4240
imul rax, rdx, 0xf4240
cqo
idiv rcx
add rax, r8
jmp 0x14014ab3f
lea rcx, [rsp + 0xd0]
call fcn.140106270
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor ecx, ecx
mov qword [rsp + 0x40], rcx
lea rdx, [rsp + 0xd0]
mov qword [rsp + 0x38], rdx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rcx
mov dword [rsp + 0x48], 0x880
lea rdx, [0x1402aa220]
lea r8, str.RunLoop_ExitedOnIdle
mov cl, 0x58
xor r9d, r9d
call fcn.14013ac20
cmp byte [0x1402aa220], 0
je 0x14014abcb
lea rcx, [0x1402aa220]
lea rdx, str.RunLoop_ExitedOnIdle
mov r8, rax
call fcn.14014f640
jmp 0x14014abcb
mov rcx, qword [0x1402b6458]
cqo
idiv rcx
imul r8, rax, 0xf4240
imul rax, rdx, 0xf4240
cqo
idiv rcx
add rax, r8
jmp 0x14014ac80
mov qword [r14 + 0x2f8], 0
mov rax, qword [r15 + 8]
mov rcx, r15
mov r14, rdx
mov r13, r8
mov qword [rsp + 0x50], r9
call qword [0x1402c9008]
mov r9, qword [rsp + 0x50]
mov r8, r13
mov rdx, r14
lock dec dword [r15]
jne 0x14014a7a4
mov rax, qword [r15 + 0x10]
mov rcx, r15
call qword [0x1402c9008]
mov r9, qword [rsp + 0x50]
mov r8, r13
mov rdx, r14
jmp 0x14014a7a4
int3
int3
cmp byte [rdx], 0
je 0x14014a8c9
mov rcx, rdx
mov rdx, r8
mov r8, r9
call fcn.14014f640
jmp 0x14014a8c9
cmp byte [rsi + 0x140], 0
je 0x14014a819
mov qword [rsp + 0x50], r9
mov qword [rsp + 0x58], r8
mov r13, rdx
cmp qword [r14 + 0x18], 0
jne 0x14014aec2
lock or qword [r14 + 0x10], r15
mov rdx, r13
mov r8, qword [rsp + 0x58]
mov r9, qword [rsp + 0x50]
jmp 0x14014a819
lea rcx, [r14 + 0x18]
mov rax, qword [r14 + 0x10]
mov qword [rsp + 0x60], rax
call fcn.1401c0d20
movabs rcx, 0xff00000000000000
and rcx, qword [rsp + 0x60]
or rcx, rax
mov qword [r14 + 0x10], rcx
jmp 0x14014aeab
lea r15, [rsp + 0xd0]
mov rcx, r12
mov rdi, rdx
mov rdx, r15
mov r14, r8
mov r13, r9
call fcn.140182d50
mov r9, r13
mov r8, r14
mov rdx, rdi
mov rax, qword [rsi + 0xa8]
cmp rax, qword [r15]
jg 0x14014a8a3
mov rax, qword [rsi + 8]
add rsi, 8
mov rax, qword [rax + 0x10]
mov rcx, rsi
call qword [0x1402c9008]
mov r9, r13
mov r8, r14
mov rdx, rdi
jmp 0x14014a8bf
xor eax, eax
mov qword [rsp + 0x60], rax
xor eax, eax
mov qword [rsp + 0x70], rax
mov dword [rsp + 0x78], 0
xor eax, eax
jmp 0x14014af98
mov qword [rsp + 0x50], r9
mov qword [rsp + 0x58], r8
mov qword [rsp + 0x68], rdx
mov rcx, qword [r14 + 0x230]
mov rax, qword [rcx + 0x10]
cmp rax, qword [rcx + 0x18]
je 0x14014af44
mov rcx, qword [rax]
mov qword [rsp + 0x60], rcx
mov rcx, qword [rax + 8]
mov qword [rsp + 0x70], rcx
mov eax, dword [rax + 0x14]
mov dword [rsp + 0x78], eax
mov al, 1
mov qword [rsp + 0x80], rax
mov rcx, qword [r14 + 0x28]
mov rax, qword [rcx]
mov rax, qword [rax + 0x50]
call qword [0x1402c9008]
lea rdx, [rsp + 0xd0]
mov rcx, qword [rsp + 0x80]
mov byte [rdx], cl
mov ecx, 0xaaaaaaaa
mov dword [rdx + 1], ecx
mov dword [rdx + 4], ecx
mov rcx, qword [rsp + 0x60]
mov qword [rdx + 8], rcx
mov rcx, qword [rsp + 0x70]
mov qword [rdx + 0x10], rcx
mov dword [rdx + 0x18], 0
mov ecx, dword [rsp + 0x78]
mov dword [rdx + 0x1c], ecx
mov qword [rdx + 0x20], r15
mov rcx, qword [r13]
mov r9, qword [rcx + 0x10]
mov rcx, r13
mov r8d, eax
mov rax, r9
call qword [0x1402c9008]
test al, al
mov rdx, qword [rsp + 0x68]
mov r8, qword [rsp + 0x58]
mov r9, qword [rsp + 0x50]
je 0x14014a786
mov rcx, qword [rsi + 0x150]
mov rax, qword [rcx]
mov rax, qword [rax + 0x18]
call qword [0x1402c9008]
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x68]
jmp 0x14014a8bf
lea rcx, [r14 + 0x18]
mov rax, qword [r14 + 0x10]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rdx
mov qword [rsp + 0x58], r8
mov qword [rsp + 0x50], r9
call fcn.1401c0d20
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x68]
movabs rcx, 0xff00000000000000
and rcx, qword [rsp + 0x60]
or rcx, rax
mov qword [r14 + 0x10], rcx
jmp 0x14014a82b
lea rcx, [r14 + 0x18]
mov rax, qword [r14 + 0x10]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rdx
mov r13, r8
mov qword [rsp + 0x50], r9
call fcn.1401c0d20
mov r9, qword [rsp + 0x50]
mov r8, r13
mov rdx, qword [rsp + 0x68]
movabs rcx, 0xff00000000000000
and rcx, qword [rsp + 0x60]
or rcx, rax
mov qword [r14 + 0x10], rcx
jmp 0x14014a80a
lea rdi, [rsp + 0xd0]
mov rcx, rdi
call fcn.140106270
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov qword [rsp + 0x38], rdi
mov dword [rsp + 0x30], eax
movups xmmword [rsp + 0x20], xmm6
mov dword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
lea rdi, [0x1402aa130]
lea rbx, str.SequenceManager::DoIdleWork
mov cl, 0x58
mov rdx, rdi
mov r8, rbx
xor r9d, r9d
call fcn.14013ac20
mov r8, rbx
mov rdx, rdi
mov r9, rax
jmp 0x14014a721
mov rcx, qword [0x1402b6458]
cqo
idiv rcx
imul r8, rax, 0xf4240
imul rax, rdx, 0xf4240
cqo
idiv rcx
add rax, r8
jmp 0x14014aa73
mov rax, qword [rsp + 0x70]
cmp byte [rax], 0
je 0x14014a794
mov rcx, qword [rsp + 0x70]
mov rdx, qword [rsp + 0x78]
mov r13, r8
mov r8, r15
mov r15, r9
call fcn.14014f640
mov r9, r15
mov r8, r13
mov rdx, qword [rsp + 0x68]
jmp 0x14014a794
lea r15, [rsp + 0x88]
mov rcx, r15
call fcn.140106270
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov qword [rsp + 0x38], r15
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, [0x1402aa130]
lea r8, str.SequenceManagerImpl::MaybeReclaimMemory
mov cl, 0x58
mov qword [rsp + 0x70], rdx
mov qword [rsp + 0x78], r8
xor r9d, r9d
call fcn.14013ac20
mov r15, rax
jmp 0x14014ac1a
int3