Function at 0x180027730
Capabilities:
Terminate thread

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x70], rbx
mov rsi, rcx
xor edi, edi
cmp rcx, rdi
jne 0x180027757
xor eax, eax
jmp 0x180027997
cmp dword [rcx + 0x28], edi
je 0x180027766
mov edi, 1
jmp 0x1800278b8
mov ecx, reloc.WS2_32.dll_recv
call fcn.180052a04
cmp rax, rdi
je 0x18002777b
mov qword [rax + 8], rsi
jmp 0x18002777e
mov rax, rdi
mov qword [rsi + 0x30], rax
mov ecx, 0xc0
call fcn.180052a04
mov rbx, rax
mov qword [rsp + 0x60], rax
cmp rax, rdi
je 0x18002785e
mov rcx, rax
call fcn.1800280e8
mov qword [rbx], rdi
mov word [rbx + 8], di
lea rbp, [rbx + 0x18]
mov qword [rsp + 0x68], rbp
mov ecx, 8
call fcn.180052a04
cmp rax, rdi
je 0x1800277c9
mov qword [rax], rbp
jmp 0x1800277cc
mov rax, rdi
mov qword [rbp], rax
mov rcx, rbp
call fcn.180034fa8
mov qword [rbp + 0x30], rax
mov byte [rax + 0x59], 1
mov rax, qword [rbp + 0x30]
mov qword [rax + 8], rax
mov rax, qword [rbp + 0x30]
mov qword [rax], rax
mov rax, qword [rbp + 0x30]
mov qword [rax + 0x10], rax
mov qword [rbp + 0x38], rdi
lea rbp, [rbx + 0x58]
mov qword [rsp + 0x68], rbp
mov ecx, 8
call fcn.180052a04
cmp rax, rdi
je 0x180027818
mov qword [rax], rbp
jmp 0x18002781b
mov rax, rdi
mov qword [rbp], rax
mov rcx, rbp
call fcn.180034fa8
mov qword [rbp + 0x30], rax
mov byte [rax + 0x59], 1
mov rax, qword [rbp + 0x30]
mov qword [rax + 8], rax
mov rax, qword [rbp + 0x30]
mov qword [rax], rax
mov rax, qword [rbp + 0x30]
mov qword [rax + 0x10], rax
mov qword [rbp + 0x38], rdi
mov qword [rbx + 0x10], rdi
lea rcx, [rbx + 0x98]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
nop
jmp 0x180027861
mov rbx, rdi
mov qword [rsi + 0x38], rbx
xor edx, edx
mov rcx, rbx
call fcn.180029158
cmp eax, edi
je 0x1800278c4
mov rbx, qword [rsi + 0x38]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], edi
mov r9, rbx
lea r8, [0x180024e68]
mov edx, 0x400000
xor ecx, ecx
call fcn.18001de38
mov qword [rbx + 0x10], rax
cmp rax, rdi
je 0x1800278c4
mov rax, qword [rsi + 0x38]
movzx ecx, word [rax + 8]
mov rax, qword [rsi + 0x30]
mov word [rax], cx
mov edi, 1
mov dword [rsi + 0x28], 1
jmp 0x180027995
mov dword [rsi + 0x28], edi
mov rcx, qword [rsi + 0x30]
cmp rcx, rdi
je 0x1800278d9
call fcn.1800520c4
mov qword [rsi + 0x30], rdi
mov rbx, qword [rsi + 0x38]
cmp rbx, rdi
je 0x180027995
cmp qword [rbx + 0x10], rdi
je 0x180027921
cmp qword [rbx], rdi
je 0x1800278fd
mov rcx, qword [rbx]
call qword [sym.imp.WS2_32.dll_closesocket]
mov qword [rbx], rdi
mov edx, 0x1388
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, edi
je 0x18002791d
or edx, 0xffffffff
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov qword [rbx + 0x10], rdi
mov rbx, qword [rsi + 0x38]
cmp qword [rbx], rdi
je 0x180027936
mov rcx, qword [rbx]
call qword [sym.imp.WS2_32.dll_closesocket]
mov qword [rbx], rdi
mov rbx, qword [rsi + 0x38]
mov qword [rsp + 0x60], rbx
cmp rbx, rdi
je 0x180027991
mov rcx, qword [rbx + 0x10]
cmp rcx, rdi
je 0x18002795f
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rbx + 0x98]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea rcx, [rbx + 0x58]
call fcn.1800250f8
nop
lea rcx, [rbx + 0x18]
call fcn.1800250f8
nop
mov rcx, qword [rbx]
call qword [sym.imp.WS2_32.dll_closesocket]
mov rcx, rbx
call fcn.1800520c4
mov qword [rsi + 0x38], rdi
mov eax, edi
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret