Function at 0x1401f0c14
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:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xd0
movaps xmmword [rax - 0x38], xmm6
mov rax, qword [0x140481f48]
xor rax, rsp
mov qword [rbp + 0x17], rax
mov esi, reloc.WS2_32.dll_recv
mov rdi, r9
mov dword [rbp - 0x69], esi
lea r13d, [rsi - 0xf]
lea r14d, [rsi - 0xe]
mov edx, r13d
mov ecx, r14d
lea r8d, [rsi - 0xa]
call qword [sym.imp.WS2_32.dll_socket]
or r12, 0xffffffffffffffff
mov rbx, rax
cmp rax, r12
je 0x1401f0eb2
mov r8d, esi
lea rcx, [rbp - 0x29]
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov ecx, 0x7f000001
mov word [rbp - 0x29], r14w
call qword [sym.imp.WS2_32.dll_htonl]
xor r15d, r15d
mov qword [rdi + 8], r12
lea r9, [rbp - 0x65]
mov dword [rbp - 0x25], eax
mov edx, 0xffff
mov word [rbp - 0x27], r15w
lea r8d, [rsi - 0x15]
mov qword [rdi], r12
mov rcx, rbx
mov dword [rbp - 0x65], r13d
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, r12d
je 0x1401f0e96
mov r8d, esi
lea rdx, [rbp - 0x29]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, r12d
je 0x1401f0e96
lea r8, [rbp - 0x69]
mov rcx, rbx
lea rdx, [rbp - 0x29]
call qword [sym.imp.WS2_32.dll_getsockname]
cmp eax, r12d
je 0x1401f0e96
cmp dword [rbp - 0x69], esi
jl 0x1401f0e96
mov edx, r13d
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_listen]
cmp eax, r12d
je 0x1401f0e96
xor r8d, r8d
mov edx, r13d
mov ecx, r14d
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rdi], rax
cmp rax, r12
je 0x1401f0e96
mov r8d, esi
lea rdx, [rbp - 0x29]
mov rcx, rax
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, r12d
je 0x1401f0e96
mov edx, r13d
mov rcx, rbx
call fcn.140202790
test eax, eax
js 0x1401f0e96
mov r8d, 0x3e8
mov qword [rbp - 0x19], rbx
mov edx, r13d
mov dword [rbp - 0x11], 0x300
lea rcx, [rbp - 0x19]
call fcn.1401e3d24
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_accept]
mov qword [rdi + 8], rax
cmp rax, r12
je 0x1401f0e96
lea rcx, [rbp - 0x59]
call fcn.1401d17fc
lea rdx, [rbp - 9]
xor ecx, ecx
lea rsi, [rbp + 7]
movups xmm6, xmmword [rax]
lea eax, [r13 + 8]
mov r8d, eax
mov r14d, eax
call fcn.1401f156c
test eax, eax
jne 0x1401f0e96
mov rcx, qword [rdi]
lea rdx, [rbp - 9]
xor r9d, r9d
mov r8d, r14d
call qword [sym.imp.WS2_32.dll_send]
mov rax, qword [rdi + 8]
lea rcx, [rbp - 0x19]
mov r8d, 0x3e8
mov qword [rbp - 0x19], rax
mov edx, r13d
mov dword [rbp - 0x11], 0x300
call fcn.1401e3d24
mov rcx, qword [rdi + 8]
xor r9d, r9d
mov r8d, r14d
mov rdx, rsi
call qword [sym.imp.WS2_32.dll_recv]
movsxd rcx, eax
cmp rcx, r12
jne 0x1401f0e65
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rcx, [rbp - 0x39]
movdqa xmmword [rbp - 0x49], xmm6
mov r15d, eax
call fcn.1401d17fc
lea rdx, [rbp - 0x49]
lea rcx, [rbp - 0x59]
movups xmm0, xmmword [rax]
movdqu xmmword [rbp - 0x59], xmm0
call fcn.1401d1874
cmp rax, 0xea60
jg 0x1401f0e96
cmp r15d, 0x2733
jne 0x1401f0e96
xor r15d, r15d
jmp 0x1401f0de7
sub r14, rcx
je 0x1401f0e72
add rsi, rcx
jmp 0x1401f0de7
mov r8d, 9
lea rdx, [rbp + 7]
lea rcx, [rbp - 9]
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x1401f0e96
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
jmp 0x1401f0eb5
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
mov rcx, qword [rdi]
call qword [sym.imp.WS2_32.dll_closesocket]
mov rcx, qword [rdi + 8]
call qword [sym.imp.WS2_32.dll_closesocket]
mov eax, r12d
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.140330e30
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret