Function at 0x140013500
Capabilities:
Connect socket
Get local ipv4 addresses
Get socket information

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [0x1400bc0f8]
xor rax, rsp
mov qword [rbp - 0x10], rax
xorps xmm0, xmm0
mov qword [rcx + 8], 0xffffffffffffffff
mov rbx, rcx
mov qword [rcx], 0xffffffffffffffff
movups xmmword [rbp - 0x40], xmm0
mov esi, 2
mov dword [rbp - 0x50], reloc.WS2_32.dll_recv
mov ecx, 0x7f000001
mov word [rbp - 0x40], si
mov r14d, edx
call qword [sym.imp.WS2_32.dll_htonl]
mov dword [rbp - 0x3c], eax
xor r8d, r8d
movaps xmm0, xmmword [rbp - 0x40]
mov edx, r14d
mov ecx, esi
movdqa xmmword [rbp - 0x20], xmm0
call qword [sym.imp.WS2_32.dll_socket]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1400136f8
mov r8d, dword [rbp - 0x50]
lea rdx, [rbp - 0x40]
mov rcx, rax
call qword [sym.imp.WS2_32.dll_bind]
test eax, eax
jne 0x1400136f8
cmp r14d, 1
jne 0x1400135b4
mov edx, r14d
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_listen]
test eax, eax
jne 0x1400136f8
lea r8, [rbp - 0x50]
mov rcx, rdi
lea rdx, [rbp - 0x40]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x1400136f8
xor r8d, r8d
mov edx, r14d
mov ecx, esi
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rbx], rax
cmp rax, 0xffffffffffffffff
je 0x1400136f8
cmp r14d, 1
jne 0x140013692
mov r8d, dword [rbp - 0x50]
lea rdx, [rbp - 0x40]
mov rcx, rax
call qword [sym.imp.WS2_32.dll_connect]
test eax, eax
jne 0x1400136f8
mov eax, dword [rbp - 0x50]
mov dword [rbp - 0x30], eax
lea r8, [rbp - 0x30]
mov rcx, rdi
lea rdx, [rbp - 0x40]
call qword [sym.imp.WS2_32.dll_accept]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x140013635
call fcn.140052050
cmp dword [rax], 4
je 0x140013611
mov qword [rbx + 8], rsi
cmp rsi, 0xffffffffffffffff
je 0x1400136f8
mov rcx, qword [rbx]
xor r8d, r8d
lea edx, [r8 + 1]
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
mov rcx, qword [rbx + 8]
xor r8d, r8d
lea edx, [r8 + 1]
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
cmp r14d, 1
jne 0x140013688
nop word [rax + rax]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
cmp eax, 0xffffffff
jne 0x140013688
call fcn.140052050
cmp dword [rax], 4
je 0x140013670
mov eax, 1
jmp 0x14001376a
cmp r14d, esi
jne 0x14001360b
mov r8d, dword [rbp - 0x50]
lea rdx, [rbp - 0x20]
mov rcx, rax
call qword [sym.imp.WS2_32.dll_bind]
test eax, eax
jne 0x1400136f8
mov rcx, qword [rbx]
lea r8, [rbp - 0x50]
lea rdx, [rbp - 0x20]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x1400136f8
mov r8d, dword [rbp - 0x50]
lea rdx, [rbp - 0x40]
mov rcx, qword [rbx]
call qword [sym.imp.WS2_32.dll_connect]
test eax, eax
jne 0x1400136f8
mov r8d, dword [rbp - 0x50]
lea rdx, [rbp - 0x20]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_connect]
test eax, eax
jne 0x1400136f8
mov qword [rbx + 8], rdi
jmp 0x140013643
cmp qword [rbx], 0xffffffffffffffff
je 0x14001371f
nop
mov rcx, qword [rbx]
call qword [sym.imp.WS2_32.dll_closesocket]
cmp eax, 0xffffffff
jne 0x140013718
call fcn.140052050
cmp dword [rax], 4
je 0x140013700
mov qword [rbx], 0xffffffffffffffff
cmp qword [rbx + 8], 0xffffffffffffffff
je 0x140013747
mov rcx, qword [rbx + 8]
call qword [sym.imp.WS2_32.dll_closesocket]
cmp eax, 0xffffffff
jne 0x14001373f
call fcn.140052050
cmp dword [rax], 4
je 0x140013726
mov qword [rbx + 8], 0xffffffffffffffff
cmp rdi, 0xffffffffffffffff
je 0x140013768
nop dword [rax]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
cmp eax, 0xffffffff
jne 0x140013768
call fcn.140052050
cmp dword [rax], 4
je 0x140013750
xor eax, eax
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.14003fb10
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret