Function at 0x1400ced10
Capabilities:
Connect socket
Get local ipv4 addresses
Get socket information
Receive data
Receive data on socket
Send data
Send data on socket
Set socket configuration

Disassembly:
push rbp
push rbx
push rsi
push rdi
lea rbp, [rsp - 0x37]
sub rsp, 0xd8
mov rax, qword [0x140180f00]
xor rax, rsp
mov qword [rbp + 0xf], rax
mov edx, 1
mov dword [rbp - 0x71], reloc.WS2_32.dll_recv
mov edi, 2
mov rbx, r9
mov ecx, edi
lea r8d, [rdx + 5]
call qword [sym.imp.WS2_32.dll_socket]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x1400ced5d
jmp 0x1400cefc8
mov qword [rsp + 0x100], r12
mov ecx, 0x7f000001
mov qword [rsp + 0x108], r13
xor r12d, r12d
mov qword [rsp + 0x110], r14
mov qword [rsp + 0xd0], r15
movaps xmmword [rsp + 0xc0], xmm6
mov qword [rbp - 0x29], r12
mov word [rbp - 0x31], di
call qword [sym.imp.WS2_32.dll_htonl]
lea r9, [rbp - 0x6d]
mov word [rbp - 0x2f], r12w
mov edx, 0xffff
mov dword [rbp - 0x2d], eax
lea r8d, [r12 - 5]
mov qword [rbx + 8], 0xffffffffffffffff
mov rcx, rsi
mov qword [rbx], 0xffffffffffffffff
mov dword [rbp - 0x6d], 1
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x1400cef7f
lea r8d, [r12 + 0x10]
mov rcx, rsi
lea rdx, [rbp - 0x31]
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x1400cef7f
lea r8, [rbp - 0x71]
mov rcx, rsi
lea rdx, [rbp - 0x31]
call qword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x1400cef7f
cmp dword [rbp - 0x71], 0x10
jl 0x1400cef7f
lea edx, [r12 + 1]
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x1400cef7f
xor r8d, r8d
lea edx, [r12 + 1]
mov ecx, edi
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rbx], rax
cmp rax, 0xffffffffffffffff
je 0x1400cef7f
lea r8d, [r12 + 0x10]
mov rcx, rax
lea rdx, [rbp - 0x31]
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x1400cef7f
lea edx, [r12 + 1]
mov rcx, rsi
call fcn.1400f2290
test eax, eax
js 0x1400cef7f
lea edx, [r12 + 1]
mov qword [rbp - 0x21], rsi
mov r8d, 0x3e8
mov dword [rbp - 0x19], 0x300
lea rcx, [rbp - 0x21]
call fcn.1400cd420
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_accept]
mov qword [rbx + 8], rax
cmp rax, 0xffffffffffffffff
je 0x1400cef7f
lea rcx, [rbp - 0x61]
call fcn.1400c3680
mov edi, 9
lea rdx, [rbp - 0x11]
mov r8d, edi
lea r14, [rbp - 1]
xor ecx, ecx
movups xmm6, xmmword [rax]
call fcn.1400d1740
test eax, eax
jne 0x1400cef7f
mov rcx, qword [rbx]
lea rdx, [rbp - 0x11]
xor r9d, r9d
mov r8d, edi
call qword [sym.imp.WS2_32.dll_send]
nop dword [rax]
mov rax, qword [rbx + 8]
lea rcx, [rbp - 0x21]
mov edx, 1
mov qword [rbp - 0x21], rax
mov r8d, 0x3e8
mov dword [rbp - 0x19], 0x300
call fcn.1400cd420
mov rcx, qword [rbx + 8]
xor r9d, r9d
mov r8d, edi
mov rdx, r14
call qword [sym.imp.WS2_32.dll_recv]
movsxd rcx, eax
cmp rcx, 0xffffffffffffffff
jne 0x1400cefe0
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rcx, [rbp - 0x41]
movdqa xmmword [rbp - 0x51], xmm6
mov r15d, eax
call fcn.1400c3680
lea rdx, [rbp - 0x51]
lea rcx, [rbp - 0x61]
movups xmm0, xmmword [rax]
movaps xmmword [rbp - 0x61], xmm0
call fcn.1400c3710
cmp rax, 0xea60
jg 0x1400cef7f
cmp r15d, 0x2733
je 0x1400cef00
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
mov rcx, qword [rbx]
call qword [sym.imp.WS2_32.dll_closesocket]
mov rcx, qword [rbx + 8]
call qword [sym.imp.WS2_32.dll_closesocket]
mov eax, 0xffffffff
mov r15, qword [rsp + 0xd0]
mov r14, qword [rsp + 0x110]
mov r13, qword [rsp + 0x108]
mov r12, qword [rsp + 0x100]
movaps xmm6, xmmword [rsp + 0xc0]
mov rcx, qword [rbp + 0xf]
xor rcx, rsp
call fcn.14011c9c0
add rsp, 0xd8
pop rdi
pop rsi
pop rbx
pop rbp
ret
sub rdi, rcx
je 0x1400cefed
add r14, rcx
jmp 0x1400cef00
mov rax, qword [rbp - 0x11]
cmp rax, qword [rbp - 1]
jne 0x1400cef7f
movzx eax, byte [rbp - 9]
cmp al, byte [rbp + 7]
jne 0x1400cef7f
cmp byte [rbp + 0x7f], r12b
je 0x1400cf035
mov rcx, qword [rbx]
mov edx, 1
call fcn.1400f2290
test eax, eax
js 0x1400cef7f
mov rcx, qword [rbx + 8]
mov edx, 1
call fcn.1400f2290
test eax, eax
js 0x1400cef7f
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
jmp 0x1400cefa0