Function at 0x1400ba580
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 [0x14033f038]
xor rax, rsp
mov qword [rsp + 0xe8], rax
movabs r15, 0xaaaaaaaaaaaaaaaa
mov al, byte [0x140342240]
mov byte [rsp + 0x5f], al
test al, 0x19
jne 0x1400ba938
xor eax, eax
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x88], r15
mov qword [rsp + 0x80], r15
cmp qword [r12 + 0xb0], 0
jne 0x1400ba992
mov rax, qword [rsi + 0xa8]
cmp byte [rax + 0x200], 0
jne 0x1400baa01
cmp qword [rax + 0x180], 0
jne 0x1400ba790
cmp qword [rax + 0x188], 0
jne 0x1400ba790
cmp dword [r12 + 0x78], 0
jne 0x1400ba63f
cmp qword [r12 + 0x3a0], 0
jne 0x1400ba790
xor r13d, r13d
mov rax, qword [rsi + 0xa8]
cmp byte [rax + 0x201], 0
je 0x1400ba759
mov rbp, qword [rsi + 0x90]
mov rdi, qword [rax + 0x178]
mov bl, byte [0x140342240]
test bl, 0x19
jne 0x1400baa16
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 [0x140301d60]
movaps xmmword [r14], xmm6
mov rax, qword [r12 + 0x340]
xorps xmm0, xmm0
cmp rax, qword [r12 + 0x348]
movaps xmmword [r14 - 0x10], xmm0
jne 0x1400baa70
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 0x1400ba80b
mov rdx, qword [rsp + 0xa0]
test rdx, rdx
jne 0x1400ba848
lea rcx, [rsp + 0x90]
call fcn.140066320
lea rcx, [rsp + 0xc0]
call fcn.140066320
test bl, 0x19
jne 0x1400bab5c
test byte [0x140342240], 0x19
jne 0x1400bab83
cmp rdi, rbp
seta r8b
mov rcx, qword [rsi + 0xa8]
mov rdx, rsi
call fcn.1400660f0
test r13b, r13b
jne 0x1400babdd
test byte [rsp + 0x5f], 0x19
jne 0x1400bab2f
mov rcx, qword [rsp + 0xe8]
xor rcx, rsp
call fcn.140171860
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 dword [rsi + 0xb8], 1
cmp byte [rsi + 0xbc], 0
je 0x1400ba7b3
cmp byte [rdi], 0
je 0x1400ba7e2
mov rax, qword [rdi + 8]
mov qword [rsi + 0xc0], rax
mov r13b, 1
cmp byte [rsi + 0xbd], 0
je 0x1400ba642
lea rdi, [rsp + 0xc0]
mov rcx, rdi
call fcn.14007d8a0
mov rax, qword [rdi]
mov qword [rsi + 0xd0], rax
jmp 0x1400ba642
mov rax, qword [fcn.14007a620]
lea rbx, [rsp + 0xc0]
mov rcx, rbx
call qword [case.0x140211850.0]
cmp byte [rdi], 0
mov rax, qword [rbx]
mov qword [rdi + 8], rax
jne 0x1400ba7ac
mov byte [rdi], 1
jmp 0x1400ba7ac
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 0x1400ba6f9
mov rdx, qword [rsp + 0xa0]
mov r8, qword [rsp + 0xa8]
jmp 0x1400ba87b
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 0x1400ba70a
mov rcx, qword [rsp + 0xd8]
cmp rax, rdx
jne 0x1400ba889
cmp rcx, r8
je 0x1400ba70a
mov rdx, qword [rax]
mov rax, qword [rax + 8]
sub rax, rdx
sar rax, 3
cmp rax, rcx
jbe 0x1400bab29
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.0x140211850.0]
mov rax, qword [rsp + 0xd0]
test rax, rax
je 0x1400ba6f0
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 0x1400ba6f0
mov r8, qword [rax]
mov r9, qword [rax + 8]
sub r9, r8
sar r9, 3
cmp r9, rcx
jbe 0x1400bab2c
cmp qword [r8 + rcx*8], 0
jne 0x1400ba6f0
inc rcx
mov qword [rsp + 0xd8], rcx
cmp rdx, rcx
jne 0x1400ba901
jmp 0x1400ba6f0
mov rax, qword [0x1403411f8]
lea rcx, [0x14003b7a0]
cmp rax, rcx
jne 0x1400bb289
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 0x1400bac54
imul rax, rax, 0xf4240
cqo
idiv qword [0x140354790]
jmp 0x1400bac76
mov rdx, qword [rsi + 0x48]
lea rax, [r12 + 0xf3]
lea rcx, str.0123456789ABCDEF
mov r8, rdx
mov r9d, edx
and r9d, 0xf
mov r9b, byte [r9 + rcx]
mov byte [rax + 3], r9b
shr r8, 4
dec rax
cmp rdx, 0xf
mov rdx, r8
ja 0x1400ba9a8
mov byte [rax + 3], pe_nt_image_headers64
mov word [rax + 1], 0x3020
mov rdx, qword [rsi + 0x20]
mov r8, rdx
mov r9d, edx
and r9d, 0xf
mov r9b, byte [r9 + rcx]
mov byte [rax], r9b
dec rax
shr r8, 4
cmp rdx, 0xf
mov rdx, r8
ja 0x1400ba9d8
mov word [rax - 1], 0x7830
jmp 0x1400ba5f8
mov byte [r12 + 0x428], 1
mov rax, qword [rsi + 0xa8]
jmp 0x1400ba60c
mov rax, qword [0x1403411f8]
lea rcx, [0x14003b7a0]
cmp rax, rcx
jne 0x1400bb29c
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
jge 0x1400bace0
imul rax, rax, 0xf4240
cqo
idiv qword [0x140354790]
jmp 0x1400bad02
lea rax, [r12 + 0x340]
lea rcx, [rsp + 0xc0]
mov qword [rcx + 0x10], rax
lea rax, [r12 + 0x358]
mov qword [rcx + 8], rax
mov rax, qword [r12 + 0x358]
mov qword [rcx], rax
mov qword [rax + 8], rcx
mov qword [r12 + 0x358], rcx
mov qword [rcx + 0x18], 0
mov rdx, 0xffffffffffffffff
cmp dword [r12 + 0x370], 0
jne 0x1400bb2ee
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 0x1400ba6d1
xor edx, edx
mov r8, qword [rax]
mov r9, qword [rax + 8]
sub r9, r8
sar r9, 3
cmp r9, rdx
jbe 0x1400bb30a
cmp qword [r8 + rdx*8], 0
jne 0x1400ba6d1
inc rdx
mov qword [rsp + 0xd8], rdx
cmp rcx, rdx
jne 0x1400baaf2
jmp 0x1400ba6d1
int3
int3
mov rax, qword [rsp + 0x68]
cmp byte [rax], 0
je 0x1400ba764
mov rcx, qword [rsp + 0x68]
mov rdx, qword [rsp + 0x88]
mov r8, qword [rsp + 0x80]
call fcn.1401b32b0
jmp 0x1400ba764
mov rax, qword [rsp + 0x60]
cmp byte [rax], 0
je 0x1400ba72d
mov rcx, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x78]
mov r8, qword [rsp + 0x70]
call fcn.1401b32b0
jmp 0x1400ba72d
mov rax, qword [0x1403411f8]
lea rcx, [0x14003b7a0]
cmp rax, rcx
jne 0x1400bb2af
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 0x1400bad66
imul rax, rax, 0xf4240
cqo
idiv qword [0x140354790]
jmp 0x1400bad88
cmp dword [r12 + 0x78], 0
je 0x1400bae1b
test byte [0x140342240], 0x19
jne 0x1400bb075
mov rax, qword [rsi + 0xa8]
mov rdi, qword [rax + 0x180]
test rdi, rdi
je 0x1400ba759
mov ecx, 1
lock xadd dword [rdi], ecx
test ecx, ecx
jle 0x1400bb307
lea r8, [rsi + 0xb8]
mov rcx, qword [rax + 0x180]
mov rax, qword [rcx + 8]
mov rdx, rsi
call qword [case.0x140211850.0]
lock dec dword [rdi]
jne 0x1400ba759
mov rax, qword [rdi + 0x10]
mov rcx, rdi
call qword [case.0x140211850.0]
jmp 0x1400ba759
mov rcx, qword [0x140354790]
cqo
idiv rcx
imul r8, rax, 0xf4240
imul rax, rdx, 0xf4240
cqo
idiv rcx
add rax, r8
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, [0x140342240]
lea r8, str.SequenceManagerImpl::NotifyWillProcessTaskObservers
mov cl, 0x58
mov qword [rsp + 0x68], rdx
mov qword [rsp + 0x88], r8
xor r9d, r9d
call fcn.1401b9550
mov qword [rsp + 0x80], rax
jmp 0x1400ba5e9
mov rcx, qword [0x140354790]
cqo
idiv rcx
imul r8, rax, 0xf4240
imul rax, rdx, 0xf4240
cqo
idiv rcx
add rax, r8
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, [0x140342240]
lea r8, str.SequenceManager.WillProcessTaskObservers
mov cl, 0x58
mov qword [rsp + 0x60], rdx
mov qword [rsp + 0x78], r8
xor r9d, r9d
call fcn.1401b9550
mov qword [rsp + 0x70], rax
jmp 0x1400ba684
mov rcx, qword [0x140354790]
cqo
idiv rcx
imul r8, rax, 0xf4240
imul rax, rdx, 0xf4240
cqo
idiv rcx
add rax, r8
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, [0x140342240]
lea r8, str.SequenceManager.QueueNotifyWillProcessTask
mov cl, 0x58
xor r9d, r9d
call fcn.1401b9550
mov rdi, rax
mov rcx, qword [rsi + 0xa8]
mov rdx, rsi
mov r8d, ebx
call fcn.1400660f0
cmp byte [0x140342240], 0
je 0x1400ba750
lea rcx, [0x140342240]
lea rdx, str.SequenceManager.QueueNotifyWillProcessTask
mov r8, rdi
call fcn.1401b32b0
jmp 0x1400ba750
mov bpl, byte [0x140342240]
test bpl, 0x19
jne 0x1400bb1b6
xor edi, edi
mov rbx, r15
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0xe0], rax
movaps xmmword [rsp + 0xd0], xmm6
mov rax, qword [r12 + 0x378]
xorps xmm0, xmm0
cmp rax, qword [r12 + 0x380]
movaps xmmword [rsp + 0xc0], xmm0
je 0x1400baf2b
lea rax, [r12 + 0x378]
mov qword [rsp + 0xd0], rax
lea rax, [r12 + 0x390]
mov qword [rsp + 0xc8], rax
mov rax, qword [r12 + 0x390]
mov qword [rsp + 0xc0], rax
lea rcx, [rsp + 0xc0]
mov qword [rax + 8], rcx
mov qword [r12 + 0x390], rcx
mov qword [rsp + 0xd8], 0
mov rdx, 0xffffffffffffffff
cmp dword [r12 + 0x3a8], 0
jne 0x1400bb30d
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 0x1400baf39
xor edx, edx
mov r8, qword [rax]
mov r9, qword [rax + 8]
sub r9, r8
sar r9, 3
cmp r9, rdx
jbe 0x1400bb326
cmp qword [r8 + rdx*8], 0
jne 0x1400baf39
inc rdx
mov qword [rsp + 0xd8], rdx
cmp rcx, rdx
jne 0x1400baefb
jmp 0x1400baf39
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
je 0x1400bb035
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 0x1400bb035
mov rdx, qword [rax]
mov rax, qword [rax + 8]
sub rax, rdx
sar rax, 3
cmp rax, rcx
jbe 0x1400bb2e8
mov rcx, qword [rdx + rcx*8]
mov rdx, qword [rsi + 0xc0]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140211850.0]
mov rax, qword [rsp + 0xd0]
test rax, rax
je 0x1400bb035
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 0x1400baf61
mov r8, qword [rax]
mov r9, qword [rax + 8]
sub r9, r8
sar r9, 3
cmp r9, rcx
jbe 0x1400bb2eb
cmp qword [r8 + rcx*8], 0
jne 0x1400baf61
inc rcx
mov qword [rsp + 0xd8], rcx
cmp rdx, rcx
jne 0x1400baffe
jmp 0x1400baf61
lea rcx, [rsp + 0x90]
call fcn.1400a6160
lea rcx, [rsp + 0xc0]
call fcn.1400a6160
test bpl, 0x19
je 0x1400babe9
cmp byte [rdi], 0
je 0x1400babe9
mov rcx, rdi
mov rdx, rbx
mov r8, r15
call fcn.1401b32b0
jmp 0x1400babe9
mov rax, qword [0x1403411f8]
lea rcx, [0x14003b7a0]
cmp rax, rcx
jne 0x1400bb2c2
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
jge 0x1400bb0c8
imul rax, rax, 0xf4240
cqo
idiv qword [0x140354790]
jmp 0x1400bb0ea
mov rcx, qword [0x140354790]
cqo
idiv rcx
imul r8, rax, 0xf4240
imul rax, rdx, 0xf4240
cqo
idiv rcx
add rax, r8
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, [0x140342240]
lea r8, str.SequenceManager.QueueOnTaskStarted
mov cl, 0x58
xor r9d, r9d
call fcn.1401b9550
mov rdi, rax
mov rax, qword [rsi + 0xa8]
mov rbx, qword [rax + 0x180]
test rbx, rbx
je 0x1400bb18e
mov ecx, 1
lock xadd dword [rbx], ecx
test ecx, ecx
jle 0x1400bb329
lea r8, [rsi + 0xb8]
mov rcx, qword [rax + 0x180]
mov rax, qword [rcx + 8]
mov rdx, rsi
call qword [case.0x140211850.0]
lock dec dword [rbx]
jne 0x1400bb18e
mov rax, qword [rbx + 0x10]
mov rcx, rbx
call qword [case.0x140211850.0]
cmp byte [0x140342240], 0
je 0x1400ba759
lea rcx, [0x140342240]
lea rdx, str.SequenceManager.QueueOnTaskStarted
mov r8, rdi
call fcn.1401b32b0
jmp 0x1400ba759
mov rax, qword [0x1403411f8]
lea rcx, [0x14003b7a0]
cmp rax, rcx
jne 0x1400bb2d5
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
jge 0x1400bb209
imul rax, rax, 0xf4240
cqo
idiv qword [0x140354790]
jmp 0x1400bb22b
mov rcx, qword [0x140354790]
cqo
idiv rcx
imul r8, rax, 0xf4240
imul rax, rdx, 0xf4240
cqo
idiv rcx
add rax, r8
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, [0x140342240]
lea rbx, str.SequenceManager.WillProcessTaskTimeObservers
mov cl, 0x58
mov rdx, rdi
mov r8, rbx
xor r9d, r9d
call fcn.1401b9550
mov r15, rax
jmp 0x1400bae31
lea rcx, [rsp + 0xc0]
call qword [case.0x140211850.0]
jmp 0x1400bac7e
lea rcx, [rsp + 0xc0]
call qword [case.0x140211850.0]
jmp 0x1400bad0a
lea rcx, [rsp + 0xc0]
call qword [case.0x140211850.0]
jmp 0x1400bad90
lea rcx, [rsp + 0xc0]
call qword [case.0x140211850.0]
jmp 0x1400bb0f2
lea rcx, [rsp + 0xc0]
call qword [case.0x140211850.0]
jmp 0x1400bb233
int3
int3
mov rdx, qword [r12 + 0x348]
sub rdx, qword [r12 + 0x340]
sar rdx, 3
jmp 0x1400baac5
int3
int3
mov rdx, qword [r12 + 0x380]
sub rdx, qword [r12 + 0x378]
sar rdx, 3
jmp 0x1400baed2
int3
int3