Function at 0x1401961b0
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 rdi
push r14
lea rbp, [rsp - 0x3f]
sub rsp, 0xd8
mov rax, qword [0x14026fad8]
xor rax, rsp
mov qword [rbp + 0x17], rax
mov edx, 1
mov dword [rbp - 0x69], reloc.WS2_32.dll_recv
mov ebx, 2
mov r14, r9
mov ecx, ebx
lea r8d, [rdx + 5]
call qword [sym.imp.WS2_32.dll_socket]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x140196200
or eax, eax
jmp 0x140196466
mov qword [rsp + 0x100], rsi
xor eax, eax
mov qword [rsp + 0x108], r12
mov ecx, 0x7f000001
mov qword [rsp + 0x110], r13
mov qword [rbp - 0x29], rax
mov qword [rsp + 0xd0], r15
movaps xmmword [rsp + 0xc0], xmm6
mov qword [rbp - 0x21], rax
mov word [rbp - 0x29], bx
call qword [sym.imp.WS2_32.dll_htonl]
xor r13d, r13d
mov qword [r14 + 8], 0xffffffffffffffff
lea r9, [rbp - 0x65]
mov dword [rbp - 0x25], eax
mov edx, 0xffff
mov word [rbp - 0x27], r13w
mov rcx, rdi
mov qword [r14], 0xffffffffffffffff
lea r8d, [r13 - 5]
mov dword [rbp - 0x65], 1
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x14019641f
lea r8d, [r13 + 0x10]
mov rcx, rdi
lea rdx, [rbp - 0x29]
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x14019641f
lea r8, [rbp - 0x69]
mov rcx, rdi
lea rdx, [rbp - 0x29]
call qword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x14019641f
cmp dword [rbp - 0x69], 0x10
jl 0x14019641f
lea edx, [r13 + 1]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x14019641f
xor r8d, r8d
lea edx, [r13 + 1]
mov ecx, ebx
call qword [sym.imp.WS2_32.dll_socket]
mov qword [r14], rax
cmp rax, 0xffffffffffffffff
je 0x14019641f
lea r8d, [r13 + 0x10]
mov rcx, rax
lea rdx, [rbp - 0x29]
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x14019641f
lea edx, [r13 + 1]
mov rcx, rdi
call fcn.1401bec30
test eax, eax
js 0x14019641f
lea edx, [r13 + 1]
mov qword [rbp - 0x19], rdi
mov r8d, 0x3e8
mov dword [rbp - 0x11], 0x300
lea rcx, [rbp - 0x19]
call fcn.1401938b0
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_accept]
mov qword [r14 + 8], rax
cmp rax, 0xffffffffffffffff
je 0x14019641f
lea rcx, [rbp - 0x59]
call fcn.140174b10
mov ebx, 9
lea rdx, [rbp - 9]
mov r8d, ebx
lea rsi, [rbp + 7]
xor ecx, ecx
movups xmm6, xmmword [rax]
call fcn.140196c80
test eax, eax
jne 0x14019641f
mov rcx, qword [r14]
lea rdx, [rbp - 9]
xor r9d, r9d
mov r8d, ebx
call qword [sym.imp.WS2_32.dll_send]
nop
mov rax, qword [r14 + 8]
lea rcx, [rbp - 0x19]
mov edx, 1
mov qword [rbp - 0x19], rax
mov r8d, 0x3e8
mov dword [rbp - 0x11], 0x300
call fcn.1401938b0
mov rcx, qword [r14 + 8]
xor r9d, r9d
mov r8d, ebx
mov rdx, rsi
call qword [sym.imp.WS2_32.dll_recv]
movsxd rcx, eax
cmp rcx, 0xffffffffffffffff
jne 0x14019647f
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rcx, [rbp - 0x39]
movdqa xmmword [rbp - 0x49], xmm6
mov r15d, eax
call fcn.140174b10
lea rdx, [rbp - 0x49]
lea rcx, [rbp - 0x59]
movups xmm0, xmmword [rax]
movaps xmmword [rbp - 0x59], xmm0
call fcn.140174b90
cmp rax, 0xea60
jg 0x14019641f
cmp r15d, 0x2733
je 0x1401963a0
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
mov rcx, qword [r14]
call qword [sym.imp.WS2_32.dll_closesocket]
mov rcx, qword [r14 + 8]
call qword [sym.imp.WS2_32.dll_closesocket]
or eax, 0xffffffff
mov r15, qword [rsp + 0xd0]
mov r13, qword [rsp + 0x110]
mov r12, qword [rsp + 0x108]
mov rsi, qword [rsp + 0x100]
movaps xmm6, xmmword [rsp + 0xc0]
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.1401c74a0
add rsp, 0xd8
pop r14
pop rdi
pop rbx
pop rbp
ret
sub rbx, rcx
je 0x14019648c
add rsi, rcx
jmp 0x1401963a0
mov rax, qword [rbp - 9]
cmp rax, qword [rbp + 7]
jne 0x14019641f
movzx eax, byte [rbp - 1]
cmp al, byte [rbp + 0xf]
jne 0x14019641f
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
jmp 0x14019643e