Function at 0x140012580
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 rsi, rcx
mov eax, 1
xchg dword [rcx + 0x3c], eax
cmp qword [rcx + 0x48], 0
je 0x1400125e9
mov qword [rbp - 0x30], 1
mov rcx, qword [rsi + 0x50]
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea rdx, [rbp - 0x30]
mov r8d, 1
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_SetWaitableTimer]
cmp qword [rsi + 0xa8], 0
je 0x1400126a2
mov rcx, rsi
call fcn.140012f80
mov rdi, qword [rsi + 0xa8]
movdqu xmm0, xmmword [rdi + 8]
pshufd xmm0, xmm0, 0x4e
movdqa xmmword [rbp - 0x30], xmm0
lea rdx, [rbp - 0x30]
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 [0x140113d48]
mov rdx, qword [rdi + 8]
test eax, eax
je 0x140012655
mov rcx, rdx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
jmp 0x140012674
lea rcx, [method.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.virtual_8]
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 0x140012692
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call fcn.14009fe00
mov qword [rsi + 0xa8], 0
lock sub dword [rsi + 0x30], 1
mfence
mov eax, dword [rsi + 0x30]
test eax, eax
jle 0x140012836
lea r14, [rsi + 0x90]
xorps xmm6, xmm6
lea r12, [rbp - 0x38]
mov r15, qword [sym.imp.KERNEL32.dll_GetQueuedCompletionStatus]
lea rbx, [rbp - 0x30]
lea r13, [rbp - 0x10]
jmp 0x1400126de
mfence
mov eax, dword [rsi + 0x30]
test eax, eax
jle 0x140012836
movaps xmmword [rbp - 0x10], xmm6
mov rdi, qword [rsi + 0x88]
test rdi, rdi
je 0x140012705
nop
mov rax, qword [rdi]
mov rcx, rdi
mov rdx, r13
call qword [rax + 0x28]
mov rdi, qword [rdi + 8]
test rdi, rdi
jne 0x1400126f0
mov rax, qword [r14]
test rax, rax
je 0x14001272e
mov rcx, qword [rbp - 8]
lea rdx, [rcx + 0x20]
test rcx, rcx
cmove rdx, r13
mov qword [rdx], rax
mov rax, qword [rsi + 0x98]
mov qword [rbp - 8], rax
movups xmmword [r14], xmm6
mov rdx, qword [rbp - 0x10]
test rdx, rdx
je 0x140012790
nop word [rax + rax]
test rdx, rdx
je 0x1400126d0
mov rax, qword [rdx + 0x20]
mov qword [rbp - 0x10], rax
test rax, rax
jne 0x14001275a
mov qword [rbp - 8], 0
mov qword [rdx + 0x20], 0
lock sub dword [rsi + 0x30], 1
mov rax, qword [rdx + 0x28]
movaps xmmword [rbp - 0x30], xmm6
mov qword [rbp - 0x20], 0
xor ecx, ecx
mov r8, rbx
xor r9d, r9d
call rax
mov rdx, qword [rbp - 0x10]
test rdx, rdx
jne 0x140012745
jmp 0x1400126d0
mov dword [rbp - 0x3c], 0
mov qword [rbp - 0x48], 0
mov qword [rbp - 0x38], 0
mov eax, dword [rsi + 0x40]
mov rcx, qword [rsi + 0x28]
mov dword [rsp + 0x20], eax
lea rdx, [rbp - 0x3c]
lea r8, [rbp - 0x48]
mov r9, r12
call r15
cmp qword [rbp - 0x38], 0
je 0x140012812
lock sub dword [rsi + 0x30], 1
mov rdx, qword [rbp - 0x38]
mov rax, qword [rdx + 0x28]
movaps xmmword [rbp - 0x30], xmm6
mov qword [rbp - 0x20], 0
xor ecx, ecx
mov r8, rbx
xor r9d, r9d
call rax
jmp 0x140012812
mov qword [rdx + 0x20], 0
mov rax, qword [rdx + 0x28]
movaps xmmword [rbp - 0x30], xmm6
mov qword [rbp - 0x20], 0
xor ecx, ecx
mov r8, rbx
xor r9d, r9d
call rax
mov rdx, qword [rbp - 0x10]
test rdx, rdx
je 0x1400126d0
mov rax, qword [rdx + 0x20]
mov qword [rbp - 0x10], rax
test rax, rax
jne 0x1400127f0
mov qword [rbp - 8], 0
jmp 0x1400127f0
mov rdi, qword [rsi + 0x48]
test rdi, rdi
je 0x1400128d4
movdqu xmm0, xmmword [rdi + 8]
pshufd xmm0, xmm0, 0x4e
movdqa xmmword [rbp - 0x30], xmm0
lea rdx, [rbp - 0x30]
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 [0x140113d48]
mov rdx, qword [rdi + 8]
test eax, eax
je 0x140012892
mov rcx, rdx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
jmp 0x1400128b1
lea rcx, [method.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.virtual_8]
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 + 0x48]
test rdi, rdi
je 0x1400128cc
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call fcn.14009fe00
mov qword [rsi + 0x48], 0
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