Function at 0x1401ef3c0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Get local ipv4 addresses
Get socket information
Receive data
Receive data on socket
Send data
Send data on socket
Set socket configuration
Start tcp server

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x98
mov rsi, r9
mov dword [rsp + 0x2c], 0x10
mov ecx, 2
mov edx, 1
mov r8d, 6
call qword [sym.imp.WS2_32.dll_socket]
cmp rax, 0xffffffffffffffff
je 0x1401ef610
mov rdi, rax
mov qword [rsp + 0x48], 0
mov word [rsp + 0x40], 2
mov ecx, 0x7f000001
call qword [sym.imp.WS2_32.dll_htonl]
mov dword [rsp + 0x44], eax
mov word [rsp + 0x42], 0
pcmpeqd xmm0, xmm0
movdqu xmmword [rsi], xmm0
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x30]
mov rcx, rdi
mov edx, 0xffff
mov r8d, 0xfffffffb
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x1401ef632
lea rdx, [rsp + 0x40]
mov rcx, rdi
mov r8d, 0x10
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x1401ef632
lea rdx, [rsp + 0x40]
lea r8, [rsp + 0x2c]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x1401ef632
cmp dword [rsp + 0x2c], 0x10
jl 0x1401ef632
mov rcx, rdi
mov edx, 1
call qword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x1401ef632
mov ecx, 2
mov edx, 1
xor r8d, r8d
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rsi], rax
cmp rax, 0xffffffffffffffff
je 0x1401ef632
lea rdx, [rsp + 0x40]
mov rcx, rax
mov r8d, 0x10
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x1401ef632
mov rcx, rdi
mov edx, 1
call fcn.1402475e0
test eax, eax
js 0x1401ef632
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x38], 0x300
lea rcx, [rsp + 0x30]
mov r8d, 0x3e8
mov edx, 1
call fcn.1402135a0
mov rcx, rdi
xor edx, edx
xor r8d, r8d
call qword [sym.imp.WS2_32.dll_accept]
mov qword [rsi + 8], rax
cmp rax, 0xffffffffffffffff
je 0x1401ef632
lea rbx, [rsp + 0x50]
mov rcx, rbx
call fcn.1401a97e0
mov rcx, qword [rsi]
mov rdx, rbx
mov r8d, 0x10
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_send]
mov ebx, 0x10
lea r14, [rsp + 0x78]
mov r15, qword [sym.imp.WS2_32.dll_recv]
lea r12, [rsp + 0x88]
lea r13, [rsp + 0x60]
nop dword [rax]
mov rax, qword [rsi + 8]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x38], 0x300
mov r8d, 0x3e8
lea rcx, [rsp + 0x30]
mov edx, 1
call fcn.1402135a0
mov rcx, qword [rsi + 8]
mov rdx, r14
mov r8d, ebx
xor r9d, r9d
call r15
cmp eax, 0xffffffff
jne 0x1401ef604
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebp, eax
mov rcx, r12
call fcn.1401a97e0
movdqu xmm0, xmmword [rsp + 0x50]
movdqa xmmword [rsp + 0x60], xmm0
mov rcx, r12
mov rdx, r13
call fcn.1401a9880
cmp rax, 0xea60
jg 0x1401ef632
cmp ebp, 0x2733
je 0x1401ef590
jmp 0x1401ef632
cdqe
sub rbx, rax
je 0x1401ef617
add r14, rax
jmp 0x1401ef590
mov esi, 0xffffffff
jmp 0x1401ef655
movdqu xmm0, xmmword [rsp + 0x50]
movdqu xmm1, xmmword [rsp + 0x78]
pcmpeqb xmm1, xmm0
pmovmskb eax, xmm1
cmp eax, 0xffff
je 0x1401ef66b
mov rbx, qword [sym.imp.WS2_32.dll_closesocket]
mov rcx, rdi
call rbx
mov rcx, qword [rsi]
call rbx
mov rdi, qword [rsi + 8]
mov esi, 0xffffffff
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
mov eax, esi
add rsp, 0x98
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
xor esi, esi
jmp 0x1401ef64c