Function at 0x14002a500
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, 0x138
movapd xmmword [rsp + 0x120], xmm10
movapd xmmword [rsp + 0x110], xmm9
movaps xmmword [rsp + 0x100], xmm8
movaps xmmword [rsp + 0xf0], xmm7
movaps xmmword [rsp + 0xe0], xmm6
mov rsi, rcx
mov rax, qword [0x1400f9028]
xor rax, rsp
mov qword [rsp + 0xd8], rax
movabs r13, 0xaaaaaaaaaaaaaaaa
test byte [0x1400faf40], 0x19
jne 0x14002acec
mov rcx, qword [rsi + 0x60]
test rcx, rcx
jne 0x14002b176
mov rcx, qword [rsi + 0x48]
mov rdx, rsi
call fcn.140096b40
call fcn.14008eb60
test al, al
jne 0x14002b181
xor edi, edi
lea rcx, [rsp + 0xa0]
mov qword [rcx], r13
call fcn.14008f080
mov dword [rsp + 0x5c], edi
test dil, dil
jne 0x14002b1aa
test byte [0x1400faf40], 0x19
jne 0x14002ac82
mov rax, qword [rsi + 0x48]
mov rax, qword [rax + 0x38]
mov rax, qword [rax + 0x90]
xorps xmm0, xmm0
cvtsi2sd xmm0, rax
mulsd xmm0, qword [0x1400ed410]
lea rcx, [rsi + 0x30]
mov qword [rsp + 0x50], rcx
movsd xmm8, qword [0x1400ed418]
ucomisd xmm8, xmm0
jb 0x14002b14f
ucomisd xmm0, qword [0x1400e8cb0]
jb 0x14002b14f
cvttsd2si rax, xmm0
lea rcx, [rsp + 0xb0]
mov qword [rcx], rax
cmp rax, 0xf4240
lea rdx, [0x1400ed648]
cmovle rdx, rcx
mov rcx, qword [rsp + 0x50]
call fcn.140001780
test al, al
je 0x14002afe2
test byte [0x1400faf40], 0x19
jne 0x14002ad56
mov al, byte [rsi + 0x40]
test al, al
jne 0x14002abb3
lea r12, [rsp + 0xb8]
mov r15, qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
movaps xmm7, xmmword [0x1400e2ad0]
xorps xmm6, xmm6
lea rdi, [rsp + 0x90]
movsd xmm9, qword [0x1400ed410]
movsd xmm10, qword [0x1400e8cb0]
lea r14, [rsp + 0x80]
nop
movzx eax, byte [rsi + 0x70]
test al, al
jne 0x14002abb3
mov rbx, qword [rsi + 0x50]
lea rbp, [rbx + 0x58]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x14002ab3a
mov rcx, qword [rbx + 0x60]
test rcx, rcx
jne 0x14002ab54
mov rcx, rbp
call r15
movaps xmmword [rsp + 0xb0], xmm7
mov qword [rsp + 0xd0], r13
movaps xmmword [rsp + 0xc0], xmm7
mov byte [rsp + 0xb0], 0
movups xmmword [r12], xmm6
mov qword [r12 + 0x10], 0
cmp byte [rsp + 0x5c], 0
jne 0x14002b02d
mov rax, qword [rsi + 0x50]
mov rax, qword [rax + 0x30]
mov eax, dword [rax]
test al, 1
jne 0x14002b047
mov ebp, dword [rsi + 0x68]
cmp dword [rsi + 0x6c], ebp
jne 0x14002b051
movaps xmmword [rsp + 0x90], xmm7
mov rcx, qword [rsi + 0x48]
mov rdx, rdi
mov r8, rsi
call fcn.1400451f0
mov rax, qword [rsp + 0x90]
test rax, rax
je 0x14002a7f0
mov rcx, qword [rsi + 0x50]
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x90], 0
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0x98], 0
mov qword [rsp + 0x78], rax
mov rdx, r14
lea r8, [rsp + 0x70]
call fcn.14002b470
mov rcx, rdi
mov rdx, r14
call fcn.14002b390
mov rcx, r14
call fcn.14002b2e0
mov rcx, qword [rsi + 0x48]
movapd xmm0, xmmword [rsp + 0x90]
movupd xmmword [rsp + 0x60], xmm0
movaps xmmword [rsp + 0x90], xmm6
lea rdx, [rsp + 0x60]
call fcn.14004cb60
mov rcx, qword [rsi + 0x30]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, rdi
call fcn.14002b2e0
cmp byte [rsp + 0xb0], 0
jne 0x14002b060
movzx eax, byte [rsi + 0x40]
test al, al
je 0x14002a690
jmp 0x14002abb3
movzx eax, byte [rsi + 0x40]
test al, al
jne 0x14002ab98
movzx eax, byte [rsi + 0x70]
test al, al
jne 0x14002ab98
mov rbx, qword [rsi + 0x50]
lea rbp, [rbx + 0x58]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x14002ab47
mov rcx, qword [rbx + 0x60]
test rcx, rcx
jne 0x14002ab77
mov rcx, rbp
call r15
test byte [0x1400faf40], 0x19
jne 0x14002a93c
cmp byte [rsp + 0xb0], 0
jne 0x14002b0d4
mov rax, qword [rsi + 0x48]
mov rcx, qword [rax]
lea rdx, [0x14000cd80]
cmp qword [rcx + 0x30], rdx
jne 0x14002aae9
mov rax, qword [rax + 0x38]
mov rax, qword [rax + 0x90]
cvtsi2sd xmm0, rax
mulsd xmm0, xmm9
ucomisd xmm8, xmm0
jb 0x14002b0ae
ucomisd xmm0, xmm10
jb 0x14002b0ae
cvttsd2si rax, xmm0
mov qword [rsp + 0x80], rax
mov rdx, r14
cmp rax, 0xf4241
jl 0x14002a8b1
lea rdx, [0x1400ed648]
mov rcx, qword [rsp + 0x50]
call fcn.140001780
test al, al
je 0x14002aa8c
test byte [0x1400faf40], 0x19
je 0x14002a7c4
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebp, eax
mov qword [rsp + 0xa8], r13
mov rax, qword [0x1400fc3f8]
lea rcx, [0x140027440]
cmp rax, rcx
jne 0x14002ac73
mov qword [rsp + 0x80], 0
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rsp + 0x80]
movabs rcx, 0x8637bd05af7
cmp rax, rcx
jge 0x14002aa1e
imul rax, rax, 0xf4240
cqo
idiv qword [0x140100790]
jmp 0x14002aa40
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov rcx, r13
mov r13d, eax
mov qword [rsp + 0xa8], rcx
mov rax, qword [0x1400fc3f8]
lea rcx, [0x140027440]
cmp rax, rcx
jne 0x14002ac64
mov qword [rsp + 0x80], 0
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rsp + 0x80]
movabs rcx, 0x8637bd05af7
cmp rax, rcx
jge 0x14002a9a5
imul rax, rax, 0xf4240
cqo
idiv qword [0x140100790]
jmp 0x14002a9c7
mov rcx, qword [0x140100790]
cqo
idiv rcx
imul rbp, rax, 0xf4240
imul rax, rdx, 0xf4240
cqo
idiv rcx
add rax, rbp
mov qword [rsp + 0xa8], rax
lea rax, [rsp + 0xa8]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], r13d
movups xmmword [rsp + 0x20], xmm6
mov dword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
mov cl, 0x45
lea rdx, [0x1400faf40]
lea r8, str.WorkerThread_active
xor r9d, r9d
call fcn.14002da90
movabs r13, 0xaaaaaaaaaaaaaaaa
jmp 0x14002a841
mov rcx, qword [0x140100790]
cqo
idiv rcx
imul rbx, rax, 0xf4240
imul rax, rdx, 0xf4240
cqo
idiv rcx
add rax, rbx
mov qword [rsp + 0xa8], rax
lea rax, [rsp + 0xa8]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], ebp
movups xmmword [rsp + 0x20], xmm6
mov dword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
mov cl, 0x42
lea rdx, [0x1400faf40]
lea r8, str.WorkerThread_active
xor r9d, r9d
call fcn.14002da90
jmp 0x14002a7c4
call fcn.14008eb10
mov rax, qword [rsp + 0x80]
cmp rax, 0xf4241
jl 0x14002a8c3
lea rcx, [rax - 0xf4240]
movabs rdx, 0x7fffffffffffffff
cmp rax, rdx
cmove rcx, rdx
mov qword [rsp + 0xa8], rcx
mov rcx, qword [rsp + 0x50]
lea rdx, [rsp + 0xa8]
call fcn.140001780
test byte [0x1400faf40], 0x19
je 0x14002a7c4
jmp 0x14002a8d0
mov rax, qword [rax + 0x38]
mov rax, qword [rax + 0x90]
cvtsi2sd xmm0, rax
mulsd xmm0, xmm9
ucomisd xmm8, xmm0
jb 0x14002b115
ucomisd xmm0, xmm10
jb 0x14002b115
cvttsd2si rax, xmm0
mov qword [rsp + 0x80], rax
cmp rax, 0xf4240
mov rdx, r14
lea rax, [0x1400ed648]
cmovg rdx, rax
jmp 0x14002a8b1
mov rcx, rbp
call fcn.140034be0
jmp 0x14002a6b5
mov rcx, rbp
call fcn.140034be0
jmp 0x14002a821
call fcn.14008f220
mov r13d, eax
mov rcx, rbp
call r15
test r13b, r13b
movabs r13, 0xaaaaaaaaaaaaaaaa
je 0x14002a6c8
jmp 0x14002abb3
call fcn.14008f220
mov r13d, eax
mov rcx, rbp
call r15
test r13b, r13b
movabs r13, 0xaaaaaaaaaaaaaaaa
je 0x14002a834
lea rcx, [rsp + 0x90]
call fcn.14002b2e0
cmp byte [rsp + 0xb0], 0
jne 0x14002b2c4
mov rcx, qword [rsi + 0x48]
mov rdx, rsi
call fcn.14008f660
mov rcx, qword [rsi + 0x60]
test rcx, rcx
jne 0x14002b1dc
mov rdi, qword [rsi + 0x10]
mov qword [rsi + 0x10], 0
test rdi, rdi
je 0x14002abfb
lock dec dword [rdi + 8]
jne 0x14002abfb
add rdi, 8
add rdi, 0xfffffffffffffff8
mov rcx, rdi
call fcn.14008f860
mov rcx, rdi
call fcn.140062b78
test byte [0x1400faf40], 0x19
jne 0x14002b1e7
lea rcx, [rsp + 0xa0]
call fcn.140035710
mov rcx, qword [rsp + 0xd8]
xor rcx, rsp
call fcn.140065120
movaps xmm6, xmmword [rsp + 0xe0]
movaps xmm7, xmmword [rsp + 0xf0]
movaps xmm8, xmmword [rsp + 0x100]
movaps xmm9, xmmword [rsp + 0x110]
movaps xmm10, xmmword [rsp + 0x120]
add rsp, 0x138
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, [rsp + 0xa8]
call rax
jmp 0x14002a9cf
lea rcx, [rsp + 0xa8]
call rax
jmp 0x14002aa48
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edi, eax
mov qword [rsp + 0x90], r13
mov rax, qword [0x1400fc3f8]
lea rcx, [0x140027440]
cmp rax, rcx
jne 0x14002b072
lea rbx, [rsp + 0xb0]
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 0x14002adc0
imul rax, rax, 0xf4240
cqo
idiv qword [0x140100790]
jmp 0x14002ade2
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edi, eax
mov qword [rsp + 0x90], r13
mov rax, qword [0x1400fc3f8]
lea r14, [0x140027440]
cmp rax, r14
jne 0x14002b081
lea rbx, [rsp + 0xb0]
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 0x14002ae31
imul rax, rax, 0xf4240
cqo
idiv qword [0x140100790]
jmp 0x14002ae53
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edi, eax
mov qword [rsp + 0x90], r13
mov rax, qword [0x1400fc3f8]
lea rcx, [0x140027440]
cmp rax, rcx
jne 0x14002b09f
lea rbx, [rsp + 0xb0]
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 0x14002af6f
imul rax, rax, 0xf4240
cqo
idiv qword [0x140100790]
jmp 0x14002af91
mov rcx, qword [0x140100790]
cqo
idiv rcx
imul rbp, rax, 0xf4240
imul rax, rdx, 0xf4240
cqo
idiv rcx
add rax, rbp
mov qword [rsp + 0x90], rax
lea rax, [rsp + 0x90]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], edi
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
mov dword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
lea rdx, [0x1400faf40]
lea r8, str.WorkerThread_active
mov cl, 0x45
xor r9d, r9d
call fcn.14002da90
jmp 0x14002a5be
mov rcx, qword [0x140100790]
cqo
idiv rcx
imul rbp, rax, 0xf4240
imul rax, rdx, 0xf4240
cqo
idiv rcx
add rax, rbp
mov qword [rsp + 0x90], rax
lea rbp, [rsp + 0x90]
mov qword [rsp + 0x38], rbp
mov dword [rsp + 0x30], edi
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
mov dword [rsp + 0x48], 8
mov qword [rsp + 0x40], 0
lea rdx, [0x1400faf40]
lea r8, str.WorkerThread_born
mov cl, 0x49
xor r9d, r9d
call fcn.14002da90
test byte [0x1400faf40], 0x19
je 0x14002a56c
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edi, eax
mov qword [rsp + 0x90], r13
mov rax, qword [0x1400fc3f8]
cmp rax, r14
jne 0x14002b090
lea rbx, [rsp + 0xb0]
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 0x14002af06
imul rax, rax, 0xf4240
cqo
idiv qword [0x140100790]
jmp 0x14002af28
mov rcx, qword [0x140100790]
cqo
idiv rcx
imul rbx, rax, 0xf4240
imul rax, rdx, 0xf4240
cqo
idiv rcx
add rax, rbx
mov qword [rsp + 0x90], rax
mov qword [rsp + 0x38], rbp
mov dword [rsp + 0x30], edi
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
mov dword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
lea rdx, [0x1400faf40]
lea r8, str.WorkerThread_active
mov cl, 0x42
xor r9d, r9d
call fcn.14002da90
jmp 0x14002a56c
mov rcx, qword [0x140100790]
cqo
idiv rcx
imul rbp, rax, 0xf4240
imul rax, rdx, 0xf4240
cqo
idiv rcx
add rax, rbp
mov qword [rsp + 0x90], rax
lea rax, [rsp + 0x90]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], edi
xorpd xmm0, xmm0
movupd xmmword [rsp + 0x20], xmm0
mov dword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
lea rdx, [0x1400faf40]
lea r8, str.WorkerThread_active
mov cl, 0x42
xor r9d, r9d
call fcn.14002da90
jmp 0x14002a648
call fcn.14008eb10
mov rax, qword [rsp + 0xb0]
cmp rax, 0xf4241
jl 0x14002a63b
lea rcx, [rax - 0xf4240]
movabs rdx, 0x7fffffffffffffff
cmp rax, rdx
cmove rcx, rdx
lea rdx, [rsp + 0x90]
mov qword [rdx], rcx
mov rcx, qword [rsp + 0x50]
call fcn.140001780
jmp 0x14002a63b
mov edx, 0x989680
mov rcx, r12
call fcn.140003010
mov byte [rsp + 0xb0], 1
jmp 0x14002a701
mov ebp, 1
jmp 0x14002a716
mov ecx, ebp
call fcn.14008df40
mov dword [rsi + 0x6c], ebp
jmp 0x14002a71f
lea rcx, [rsp + 0xb8]
call fcn.140037c60
jmp 0x14002a7da
lea rcx, [rsp + 0x90]
call rax
jmp 0x14002adea
lea rcx, [rsp + 0x90]
call rax
jmp 0x14002ae5b
lea rcx, [rsp + 0x90]
call rax
jmp 0x14002af30
lea rcx, [rsp + 0x90]
call rax
jmp 0x14002af99
test rax, rax
js 0x14002b0ee
movabs rax, 0x7fffffffffffffff
mov qword [rsp + 0x80], rax
movabs r13, 0xaaaaaaaaaaaaaaaa
jmp 0x14002a8aa
lea rcx, [rsp + 0xb8]
call fcn.140037c60
mov byte [rsp + 0xb0], 0
jmp 0x14002a84f
movabs rax, 0x7fffffffffffffff
inc rax
mov qword [rsp + 0x80], rax
mov rdx, r14
movabs r13, 0xaaaaaaaaaaaaaaaa
jmp 0x14002a8b1
test rax, rax
js 0x14002b135
movabs rax, 0x7fffffffffffffff
mov qword [rsp + 0x80], rax
lea rdx, [0x1400ed648]
jmp 0x14002b106
movabs rax, 0x7fffffffffffffff
inc rax
lea rdx, [rsp + 0x80]
mov qword [rdx], rax
jmp 0x14002b106
test rax, rax
js 0x14002b29d
movabs rax, 0x7fffffffffffffff
mov qword [rsp + 0xb0], rax
lea rdx, [0x1400ed648]
jmp 0x14002b2b5
mov rax, qword [rcx]
call qword [rax + 8]
jmp 0x14002a579
mov rax, qword [rsi + 0x50]
mov rax, qword [rax + 0x30]
mov eax, dword [rax]
test al, 1
jne 0x14002b2d6
cmp dword [rsi + 0x68], 0
setne dil
movabs r13, 0xaaaaaaaaaaaaaaaa
jmp 0x14002a594
lea rdi, [rsp + 0xb0]
mov rcx, rdi
mov edx, 2
call fcn.1400c0bd0
lea rcx, [rsp + 0xa0]
mov rdx, rdi
call fcn.1400ca380
mov rcx, rdi
call fcn.140035710
jmp 0x14002a5b1
mov rax, qword [rcx]
call qword [rax + 0x10]
jmp 0x14002abcc
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edi, eax
lea rsi, [rsp + 0xb0]
mov qword [rsi], r13
mov rcx, rsi
call fcn.14003b480
mov qword [rsp + 0x38], rsi
mov dword [rsp + 0x30], edi
xorps xmm6, xmm6
movups xmmword [rsp + 0x20], xmm6
mov dword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
lea rdx, [0x1400faf40]
lea r8, str.WorkerThread_active
mov cl, 0x45
xor r9d, r9d
call fcn.14002da90
test byte [0x1400faf40], 0x19
je 0x14002ac08
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edi, eax
mov qword [rsp + 0xb0], r13
mov rcx, rsi
call fcn.14003b480
mov qword [rsp + 0x38], rsi
mov dword [rsp + 0x30], edi
movups xmmword [rsp + 0x20], xmm6
mov dword [rsp + 0x48], 8
mov qword [rsp + 0x40], 0
lea rdx, [0x1400faf40]
lea r8, str.WorkerThread_dead
mov cl, 0x49
xor r9d, r9d
call fcn.14002da90
jmp 0x14002ac08
movabs rax, 0x7fffffffffffffff
inc rax
lea rdx, [rsp + 0xb0]
mov qword [rdx], rax
movabs r13, 0xaaaaaaaaaaaaaaaa
jmp 0x14002a629
lea rcx, [rsp + 0xb8]
call fcn.140037c60
jmp 0x14002abb3
mov dil, 1
jmp 0x14002b19b