Function at 0x1400432b0
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, 0x1b8
movaps xmmword [rsp + 0x1a0], xmm6
mov qword [rsp + 0xb8], r8
mov rbp, rdx
mov rdi, rcx
mov rax, qword [0x140327038]
xor rax, rsp
mov qword [rsp + 0x198], rax
movabs rcx, 0xaaaaaaaaaaaaaaaa
mov al, byte [0x14032a2b0]
mov byte [rsp + 0x5f], al
test al, 0x19
mov qword [rsp + 0x88], rcx
jne 0x1400439f6
xor eax, eax
mov qword [rsp + 0x70], rax
mov rsi, rcx
mov rax, rcx
mov qword [rsp + 0xa0], rax
mov qword [rsp + 0xa8], rsi
cmp byte [rdi + 0x1a8], 0
je 0x140043884
lea rax, [rdi + 0x1a8]
mov qword [rsp + 0x98], rax
mov r13d, 0xffffffff
lea rax, [rdi + 0x228]
mov qword [rsp + 0x78], rax
lea rax, [rdi + 0x18]
mov qword [rsp + 0x60], rax
movaps xmm6, xmmword [0x1402e6d80]
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x90], rax
xor r15d, r15d
inc r13d
cmp r13d, dword [rdi + 0x184]
jge 0x1400436e3
mov rax, qword [rdi + 0x10]
mov byte [rsp + 0x178], r15b
mov ecx, 0xaaaaaaaa
mov dword [rsp + 0x179], ecx
mov dword [rsp + 0x17c], ecx
mov rcx, qword [rsp + 0x90]
mov qword [rsp + 0x180], rcx
movabs rcx, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x188], rcx
mov qword [rsp + 0x190], rax
cmp byte [rdi + 0x220], 0
je 0x1400433eb
mov rcx, qword [rsp + 0x78]
call fcn.1400b09d0
mov qword [rdi + 0x230], 0
xor esi, esi
mov byte [rdi + 0x238], sil
mov byte [rdi + 0x228], sil
mov byte [rdi + 0x220], 1
mov rax, qword [rdi + 0x1e8]
mov ecx, dword [rax]
lea edx, [rcx + 1]
cmp edx, 1
adc ecx, 1
mov dword [rax], ecx
mov rcx, qword [rsp + 0x60]
lea rbx, [rsp + 0x178]
mov rdx, rbx
call fcn.140045f00
mov r14, qword [rdi + 0xe8]
sub r14, qword [rdi + 0xe0]
shr r14, 6
movzx r9d, byte [rdi + 0x1d8]
movabs r12, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x170], r12
movaps xmmword [rsp + 0x160], xmm6
movaps xmmword [rsp + 0x150], xmm6
mov rcx, qword [rdi + 0x168]
lea rdx, [rsp + 0x150]
mov r8, rbx
call fcn.140048f40
mov qword [rsp + 0x140], r12
movaps xmmword [rsp + 0x130], xmm6
mov rax, qword [rdi + 0x10]
mov byte [rsp + 0x130], sil
mov qword [rsp + 0x148], rax
cmp byte [rsp + 0x150], sil
je 0x140043768
mov rax, qword [rsp + 0x158]
cmp qword [rax + 0x30], 0
jne 0x140043768
mov rdx, qword [rax + 0x28]
mov rcx, qword [rsp + 0x60]
lea r8, [rsp + 0x130]
call fcn.1400443a0
cmp byte [rsp + 0x150], 0
je 0x14004376f
mov qword [rsp + 0xb0], rbp
mov rax, qword [rsp + 0x98]
mov bl, byte [rax]
mov byte [rax], 0
mov bpl, byte [0x14032a0a0]
test bpl, 0x19
jne 0x140043ad4
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x120], rax
movaps xmmword [rsp + 0x110], xmm6
movaps xmmword [rsp + 0x100], xmm6
movaps xmmword [rsp + 0xf0], xmm6
movaps xmmword [rsp + 0xe0], xmm6
movaps xmmword [rsp + 0xd0], xmm6
movaps xmmword [rsp + 0xc0], xmm6
xor eax, eax
mov qword [rsp + 0x68], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
mov r12, rax
mov qword [rsp + 0x80], rax
lea r15, [rdi + 0x1e0]
mov r8, qword [rsp + 0x158]
mov rdx, qword [rdi + 0x10]
lea rsi, [rsp + 0xc0]
mov rcx, rsi
mov r9, r15
call fcn.140001000
cmp byte [rsp + 0x150], 0
je 0x140043bf5
mov rdx, qword [rsp + 0x158]
mov rcx, r15
call fcn.140043c10
mov rcx, rsi
call fcn.140001120
cmp byte [rsp + 0x150], 0
je 0x1400435e5
mov rcx, qword [rsp + 0x160]
test rcx, rcx
jne 0x1400437ee
mov byte [rsp + 0x150], 0
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0xd0], rax
movaps xmmword [rsp + 0xc0], xmm6
mov rax, qword [rdi + 0x10]
mov byte [rsp + 0xc0], 0
mov qword [rsp + 0xd8], rax
mov rcx, qword [rdi + 0x168]
lea rdx, [rsp + 0xc0]
call fcn.140043df0
cmp byte [rdi + 0x220], 0
je 0x14004363a
mov rcx, qword [rsp + 0x78]
call fcn.1400b09d0
mov qword [rdi + 0x230], 0
xor eax, eax
mov byte [rdi + 0x238], al
mov byte [rdi + 0x228], al
mov byte [rdi + 0x220], 1
mov rax, qword [rdi + 0x1e8]
mov ecx, dword [rax]
lea edx, [rcx + 1]
cmp edx, 1
adc ecx, 1
mov dword [rax], ecx
mov rcx, qword [rsp + 0x60]
lea rdx, [rsp + 0xc0]
mov r8d, r14d
call fcn.140044f30
mov r15b, byte [rsp + 0xc0]
test r15b, r15b
je 0x1400436a0
mov rax, qword [rsp + 0xc8]
mov qword [rsp + 0x90], rax
movzx r14d, byte [rdi + 0x180]
test bpl, 0x19
jne 0x14004385c
add r14d, r14d
mov rax, qword [rsp + 0x98]
test rax, rax
mov rbp, qword [rsp + 0xb0]
je 0x1400436cc
mov byte [rax], bl
cmp byte [rsp + 0x150], 0
jne 0x140043833
test r14d, r14d
je 0x14004337f
cmp byte [rdi + 0x180], 0
jne 0x1400437d6
mov eax, 5
xchg dword [rdi + 0x1c0], eax
movzx esi, byte [rdi + 0x1d8]
mov rcx, qword [rdi + 0x168]
mov rbx, qword [rsp + 0xb8]
mov rdx, rbx
call fcn.140046d30
mov rcx, qword [rdi + 0x168]
mov rdx, rbp
mov r8, rbx
mov r9d, esi
call fcn.140044030
test byte [rsp + 0x5f], 0x19
jne 0x140043806
mov rcx, qword [rsp + 0x198]
xor rcx, rsp
call fcn.14013d520
mov rax, rbp
movaps xmm6, xmmword [rsp + 0x1a0]
add rsp, 0x1b8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
xor edx, edx
jmp 0x1400434d2
cmp byte [rdi + 0x220], 0
je 0x140043782
mov rcx, qword [rsp + 0x78]
call fcn.1400b09d0
mov qword [rdi + 0x230], 0
xor eax, eax
mov byte [rdi + 0x238], al
mov byte [rdi + 0x228], al
mov byte [rdi + 0x220], 1
mov rax, qword [rdi + 0x1e8]
mov ecx, dword [rax]
lea edx, [rcx + 1]
cmp edx, 1
adc ecx, 1
mov dword [rax], ecx
mov rcx, qword [rsp + 0x60]
lea rdx, [rsp + 0x130]
mov r8d, r14d
call fcn.140044f30
mov r14d, 2
jmp 0x1400436cc
mov byte [rbp], 0
xorps xmm0, xmm0
movups xmmword [rbp + 8], xmm0
mov qword [rbp + 0x18], 0
jmp 0x14004372e
lock dec dword [rcx]
jne 0x1400435dd
mov rax, qword [rcx + 0x10]
call qword [case.0x14017aab5.0]
jmp 0x1400435dd
mov rax, qword [rsp + 0x70]
cmp byte [rax], 0
je 0x140043739
mov rcx, qword [rsp + 0x70]
mov rdx, qword [rsp + 0xa8]
mov r8, qword [rsp + 0xa0]
call fcn.14018add0
jmp 0x140043739
mov rcx, qword [rsp + 0x160]
test rcx, rcx
je 0x1400436da
lock dec dword [rcx]
jne 0x1400436da
mov rax, qword [rcx + 0x10]
call qword [case.0x14017aab5.0]
jmp 0x1400436da
mov rax, qword [rsp + 0x68]
cmp byte [rax], 0
je 0x1400436b2
mov rcx, qword [rsp + 0x68]
mov rdx, r12
mov r8, qword [rsp + 0x80]
call fcn.14018add0
jmp 0x1400436b2
mov r14, rbp
mov bpl, byte [0x140329260]
test bpl, 0x19
jne 0x14004390e
xor esi, esi
movabs rbx, 0xaaaaaaaaaaaaaaaa
mov rax, qword [rdi + 0x1a0]
movabs rcx, 0x7fffffffffffffff
cmp rax, rcx
jne 0x1400438cc
lea rax, [r14 + 8]
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov qword [rax + 0x10], 0
xor eax, eax
jmp 0x1400438dd
mov rcx, r14
mov qword [r14 + 8], rax
xorps xmm0, xmm0
movups xmmword [r14 + 0x10], xmm0
mov al, 1
mov byte [r14], al
test bpl, 0x19
mov rbp, r14
je 0x14004372e
cmp byte [rsi], 0
je 0x14004372e
mov rcx, rsi
mov rdx, rbx
mov r8, qword [rsp + 0x88]
call fcn.14018add0
jmp 0x14004372e
mov rax, qword [0x14032a8e8]
lea rcx, [0x140038c30]
cmp rax, rcx
jne 0x140043bf7
lea rsi, [rsp + 0xc0]
mov qword [rsi], 0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rsi]
movabs rcx, 0x8637bd05af7
cmp rax, rcx
jl 0x140043973
mov rcx, qword [0x14033afc8]
cqo
idiv rcx
imul r8, rax, 0xf4240
imul rax, rdx, 0xf4240
cqo
idiv rcx
add rax, r8
jmp 0x140043983
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 rsi, [0x140329260]
lea rbx, str.ThreadController:_application_tasks_disallowed
mov cl, 0x58
mov rdx, rsi
mov r8, rbx
xor r9d, r9d
call fcn.140189ab0
mov qword [rsp + 0x88], rax
jmp 0x1400438a0
lea rcx, [rsp + 0xc0]
call qword [case.0x14017aab5.0]
jmp 0x140043a6f
mov rax, qword [0x14032a8e8]
lea rcx, [0x140038c30]
cmp rax, rcx
jne 0x1400439e6
lea rsi, [rsp + 0xc0]
mov qword [rsi], 0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rsi]
movabs rcx, 0x8637bd05af7
cmp rax, rcx
jl 0x140043a57
mov rcx, qword [0x14033afc8]
cqo
idiv rcx
imul r8, rax, 0xf4240
imul rax, rdx, 0xf4240
cqo
idiv rcx
add rax, r8
jmp 0x140043a67
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 rsi, str.ThreadControllerImpl::DoWork
mov cl, 0x58
mov qword [rsp + 0x70], rdx
mov r8, rsi
xor r9d, r9d
call fcn.140189ab0
jmp 0x14004331c
lea rcx, [rsp + 0xc0]
call qword [case.0x14017aab5.0]
jmp 0x140043b4d
mov rax, qword [0x14032a8e8]
lea rcx, [0x140038c30]
cmp rax, rcx
jne 0x140043ac4
lea r15, [rsp + 0xc0]
mov qword [r15], 0
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [r15]
movabs rcx, 0x8637bd05af7
cmp rax, rcx
jl 0x140043b35
mov rcx, qword [0x14033afc8]
cqo
idiv rcx
imul r8, rax, 0xf4240
imul rax, rdx, 0xf4240
cqo
idiv rcx
add rax, r8
jmp 0x140043b45
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, [0x14032a0a0]
lea r8, str.RunTask
mov cl, 0x58
mov qword [rsp + 0x68], rdx
mov r12, r8
xor r9d, r9d
call fcn.140189ab0
cmp byte [rsp + 0x150], 0
mov qword [rsp + 0x80], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x120], rax
movaps xmmword [rsp + 0x110], xmm6
movaps xmmword [rsp + 0x100], xmm6
movaps xmmword [rsp + 0xf0], xmm6
movaps xmmword [rsp + 0xe0], xmm6
movaps xmmword [rsp + 0xd0], xmm6
movaps xmmword [rsp + 0xc0], xmm6
jne 0x140043576
ud2
lea rcx, [rsp + 0xc0]
call qword [case.0x14017aab5.0]
jmp 0x14004398b