Function at 0x14000c690
Capabilities:
Terminate thread

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x37]
sub rsp, 0xa0
mov rsi, rcx
mov ebx, 1
mov eax, ebx
xchg dword [rcx + 0x3c], eax
xor edi, edi
cmp qword [rcx + 0x48], rdi
je 0x14000c6d9
mov qword [rbp + 0x77], rbx
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rdi
xor r9d, r9d
mov r8d, ebx
lea rdx, [rbp + 0x77]
mov rcx, qword [rcx + 0x50]
call qword [sym.imp.KERNEL32.dll_SetWaitableTimer]
cmp qword [rsi + 0xa8], rdi
je 0x14000c7cc
mov eax, ebx
xchg dword [rsi + 0x34], eax
test eax, eax
jne 0x14000c728
xchg dword [rsi + 0x38], ebx
test ebx, ebx
jne 0x14000c728
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsi + 0x28]
call qword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
test eax, eax
jne 0x14000c728
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call fcn.14000b820
mov dword [rbp - 0x29], ebx
mov qword [rbp - 0x21], rax
test ebx, ebx
jne 0x14000ca03
mov rbx, qword [rsi + 0xa8]
mov rax, qword [rbx + 0x10]
mov qword [rbp - 0x19], rax
mov rax, qword [rbx + 8]
mov qword [rbp - 0x11], rax
mov r9d, 0xffffffff
xor r8d, r8d
lea rdx, [rbp - 0x19]
lea ecx, [r8 + 2]
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
lock xadd dword [0x140088ed0], eax
mov rcx, qword [rbx + 8]
test eax, eax
je 0x14000c77c
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
jmp 0x14000c79e
xor r8d, r8d
mov rdx, rcx
lea rcx, [fcn.14000bd70]
call qword [sym.imp.KERNEL32.dll_QueueUserAPC]
mov edx, 0xffffffff
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rbx, qword [rsi + 0xa8]
test rbx, rbx
je 0x14000c7c1
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, 0x18
mov rcx, rbx
call fcn.1400316f8
mov qword [rsi + 0xa8], rdi
lock dec dword [rsi + 0x30]
mov eax, edi
lock xadd dword [rsi + 0x30], eax
test eax, eax
jle 0x14000c970
lea r14, [0x140085e60]
nop dword [rax]
nop word [rax + rax]
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x39], xmm0
mov rbx, qword [rsi + 0x88]
test rbx, rbx
je 0x14000c826
nop dword [rax]
nop dword [rax + rax]
mov rax, qword [rbx]
lea rdx, [rbp - 0x39]
mov rcx, rbx
call qword [rax + 0x28]
mov rbx, qword [rbx + 8]
test rbx, rbx
jne 0x14000c810
mov rdx, qword [rsi + 0x90]
test rdx, rdx
je 0x14000c864
mov rax, qword [rbp - 0x31]
test rax, rax
je 0x14000c845
mov qword [rax + 0x20], rdx
mov rdx, qword [rbp - 0x39]
jmp 0x14000c849
mov qword [rbp - 0x39], rdx
mov rax, qword [rsi + 0x98]
mov qword [rbp - 0x31], rax
mov qword [rsi + 0x90], rdi
mov qword [rsi + 0x98], rdi
jmp 0x14000c868
mov rdx, qword [rbp - 0x39]
test rdx, rdx
je 0x14000c8c4
mov r8, rdx
mov rax, rdx
mov rcx, rdx
test rax, rax
je 0x14000c896
mov rax, qword [rcx + 0x20]
mov qword [rbp - 0x39], rax
mov rcx, qword [rbp - 0x31]
test rax, rax
cmove rcx, rdi
mov qword [rbp - 0x31], rcx
mov qword [r8 + 0x20], rdi
lock dec dword [rsi + 0x30]
mov rax, qword [rdx + 0x28]
mov dword [rbp - 9], edi
mov qword [rbp - 1], r14
xor r9d, r9d
lea r8, [rbp - 9]
xor ecx, ecx
call rax
mov rdx, qword [rbp - 0x39]
mov r8, rdx
mov rax, rdx
mov rcx, rdx
test rdx, rdx
jne 0x14000c876
jmp 0x14000c912
mov dword [rbp + 0x67], edi
mov qword [rbp + 0x7f], rdi
mov qword [rbp + 0x6f], rdi
mov eax, dword [rsi + 0x40]
mov dword [rsp + 0x20], eax
lea r9, [rbp + 0x6f]
lea r8, [rbp + 0x7f]
lea rdx, [rbp + 0x67]
mov rcx, qword [rsi + 0x28]
call qword [sym.imp.KERNEL32.dll_GetQueuedCompletionStatus]
cmp qword [rbp + 0x6f], 0
je 0x14000c912
lock dec dword [rsi + 0x30]
mov rdx, qword [rbp + 0x6f]
mov rax, qword [rdx + 0x28]
mov dword [rbp + 7], edi
mov qword [rbp + 0xf], r14
xor r9d, r9d
lea r8, [rbp + 7]
xor ecx, ecx
call rax
nop
mov rdx, qword [rbp - 0x39]
test rdx, rdx
je 0x14000c961
mov r8, rdx
mov rax, rdx
mov rax, qword [rax + 0x20]
mov qword [rbp - 0x39], rax
mov rcx, qword [rbp - 0x31]
test rax, rax
cmove rcx, rdi
mov qword [rbp - 0x31], rcx
mov qword [r8 + 0x20], rdi
mov rax, qword [rdx + 0x28]
mov dword [rbp + 0x17], edi
mov qword [rbp + 0x1f], r14
xor r9d, r9d
lea r8, [rbp + 0x17]
xor ecx, ecx
call rax
mov rdx, qword [rbp - 0x39]
mov r8, rdx
mov rax, rdx
test rdx, rdx
jne 0x14000c921
mov eax, edi
lock xadd dword [rsi + 0x30], eax
test eax, eax
jg 0x14000c7f0
mov rbx, qword [rsi + 0x48]
test rbx, rbx
je 0x14000c9f5
mov rax, qword [rbx + 0x10]
mov qword [rbp + 0x27], rax
mov rax, qword [rbx + 8]
mov qword [rbp + 0x2f], rax
mov r9d, 0xffffffff
xor r8d, r8d
lea rdx, [rbp + 0x27]
lea ecx, [r8 + 2]
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lock xadd dword [0x140088ed0], edi
mov rax, qword [rbx + 8]
test edi, edi
je 0x14000c9d3
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateThread]
add rsp, 0xa0
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
xor r8d, r8d
mov rdx, rax
lea rcx, [fcn.14000bd70]
call qword [sym.imp.KERNEL32.dll_QueueUserAPC]
mov edx, 0xffffffff
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
add rsp, 0xa0
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
lea rdx, str.pqcs
lea rcx, [rbp - 0x29]
call fcn.14000b7f0
int3