Function at 0x14013dbf0
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 qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x47]
sub rsp, 0x90
mov rax, qword [0x1402b3030]
xor rax, rsp
mov qword [rbp + 0x37], rax
mov edx, 1
mov dword [rbp - 0x19], reloc.WS2_32.dll_recv
mov esi, 2
mov dword [rbp - 0x15], 1
mov ecx, esi
mov rdi, r9
lea r8d, [rdx + 5]
call qword [sym.imp.WS2_32.dll_socket]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x14013dc47
jmp 0x14013de76
mov qword [rsp + 0xb0], r14
mov ecx, 0x7f000001
xor r14d, r14d
mov word [rbp - 0x11], si
mov qword [rbp - 9], r14
call qword [sym.imp.WS2_32.dll_htonl]
lea r9, [rbp - 0x15]
mov word [rbp - 0xf], r14w
mov edx, 0xffff
mov dword [rbp - 0xd], eax
lea r8d, [r14 + 4]
mov qword [rdi + 8], 0xffffffffffffffff
mov rcx, rbx
mov qword [rdi], 0xffffffffffffffff
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x14013de4d
lea r8d, [r14 + 0x10]
mov rcx, rbx
lea rdx, [rbp - 0x11]
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x14013de4d
lea r8, [rbp - 0x19]
mov rcx, rbx
lea rdx, [rbp - 0x11]
call qword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x14013de4d
cmp dword [rbp - 0x19], 0x10
jl 0x14013de4d
lea edx, [r14 + 1]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x14013de4d
xor r8d, r8d
lea edx, [r14 + 1]
mov ecx, esi
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rdi], rax
cmp rax, 0xffffffffffffffff
je 0x14013de4d
lea r8d, [r14 + 0x10]
mov rcx, rax
lea rdx, [rbp - 0x11]
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x14013de4d
lea r8, [rbp + 0x27]
mov dword [rbp + 0x27], 1
mov edx, 0x8004667e
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
js 0x14013de4d
lea edx, [r14 + 1]
mov qword [rbp + 0x27], rbx
mov r8d, 0x3e8
mov dword [rbp + 0x2f], 0x300
lea rcx, [rbp + 0x27]
call fcn.14010f280
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_accept]
mov qword [rdi + 8], rax
cmp rax, 0xffffffffffffffff
je 0x14013de4d
cmp byte [0x1402b5b38], r14b
je 0x14013ddc8
lea rcx, [rbp + 0x27]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rcx, qword [rbp + 0x27]
mov r8, qword [0x1402b5b30]
mov rax, rcx
cqo
idiv r8
mov qword [rbp + 0x27], rax
mov rax, rcx
cqo
idiv r8
imul rax, rdx, 0xf4240
cqo
idiv r8
jmp 0x14013ddf2
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r9d, eax
mov eax, 0x10624dd3
mul r9d
shr edx, 6
mov ecx, edx
mov qword [rbp + 0x27], rcx
imul ecx, edx, 0x3e8
sub r9d, ecx
imul eax, r9d, 0x3e8
mov rcx, qword [rdi]
lea rdx, [rbp + 7]
xor r9d, r9d
mov dword [rbp + 0x2f], eax
movaps xmm0, xmmword [rbp + 0x27]
movdqa xmmword [rbp + 7], xmm0
lea r8d, [r9 + 0x10]
call qword [sym.imp.WS2_32.dll_send]
mov rcx, qword [rdi + 8]
lea rdx, [rbp + 0x17]
xor r9d, r9d
lea r8d, [r9 + 0x10]
call qword [sym.imp.WS2_32.dll_recv]
cmp eax, 0x10
jne 0x14013de4d
mov rax, qword [rbp + 7]
cmp rax, qword [rbp + 0x17]
jne 0x14013de4d
mov rax, qword [rbp + 0xf]
cmp rax, qword [rbp + 0x1f]
jne 0x14013de4d
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
jmp 0x14013de6e
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, 0xffffffff
mov r14, qword [rsp + 0xb0]
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.14014d450
mov rbx, qword [rsp + 0xb8]
add rsp, 0x90
pop rdi
pop rsi
pop rbp
ret