Function at 0x14000bfb0
Capabilities:
Terminate thread

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0xb8
lea rbp, [rsp + 0x80]
vmovaps xmmword [rbp + 0x20], xmm6
mov qword [rbp + 0x18], 0xfffffffffffffffe
mov rsi, rcx
mov eax, 1
xchg dword [rcx + 0x3c], eax
cmp qword [rcx + 0x48], 0
je 0x14000c01a
mov qword [rbp - 0x40], 1
mov rcx, qword [rsi + 0x50]
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea rdx, [rbp - 0x40]
mov r8d, 1
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_SetWaitableTimer]
cmp qword [rsi + 0xa8], 0
je 0x14000c15d
mov eax, 1
mov ecx, 1
xchg dword [rsi + 0x34], ecx
test ecx, ecx
jne 0x14000c0be
xchg dword [rsi + 0x38], eax
test eax, eax
jne 0x14000c0be
mov rcx, qword [rsi + 0x28]
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
test eax, eax
jne 0x14000c0be
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov qword [rbp], 0
mov rax, qword [0x1400325d0]
shr rax, 1
movabs rcx, 0x595588bd12bf6fe8
cmp rax, rcx
jne 0x14000c08a
test edi, edi
setne al
jmp 0x14000c09d
mov rax, qword [0x1400325c8]
lea rcx, [0x1400325c8]
mov edx, edi
call qword [rax + 0x30]
movzx eax, al
or rax, 2
mov qword [rbp + 0x10], rax
mov dword [rbp], edi
lea rcx, [0x1400325c8]
mov qword [rbp + 8], rcx
test al, 1
jne 0x14000c384
mov rdi, qword [rsi + 0xa8]
vpermilps xmm0, xmmword [rdi + 8], 0x4e
vmovaps xmmword [rbp - 0x40], xmm0
lea rdx, [rbp - 0x40]
mov ecx, 2
xor r8d, r8d
mov r9d, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mfence
mov eax, dword [0x140033ab8]
mov rdx, qword [rdi + 8]
test eax, eax
je 0x14000c111
mov rcx, rdx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
jmp 0x14000c130
lea rcx, [0x14000d760]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_QueueUserAPC]
mov rcx, qword [rdi + 8]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rdi, qword [rsi + 0xa8]
test rdi, rdi
je 0x14000c14e
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call fcn.14001d8fc
mov qword [rsi + 0xa8], 0
lock dec dword [rsi + 0x30]
mfence
mov eax, dword [rsi + 0x30]
test eax, eax
jle 0x14000c2f7
lea rdi, [rsi + 0x90]
vxorps xmm6, xmm6, xmm6
lea r14, [rbp - 8]
mov rbx, qword [sym.imp.KERNEL32.dll_GetQueuedCompletionStatus]
lea r15, [rbp - 0x40]
mov r12, rbp
jmp 0x14000c19e
mfence
mov eax, dword [rsi + 0x30]
test eax, eax
jle 0x14000c2f7
vmovaps xmmword [rbp], xmm6
mov r13, qword [rsi + 0x88]
jmp 0x14000c1c1
mov rax, qword [r13]
mov rcx, r13
mov rdx, r12
call qword [rax + 0x28]
mov r13, qword [r13 + 8]
test r13, r13
jne 0x14000c1b0
mov rax, qword [rdi]
test rax, rax
je 0x14000c1ef
mov rcx, qword [rbp + 8]
lea rdx, [rcx + 0x20]
test rcx, rcx
cmove rdx, r12
mov qword [rdx], rax
mov rax, qword [rsi + 0x98]
mov qword [rbp + 8], rax
vmovups xmmword [rdi], xmm6
mov rdx, qword [rbp]
test rdx, rdx
je 0x14000c250
nop dword [rax + rax]
test rdx, rdx
je 0x14000c190
mov rax, qword [rdx + 0x20]
mov qword [rbp], rax
test rax, rax
jne 0x14000c21a
mov qword [rbp + 8], 0
mov qword [rdx + 0x20], 0
lock dec dword [rsi + 0x30]
mov rax, qword [rdx + 0x28]
vmovaps xmmword [rbp - 0x40], xmm6
mov qword [rbp - 0x30], 0
xor ecx, ecx
mov r8, r15
xor r9d, r9d
call rax
mov rdx, qword [rbp]
test rdx, rdx
jne 0x14000c205
jmp 0x14000c190
mov dword [rbp - 0xc], 0
mov qword [rbp - 0x48], 0
mov qword [rbp - 8], 0
mov eax, dword [rsi + 0x40]
mov rcx, qword [rsi + 0x28]
mov dword [rsp + 0x20], eax
lea rdx, [rbp - 0xc]
lea r8, [rbp - 0x48]
mov r9, r14
call rbx
cmp qword [rbp - 8], 0
je 0x14000c2d3
lock dec dword [rsi + 0x30]
mov rdx, qword [rbp - 8]
mov rax, qword [rdx + 0x28]
vmovaps xmmword [rbp - 0x40], xmm6
mov qword [rbp - 0x30], 0
xor ecx, ecx
mov r8, r15
xor r9d, r9d
call rax
jmp 0x14000c2d3
mov qword [rdx + 0x20], 0
mov rax, qword [rdx + 0x28]
vmovaps xmmword [rbp - 0x40], xmm6
mov qword [rbp - 0x30], 0
xor ecx, ecx
mov r8, r15
xor r9d, r9d
call rax
mov rdx, qword [rbp]
test rdx, rdx
je 0x14000c190
mov rax, qword [rdx + 0x20]
mov qword [rbp], rax
test rax, rax
jne 0x14000c2b0
mov qword [rbp + 8], 0
jmp 0x14000c2b0
mov rsi, qword [rsi + 0x48]
test rsi, rsi
je 0x14000c36b
vpermilps xmm0, xmmword [rsi + 8], 0x4e
vmovaps xmmword [rbp - 0x40], xmm0
lea rdx, [rbp - 0x40]
mov ecx, 2
xor r8d, r8d
mov r9d, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov rcx, qword [rsi + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mfence
mov eax, dword [0x140033ab8]
mov rdx, qword [rsi + 8]
test eax, eax
je 0x14000c34c
mov rcx, rdx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
jmp 0x14000c36b
lea rcx, [0x14000d760]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_QueueUserAPC]
mov rcx, qword [rsi + 8]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
vmovaps xmm6, xmmword [rbp + 0x20]
add rsp, 0xb8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
lea r8, str.pqcs
lea rsi, [rbp - 0x40]
mov rdx, rbp
mov rcx, rsi
call fcn.140005680
mov rcx, rsi
call fcn.140005750
int3