Function at 0x14004c190
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 [0x140327038]
xor rax, rsp
mov qword [rsp + 0xe8], rax
movabs r15, 0xaaaaaaaaaaaaaaaa
mov al, byte [0x14032a2b0]
mov byte [rsp + 0x5f], al
test al, 0x19
jne 0x14004cafb
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 0x14004c38c
cmp qword [rax + 0x180], 0
jne 0x14004c3ed
cmp qword [rax + 0x188], 0
jne 0x14004c3ed
cmp dword [r12 + 0x88], 0
jne 0x14004c243
cmp qword [r12 + 0x218], 0
jne 0x14004c3ed
xor r13d, r13d
mov rax, qword [rsi + 0xa8]
cmp byte [rax + 0x209], 0
je 0x14004c359
mov rbp, qword [rsi + 0x90]
mov rdi, qword [rax + 0x178]
mov bl, byte [0x14032a2b0]
test bl, 0x19
jne 0x14004cbe6
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 [0x1402e6d80]
movaps xmmword [r14], xmm6
mov rax, qword [r12 + 0x1b8]
xorps xmm0, xmm0
cmp rax, qword [r12 + 0x1c0]
movaps xmmword [r14 - 0x10], xmm0
jne 0x14004cde5
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 0x14004c9b9
mov rdx, qword [rsp + 0xa0]
test rdx, rdx
jne 0x14004c9f6
lea rcx, [rsp + 0x90]
call fcn.1400b1280
lea rcx, [rsp + 0xc0]
call fcn.1400b1280
test bl, 0x19
jne 0x14004c3a1
test byte [0x14032a2b0], 0x19
jne 0x14004cccb
cmp rdi, rbp
seta r8b
mov rcx, qword [rsi + 0xa8]
mov rdx, rsi
call fcn.1400b1040
test r13b, r13b
jne 0x14004c4c9
test byte [rsp + 0x5f], 0x19
jne 0x14004c3c4
mov rcx, qword [rsp + 0xe8]
xor rcx, rsp
call fcn.14013d520
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 0x14004c20d
mov rax, qword [rsp + 0x60]
cmp byte [rax], 0
je 0x14004c32d
mov rcx, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x78]
mov r8, qword [rsp + 0x70]
call fcn.14018add0
jmp 0x14004c32d
mov rax, qword [rsp + 0x68]
cmp byte [rax], 0
je 0x14004c360
mov rcx, qword [rsp + 0x68]
mov rdx, qword [rsp + 0x88]
mov r8, qword [rsp + 0x80]
call fcn.14018add0
jmp 0x14004c360
mov dword [rsi + 0xb8], 1
cmp byte [rsi + 0xbc], 0
je 0x14004c410
cmp byte [rdi], 0
je 0x14004c43f
mov rax, qword [rdi + 8]
mov qword [rsi + 0xc0], rax
mov r13b, 1
cmp byte [rsi + 0xbd], 0
je 0x14004c246
lea rdi, [rsp + 0xc0]
mov rcx, rdi
call fcn.1400c5f20
mov rax, qword [rdi]
mov qword [rsi + 0xd0], rax
jmp 0x14004c246
mov rax, qword [fcn.1400c65b0]
lea rcx, [0x140038c30]
cmp rax, rcx
jne 0x14004ce9a
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
jge 0x14004c4a5
imul rax, rax, 0xf4240
cqo
idiv qword [0x14033afc8]
cmp byte [rdi], 0
mov qword [rdi + 8], rax
jne 0x14004c409
mov byte [rdi], 1
jmp 0x14004c409
mov rcx, qword [0x14033afc8]
cqo
idiv rcx
imul r8, rax, 0xf4240
imul rax, rdx, 0xf4240
cqo
idiv rcx
add rax, r8
jmp 0x14004c490
cmp dword [r12 + 0x88], 0
je 0x14004c5a5
test byte [0x14032a2b0], 0x19
jne 0x14004c793
mov rax, qword [rsi + 0xa8]
mov rdi, qword [rax + 0x180]
test rdi, rdi
je 0x14004c359
mov ecx, 1
lock xadd dword [rdi], ecx
test ecx, ecx
jle 0x14004cef8
cmp ecx, 0x7fffffff
je 0x14004cefb
lea r8, [rsi + 0xb8]
mov rax, qword [rax + 0x180]
mov rax, qword [rax + 8]
mov rcx, rdi
mov rdx, rsi
call qword [case.0x14017aab5.0]
lock dec dword [rdi]
jne 0x14004c359
mov rax, qword [rdi + 0x10]
mov rcx, rdi
call qword [case.0x14017aab5.0]
jmp 0x14004c359
lea rcx, [rsp + 0x90]
call fcn.1400dd880
lea rcx, [rsp + 0xc0]
call fcn.1400dd880
test bpl, 0x19
je 0x14004c4d8
cmp byte [rdi], 0
je 0x14004c4d8
mov rcx, rdi
mov rdx, rbx
mov r8, r15
call fcn.14018add0
jmp 0x14004c4d8
movups xmmword [r14], xmm0
mov qword [r14 + 0x10], 0
xor eax, eax
jmp 0x14004c6a3
mov bpl, byte [0x14032a2b0]
test bpl, 0x19
jne 0x14004c8e3
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 0x14004c592
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 0x14004cf0a
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 0x14004c6a3
xor edx, edx
mov r8, qword [rax]
mov r9, qword [rax + 8]
sub r9, r8
sar r9, 3
cmp r9, rdx
jbe 0x14004cf01
cmp qword [r8 + rdx*8], 0
je 0x14004cf23
xorps xmm0, xmm0
movaps xmmword [rsp + 0xa0], xmm0
movaps xmmword [rsp + 0x90], xmm0
mov qword [rsp + 0xb0], 0
test rax, rax
je 0x14004c552
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 0x14004c552
mov rdx, qword [rax]
mov rax, qword [rax + 8]
sub rax, rdx
sar rax, 3
cmp rax, rcx
jbe 0x14004ced9
mov rcx, qword [rdx + rcx*8]
mov rdx, qword [rsi + 0xc0]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x14017aab5.0]
mov rax, qword [rsp + 0xd0]
test rax, rax
je 0x14004c552
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 0x14004c6cb
mov r8, qword [rax]
mov r9, qword [rax + 8]
sub r9, r8
sar r9, 3
cmp r9, rcx
jbe 0x14004cedc
cmp qword [r8 + rcx*8], 0
jne 0x14004c6cb
jmp 0x14004cedf
mov rax, qword [0x14032a8e8]
lea rcx, [0x140038c30]
cmp rax, rcx
jne 0x14004ceb3
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 0x14004c7f8
mov rcx, qword [0x14033afc8]
cqo
idiv rcx
imul r8, rax, 0xf4240
imul rax, rdx, 0xf4240
cqo
idiv rcx
add rax, r8
jmp 0x14004c808
imul rax, rax, 0xf4240
cqo
idiv qword [0x14033afc8]
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, [0x14032a2b0]
lea r8, str.SequenceManager.QueueOnTaskStarted
mov cl, 0x58
xor r9d, r9d
call fcn.140189ab0
mov rdi, rax
mov rax, qword [rsi + 0xa8]
mov rbx, qword [rax + 0x180]
test rbx, rbx
je 0x14004c8bb
mov ecx, 1
lock xadd dword [rbx], ecx
test ecx, ecx
jle 0x14004cf04
cmp ecx, 0x7fffffff
je 0x14004cf07
lea r8, [rsi + 0xb8]
mov rax, qword [rax + 0x180]
mov rax, qword [rax + 8]
mov rcx, rbx
mov rdx, rsi
call qword [case.0x14017aab5.0]
lock dec dword [rbx]
jne 0x14004c8bb
mov rax, qword [rbx + 0x10]
mov rcx, rbx
call qword [case.0x14017aab5.0]
cmp byte [0x14032a2b0], 0
je 0x14004c359
lea rcx, [0x14032a2b0]
lea rdx, str.SequenceManager.QueueOnTaskStarted
mov r8, rdi
call fcn.14018add0
jmp 0x14004c359
mov rax, qword [0x14032a8e8]
lea rcx, [0x140038c30]
cmp rax, rcx
jne 0x14004cec6
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 0x14004c948
mov rcx, qword [0x14033afc8]
cqo
idiv rcx
imul r8, rax, 0xf4240
imul rax, rdx, 0xf4240
cqo
idiv rcx
add rax, r8
jmp 0x14004c958
imul rax, rax, 0xf4240
cqo
idiv qword [0x14033afc8]
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, [0x14032a2b0]
lea rbx, str.SequenceManager.WillProcessTaskTimeObservers
mov cl, 0x58
mov rdx, rdi
mov r8, rbx
xor r9d, r9d
call fcn.140189ab0
mov r15, rax
jmp 0x14004c5bb
int3
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 0x14004c2fd
mov rdx, qword [rsp + 0xa0]
mov r8, qword [rsp + 0xa8]
jmp 0x14004ca29
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 0x14004c30e
mov rcx, qword [rsp + 0xd8]
cmp rax, rdx
jne 0x14004ca37
cmp rcx, r8
je 0x14004c30e
mov rdx, qword [rax]
mov rax, qword [rax + 8]
sub rax, rdx
sar rax, 3
cmp rax, rcx
jbe 0x14004cad3
cmp rdi, rbp
seta r8b
mov rcx, qword [rdx + rcx*8]
mov rax, qword [rcx]
mov rax, qword [rax]
mov rdx, rsi
call qword [case.0x14017aab5.0]
mov rax, qword [rsp + 0xd0]
test rax, rax
je 0x14004c2f4
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 0x14004c2f4
mov r8, qword [rax]
mov r9, qword [rax + 8]
sub r9, r8
sar r9, 3
cmp r9, rcx
jbe 0x14004c9b6
cmp qword [r8 + rcx*8], 0
jne 0x14004c2f4
jmp 0x14004cad6
int3
inc rcx
mov qword [rsp + 0xd8], rcx
cmp rdx, rcx
jne 0x14004caaf
jmp 0x14004c2f4
lea rcx, [rsp + 0xc0]
call qword [case.0x14017aab5.0]
jmp 0x14004cb74
mov rax, qword [0x14032a8e8]
lea rcx, [0x140038c30]
cmp rax, rcx
jne 0x14004caeb
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 0x14004cb5c
mov rcx, qword [0x14033afc8]
cqo
idiv rcx
imul r8, rax, 0xf4240
imul rax, rdx, 0xf4240
cqo
idiv rcx
add rax, r8
jmp 0x14004cb6c
imul rax, rax, 0xf4240
cqo
idiv qword [0x14033afc8]
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, [0x14032a2b0]
lea r8, str.SequenceManagerImpl::NotifyWillProcessTaskObservers
mov cl, 0x58
mov qword [rsp + 0x68], rdx
mov qword [rsp + 0x88], r8
xor r9d, r9d
call fcn.140189ab0
mov qword [rsp + 0x80], rax
jmp 0x14004c1f9
lea rcx, [rsp + 0xc0]
call qword [case.0x14017aab5.0]
jmp 0x14004cc5f
mov rax, qword [0x14032a8e8]
lea rcx, [0x140038c30]
cmp rax, rcx
jne 0x14004cbd6
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 0x14004cc47
mov rcx, qword [0x14033afc8]
cqo
idiv rcx
imul r8, rax, 0xf4240
imul rax, rdx, 0xf4240
cqo
idiv rcx
add rax, r8
jmp 0x14004cc57
imul rax, rax, 0xf4240
cqo
idiv qword [0x14033afc8]
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, [0x14032a2b0]
lea r8, str.SequenceManager.WillProcessTaskObservers
mov cl, 0x58
mov qword [rsp + 0x60], rdx
mov qword [rsp + 0x78], r8
xor r9d, r9d
call fcn.140189ab0
mov qword [rsp + 0x70], rax
jmp 0x14004c288
lea rcx, [rsp + 0xc0]
call qword [case.0x14017aab5.0]
jmp 0x14004cd44
mov rax, qword [0x14032a8e8]
lea rcx, [0x140038c30]
cmp rax, rcx
jne 0x14004ccbb
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 0x14004cd2c
mov rcx, qword [0x14033afc8]
cqo
idiv rcx
imul r8, rax, 0xf4240
imul rax, rdx, 0xf4240
cqo
idiv rcx
add rax, r8
jmp 0x14004cd3c
imul rax, rax, 0xf4240
cqo
idiv qword [0x14033afc8]
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, [0x14032a2b0]
lea r8, str.SequenceManager.QueueNotifyWillProcessTask
mov cl, 0x58
xor r9d, r9d
call fcn.140189ab0
mov rdi, rax
mov rcx, qword [rsi + 0xa8]
mov rdx, rsi
mov r8d, ebx
call fcn.1400b1040
cmp byte [0x14032a2b0], 0
je 0x14004c350
lea rcx, [0x14032a2b0]
lea rdx, str.SequenceManager.QueueNotifyWillProcessTask
mov r8, rdi
call fcn.14018add0
jmp 0x14004c350
mov rdx, qword [r12 + 0x1c0]
sub rdx, qword [r12 + 0x1b8]
sar rdx, 3
jmp 0x14004ce36
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 0x14004cdcf
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 0x14004c2d5
xor edx, edx
mov r8, qword [rax]
mov r9, qword [rax + 8]
sub r9, r8
sar r9, 3
cmp r9, rdx
jbe 0x14004cefe
cmp qword [r8 + rdx*8], 0
jne 0x14004c2d5
inc rdx
mov qword [rsp + 0xd8], rdx
cmp rcx, rdx
jne 0x14004ce63
jmp 0x14004c2d5
lea rbx, [rsp + 0x90]
mov rcx, rbx
call qword [case.0x14017aab5.0]
mov rax, qword [rbx]
jmp 0x14004c490
lea rcx, [rsp + 0xc0]
call qword [case.0x14017aab5.0]
jmp 0x14004c810
lea rcx, [rsp + 0xc0]
call qword [case.0x14017aab5.0]
jmp 0x14004c960
int3
int3
inc rcx
mov qword [rsp + 0xd8], rcx
cmp rdx, rcx
jne 0x14004c76c
jmp 0x14004c6cb
int3
int3
int3
int3
int3
int3
mov rdx, qword [r12 + 0x1f8]
sub rdx, qword [r12 + 0x1f0]
sar rdx, 3
jmp 0x14004c658
inc rdx
mov qword [rsp + 0xd8], rdx
cmp rcx, rdx
jne 0x14004c681
jmp 0x14004c6a3