Function at 0x14007e9a0
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0xff0]
mov eax, 0x10f0
call fcn.14014ffe0
sub rsp, rax
movaps xmmword [rsp + 0x10e0], xmm7
mov rax, qword [0x14022b800]
xor rax, rsp
mov qword [rbp + 0xfd0], rax
mov rdi, rcx
mov rbx, qword [rcx + 0x48]
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x30], xmm1
test rbx, rbx
je 0x14007ea3a
mov qword [rsp + 0x30], rbx
mov eax, 1
lock xadd dword [rbx], eax
inc eax
cmp eax, 1
jle 0x14007ea28
mov rax, qword gs:[0x30]
mov ecx, dword [rax + 0x48]
cmp dword [rbx + 4], ecx
je 0x14007ea37
mov edx, 0xffffffff
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rax, qword gs:[0x30]
mov ecx, dword [rax + 0x48]
mov dword [rbx + 4], ecx
inc dword [rbx + 8]
xor esi, esi
sub dword [rdi + 0xc8], 1
jne 0x14007ece6
lea rcx, [rbp + 0x7a8]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
xor edx, edx
mov r8d, 0x800
lea rcx, [rbp + 0x7b0]
call fcn.140152140
lea r8, str.OpenCL_Terminate
mov edx, 0x400
lea rcx, [rbp + 0x7b0]
call fcn.140155cf8
mov dword [rbp + 0x7a0], 6
mov byte [rbp + 0xfb0], sil
xorps xmm7, xmm7
movsd qword [rbp + 0xfb8], xmm7
mov byte [rbp + 0xfc0], sil
mov rcx, qword [rdi + 0xd0]
test rcx, rcx
je 0x14007eabe
call qword [sym.imp.OpenCL.dll_clReleaseMemObject]
mov qword [rdi + 0xd0], rsi
mov rcx, rdi
call fcn.14007f700
mov rcx, rdi
call fcn.14007f070
mov rcx, qword [rdi + 0xa8]
test rcx, rcx
je 0x14007eae0
call qword [sym.imp.OpenCL.dll_clReleaseProgram]
mov rcx, qword [rdi + 0xb0]
test rcx, rcx
je 0x14007eaf2
call qword [sym.imp.OpenCL.dll_clReleaseProgram]
mov rcx, qword [rdi + 0x78]
mov rbx, qword [rdi + 0x70]
mov rax, rcx
sub rax, rbx
cmp rax, 8
jb 0x14007eb2b
cmp rbx, rcx
je 0x14007eb27
nop dword [rax + rax]
mov rcx, qword [rbx]
call qword [sym.imp.OpenCL.dll_clReleaseDevice]
add rbx, 8
cmp rbx, qword [rdi + 0x78]
jne 0x14007eb10
mov rbx, qword [rdi + 0x70]
mov qword [rdi + 0x78], rbx
cmp qword [rdi + 0x68], 0
je 0x14007ec56
lea rcx, [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
xor edx, edx
mov r8d, 0x800
lea rcx, [rbp - 0x80]
call fcn.140152140
lea r8, str.OpenCL_clReleaseContext
mov edx, 0x400
lea rcx, [rbp - 0x80]
call fcn.140155cf8
mov dword [rsp + 0x70], 6
mov byte [rbp + 0x780], 0
movsd qword [rbp + 0x788], xmm7
mov byte [rbp + 0x790], 0
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x40]
mov edx, 0x1080
mov r8d, 8
mov rcx, qword [rdi + 0x68]
call qword [sym.imp.OpenCL.dll_clGetContextInfo]
mov r8, qword [rsp + 0x40]
lea rdx, str.OpenCL_context_ref_count__d
mov ecx, 6
call fcn.140083970
mov rcx, qword [rdi + 0x68]
call qword [sym.imp.OpenCL.dll_clReleaseContext]
mov qword [rdi + 0x68], rsi
lea rcx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
mov rax, qword [rsp + 0x48]
sub rax, qword [rsp + 0x78]
xorps xmm3, xmm3
cvtsi2sd xmm3, rax
mulsd xmm3, qword [0x1401f9d00]
xorps xmm0, xmm0
cvtsi2sd xmm0, qword [rsp + 0x50]
divsd xmm3, xmm0
comisd xmm3, xmmword [rbp + 0x788]
jbe 0x14007ec56
cmp byte [rbp + 0x790], 0
je 0x14007ec2c
mov eax, dword [0x140230ce8]
add eax, 0xfffffffe
cmp eax, 1
ja 0x14007ec56
movq r9, xmm3
lea r8, [rbp - 0x80]
mov ecx, dword [rsp + 0x70]
cmp byte [rbp + 0x780], 0
lea rdx, str._s_end___f_
jne 0x14007ec50
lea rdx, str._s___f_
call fcn.140083970
nop
lea rcx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
mov rax, qword [rsp + 0x58]
sub rax, qword [rbp + 0x7a8]
xorps xmm3, xmm3
cvtsi2sd xmm3, rax
mulsd xmm3, qword [0x1401f9d00]
xorps xmm0, xmm0
cvtsi2sd xmm0, qword [rsp + 0x60]
divsd xmm3, xmm0
comisd xmm3, xmmword [rbp + 0xfb8]
jbe 0x14007ece6
cmp byte [rbp + 0xfc0], 0
je 0x14007ecb7
mov eax, dword [0x140230ce8]
add eax, 0xfffffffe
cmp eax, 1
ja 0x14007ece6
movq r9, xmm3
lea r8, [rbp + 0x7b0]
mov ecx, dword [rbp + 0x7a0]
cmp byte [rbp + 0xfb0], 0
lea rdx, str._s_end___f_
jne 0x14007ece0
lea rdx, str._s___f_
call fcn.140083970
nop
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x14007ed26
add dword [rcx + 8], 0xffffffff
mov r8d, dword [rcx + 8]
jne 0x14007ecfd
mov dword [rcx + 4], esi
mov eax, 0xffffffff
lock xadd dword [rcx], eax
cmp eax, 1
je 0x14007ed26
test r8d, r8d
jne 0x14007ed26
xor r8d, r8d
lea edx, [r8 + 1]
mov rcx, qword [rsp + 0x30]
mov rcx, qword [rcx + 0x10]
call qword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
xor eax, eax
mov rcx, qword [rbp + 0xfd0]
xor rcx, rsp
call fcn.14014f2f0
lea r11, [rsp + 0x10f0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
movaps xmm7, xmmword [r11 - 0x10]
mov rsp, r11
pop rbp
ret