Function at 0x140067220
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 [0x14028f028]
xor rax, rsp
mov qword [rsp + 0xd8], rax
movabs r13, 0xaaaaaaaaaaaaaaaa
test byte [0x140291180], 0x19
jne 0x140067a0c
mov rcx, qword [rsi + 0x60]
test rcx, rcx
jne 0x140067e96
mov rcx, qword [rsi + 0x48]
mov rdx, rsi
call fcn.140114000
call fcn.140102ae0
test al, al
jne 0x140067ea1
xor edi, edi
lea rcx, [rsp + 0xa0]
mov qword [rcx], r13
call fcn.1401198a0
mov dword [rsp + 0x5c], edi
test dil, dil
jne 0x140067eca
test byte [0x140291180], 0x19
jne 0x1400679a2
mov rax, qword [rsi + 0x48]
mov rax, qword [rax + 0x38]
mov rax, qword [rax + 0x90]
xorps xmm0, xmm0
cvtsi2sd xmm0, rax
mulsd xmm0, qword [0x14026c240]
lea rcx, [rsi + 0x30]
mov qword [rsp + 0x50], rcx
movsd xmm8, qword [0x14026c248]
ucomisd xmm8, xmm0
jb 0x140067e6f
ucomisd xmm0, qword [0x1402450f0]
jb 0x140067e6f
cvttsd2si rax, xmm0
lea rcx, [rsp + 0xb0]
mov qword [rcx], rax
cmp rax, 0xf4240
lea rdx, [0x140277880]
cmovle rdx, rcx
mov rcx, qword [rsp + 0x50]
call fcn.140001640
test al, al
je 0x140067d02
test byte [0x140291180], 0x19
jne 0x140067a76
mov al, byte [rsi + 0x40]
test al, al
jne 0x1400678d3
lea r12, [rsp + 0xb8]
mov r15, qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
movaps xmm7, xmmword [0x140257270]
xorps xmm6, xmm6
lea rdi, [rsp + 0x90]
movsd xmm9, qword [0x14026c240]
movsd xmm10, qword [0x1402450f0]
lea r14, [rsp + 0x80]
nop
movzx eax, byte [rsi + 0x70]
test al, al
jne 0x1400678d3
mov rbx, qword [rsi + 0x50]
lea rbp, [rbx + 0x58]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x14006785a
mov rcx, qword [rbx + 0x60]
test rcx, rcx
jne 0x140067874
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 0x140067d4d
mov rax, qword [rsi + 0x50]
mov rax, qword [rax + 0x30]
mov eax, dword [rax]
test al, 1
jne 0x140067d67
mov ebp, dword [rsi + 0x68]
cmp dword [rsi + 0x6c], ebp
jne 0x140067d71
movaps xmmword [rsp + 0x90], xmm7
mov rcx, qword [rsi + 0x48]
mov rdx, rdi
mov r8, rsi
call fcn.140096020
mov rax, qword [rsp + 0x90]
test rax, rax
je 0x140067510
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.140068190
mov rcx, rdi
mov rdx, r14
call fcn.1400680b0
mov rcx, r14
call fcn.140068000
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.14009e300
mov rcx, qword [rsi + 0x30]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, rdi
call fcn.140068000
cmp byte [rsp + 0xb0], 0
jne 0x140067d80
movzx eax, byte [rsi + 0x40]
test al, al
je 0x1400673b0
jmp 0x1400678d3
movzx eax, byte [rsi + 0x40]
test al, al
jne 0x1400678b8
movzx eax, byte [rsi + 0x70]
test al, al
jne 0x1400678b8
mov rbx, qword [rsi + 0x50]
lea rbp, [rbx + 0x58]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x140067867
mov rcx, qword [rbx + 0x60]
test rcx, rcx
jne 0x140067897
mov rcx, rbp
call r15
test byte [0x140291180], 0x19
jne 0x14006765c
cmp byte [rsp + 0xb0], 0
jne 0x140067df4
mov rax, qword [rsi + 0x48]
mov rcx, qword [rax]
lea rdx, [0x14001c730]
cmp qword [rcx + 0x30], rdx
jne 0x140067809
mov rax, qword [rax + 0x38]
mov rax, qword [rax + 0x90]
cvtsi2sd xmm0, rax
mulsd xmm0, xmm9
ucomisd xmm8, xmm0
jb 0x140067dce
ucomisd xmm0, xmm10
jb 0x140067dce
cvttsd2si rax, xmm0
mov qword [rsp + 0x80], rax
mov rdx, r14
cmp rax, 0xf4241
jl 0x1400675d1
lea rdx, [0x140277880]
mov rcx, qword [rsp + 0x50]
call fcn.140001640
test al, al
je 0x1400677ac
test byte [0x140291180], 0x19
je 0x1400674e4
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebp, eax
mov qword [rsp + 0xa8], r13
mov rax, qword [0x1402910e8]
lea rcx, [0x14005a590]
cmp rax, rcx
jne 0x140067993
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 0x14006773e
imul rax, rax, 0xf4240
cqo
idiv qword [0x1402979e0]
jmp 0x140067760
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov rcx, r13
mov r13d, eax
mov qword [rsp + 0xa8], rcx
mov rax, qword [0x1402910e8]
lea rcx, [0x14005a590]
cmp rax, rcx
jne 0x140067984
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 0x1400676c5
imul rax, rax, 0xf4240
cqo
idiv qword [0x1402979e0]
jmp 0x1400676e7
mov rcx, qword [0x1402979e0]
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, [0x140291180]
lea r8, str.WorkerThread_active
xor r9d, r9d
call fcn.14006a790
movabs r13, 0xaaaaaaaaaaaaaaaa
jmp 0x140067561
mov rcx, qword [0x1402979e0]
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, [0x140291180]
lea r8, str.WorkerThread_active
xor r9d, r9d
call fcn.14006a790
jmp 0x1400674e4
call fcn.140102a90
mov rax, qword [rsp + 0x80]
cmp rax, 0xf4241
jl 0x1400675e3
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.140001640
test byte [0x140291180], 0x19
je 0x1400674e4
jmp 0x1400675f0
mov rax, qword [rax + 0x38]
mov rax, qword [rax + 0x90]
cvtsi2sd xmm0, rax
mulsd xmm0, xmm9
ucomisd xmm8, xmm0
jb 0x140067e35
ucomisd xmm0, xmm10
jb 0x140067e35
cvttsd2si rax, xmm0
mov qword [rsp + 0x80], rax
cmp rax, 0xf4240
mov rdx, r14
lea rax, [0x140277880]
cmovg rdx, rax
jmp 0x1400675d1
mov rcx, rbp
call fcn.1400711f0
jmp 0x1400673d5
mov rcx, rbp
call fcn.1400711f0
jmp 0x140067541
call fcn.140103190
mov r13d, eax
mov rcx, rbp
call r15
test r13b, r13b
movabs r13, 0xaaaaaaaaaaaaaaaa
je 0x1400673e8
jmp 0x1400678d3
call fcn.140103190
mov r13d, eax
mov rcx, rbp
call r15
test r13b, r13b
movabs r13, 0xaaaaaaaaaaaaaaaa
je 0x140067554
lea rcx, [rsp + 0x90]
call fcn.140068000
cmp byte [rsp + 0xb0], 0
jne 0x140067fe4
mov rcx, qword [rsi + 0x48]
mov rdx, rsi
call fcn.1401035c0
mov rcx, qword [rsi + 0x60]
test rcx, rcx
jne 0x140067efc
mov rdi, qword [rsi + 0x10]
mov qword [rsi + 0x10], 0
test rdi, rdi
je 0x14006791b
lock dec dword [rdi + 8]
jne 0x14006791b
add rdi, 8
add rdi, 0xfffffffffffffff8
mov rcx, rdi
call fcn.1401037c0
mov rcx, rdi
call fcn.1400c9cac
test byte [0x140291180], 0x19
jne 0x140067f07
lea rcx, [rsp + 0xa0]
call fcn.1400720c0
mov rcx, qword [rsp + 0xd8]
xor rcx, rsp
call fcn.1400ccfe0
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 0x1400676ef
lea rcx, [rsp + 0xa8]
call rax
jmp 0x140067768
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edi, eax
mov qword [rsp + 0x90], r13
mov rax, qword [0x1402910e8]
lea rcx, [0x14005a590]
cmp rax, rcx
jne 0x140067d92
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 0x140067ae0
imul rax, rax, 0xf4240
cqo
idiv qword [0x1402979e0]
jmp 0x140067b02
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edi, eax
mov qword [rsp + 0x90], r13
mov rax, qword [0x1402910e8]
lea r14, [0x14005a590]
cmp rax, r14
jne 0x140067da1
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 0x140067b51
imul rax, rax, 0xf4240
cqo
idiv qword [0x1402979e0]
jmp 0x140067b73
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edi, eax
mov qword [rsp + 0x90], r13
mov rax, qword [0x1402910e8]
lea rcx, [0x14005a590]
cmp rax, rcx
jne 0x140067dbf
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 0x140067c8f
imul rax, rax, 0xf4240
cqo
idiv qword [0x1402979e0]
jmp 0x140067cb1
mov rcx, qword [0x1402979e0]
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, [0x140291180]
lea r8, str.WorkerThread_active
mov cl, 0x45
xor r9d, r9d
call fcn.14006a790
jmp 0x1400672de
mov rcx, qword [0x1402979e0]
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, [0x140291180]
lea r8, str.WorkerThread_born
mov cl, 0x49
xor r9d, r9d
call fcn.14006a790
test byte [0x140291180], 0x19
je 0x14006728c
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edi, eax
mov qword [rsp + 0x90], r13
mov rax, qword [0x1402910e8]
cmp rax, r14
jne 0x140067db0
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 0x140067c26
imul rax, rax, 0xf4240
cqo
idiv qword [0x1402979e0]
jmp 0x140067c48
mov rcx, qword [0x1402979e0]
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, [0x140291180]
lea r8, str.WorkerThread_active
mov cl, 0x42
xor r9d, r9d
call fcn.14006a790
jmp 0x14006728c
mov rcx, qword [0x1402979e0]
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, [0x140291180]
lea r8, str.WorkerThread_active
mov cl, 0x42
xor r9d, r9d
call fcn.14006a790
jmp 0x140067368
call fcn.140102a90
mov rax, qword [rsp + 0xb0]
cmp rax, 0xf4241
jl 0x14006735b
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.140001640
jmp 0x14006735b
mov edx, 0x989680
mov rcx, r12
call fcn.140002b70
mov byte [rsp + 0xb0], 1
jmp 0x140067421
mov ebp, 1
jmp 0x140067436
mov ecx, ebp
call fcn.14011e110
mov dword [rsi + 0x6c], ebp
jmp 0x14006743f
lea rcx, [rsp + 0xb8]
call fcn.140084870
jmp 0x1400674fa
lea rcx, [rsp + 0x90]
call rax
jmp 0x140067b0a
lea rcx, [rsp + 0x90]
call rax
jmp 0x140067b7b
lea rcx, [rsp + 0x90]
call rax
jmp 0x140067c50
lea rcx, [rsp + 0x90]
call rax
jmp 0x140067cb9
test rax, rax
js 0x140067e0e
movabs rax, 0x7fffffffffffffff
mov qword [rsp + 0x80], rax
movabs r13, 0xaaaaaaaaaaaaaaaa
jmp 0x1400675ca
lea rcx, [rsp + 0xb8]
call fcn.140084870
mov byte [rsp + 0xb0], 0
jmp 0x14006756f
movabs rax, 0x7fffffffffffffff
inc rax
mov qword [rsp + 0x80], rax
mov rdx, r14
movabs r13, 0xaaaaaaaaaaaaaaaa
jmp 0x1400675d1
test rax, rax
js 0x140067e55
movabs rax, 0x7fffffffffffffff
mov qword [rsp + 0x80], rax
lea rdx, [0x140277880]
jmp 0x140067e26
movabs rax, 0x7fffffffffffffff
inc rax
lea rdx, [rsp + 0x80]
mov qword [rdx], rax
jmp 0x140067e26
test rax, rax
js 0x140067fbd
movabs rax, 0x7fffffffffffffff
mov qword [rsp + 0xb0], rax
lea rdx, [0x140277880]
jmp 0x140067fd5
mov rax, qword [rcx]
call qword [rax + 8]
jmp 0x140067299
mov rax, qword [rsi + 0x50]
mov rax, qword [rax + 0x30]
mov eax, dword [rax]
test al, 1
jne 0x140067ff6
cmp dword [rsi + 0x68], 0
setne dil
movabs r13, 0xaaaaaaaaaaaaaaaa
jmp 0x1400672b4
lea rdi, [rsp + 0xb0]
mov rcx, rdi
mov edx, 2
call fcn.140191b60
lea rcx, [rsp + 0xa0]
mov rdx, rdi
call fcn.1401a8770
mov rcx, rdi
call fcn.1400720c0
jmp 0x1400672d1
mov rax, qword [rcx]
call qword [rax + 0x10]
jmp 0x1400678ec
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edi, eax
lea rsi, [rsp + 0xb0]
mov qword [rsi], r13
mov rcx, rsi
call fcn.14007b660
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, [0x140291180]
lea r8, str.WorkerThread_active
mov cl, 0x45
xor r9d, r9d
call fcn.14006a790
test byte [0x140291180], 0x19
je 0x140067928
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edi, eax
mov qword [rsp + 0xb0], r13
mov rcx, rsi
call fcn.14007b660
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, [0x140291180]
lea r8, str.WorkerThread_dead
mov cl, 0x49
xor r9d, r9d
call fcn.14006a790
jmp 0x140067928
movabs rax, 0x7fffffffffffffff
inc rax
lea rdx, [rsp + 0xb0]
mov qword [rdx], rax
movabs r13, 0xaaaaaaaaaaaaaaaa
jmp 0x140067349
lea rcx, [rsp + 0xb8]
call fcn.140084870
jmp 0x1400678d3
mov dil, 1
jmp 0x140067ebb