Function at 0x1400c2360
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0xd0
mov rax, qword [0x140260028]
xor rax, rsp
mov qword [rsp + 0xc8], rax
mov rax, qword [rcx + 0xc0]
cmp qword [rcx + 0xb8], rax
je 0x1400c255e
mov rsi, rdx
mov rdi, rcx
mov eax, dword [rax - 0x38]
test eax, eax
je 0x1400c257e
cmp eax, 2
je 0x1400c2b12
cmp qword [rdi + 0x80], 0
je 0x1400c2537
cmp qword [rdi + 0x68], 0
je 0x1400c2537
mov rax, qword [rdi + 0xa8]
test rax, rax
je 0x1400c2af6
mov rcx, qword [rax + 0xc0]
sub rcx, qword [rax + 0xb8]
cmp rcx, 0x80
jne 0x1400c2537
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x40], rax
movzx eax, byte [rsi + 8]
test al, al
jne 0x1400c2484
mov rax, qword [fcn.140144d80]
lea rcx, [0x140136f50]
cmp rax, rcx
jne 0x1400c29e1
mov qword [rsp + 0x50], 0
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rsp + 0x50]
movabs rcx, 0x8637bd05af7
cmp rax, rcx
jge 0x1400c2c42
imul rax, rax, 0xf4240
cqo
idiv qword [0x140272470]
mov qword [rsp + 0x50], rax
movzx eax, byte [rsi + 8]
cmp al, 1
je 0x1400c2bef
test rsi, rsi
je 0x1400c2af4
mov rax, qword [rsp + 0x50]
mov qword [rsi], rax
mov byte [rsi + 8], 1
mov al, 1
test al, al
je 0x1400c2af4
lea r14, [rdi + 0x68]
mov rax, qword [rsi]
mov qword [rsp + 0x40], rax
mov rcx, qword [r14]
xor edx, edx
cmp rax, rcx
setns dl
movabs r15, 0x7fffffffffffffff
add rdx, r15
sub rax, rcx
cmovo rax, rdx
cmp rax, 0x1c9c37f
jg 0x1400c2516
movabs rcx, 0x8000000000000001
lea r8, [rax + rcx]
mov rdx, qword [rdi + 0x30]
cmp r8, 1
jbe 0x1400c2b3f
lea rcx, [rdx + rax]
sar rcx, 0x3f
movabs r8, 0x8000000000000000
xor r8, rcx
add rdx, rax
cmovo rdx, r8
mov qword [rdi + 0x30], rdx
cmp rdx, 0x186a0
jge 0x1400c29f1
cmp qword [rdi + 0xa8], 0
je 0x1400c2af9
movzx eax, byte [0x14027206a]
test al, al
setne bl
jne 0x1400c2b65
mov byte [rdi + 0xa0], bl
mov rax, qword [rsp + 0x40]
mov qword [rdi + 0x68], rax
mov r14, qword [rdi + 0xc0]
cmp qword [rdi + 0xb8], r14
je 0x1400c2af4
cmp dword [r14 - 0x38], 0
mov dword [r14 - 0x38], 2
je 0x1400c2660
mov rcx, qword [rsp + 0xc8]
xor rcx, rsp
call fcn.140149190
nop
add rsp, 0xd0
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
cmp qword [rdi + 0x80], 0
je 0x1400c2537
mov rax, qword [rdi + 0xa8]
test rax, rax
je 0x1400c2b62
mov rcx, qword [rax + 0xc0]
sub rcx, qword [rax + 0xb8]
cmp rcx, 0x80
jne 0x1400c2537
movzx eax, byte [rsi + 8]
test al, al
jne 0x1400c2630
mov rax, qword [fcn.140144d80]
lea rcx, [0x140136f50]
cmp rax, rcx
jne 0x1400c2a47
lea rbx, [rsp + 0x50]
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 0x1400c2cb9
imul rax, rax, 0xf4240
cqo
idiv qword [0x140272470]
mov qword [rsp + 0x50], rax
mov al, byte [rsi + 8]
cmp al, 1
je 0x1400c2cac
test rsi, rsi
je 0x1400c2af4
mov rax, qword [rsp + 0x50]
mov qword [rsi], rax
mov byte [rsi + 8], 1
mov al, 1
test al, al
je 0x1400c2af4
mov rax, qword [rsi]
mov qword [rdi + 0x60], rax
mov qword [rdi + 0x68], rax
mov qword [rsp + 0x48], 0xaa
movzx eax, byte [0x14027206a]
test al, al
je 0x1400c2537
jmp 0x1400c2bfc
cmp qword [r14 - 0x78], 0
jne 0x1400c2afc
cmp qword [r14 - 0x70], 0
jne 0x1400c2aff
lea rdi, [r14 - 0x80]
cmp qword [rdi], 0
jne 0x1400c2882
mov eax, dword [0x140278b08]
mov ecx, dword [0x14026ee18]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400c2986
mov rax, qword [r14 - 0x30]
test rax, rax
je 0x1400c2b02
cmp byte [0x140278b04], 1
jne 0x1400c271d
cmp byte [rax + 0x18], 0
jne 0x1400c2b05
movsd xmm0, qword [0x140233560]
mov rax, qword [r14 - 0x48]
mov rcx, qword [r14 - 0x40]
mov qword [r14 - 0x48], rcx
mov rdx, rax
shl rdx, 0x17
xor rdx, rax
mov rax, rcx
shr rax, 0x1a
xor rax, rcx
xor rax, rdx
shr rdx, 0x11
xor rdx, rax
mov qword [r14 - 0x40], rdx
add rdx, rcx
shr rdx, 0xb
cvtsi2sd xmm1, rdx
mulsd xmm1, qword [0x140233558]
ucomisd xmm0, xmm1
ja 0x1400c27da
mov qword [rsp + 0x38], 0xb
movzx eax, byte [0x140271fcb]
test al, al
jne 0x1400c2c69
mov rsi, qword [r14 - 0x10]
inc rsi
mov qword [r14 - 0x10], rsi
mov eax, dword [0x140279758]
mov ecx, dword [0x14026ee18]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400c27ab
cmp dword [r14 - 0x18], 0
je 0x1400c27a6
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov eax, eax
movabs r9, 0x100000000
or r9, rax
mov byte [rsp + 0x50], 0
mov byte [rsp + 0x58], 0
mov rdx, qword [r14 - 0x20]
mov qword [rsp + 0x20], rsi
lea rcx, [0x140278dd0]
lea r8, [rsp + 0x50]
call fcn.140002800
jmp 0x1400c255e
xor r9d, r9d
jmp 0x1400c277d
lea rcx, [0x140279758]
call fcn.1401467a0
cmp dword [0x140279758], 0xffffffff
jne 0x1400c2761
lea rcx, [0x140278dd0]
call fcn.1400029a0
lea rcx, [0x140279758]
call fcn.140146740
jmp 0x1400c2761
mov al, byte [rsi + 8]
test al, al
jne 0x1400c285a
mov rax, qword [fcn.140144d80]
lea rcx, [0x140136f50]
cmp rax, rcx
jne 0x1400c2ad4
lea rbx, [rsp + 0x50]
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 0x1400c2d5a
imul rax, rax, 0xf4240
cqo
idiv qword [0x140272470]
mov qword [rsp + 0x50], rax
mov al, byte [rsi + 8]
cmp al, 1
je 0x1400c2ce0
test rsi, rsi
je 0x1400c2af4
mov rax, qword [rsp + 0x50]
mov qword [rsi], rax
mov byte [rsi + 8], 1
mov al, 1
test al, al
je 0x1400c2af4
mov rax, qword [rsi]
mov qword [r14 - 0x78], rax
lea rbx, [rsp + 0x50]
mov rcx, rbx
call fcn.1400097d0
mov rax, qword [rbx]
mov qword [r14 - 0x70], rax
jmp 0x1400c271d
mov al, byte [rsi + 8]
test al, al
jne 0x1400c2902
mov rax, qword [fcn.140144d80]
lea rcx, [0x140136f50]
cmp rax, rcx
jne 0x1400c2ae4
lea rbx, [rsp + 0x50]
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 0x1400c2d81
imul rax, rax, 0xf4240
cqo
idiv qword [0x140272470]
mov qword [rsp + 0x50], rax
mov al, byte [rsi + 8]
cmp al, 1
je 0x1400c2ced
test rsi, rsi
je 0x1400c2af4
mov rax, qword [rsp + 0x50]
mov qword [rsi], rax
mov byte [rsi + 8], 1
mov al, 1
test al, al
je 0x1400c2af4
mov rbx, qword [rsi]
mov rax, qword [r14 - 0x80]
xor ecx, ecx
cmp rbx, rax
setns cl
movabs rdx, 0x7fffffffffffffff
add rdx, rcx
sub rbx, rax
movabs r15, 0x8000000000000001
cmovo rbx, rdx
lea rdx, str.Scheduling.ThreadController.IdleDuration
mov rcx, rdi
mov r8, rbx
mov r9, rbx
call fcn.1400050f0
mov qword [r14 - 0x80], 0
lea rcx, [rbx + r15]
mov rax, qword [r14 - 0x68]
cmp rcx, 2
jb 0x1400c2cfa
lea rcx, [rax + rbx]
sar rcx, 0x3f
btc rcx, 0x3f
add rax, rbx
cmovo rax, rcx
mov rbx, rax
mov qword [r14 - 0x68], rbx
jmp 0x1400c2684
lea rcx, [0x140278b08]
call fcn.1401467a0
cmp dword [0x140278b08], 0xffffffff
jne 0x1400c26a9
mov eax, dword [0x140272424]
mov ecx, dword [0x14026ee18]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400c2a57
mov al, byte [0x140272420]
mov byte [0x140278b04], al
lea rcx, [0x140278b08]
call fcn.140146740
jmp 0x1400c26a9
lea rcx, [rsp + 0x50]
call qword [0x1402529a0]
jmp 0x1400c2461
cvtsi2sd xmm0, rdx
divsd xmm0, qword [0x1402476a8]
cvttsd2si ebx, xmm0
mov rcx, qword [rdi + 0x80]
mov rax, qword [rcx]
mov rax, qword [rax + 0x30]
mov edx, 2
mov r8d, ebx
call qword [0x1402529a0]
movsxd rax, ebx
imul rax, rax, 0x3e8
mov rcx, qword [rdi + 0x30]
xor edx, edx
cmp rcx, rax
setns dl
add rdx, r15
sub rcx, rax
cmovo rcx, rdx
mov qword [rdi + 0x30], rcx
jmp 0x1400c2508
lea rcx, [rsp + 0x50]
call qword [0x1402529a0]
jmp 0x1400c260e
lea rcx, [0x140272424]
call fcn.1401467a0
cmp dword [0x140272424], 0xffffffff
jne 0x1400c29c4
xorpd xmm0, xmm0
lea rbx, [rsp + 0x50]
movupd xmmword [rbx + 0x1f], xmm0
movapd xmmword [rbx + 0x10], xmm0
movapd xmmword [rbx], xmm0
mov rax, qword [str.unknown]
mov qword [rbx + 0x2f], rax
mov rax, qword [0x140247581]
mov qword [rbx + 0x34], rax
movupd xmmword [rbx + 0x3c], xmm0
movupd xmmword [rbx + 0x4c], xmm0
movupd xmmword [rbx + 0x5c], xmm0
mov byte [rbx + 0x6c], 0
mov rcx, rbx
xor edx, edx
call fcn.140049850
mov al, byte [rbx + 0x2d]
mov byte [0x140272420], al
lea rcx, [0x140272424]
call fcn.140146740
jmp 0x1400c29c4
lea rcx, [rsp + 0x50]
call qword [0x1402529a0]
jmp 0x1400c2838
lea rcx, [rsp + 0x50]
call qword [0x1402529a0]
jmp 0x1400c28e0
ud2
int3
int3
int3
int3
int3
movsd xmm0, qword [0x140222a08]
jmp 0x1400c26d1
lea rcx, [rdi + 0xb8]
lea r8, [rsp + 0x48]
mov byte [r8], 1
lea rdx, [rsp + 0x50]
mov dword [rdx], 2
mov qword [rsp + 0x20], rsi
mov r9, rdi
call fcn.1401b51b0
jmp 0x1400c255e
lea r8, [rdx + rcx]
cmp r8, 2
setae r8b
cmp rdx, rax
sete al
or al, r8b
je 0x1400c2e10
dec rcx
jmp 0x1400c2a3e
int3
cmp byte [rdi + 0xa0], 0
jne 0x1400c2b85
mov qword [rsp + 0x38], 0xaa
mov al, byte [0x14027206a]
test al, al
jne 0x1400c2da8
mov qword [rsp + 0x48], 0xaa
mov al, byte [0x14027206a]
test al, al
jne 0x1400c2d15
mov qword [rsp + 0x48], 0xaa
mov al, byte [0x14027206a]
test al, al
je 0x1400c2528
cmp byte [rdi + 0x98], 0
je 0x1400c2af4
movzx ecx, al
lea r9, [rdi + 0x88]
lea r8, [rsp + 0x50]
mov qword [r8], 0
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x48]
call fcn.1401b5950
jmp 0x1400c2528
mov rcx, qword [rsp + 0x50]
mov qword [rsi], rcx
jmp 0x1400c2484
cmp byte [rdi + 0x98], 0
je 0x1400c2af4
lea rdx, [rdi + 0x60]
movzx ecx, al
lea rax, [rdi + 0x88]
lea r8, [rsp + 0x50]
mov qword [r8], 0
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x48]
mov r9d, 2
call fcn.140012af0
jmp 0x1400c2537
mov rcx, qword [0x140272470]
cqo
idiv rcx
imul r8, rax, 0xf4240
imul rax, rdx, 0xf4240
cqo
idiv rcx
add rax, r8
jmp 0x1400c245c
movzx ebx, al
lea r15, [rsp + 0x50]
mov qword [r15], rdi
lea rdi, [rsp + 0x48]
mov rcx, rsi
mov rdx, rdi
call fcn.140139960
lea rax, str.ThreadController_active
lea r8, [rsp + 0x40]
mov qword [r8], rax
mov qword [rsp + 0x20], r15
lea rdx, [rsp + 0x38]
mov ecx, ebx
mov r9, rdi
call fcn.1401b5620
jmp 0x1400c2735
mov rcx, qword [rsp + 0x50]
mov qword [rsi], rcx
jmp 0x1400c2630
mov rcx, qword [0x140272470]
cqo
idiv rcx
imul r8, rax, 0xf4240
imul rax, rdx, 0xf4240
cqo
idiv rcx
add rax, r8
jmp 0x1400c2609
mov rcx, qword [rsp + 0x50]
mov qword [rsi], rcx
jmp 0x1400c285a
mov rcx, qword [rsp + 0x50]
mov qword [rsi], rcx
jmp 0x1400c2902
add r15, rax
cmp r15, 2
setae cl
cmp rax, rbx
sete al
or al, cl
jne 0x1400c297d
int3
cmp byte [rdi + 0x98], 0
je 0x1400c2af4
movzx ecx, al
lea rax, [rdi + 0x88]
lea rdx, str.PumpOverhead
lea r8, [rsp + 0x50]
mov qword [r8], rdx
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x48]
mov r9d, 1
call fcn.140012af0
jmp 0x1400c2b9c
mov rcx, qword [0x140272470]
cqo
idiv rcx
imul r8, rax, 0xf4240
imul rax, rdx, 0xf4240
cqo
idiv rcx
add rax, r8
jmp 0x1400c2833
mov rcx, qword [0x140272470]
cqo
idiv rcx
imul r8, rax, 0xf4240
imul rax, rdx, 0xf4240
cqo
idiv rcx
add rax, r8
jmp 0x1400c28db
mov rcx, 0xfffffffffff0bdc0
add rcx, qword [rdi + 0x68]
movabs rdx, 0x8000000000000000
cmovno rdx, rcx
mov qword [rsp + 0x50], rdx
cmp byte [rdi + 0x98], 0
je 0x1400c2af4
movzx ecx, al
lea rax, [rdi + 0x88]
lea rdx, str.MessagePumpPhases
lea r8, [rsp + 0x48]
mov qword [r8], rdx
lea rdx, [rsp + 0x50]
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x38]
mov r9d, 3
call fcn.140012af0
jmp 0x1400c2b85
int3