Function at 0x140098910
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, 0xc8
mov rdi, rcx
mov rax, qword [0x140231028]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rax, qword [rcx + 0xb8]
mov rcx, qword [rcx + 0xc0]
cmp rax, rcx
je 0x140098b2d
mov rsi, rdx
mov rdx, rcx
sub rdx, rax
shr rdx, 7
cmp edx, r8d
jne 0x14009900b
cmp qword [rdi + 0x80], 0
je 0x140098b0a
cmp qword [rdi + 0x68], 0
je 0x140098b0a
mov rax, qword [rdi + 0xa8]
test rax, rax
je 0x140098ff2
mov rcx, qword [rax + 0xc0]
sub rcx, qword [rax + 0xb8]
cmp rcx, 0x80
jne 0x140098b0a
movzx r14d, byte [rdi + 0x78]
test r14b, r14b
jne 0x140098b52
mov byte [rdi + 0x78], 1
mov ebx, 5
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x40], rax
movzx eax, byte [rsi + 8]
test al, al
jne 0x140098a52
mov rax, qword [fcn.1400b3290]
lea rcx, [0x1400b3340]
cmp rax, rcx
jne 0x140098f32
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 0x140099123
imul rax, rax, 0xf4240
cqo
idiv qword [0x1402439e0]
mov qword [rsp + 0x50], rax
movzx eax, byte [rsi + 8]
cmp al, 1
je 0x140099077
test rsi, rsi
je 0x140099064
mov rax, qword [rsp + 0x50]
mov qword [rsi], rax
mov byte [rsi + 8], 1
mov al, 1
test al, al
je 0x140098ff8
lea r15, [rdi + 0x68]
mov rax, qword [rsi]
mov qword [rsp + 0x40], rax
mov rcx, qword [r15]
xor edx, edx
cmp rax, rcx
setns dl
movabs r13, 0x7fffffffffffffff
add rdx, r13
sub rax, rcx
cmovo rax, rdx
cmp rax, 0x1c9c37f
jg 0x140098ae9
movabs rcx, 0x8000000000000001
mov r12d, ebx
lea r8, [rax + rcx]
mov rdx, qword [rdi + r12*8 + 0x20]
cmp r8, 1
jbe 0x140099041
lea rcx, [rdx + rax]
sar rcx, 0x3f
movabs r8, 0x8000000000000000
xor r8, rcx
add rdx, rax
cmovo rdx, r8
mov qword [rdi + r12*8 + 0x20], rdx
cmp rdx, 0x186a0
jge 0x140098edd
cmp qword [rdi + 0xa8], 0
je 0x140098ff5
movzx eax, byte [0x14024362c]
test al, al
setne bl
jne 0x140099084
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 0x140098fdf
cmp dword [r14 - 0x38], 0
mov dword [r14 - 0x38], 1
je 0x140098b5c
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.14012c2d0
nop
add rsp, 0xc8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov ebx, 3
jmp 0x1400989c0
cmp qword [r14 - 0x78], 0
jne 0x14009902b
cmp qword [r14 - 0x70], 0
jne 0x14009902e
lea rdi, [r14 - 0x80]
cmp qword [rdi], 0
jne 0x140098d7e
mov eax, dword [0x140249808]
mov ecx, dword [0x1402403d0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140098e82
mov rax, qword [r14 - 0x30]
test rax, rax
je 0x140099031
cmp byte [0x140249804], 1
jne 0x140098c19
cmp byte [rax + 0x18], 0
jne 0x140099034
movsd xmm0, qword [0x140205020]
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 [0x140205018]
ucomisd xmm0, xmm1
ja 0x140098cd6
mov qword [rsp + 0x38], 0xb
movzx eax, byte [0x14024358b]
test al, al
jne 0x14009914a
mov rsi, qword [r14 - 0x10]
inc rsi
mov qword [r14 - 0x10], rsi
mov eax, dword [0x14024a410]
mov ecx, dword [0x1402403d0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140098ca7
cmp dword [r14 - 0x18], 0
je 0x140098ca2
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, [0x140249a88]
lea r8, [rsp + 0x50]
call fcn.1400010f0
jmp 0x140098b2d
xor r9d, r9d
jmp 0x140098c79
lea rcx, [0x14024a410]
call fcn.1401299b4
cmp dword [0x14024a410], 0xffffffff
jne 0x140098c5d
lea rcx, [0x140249a88]
call fcn.1400012a0
lea rcx, [0x14024a410]
call fcn.140129a1c
jmp 0x140098c5d
mov al, byte [rsi + 8]
test al, al
jne 0x140098d56
mov rax, qword [fcn.1400b3290]
lea rcx, [0x1400b3340]
cmp rax, rcx
jne 0x140098fbf
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 0x140099268
imul rax, rax, 0xf4240
cqo
idiv qword [0x1402439e0]
mov qword [rsp + 0x50], rax
mov al, byte [rsi + 8]
cmp al, 1
je 0x1400991cb
test rsi, rsi
je 0x140099064
mov rax, qword [rsp + 0x50]
mov qword [rsi], rax
mov byte [rsi + 8], 1
mov al, 1
test al, al
je 0x140098ff8
mov rax, qword [rsi]
mov qword [r14 - 0x78], rax
lea rbx, [rsp + 0x50]
mov rcx, rbx
call fcn.140012a70
mov rax, qword [rbx]
mov qword [r14 - 0x70], rax
jmp 0x140098c19
mov al, byte [rsi + 8]
test al, al
jne 0x140098dfe
mov rax, qword [fcn.1400b3290]
lea rcx, [0x1400b3340]
cmp rax, rcx
jne 0x140098fcf
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 0x14009928f
imul rax, rax, 0xf4240
cqo
idiv qword [0x1402439e0]
mov qword [rsp + 0x50], rax
mov al, byte [rsi + 8]
cmp al, 1
je 0x1400991d8
test rsi, rsi
je 0x140099064
mov rax, qword [rsp + 0x50]
mov qword [rsi], rax
mov byte [rsi + 8], 1
mov al, 1
test al, al
je 0x140098ff8
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.1400030a0
mov qword [r14 - 0x80], 0
lea rcx, [rbx + r15]
mov rax, qword [r14 - 0x68]
cmp rcx, 2
jb 0x1400991e5
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 0x140098b80
lea rcx, [0x140249808]
call fcn.1401299b4
cmp dword [0x140249808], 0xffffffff
jne 0x140098ba5
mov eax, dword [0x140243994]
mov ecx, dword [0x1402403d0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140098f42
mov al, byte [0x140243990]
mov byte [0x140249804], al
lea rcx, [0x140249808]
call fcn.140129a1c
jmp 0x140098ba5
cvtsi2sd xmm0, rdx
divsd xmm0, qword [0x1402197a0]
cvttsd2si ebp, xmm0
mov rcx, qword [rdi + 0x80]
mov rax, qword [rcx]
mov rax, qword [rax + 0x30]
mov edx, ebx
mov r8d, ebp
call qword [0x140223bc8]
movsxd rax, ebp
imul rax, rax, 0x3e8
mov rcx, qword [rdi + r12*8 + 0x20]
xor edx, edx
cmp rcx, rax
setns dl
add rdx, r13
sub rcx, rax
cmovo rcx, rdx
mov qword [rdi + r12*8 + 0x20], rcx
jmp 0x140098adb
lea rcx, [rsp + 0x50]
call qword [0x140223bc8]
jmp 0x140098a2f
lea rcx, [0x140243994]
call fcn.1401299b4
cmp dword [0x140243994], 0xffffffff
jne 0x140098ec0
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 [0x14021970c]
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.140048010
mov al, byte [rbx + 0x2d]
mov byte [0x140243990], al
lea rcx, [0x140243994]
call fcn.140129a1c
jmp 0x140098ec0
lea rcx, [rsp + 0x50]
call qword [0x140223bc8]
jmp 0x140098d34
lea rcx, [rsp + 0x50]
call qword [0x140223bc8]
jmp 0x140098ddc
lea rcx, [0x14020233c]
lea rdx, str....._third_partylibc_srcinclude_vector:622:_assertion__empty___failed:_back___called_on_an_empty_vector_n
call fcn.140163630
int3
int3
lea rcx, [0x14020233c]
lea rdx, str....._third_partylibc_srcincludeoptional:800:_assertion_this__has_value___failed:_optional_operator_called_on_a_disengaged_value_n
call fcn.140163630
lea rbx, [rdi + 0xb8]
add rcx, 0xffffffffffffff80
mov rdx, rsi
call fcn.1401979d0
mov rcx, rbx
call fcn.140197a30
jmp 0x140098b0a
int3
int3
int3
movsd xmm0, qword [0x1401f2f88]
jmp 0x140098bcd
lea r8, [rdx + rcx]
cmp r8, 2
setae r8b
cmp rdx, rax
sete al
or al, r8b
je 0x1400992b6
dec rcx
jmp 0x140098f28
lea rcx, [0x14020233c]
lea rdx, str....._third_partylibc_srcinclude__memoryconstruct_at.h:40:_assertion___location___nullptr_failed:_null_pointer_given_to_construct_at_n
call fcn.140163630
mov rcx, qword [rsp + 0x50]
mov qword [rsi], rcx
jmp 0x140098a52
cmp byte [rdi + 0xa0], 0
jne 0x1400990a4
mov qword [rsp + 0x38], 0xac
mov al, byte [0x14024362c]
test al, al
jne 0x140099200
lea rcx, str.NativeTask
lea rax, str.ApplicationTask
test r14b, r14b
cmovne rax, rcx
mov qword [rsp + 0x48], 0xac
mov cl, byte [0x14024362c]
test cl, cl
jne 0x14009918d
mov qword [rsp + 0x48], 0xac
mov al, byte [0x14024362c]
test al, al
je 0x140098afb
cmp byte [rdi + 0x98], 0
je 0x140098ff8
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.140198160
jmp 0x140098afb
mov rcx, qword [0x1402439e0]
cqo
idiv rcx
imul r8, rax, 0xf4240
imul rax, rdx, 0xf4240
cqo
idiv rcx
add rax, r8
jmp 0x140098a2a
movzx ebx, al
lea r15, [rsp + 0x50]
mov qword [r15], rdi
lea rdi, [rsp + 0x48]
mov rcx, rsi
mov rdx, rdi
call fcn.1400a3ab0
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.140197e30
jmp 0x140098c31
cmp byte [rdi + 0x98], 0
je 0x140098ff8
movzx ecx, cl
lea rdx, [rdi + 0x88]
lea r8, [rsp + 0x50]
mov qword [r8], rax
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], rdx
lea rdx, [rsp + 0x48]
mov r9d, 1
call fcn.140019e90
jmp 0x1400990d0
mov rcx, qword [rsp + 0x50]
mov qword [rsi], rcx
jmp 0x140098d56
mov rcx, qword [rsp + 0x50]
mov qword [rsi], rcx
jmp 0x140098dfe
add r15, rax
cmp r15, 2
setae cl
cmp rax, rbx
sete al
or al, cl
jne 0x140098e79
int3
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 0x140098ff8
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.140019e90
jmp 0x1400990a4
mov rcx, qword [0x1402439e0]
cqo
idiv rcx
imul r8, rax, 0xf4240
imul rax, rdx, 0xf4240
cqo
idiv rcx
add rax, r8
jmp 0x140098d2f
mov rcx, qword [0x1402439e0]
cqo
idiv rcx
imul r8, rax, 0xf4240
imul rax, rdx, 0xf4240
cqo
idiv rcx
add rax, r8
jmp 0x140098dd7
int3