Function at 0x761bf0
Capabilities:
Terminate thread

Disassembly:
push r13
push r12
push rsi
push rbx
sub rsp, 0x38
mov r12, qword [rcx + 0x68]
mov rbx, rcx
test r12, r12
je 0x761c27
mov rax, qword [r12]
mov ecx, 1
lock sub dword [rax + 0x30], 1
je 0x761d78
mov edx, 8
mov rcx, r12
call sym.operator_delete_void__unsigned_long_long_
mov rax, qword [rbx + 0x58]
mov qword [rbx + 0x68], 0
test rax, rax
je 0x761d6a
mov edx, 1
mov rax, qword [rax + 0x10]
mov ecx, edx
xchg dword [rax + 0x34], ecx
test ecx, ecx
je 0x761de0
mov rsi, qword [rbx + 0x70]
test rsi, rsi
je 0x761cd5
mov rax, qword [rsi + 8]
lea rdx, [rsp + 0x20]
xor r8d, r8d
mov ecx, 2
mov r9d, 0xffffffff
mov qword [rsp + 0x20], rax
mov rax, qword [rsi]
mov qword [rsp + 0x28], rax
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov rcx, qword [rsi + 8]
mov r13, qword [sym.imp.KERNEL32.dll_CloseHandle]
call r13
xor eax, eax
lock xadd dword [0x0086d5a0], eax
test eax, eax
je 0x761e38
mov rcx, qword [rsi]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov r12, qword [rbx + 0x70]
test r12, r12
je 0x761ccd
mov rcx, qword [r12]
call r13
mov edx, 0x10
mov rcx, r12
call sym.operator_delete_void__unsigned_long_long_
mov qword [rbx + 0x70], 0
mov r13, qword [rbx + 0x58]
test r13, r13
je 0x761d62
mov r12, qword [r13 + 8]
test r12, r12
je 0x761d47
mov rsi, qword [r12 + 0x38]
test rsi, rsi
je 0x761d2f
nop dword [rax]
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x10]
mov rsi, qword [rsi + 0x20]
test rsi, rsi
jne 0x761cf8
mov rsi, qword [r12 + 0x38]
test rsi, rsi
je 0x761d2f
nop dword [rax]
mov rcx, rsi
mov rsi, qword [rsi + 0x20]
mov rax, qword [rcx]
call qword [rax + 8]
mov qword [r12 + 0x38], rsi
test rsi, rsi
jne 0x761d18
lea rcx, [r12 + 8]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov edx, 0x40
mov rcx, r12
call sym.operator_delete_void__unsigned_long_long_
lock sub dword [0x0086d590], 1
je 0x761e60
mov edx, 0x18
mov rcx, r13
call sym.operator_delete_void__unsigned_long_long_
mov qword [rbx + 0x58], 0
add rsp, 0x38
pop rbx
pop rsi
pop r12
pop r13
ret
mov edx, ecx
xchg dword [rax + 0x34], edx
test edx, edx
jne 0x761c1a
xchg dword [rax + 0x38], ecx
test ecx, ecx
jne 0x761c1a
xor r9d, r9d
xor r8d, r8d
mov rcx, qword [rax + 0x28]
call qword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
test eax, eax
jne 0x761c1a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call method.boost::system.system_category__
mov dword [rsp + 0x20], esi
mov qword [rsp + 0x28], rax
test esi, esi
je 0x761c1a
lea rcx, [rsp + 0x20]
lea rdx, str.pqcs
call method.boost::asio::detail.do_throw_error_boost::system::error_code_const__char_const_
nop word [rax + rax]
xchg dword [rax + 0x38], edx
test edx, edx
jne 0x761c52
xor r9d, r9d
xor r8d, r8d
mov rcx, qword [rax + 0x28]
call qword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
test eax, eax
jne 0x761c52
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call method.boost::system.system_category__
mov dword [rsp + 0x20], esi
mov qword [rsp + 0x28], rax
test esi, esi
je 0x761c52
lea rcx, [rsp + 0x20]
lea rdx, str.pqcs
call method.boost::asio::detail.do_throw_error_boost::system::error_code_const__char_const_
nop word [rax + rax]
mov rdx, qword [rsi]
xor r8d, r8d
lea rcx, [method.boost::asio::detail.apc_function_unsigned_long_long_]
call qword [sym.imp.KERNEL32.dll_QueueUserAPC]
mov rcx, qword [rsi]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x761cb0
call qword [sym.imp.WS2_32.dll_WSACleanup]
jmp 0x761d55