Function at 0x140008cbc
Capabilities:
Terminate thread

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0xa8
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0x10], xmm6
mov qword [rbp + 8], 0xfffffffffffffffe
mov r13, rcx
mov eax, 1
xchg dword [rcx + 0x3c], eax
cmp qword [rcx + 0x48], 0
je 0x140008d24
lea rdx, [rbp - 0x40]
mov qword [rdx], 1
mov rcx, qword [r13 + 0x50]
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r8d, 1
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_SetWaitableTimer]
cmp qword [r13 + 0xa8], 0
je 0x140008e39
lea rdi, [r13 + 0xa8]
mov eax, 1
mov ecx, 1
xchg dword [r13 + 0x34], ecx
test ecx, ecx
jne 0x140008dba
xchg dword [r13 + 0x38], eax
test eax, eax
jne 0x140008dba
mov rcx, qword [r13 + 0x28]
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
test eax, eax
jne 0x140008dba
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, [0x140098748]
lea rsi, [rbp - 0x40]
mov rcx, rsi
mov edx, eax
call fcn.14000689a
lea rax, str.win_iocp_io_context.ipp
lea r8, [rbp - 0x20]
mov qword [r8], rax
lea rax, str.stop
mov qword [r8 + 8], rax
movabs rax, 0x900000120
mov qword [r8 + 0x10], rax
lea rdx, str.pqcs
mov rcx, rsi
call fcn.140007e17
mov rsi, qword [rdi]
movdqu xmm0, xmmword [rsi + 8]
pshufd xmm0, xmm0, 0x4e
lea rdx, [rbp - 0x40]
movdqa xmmword [rdx], xmm0
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 [0x14009ea5c]
mov rdx, qword [rsi + 8]
test eax, eax
je 0x140008e0b
mov rcx, rdx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
jmp 0x140008e2a
lea rcx, [method.boost::asio::detail::win_iocp_io_context.virtual_16]
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]
mov rcx, rdi
xor edx, edx
call fcn.140008a18
lock dec dword [r13 + 0x30]
mfence
mov eax, dword [r13 + 0x30]
test eax, eax
jle 0x140008f60
lea r14, [r13 + 0x90]
xorps xmm6, xmm6
xor r15d, r15d
mov r12, rbp
lea rbx, [rbp - 0x40]
lea rdi, [rbp - 0x20]
movaps xmmword [rbp - 0x20], xmm6
mov rsi, qword [r13 + 0x88]
test rsi, rsi
je 0x140008e82
mov rax, qword [rsi]
mov rcx, rsi
mov rdx, rdi
call qword [rax + 0x28]
mov rsi, qword [rsi + 8]
jmp 0x140008e6b
mov rax, qword [r14]
test rax, rax
je 0x140008eac
mov rcx, qword [rbp - 0x18]
test rcx, rcx
je 0x140008e99
mov qword [rcx + 0x20], rax
jmp 0x140008e9d
mov qword [rbp - 0x20], rax
mov rax, qword [r13 + 0x98]
mov qword [rbp - 0x18], rax
movups xmmword [r14], xmm6
mov rdx, qword [rbp - 0x20]
test rdx, rdx
je 0x140008ef4
mov rax, qword [rdx + 0x20]
mov qword [rbp - 0x20], rax
test rax, rax
jne 0x140008eca
mov qword [rbp - 0x18], 0
mov qword [rdx + 0x20], r15
lock dec dword [r13 + 0x30]
mov rax, qword [rdx + 0x28]
mov qword [rbp - 0x30], r15
movaps xmmword [rbp - 0x40], xmm6
xor ecx, ecx
mov r8, rbx
xor r9d, r9d
call rax
mov rdx, qword [rbp - 0x20]
test rdx, rdx
jne 0x140008eb5
jmp 0x140008f49
mov dword [rbp - 4], 0
mov qword [rbp - 0x48], r15
mov qword [rbp], r15
mov eax, dword [r13 + 0x40]
mov rcx, qword [r13 + 0x28]
mov dword [rsp + 0x20], eax
lea rdx, [rbp - 4]
lea r8, [rbp - 0x48]
mov r9, r12
call qword [sym.imp.KERNEL32.dll_GetQueuedCompletionStatus]
cmp qword [rbp], r15
je 0x140008f49
lock dec dword [r13 + 0x30]
mov rdx, qword [rbp]
mov rax, qword [rdx + 0x28]
movaps xmmword [rbp - 0x40], xmm6
mov qword [rbp - 0x30], 0
xor ecx, ecx
mov r8, rbx
xor r9d, r9d
call rax
mov rcx, rdi
call fcn.140008a76
mfence
mov eax, dword [r13 + 0x30]
test eax, eax
jg 0x140008e60
add r13, 0x48
mov rsi, qword [r13]
test rsi, rsi
je 0x140008fe4
movdqu xmm0, xmmword [rsi + 8]
pshufd xmm0, xmm0, 0x4e
lea rdx, [rbp - 0x40]
movdqa xmmword [rdx], xmm0
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 [0x14009ea5c]
mov rdx, qword [rsi + 8]
test eax, eax
je 0x140008fbb
mov rcx, rdx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
jmp 0x140008fda
lea rcx, [method.boost::asio::detail::win_iocp_io_context.virtual_16]
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]
mov rcx, r13
xor edx, edx
call fcn.140008a18
movaps xmm6, xmmword [rbp + 0x10]
add rsp, 0xa8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret