Function at 0x180028900
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 0x180028956
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 0x180028948
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 0x180028988
mov edx, 0x3e8
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x18002897a
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 0x18002899f
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
mov ecx, dword [0x1800a2a00]
mov rax, qword gs:[0x58]
mov edx, 4
mov rsi, qword [rax + rcx*8]
add rsi, rdx
mov eax, dword [rsi]
cmp dword [0x1800a49e8], eax
jle 0x1800289f7
lea rcx, [0x1800a49e8]
call fcn.180050638
cmp dword [0x1800a49e8], 0xffffffff
jne 0x1800289f7
call fcn.18001dcc0
lea rcx, [0x18007fde0]
call fcn.180050b14
nop
lea rcx, [0x1800a49e8]
call fcn.1800505cc
lea rcx, [0x1800a4bc0]
call fcn.180020540
mov eax, r14d
xchg byte [0x1800a4b59], al
mov rcx, qword [0x1800a4ac0]
test rcx, rcx
je 0x180028af5
xorps xmm0, xmm0
movdqa xmmword [rsp + 0x20], xmm0
mov rax, qword [0x1800a4ac8]
test rax, rax
je 0x180028a3c
lock inc dword [rax + 8]
mov rax, qword [0x1800a4ac8]
mov qword [rsp + 0x20], rcx
mov qword [rsp + 0x28], rax
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x60], rcx
movdqa xmmword [rsp + 0x30], xmm0
test rax, rax
je 0x180028a5f
lock inc dword [rax + 8]
movaps xmm0, xmmword [rsp + 0x20]
movdqa xmmword [rsp + 0x30], xmm0
lea rdx, [rsp + 0x30]
lea rcx, [0x1800a49f0]
call fcn.180032420
nop
mov edi, 0xffffffff
mov rbx, qword [rsp + 0x28]
test rbx, rbx
je 0x180028ab4
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x180028ab4
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, edi
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x180028ab4
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
mov qword [0x1800a4ac0], r14
mov rbx, qword [0x1800a4ac8]
mov qword [0x1800a4ac8], r14
test rbx, rbx
je 0x180028af5
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x180028af5
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], edi
cmp edi, 1
jne 0x180028af5
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
mov rcx, qword [0x1800a4b68]
test rcx, rcx
je 0x180028b07
call qword [sym.imp.USER32.dll_UnhookWindowsHookEx]
mov qword [0x1800a4ad0], r14
test bpl, bpl
je 0x180028b57
mov eax, dword [rsi]
cmp dword [0x1800a49e8], eax
jle 0x180028b50
lea rcx, [0x1800a49e8]
call fcn.180050638
cmp dword [0x1800a49e8], 0xffffffff
jne 0x180028b50
call fcn.18001dcc0
lea rcx, [0x18007fde0]
call fcn.180050b14
nop
lea rcx, [0x1800a49e8]
call fcn.1800505cc
mov byte [0x1800a49f8], 1
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret