Function at 0x180025610
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x40
movzx ebp, dl
mov rbx, rcx
xor r14d, r14d
cmp qword [rcx + 8], r14
je 0x180025666
mov eax, 1
xchg byte [rcx + 0x18], al
mov edx, 0x3e8
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x180025658
xor edx, edx
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 8], r14
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x180025698
mov edx, 0x3e8
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x18002568a
xor edx, edx
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x10], r14
mov rcx, qword [rbx + 0x20]
mov qword [rbx + 0x20], r14
test rcx, rcx
je 0x1800256af
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
mov ecx, dword [0x1800a0fd0]
mov rax, qword gs:[0x58]
mov edx, 4
mov rsi, qword [rax + rcx*8]
add rsi, rdx
mov eax, dword [rsi]
cmp dword [0x1800a2bd8], eax
jle 0x180025707
lea rcx, [0x1800a2bd8]
call fcn.18004a088
cmp dword [0x1800a2bd8], 0xffffffff
jne 0x180025707
call fcn.18001ad10
lea rcx, [0x18007b260]
call fcn.18004a60c
nop
lea rcx, [0x1800a2bd8]
call fcn.18004a028
lea rcx, [0x1800a2db0]
call fcn.18001d310
mov eax, r14d
xchg byte [0x1800a2d49], al
mov rcx, qword [0x1800a2cb0]
test rcx, rcx
je 0x18002580e
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x20], xmm0
mov rax, qword [0x1800a2cb8]
test rax, rax
je 0x18002574c
lock inc dword [rax + 8]
mov rax, qword [0x1800a2cb8]
mov qword [rsp + 0x20], rcx
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x20]
mov qword [rsp + 0x60], rdx
movdqu xmmword [rsp + 0x30], xmm0
test rax, rax
je 0x180025779
lock inc dword [rax + 8]
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x20]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x38], rax
lea rdx, [rsp + 0x30]
lea rcx, [0x1800a2be0]
call fcn.18002d740
nop
mov edi, 0xffffffff
mov rbx, qword [rsp + 0x28]
test rbx, rbx
je 0x1800257cd
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x1800257cd
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, edi
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x1800257cd
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
mov qword [0x1800a2cb0], r14
mov rbx, qword [0x1800a2cb8]
mov qword [0x1800a2cb8], r14
test rbx, rbx
je 0x18002580e
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x18002580e
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], edi
cmp edi, 1
jne 0x18002580e
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
mov rcx, qword [0x1800a2d58]
test rcx, rcx
je 0x180025820
call qword [sym.imp.USER32.dll_UnhookWindowsHookEx]
mov qword [0x1800a2cc0], r14
test bpl, bpl
je 0x180025870
mov eax, dword [rsi]
cmp dword [0x1800a2bd8], eax
jle 0x180025869
lea rcx, [0x1800a2bd8]
call fcn.18004a088
cmp dword [0x1800a2bd8], 0xffffffff
jne 0x180025869
call fcn.18001ad10
lea rcx, [0x18007b260]
call fcn.18004a60c
nop
lea rcx, [0x1800a2bd8]
call fcn.18004a028
mov byte [0x1800a2be8], 1
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret