Function at 0x140033bf0
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, 0x128
movapd xmmword [rsp + 0x110], xmm10
movapd xmmword [rsp + 0x100], xmm9
movaps xmmword [rsp + 0xf0], xmm8
movaps xmmword [rsp + 0xe0], xmm7
movaps xmmword [rsp + 0xd0], xmm6
mov rsi, rcx
mov rax, qword [0x14016e028]
xor rax, rsp
mov qword [rsp + 0xc8], rax
movabs r12, 0xaaaaaaaaaaaaaaaa
test byte [0x140170030], 0x19
jne 0x14003431d
mov rcx, qword [rsi + 0x60]
test rcx, rcx
jne 0x140034743
mov rcx, qword [rsi + 0x48]
mov rdx, rsi
call fcn.1400314f0
call fcn.1400a6c10
test al, al
jne 0x14003474e
xor edi, edi
lea rcx, [rsp + 0xb8]
mov qword [rcx], r12
call fcn.1400a6c40
mov r13d, edi
test dil, dil
jne 0x140034777
test byte [0x140170030], 0x19
jne 0x1400342b3
mov rax, qword [rsi + 0x48]
mov rax, qword [rax + 0x38]
mov rax, qword [rax + 0x90]
xorps xmm0, xmm0
cvtsi2sd xmm0, rax
mulsd xmm0, qword [0x14015ea18]
lea rcx, [rsi + 0x30]
mov qword [rsp + 0x58], rcx
movsd xmm8, qword [0x14015ea20]
ucomisd xmm8, xmm0
jb 0x14003470f
ucomisd xmm0, qword [0x14015ea28]
jb 0x14003470f
cvttsd2si rax, xmm0
mov qword [rsp + 0xa0], rax
movabs rcx, 0x7fffffffffffffff
cmp rax, rcx
je 0x140034734
lea rdx, [rsp + 0xa0]
mov rcx, qword [rsp + 0x58]
call fcn.140001370
test byte [0x140170030], 0x19
jne 0x140034387
mov al, byte [rsi + 0x40]
test al, al
jne 0x140034202
mov r15, qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
movaps xmm7, xmmword [0x140147b90]
lea rbx, [rsp + 0x90]
movsd xmm9, qword [0x14015ea18]
movsd xmm10, qword [0x14015ea28]
lea r14, [rsp + 0x80]
xorps xmm6, xmm6
nop word cs:[rax + rax]
nop
movzx eax, byte [rsi + 0x70]
test al, al
jne 0x140034202
mov rdi, qword [rsi + 0x50]
lea rbp, [rdi + 0x58]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x1400341ab
mov rcx, qword [rdi + 0x60]
test rcx, rcx
jne 0x14003417e
mov rcx, rbp
call r15
movaps xmmword [rsp + 0xa0], xmm7
mov qword [rsp + 0xb0], r12
mov byte [rsp + 0xa0], 0
test r13b, r13b
jne 0x14003467c
mov rax, qword [rsi + 0x50]
mov rax, qword [rax + 0x30]
mov eax, dword [rax]
test al, 1
jne 0x1400341a1
mov ebp, dword [rsi + 0x68]
cmp dword [rsi + 0x6c], ebp
jne 0x1400343f1
movaps xmmword [rsp + 0x90], xmm7
mov rcx, qword [rsi + 0x48]
mov rdx, rbx
mov r8, rsi
call fcn.140037cd0
mov rax, qword [rsp + 0x90]
test rax, rax
je 0x140033ed0
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.1400010c0
mov rcx, rbx
mov rdx, r14
call fcn.140034b00
mov rcx, r14
call fcn.1400349c0
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.1400315f0
mov rcx, qword [rsi + 0x30]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, rbx
call fcn.1400349c0
cmp byte [rsp + 0xa0], 0
jne 0x14003469a
movzx eax, byte [rsi + 0x40]
test al, al
je 0x140033d80
jmp 0x140034202
movzx eax, byte [rsi + 0x40]
test al, al
jne 0x1400341e7
movzx eax, byte [rsi + 0x70]
test al, al
jne 0x1400341e7
mov rdi, qword [rsi + 0x50]
lea rbp, [rdi + 0x58]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x1400341da
mov rcx, qword [rdi + 0x60]
test rcx, rcx
jne 0x1400341b8
mov rcx, rbp
call r15
test byte [0x140170030], 0x19
jne 0x140034012
cmp byte [rsp + 0xa0], 0
jne 0x1400346d2
mov rax, qword [rsi + 0x48]
mov rcx, qword [rax]
lea rdx, [0x1400790a0]
cmp qword [rcx + 0x30], rdx
mov rax, qword [rax + 0x38]
mov rax, qword [rax + 0x90]
cvtsi2sd xmm0, rax
mulsd xmm0, xmm9
ucomisd xmm8, xmm0
jb 0x1400346ac
ucomisd xmm0, xmm10
jb 0x1400346ac
cvttsd2si rax, xmm0
mov qword [rsp + 0x80], rax
movabs rcx, 0x7fffffffffffffff
cmp rax, rcx
je 0x140034162
mov rcx, qword [rsp + 0x58]
mov rdx, r14
call fcn.140001370
test byte [0x140170030], 0x19
je 0x140033e9c
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebp, eax
mov qword [rsp + 0xc0], r12
mov rax, qword [0x1401714e8]
lea rcx, [0x14002f490]
cmp rax, rcx
jne 0x140034631
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 0x1400340f4
imul rax, rax, 0xf4240
cqo
idiv qword [0x140175c10]
jmp 0x140034116
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov rcx, r12
mov r12d, eax
mov qword [rsp + 0xc0], rcx
mov rax, qword [0x1401714e8]
lea rcx, [0x14002f490]
cmp rax, rcx
jne 0x140034622
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 0x14003407b
imul rax, rax, 0xf4240
cqo
idiv qword [0x140175c10]
jmp 0x14003409d
mov rcx, qword [0x140175c10]
cqo
idiv rcx
imul rbp, rax, 0xf4240
imul rax, rdx, 0xf4240
cqo
idiv rcx
add rax, rbp
mov qword [rsp + 0xc0], rax
lea rax, [rsp + 0xc0]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], r12d
movups xmmword [rsp + 0x20], xmm6
mov dword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
mov cl, 0x45
lea rdx, [0x140170030]
lea r8, str.WorkerThread_active
xor r9d, r9d
call fcn.140034c00
movabs r12, 0xaaaaaaaaaaaaaaaa
jmp 0x140033f21
mov rcx, qword [0x140175c10]
cqo
idiv rcx
imul rdi, rax, 0xf4240
imul rax, rdx, 0xf4240
cqo
idiv rcx
add rax, rdi
mov qword [rsp + 0xc0], rax
lea rax, [rsp + 0xc0]
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, [0x140170030]
lea r8, str.WorkerThread_active
xor r9d, r9d
call fcn.140034c00
jmp 0x140033e9c
mov rcx, qword [rsp + 0x58]
call fcn.140038a20
test byte [0x140170030], 0x19
je 0x140033e9c
jmp 0x140033fa6
call fcn.1400a6c20
mov r12d, eax
mov rcx, rbp
call r15
test r12b, r12b
movabs r12, 0xaaaaaaaaaaaaaaaa
je 0x140033db8
jmp 0x140034202
mov ebp, 1
jmp 0x140033dee
mov rcx, rbp
call fcn.140039d60
jmp 0x140033da5
call fcn.1400a6c20
mov r12d, eax
mov rcx, rbp
call r15
test r12b, r12b
movabs r12, 0xaaaaaaaaaaaaaaaa
jne 0x1400341e7
jmp 0x140033f14
mov rcx, rbp
call fcn.140039d60
jmp 0x140033f01
lea rcx, [rsp + 0x90]
call fcn.1400349c0
cmp byte [rsp + 0xa0], 0
jne 0x14003483b
mov rcx, qword [rsi + 0x48]
mov rdx, rsi
call fcn.1400a6c50
mov rcx, qword [rsi + 0x60]
test rcx, rcx
jne 0x1400347a9
mov rdi, qword [rsi + 0x10]
mov qword [rsi + 0x10], 0
test rdi, rdi
je 0x14003424a
lock dec dword [rdi + 8]
jne 0x14003424a
add rdi, 8
add rdi, 0xfffffffffffffff8
mov rcx, rdi
call fcn.1400023e0
mov rcx, rdi
call fcn.14007a98c
test byte [0x140170030], 0x19
jne 0x1400347b4
lea rcx, [rsp + 0xb8]
call fcn.140034f20
mov rcx, qword [rsp + 0xc8]
xor rcx, rsp
call fcn.14007d5a0
movaps xmm6, xmmword [rsp + 0xd0]
movaps xmm7, xmmword [rsp + 0xe0]
movaps xmm8, xmmword [rsp + 0xf0]
movaps xmm9, xmmword [rsp + 0x100]
movaps xmm10, xmmword [rsp + 0x110]
add rsp, 0x128
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edi, eax
mov qword [rsp + 0x90], r12
mov rax, qword [0x1401714e8]
lea rcx, [0x14002f490]
cmp rax, rcx
jne 0x140034640
lea rbx, [rsp + 0xa0]
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 0x140034400
imul rax, rax, 0xf4240
cqo
idiv qword [0x140175c10]
jmp 0x140034422
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edi, eax
mov qword [rsp + 0x90], r12
mov rax, qword [0x1401714e8]
lea r14, [0x14002f490]
cmp rax, r14
jne 0x14003464f
lea rbx, [rsp + 0xa0]
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 0x140034471
imul rax, rax, 0xf4240
cqo
idiv qword [0x140175c10]
jmp 0x140034493
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edi, eax
mov qword [rsp + 0x90], r12
mov rax, qword [0x1401714e8]
lea rcx, [0x14002f490]
cmp rax, rcx
jne 0x14003466d
lea rbx, [rsp + 0xa0]
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 0x1400345af
imul rax, rax, 0xf4240
cqo
idiv qword [0x140175c10]
jmp 0x1400345d1
mov ecx, ebp
call fcn.1400a6910
mov dword [rsi + 0x6c], ebp
jmp 0x140033df7
mov rcx, qword [0x140175c10]
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, [0x140170030]
lea r8, str.WorkerThread_active
mov cl, 0x45
xor r9d, r9d
call fcn.140034c00
jmp 0x140033cad
mov rcx, qword [0x140175c10]
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, [0x140170030]
lea r8, str.WorkerThread_born
mov cl, 0x49
xor r9d, r9d
call fcn.140034c00
test byte [0x140170030], 0x19
je 0x140033c5c
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edi, eax
mov qword [rsp + 0x90], r12
mov rax, qword [0x1401714e8]
cmp rax, r14
jne 0x14003465e
lea rbx, [rsp + 0xa0]
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 0x140034546
imul rax, rax, 0xf4240
cqo
idiv qword [0x140175c10]
jmp 0x140034568
mov rcx, qword [0x140175c10]
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, [0x140170030]
lea r8, str.WorkerThread_active
mov cl, 0x42
xor r9d, r9d
call fcn.140034c00
jmp 0x140033c5c
mov rcx, qword [0x140175c10]
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, [0x140170030]
lea r8, str.WorkerThread_active
mov cl, 0x42
xor r9d, r9d
call fcn.140034c00
jmp 0x140033d36
lea rcx, [rsp + 0xc0]
call rax
jmp 0x1400340a5
lea rcx, [rsp + 0xc0]
call rax
jmp 0x14003411e
lea rcx, [rsp + 0x90]
call rax
jmp 0x14003442a
lea rcx, [rsp + 0x90]
call rax
jmp 0x14003449b
lea rcx, [rsp + 0x90]
call rax
jmp 0x140034570
lea rcx, [rsp + 0x90]
call rax
jmp 0x1400345d9
lea rbp, [rsp + 0xa8]
mov edx, 0x989680
mov rcx, rbp
call fcn.14000f330
mov byte [rbp - 8], 1
jmp 0x140033dd9
lea rcx, [rsp + 0xa8]
call fcn.140077d60
jmp 0x140033eb2
test rax, rax
js 0x1400346eb
movabs rax, 0x7fffffffffffffff
mov qword [rsp + 0x80], rax
movabs r12, 0xaaaaaaaaaaaaaaaa
jmp 0x140034162
lea rbp, [rsp + 0xa8]
mov rcx, rbp
call fcn.140077d60
mov byte [rbp - 8], 0
jmp 0x140033f2f
movabs rax, 0x7fffffffffffffff
inc rax
mov qword [rsp + 0x80], rax
movabs r12, 0xaaaaaaaaaaaaaaaa
jmp 0x140033f8c
test rax, rax
js 0x140034817
movabs rax, 0x7fffffffffffffff
mov qword [rsp + 0xa0], rax
movabs r12, 0xaaaaaaaaaaaaaaaa
mov rcx, qword [rsp + 0x58]
call fcn.140038a20
jmp 0x140033d29
mov rax, qword [rcx]
call qword [rax + 8]
jmp 0x140033c69
mov rax, qword [rsi + 0x50]
mov rax, qword [rax + 0x30]
mov eax, dword [rax]
test al, 1
jne 0x1400349b4
cmp dword [rsi + 0x68], 0
setne dil
movabs r12, 0xaaaaaaaaaaaaaaaa
jmp 0x140033c84
lea rdi, [rsp + 0xa0]
mov rcx, rdi
mov edx, 2
call fcn.140128b60
lea rcx, [rsp + 0xb8]
mov rdx, rdi
call fcn.1400c3e80
mov rcx, rdi
call fcn.140034f20
jmp 0x140033ca0
mov rax, qword [rcx]
call qword [rax + 0x10]
jmp 0x14003421b
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, eax
mov qword [rsp + 0x90], r12
mov rax, qword [0x1401714e8]
lea rbx, [0x14002f490]
cmp rax, rbx
jne 0x140034999
lea rdi, [rsp + 0xa0]
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 0x14003484d
imul rax, rax, 0xf4240
cqo
idiv qword [0x140175c10]
jmp 0x14003486f
movabs rax, 0x7fffffffffffffff
inc rax
mov qword [rsp + 0xa0], rax
movabs r12, 0xaaaaaaaaaaaaaaaa
jmp 0x140033d17
lea rcx, [rsp + 0xa8]
call fcn.140077d60
jmp 0x140034202
mov rcx, qword [0x140175c10]
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], esi
xorpd xmm0, xmm0
movupd xmmword [rsp + 0x20], xmm0
mov dword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
lea rdx, [0x140170030]
lea r8, str.WorkerThread_active
mov cl, 0x45
xor r9d, r9d
call fcn.140034c00
test byte [0x140170030], 0x19
movabs rdi, 0xaaaaaaaaaaaaaaaa
je 0x140034257
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, eax
mov qword [rsp + 0x90], rdi
mov rax, qword [0x1401714e8]
cmp rax, rbx
jne 0x1400349a8
lea rdi, [rsp + 0xa0]
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 0x14003492e
imul rax, rax, 0xf4240
cqo
idiv qword [0x140175c10]
jmp 0x140034950
mov rcx, qword [0x140175c10]
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], esi
xorpd xmm0, xmm0
movupd xmmword [rsp + 0x20], xmm0
mov dword [rsp + 0x48], 8
mov qword [rsp + 0x40], 0
lea rdx, [0x140170030]
lea r8, str.WorkerThread_dead
mov cl, 0x49
xor r9d, r9d
call fcn.140034c00
jmp 0x140034257
lea rcx, [rsp + 0x90]
call rax
jmp 0x140034877
lea rcx, [rsp + 0x90]
call rax
jmp 0x140034958
mov dil, 1
jmp 0x140034768