Function at 0x14004ddb0
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, 0x108
movaps xmmword [rsp + 0xf0], xmm6
mov rdi, r8
mov rsi, rdx
mov r12, rcx
mov rax, qword [0x140346038]
xor rax, rsp
mov qword [rsp + 0xe8], rax
movabs r15, 0xaaaaaaaaaaaaaaaa
mov al, byte [0x140355d30]
mov byte [rsp + 0x5f], al
test al, 0x19
jne 0x14004e6b8
xor eax, eax
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x88], r15
mov qword [rsp + 0x80], r15
mov rax, qword [rsi + 0xa8]
cmp byte [rax + 0x208], 0
jne 0x14004dfb4
cmp qword [rax + 0x180], 0
jne 0x14004dfc9
cmp qword [rax + 0x188], 0
jne 0x14004dfc9
cmp dword [r12 + 0x88], 0
jne 0x14004de63
cmp qword [r12 + 0x218], 0
jne 0x14004dfc9
xor r13d, r13d
mov rax, qword [rsi + 0xa8]
cmp byte [rax + 0x209], 0
je 0x14004df7d
mov rbp, qword [rsi + 0x90]
mov rdi, qword [rax + 0x178]
mov bl, byte [0x140355d30]
test bl, 0x19
jne 0x14004e7a3
xor eax, eax
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x70], r15
mov qword [rsp + 0x78], r15
lea r14, [rsp + 0xd0]
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [r14 + 0x10], rax
movaps xmm6, xmmword [0x1402fccc0]
movaps xmmword [r14], xmm6
mov rax, qword [r12 + 0x1b8]
xorps xmm0, xmm0
cmp rax, qword [r12 + 0x1c0]
movaps xmmword [r14 - 0x10], xmm0
jne 0x14004e9a2
movups xmmword [r14], xmm0
mov qword [r14 + 0x10], 0
xor eax, eax
xorps xmm0, xmm0
movaps xmmword [rsp + 0xa0], xmm0
movaps xmmword [rsp + 0x90], xmm0
mov qword [rsp + 0xb0], 0
test rax, rax
jne 0x14004e098
mov rdx, qword [rsp + 0xa0]
test rdx, rdx
jne 0x14004e0d5
lea rcx, [rsp + 0x90]
call fcn.1400c2eb0
lea rcx, [rsp + 0xc0]
call fcn.1400c2eb0
test bl, 0x19
jne 0x14004e044
test byte [0x140355d30], 0x19
jne 0x14004e888
cmp rdi, rbp
seta r8b
mov rcx, qword [rsi + 0xa8]
mov rdx, rsi
call fcn.1400c3350
test r13b, r13b
jne 0x14004e1b5
test byte [rsp + 0x5f], 0x19
jne 0x14004e06b
mov rcx, qword [rsp + 0xe8]
xor rcx, rsp
call fcn.140156fe0
movaps xmm6, xmmword [rsp + 0xf0]
add rsp, 0x108
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov byte [r12 + 0x288], 1
mov rax, qword [rsi + 0xa8]
jmp 0x14004de2d
mov dword [rsi + 0xb8], 1
cmp byte [rsi + 0xbc], 0
je 0x14004dfec
cmp byte [rdi], 0
je 0x14004e01b
mov rax, qword [rdi + 8]
mov qword [rsi + 0xc0], rax
mov r13b, 1
cmp byte [rsi + 0xbd], 0
je 0x14004de66
lea rdi, [rsp + 0xc0]
mov rcx, rdi
call fcn.1400d81c0
mov rax, qword [rdi]
mov qword [rsi + 0xd0], rax
jmp 0x14004de66
mov rax, qword [fcn.1400e35f0]
lea rbx, [rsp + 0xc0]
mov rcx, rbx
call qword [0x14037e008]
cmp byte [rdi], 0
mov rax, qword [rbx]
mov qword [rdi + 8], rax
jne 0x14004dfe5
mov byte [rdi], 1
jmp 0x14004dfe5
mov rax, qword [rsp + 0x60]
cmp byte [rax], 0
je 0x14004df51
mov rcx, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x78]
mov r8, qword [rsp + 0x70]
call fcn.1401c7be0
jmp 0x14004df51
mov rax, qword [rsp + 0x68]
cmp byte [rax], 0
je 0x14004df88
mov rcx, qword [rsp + 0x68]
mov rdx, qword [rsp + 0x88]
mov r8, qword [rsp + 0x80]
call fcn.1401c7be0
jmp 0x14004df88
mov rcx, qword [rsp + 0xd8]
mov rdx, qword [rsp + 0xe0]
mov r8, qword [rax + 8]
sub r8, qword [rax]
sar r8, 3
cmp r8, rdx
cmovae r8, rdx
mov rdx, qword [rsp + 0xa0]
cmp rcx, r8
je 0x14004df25
mov r8, qword [rsp + 0xa8]
jmp 0x14004e108
mov r8, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0xb0]
mov r9, qword [rdx + 8]
sub r9, qword [rdx]
sar r9, 3
cmp r9, rcx
cmovae r9, rcx
cmp r8, r9
je 0x14004df2e
mov rcx, qword [rsp + 0xd8]
cmp rax, rdx
jne 0x14004e116
cmp rcx, r8
je 0x14004df2e
mov rdx, qword [rax]
mov rax, qword [rax + 8]
sub rax, rdx
sar rax, 3
cmp rax, rcx
jbe 0x14004e6a2
cmp rdi, rbp
seta r8b
mov rcx, qword [rdx + rcx*8]
mov rax, qword [rcx]
mov rax, qword [rax]
mov rdx, rsi
call qword [0x14037e008]
mov rax, qword [rsp + 0xd0]
test rax, rax
je 0x14004df14
mov rcx, qword [rsp + 0xd8]
mov r8, qword [rsp + 0xe0]
inc rcx
mov qword [rsp + 0xd8], rcx
mov rdx, qword [rax + 8]
sub rdx, qword [rax]
sar rdx, 3
cmp rdx, r8
cmovae rdx, r8
cmp rcx, rdx
jae 0x14004df14
mov r8, qword [rax]
mov r9, qword [rax + 8]
sub r9, r8
sar r9, 3
cmp r9, rcx
jbe 0x14004e6a5
cmp qword [r8 + rcx*8], 0
jne 0x14004df14
jmp 0x14004eaaa
cmp dword [r12 + 0x88], 0
je 0x14004e291
test byte [0x140355d30], 0x19
jne 0x14004e47f
mov rax, qword [rsi + 0xa8]
mov rdi, qword [rax + 0x180]
test rdi, rdi
je 0x14004df7d
mov ecx, 1
lock xadd dword [rdi], ecx
test ecx, ecx
jle 0x14004ea98
cmp ecx, 0x7fffffff
je 0x14004ea9b
lea r8, [rsi + 0xb8]
mov rax, qword [rax + 0x180]
mov rax, qword [rax + 8]
mov rcx, rdi
mov rdx, rsi
call qword [0x14037e008]
lock dec dword [rdi]
jne 0x14004df7d
mov rax, qword [rdi + 0x10]
mov rcx, rdi
call qword [0x14037e008]
jmp 0x14004df7d
lea rcx, [rsp + 0x90]
call fcn.1400f3140
lea rcx, [rsp + 0xc0]
call fcn.1400f3140
test bpl, 0x19
je 0x14004e1c4
cmp byte [rdi], 0
je 0x14004e1c4
mov rcx, rdi
mov rdx, rbx
mov r8, r15
call fcn.1401c7be0
jmp 0x14004e1c4
movups xmmword [r14], xmm0
mov qword [r14 + 0x10], 0
xor eax, eax
jmp 0x14004e38f
mov bpl, byte [0x140355d30]
test bpl, 0x19
jne 0x14004e5cf
xor edi, edi
mov rbx, r15
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0xe0], rax
movaps xmmword [rsp + 0xd0], xmm6
mov rax, qword [r12 + 0x1f0]
xorps xmm0, xmm0
cmp rax, qword [r12 + 0x1f8]
movaps xmmword [rsp + 0xc0], xmm0
je 0x14004e27e
lea rax, [r12 + 0x1f0]
mov qword [rsp + 0xd0], rax
lea rax, [r12 + 0x208]
mov qword [rsp + 0xc8], rax
mov rax, qword [r12 + 0x208]
mov qword [rsp + 0xc0], rax
lea rcx, [rsp + 0xc0]
mov qword [rax + 8], rcx
mov qword [r12 + 0x208], rcx
mov qword [rsp + 0xd8], 0
mov rdx, 0xffffffffffffffff
cmp dword [r12 + 0x220], 0
jne 0x14004eac3
mov qword [rsp + 0xe0], rdx
mov rax, qword [rsp + 0xd0]
mov rcx, qword [rax + 8]
sub rcx, qword [rax]
sar rcx, 3
cmp rcx, rdx
cmovae rcx, rdx
test rcx, rcx
je 0x14004e38f
xor edx, edx
mov r8, qword [rax]
mov r9, qword [rax + 8]
sub r9, r8
sar r9, 3
cmp r9, rdx
jbe 0x14004eaa1
cmp qword [r8 + rdx*8], 0
je 0x14004eadc
xorps xmm0, xmm0
movaps xmmword [rsp + 0xa0], xmm0
movaps xmmword [rsp + 0x90], xmm0
mov qword [rsp + 0xb0], 0
test rax, rax
je 0x14004e23e
mov rcx, qword [rsp + 0xd8]
mov rdx, qword [rsp + 0xe0]
mov r8, qword [rax + 8]
sub r8, qword [rax]
sar r8, 3
cmp r8, rdx
cmovae r8, rdx
cmp rcx, r8
je 0x14004e23e
mov rdx, qword [rax]
mov rax, qword [rax + 8]
sub rax, rdx
sar rax, 3
cmp rax, rcx
jbe 0x14004ea79
mov rcx, qword [rdx + rcx*8]
mov rdx, qword [rsi + 0xc0]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [0x14037e008]
mov rax, qword [rsp + 0xd0]
test rax, rax
je 0x14004e23e
mov rcx, qword [rsp + 0xd8]
mov r8, qword [rsp + 0xe0]
inc rcx
mov qword [rsp + 0xd8], rcx
mov rdx, qword [rax + 8]
sub rdx, qword [rax]
sar rdx, 3
cmp rdx, r8
cmovae rdx, r8
cmp rcx, rdx
jae 0x14004e3b7
mov r8, qword [rax]
mov r9, qword [rax + 8]
sub r9, r8
sar r9, 3
cmp r9, rcx
jbe 0x14004ea7c
cmp qword [r8 + rcx*8], 0
jne 0x14004e3b7
jmp 0x14004ea7f
mov rax, qword [0x140356358]
lea rcx, [0x140038290]
cmp rax, rcx
jne 0x14004ea53
lea rdi, [rsp + 0xc0]
mov qword [rdi], 0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rdi]
movabs rcx, 0x8637bd05af7
cmp rax, rcx
jl 0x14004e4e4
mov rcx, qword [0x1403627d8]
cqo
idiv rcx
imul r8, rax, 0xf4240
imul rax, rdx, 0xf4240
cqo
idiv rcx
add rax, r8
jmp 0x14004e4f4
imul rax, rax, 0xf4240
cqo
idiv qword [0x1403627d8]
mov qword [rsp + 0xc0], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea rcx, [rsp + 0xc0]
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, [0x140355d30]
lea r8, str.SequenceManager.QueueOnTaskStarted
mov cl, 0x58
xor r9d, r9d
call fcn.1401bfdf0
mov rdi, rax
mov rax, qword [rsi + 0xa8]
mov rbx, qword [rax + 0x180]
test rbx, rbx
je 0x14004e5a7
mov ecx, 1
lock xadd dword [rbx], ecx
test ecx, ecx
jle 0x14004eaa4
cmp ecx, 0x7fffffff
je 0x14004eaa7
lea r8, [rsi + 0xb8]
mov rax, qword [rax + 0x180]
mov rax, qword [rax + 8]
mov rcx, rbx
mov rdx, rsi
call qword [0x14037e008]
lock dec dword [rbx]
jne 0x14004e5a7
mov rax, qword [rbx + 0x10]
mov rcx, rbx
call qword [0x14037e008]
cmp byte [0x140355d30], 0
je 0x14004df7d
lea rcx, [0x140355d30]
lea rdx, str.SequenceManager.QueueOnTaskStarted
mov r8, rdi
call fcn.1401c7be0
jmp 0x14004df7d
mov rax, qword [0x140356358]
lea rcx, [0x140038290]
cmp rax, rcx
jne 0x14004ea66
lea rdi, [rsp + 0xc0]
mov qword [rdi], 0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rdi]
movabs rcx, 0x8637bd05af7
cmp rax, rcx
jl 0x14004e634
mov rcx, qword [0x1403627d8]
cqo
idiv rcx
imul r8, rax, 0xf4240
imul rax, rdx, 0xf4240
cqo
idiv rcx
add rax, r8
jmp 0x14004e644
imul rax, rax, 0xf4240
cqo
idiv qword [0x1403627d8]
mov qword [rsp + 0xc0], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea rcx, [rsp + 0xc0]
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 rdi, [0x140355d30]
lea rbx, str.SequenceManager.WillProcessTaskTimeObservers
mov cl, 0x58
mov rdx, rdi
mov r8, rbx
xor r9d, r9d
call fcn.1401bfdf0
mov r15, rax
jmp 0x14004e2a7
int3
int3
lea rcx, [rsp + 0xc0]
call qword [0x14037e008]
jmp 0x14004e731
mov rax, qword [0x140356358]
lea rcx, [0x140038290]
cmp rax, rcx
jne 0x14004e6a8
lea rbx, [rsp + 0xc0]
mov qword [rbx], 0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rbx]
movabs rcx, 0x8637bd05af7
cmp rax, rcx
jl 0x14004e719
mov rcx, qword [0x1403627d8]
cqo
idiv rcx
imul r8, rax, 0xf4240
imul rax, rdx, 0xf4240
cqo
idiv rcx
add rax, r8
jmp 0x14004e729
imul rax, rax, 0xf4240
cqo
idiv qword [0x1403627d8]
mov qword [rsp + 0xc0], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea rcx, [rsp + 0xc0]
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, [0x140355d30]
lea r8, str.SequenceManagerImpl::NotifyWillProcessTaskObservers
mov cl, 0x58
mov qword [rsp + 0x68], rdx
mov qword [rsp + 0x88], r8
xor r9d, r9d
call fcn.1401bfdf0
mov qword [rsp + 0x80], rax
jmp 0x14004de19
lea rcx, [rsp + 0xc0]
call qword [0x14037e008]
jmp 0x14004e81c
mov rax, qword [0x140356358]
lea rcx, [0x140038290]
cmp rax, rcx
jne 0x14004e793
lea r14, [rsp + 0xc0]
mov qword [r14], 0
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [r14]
movabs rcx, 0x8637bd05af7
cmp rax, rcx
jl 0x14004e804
mov rcx, qword [0x1403627d8]
cqo
idiv rcx
imul r8, rax, 0xf4240
imul rax, rdx, 0xf4240
cqo
idiv rcx
add rax, r8
jmp 0x14004e814
imul rax, rax, 0xf4240
cqo
idiv qword [0x1403627d8]
mov qword [rsp + 0xc0], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea rcx, [rsp + 0xc0]
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, [0x140355d30]
lea r8, str.SequenceManager.WillProcessTaskObservers
mov cl, 0x58
mov qword [rsp + 0x60], rdx
mov qword [rsp + 0x78], r8
xor r9d, r9d
call fcn.1401bfdf0
mov qword [rsp + 0x70], rax
jmp 0x14004dea8
lea rcx, [rsp + 0xc0]
call qword [0x14037e008]
jmp 0x14004e901
mov rax, qword [0x140356358]
lea rcx, [0x140038290]
cmp rax, rcx
jne 0x14004e878
lea rbx, [rsp + 0xc0]
mov qword [rbx], 0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rbx]
movabs rcx, 0x8637bd05af7
cmp rax, rcx
jl 0x14004e8e9
mov rcx, qword [0x1403627d8]
cqo
idiv rcx
imul r8, rax, 0xf4240
imul rax, rdx, 0xf4240
cqo
idiv rcx
add rax, r8
jmp 0x14004e8f9
imul rax, rax, 0xf4240
cqo
idiv qword [0x1403627d8]
mov qword [rsp + 0xc0], rax
cmp rdi, rbp
seta bl
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea rcx, [rsp + 0xc0]
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, [0x140355d30]
lea r8, str.SequenceManager.QueueNotifyWillProcessTask
mov cl, 0x58
xor r9d, r9d
call fcn.1401bfdf0
mov rdi, rax
mov rcx, qword [rsi + 0xa8]
mov rdx, rsi
mov r8d, ebx
call fcn.1400c3350
cmp byte [0x140355d30], 0
je 0x14004df74
lea rcx, [0x140355d30]
lea rdx, str.SequenceManager.QueueNotifyWillProcessTask
mov r8, rdi
call fcn.1401c7be0
jmp 0x14004df74
mov rdx, qword [r12 + 0x1c0]
sub rdx, qword [r12 + 0x1b8]
sar rdx, 3
jmp 0x14004e9f3
lea rax, [r12 + 0x1b8]
lea rcx, [rsp + 0xc0]
mov qword [rcx + 0x10], rax
lea rax, [r12 + 0x1d0]
mov qword [rcx + 8], rax
mov rax, qword [r12 + 0x1d0]
mov qword [rcx], rax
mov qword [rax + 8], rcx
mov qword [r12 + 0x1d0], rcx
mov qword [rcx + 0x18], 0
mov rdx, 0xffffffffffffffff
cmp dword [r12 + 0x1e8], 0
jne 0x14004e98c
mov qword [rsp + 0xe0], rdx
mov rax, qword [rsp + 0xd0]
mov rcx, qword [rax + 8]
sub rcx, qword [rax]
sar rcx, 3
cmp rcx, rdx
cmovae rcx, rdx
test rcx, rcx
je 0x14004def5
xor edx, edx
mov r8, qword [rax]
mov r9, qword [rax + 8]
sub r9, r8
sar r9, 3
cmp r9, rdx
jbe 0x14004ea9e
cmp qword [r8 + rdx*8], 0
jne 0x14004def5
inc rdx
mov qword [rsp + 0xd8], rdx
cmp rcx, rdx
jne 0x14004ea20
jmp 0x14004def5
lea rcx, [rsp + 0xc0]
call qword [0x14037e008]
jmp 0x14004e4fc
lea rcx, [rsp + 0xc0]
call qword [0x14037e008]
jmp 0x14004e64c
int3
int3
inc rcx
mov qword [rsp + 0xd8], rcx
cmp rdx, rcx
jne 0x14004e458
jmp 0x14004e3b7
int3
int3
int3
int3
int3
int3
inc rcx
mov qword [rsp + 0xd8], rcx
cmp rdx, rcx
jne 0x14004e18e
jmp 0x14004df14
mov rdx, qword [r12 + 0x1f8]
sub rdx, qword [r12 + 0x1f0]
sar rdx, 3
jmp 0x14004e344
inc rdx
mov qword [rsp + 0xd8], rdx
cmp rcx, rdx
jne 0x14004e36d
jmp 0x14004e38f