Function at 0x14008590c
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Get local ipv4 addresses
Get socket information
Set socket configuration
Start tcp server

Disassembly:
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
mov dword [rsp + 8], ecx
push rdi
sub rsp, 0x80
mov rax, qword [0x140146de8]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov dword [rsp + 0x30], reloc.WS2_32.dll_recv
mov dword [rsp + 0x40], 1
mov r8d, 6
mov edx, 1
mov ecx, 2
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0xffffffffffffffff
jne 0x140085972
mov eax, 0xffffffff
jmp 0x140085c6f
lea rax, [rsp + 0x48]
mov rdi, rax
xor eax, eax
mov ecx, reloc.WS2_32.dll_recv
rep stosb byte [rdi], al
mov eax, 2
mov word [rsp + 0x48], ax
mov ecx, 0x7f000001
call qword [sym.imp.WS2_32.dll_htonl]
mov dword [rsp + 0x4c], eax
xor eax, eax
mov word [rsp + 0x4a], ax
mov eax, 8
imul rax, rax, 1
mov rcx, qword [rsp + 0xa8]
mov qword [rcx + rax], 0xffffffffffffffff
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0xa8]
mov qword [rcx + rax], 0xffffffffffffffff
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x40]
mov r8d, 4
mov edx, 0xffff
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x140085a02
jmp 0x140085c29
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x140085a22
jmp 0x140085c29
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x140085a43
cmp dword [rsp + 0x30], 0x10
jge 0x140085a48
jmp 0x140085c29
mov edx, 1
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
jne 0x140085a62
jmp 0x140085c29
xor r8d, r8d
mov edx, 1
mov ecx, 2
call qword [sym.imp.WS2_32.dll_socket]
mov ecx, 8
imul rcx, rcx, 0
mov rdx, qword [rsp + 0xa8]
mov qword [rdx + rcx], rax
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0xa8]
cmp qword [rcx + rax], 0xffffffffffffffff
jne 0x140085aa7
jmp 0x140085c29
mov eax, 8
imul rax, rax, 0
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0xa8]
mov rcx, qword [rcx + rax]
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x140085ad7
jmp 0x140085c29
mov edx, 1
mov rcx, qword [rsp + 0x38]
call fcn.140097594
test eax, eax
jge 0x140085aef
jmp 0x140085c29
mov eax, reloc.WS2_32.dll_recv
imul rax, rax, 0
mov rcx, qword [rsp + 0x38]
mov qword [rsp + rax + 0x68], rcx
mov eax, reloc.WS2_32.dll_recv
imul rax, rax, 0
mov ecx, 0x300
mov word [rsp + rax + 0x70], cx
mov eax, reloc.WS2_32.dll_recv
imul rax, rax, 0
xor ecx, ecx
mov word [rsp + rax + 0x72], cx
mov r8d, 0x2710
mov edx, 1
lea rcx, [rsp + 0x68]
call fcn.14007fd78
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.WS2_32.dll_accept]
mov ecx, 8
imul rcx, rcx, 1
mov rdx, qword [rsp + 0xa8]
mov qword [rdx + rcx], rax
mov eax, 8
imul rax, rax, 1
mov rcx, qword [rsp + 0xa8]
cmp qword [rcx + rax], 0xffffffffffffffff
jne 0x140085b7c
jmp 0x140085c29
mov dword [rsp + 0x30], reloc.WS2_32.dll_recv
mov eax, 8
imul rax, rax, 0
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0xa8]
mov rcx, qword [rcx + rax]
call qword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x140085bb5
cmp dword [rsp + 0x30], 0x10
jge 0x140085bb7
jmp 0x140085c29
mov dword [rsp + 0x30], reloc.WS2_32.dll_recv
mov eax, 8
imul rax, rax, 1
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x58]
mov rcx, qword [rsp + 0xa8]
mov rcx, qword [rcx + rax]
call qword [sym.imp.WS2_32.dll_getpeername]
cmp eax, 0xffffffff
je 0x140085bf0
cmp dword [rsp + 0x30], 0x10
jge 0x140085bf2
jmp 0x140085c29
movzx eax, word [rsp + 0x48]
movzx ecx, word [rsp + 0x58]
cmp eax, ecx
jne 0x140085c18
mov eax, dword [rsp + 0x5c]
cmp dword [rsp + 0x4c], eax
jne 0x140085c18
movzx eax, word [rsp + 0x4a]
movzx ecx, word [rsp + 0x5a]
cmp eax, ecx
je 0x140085c1a
jmp 0x140085c29
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
jmp 0x140085c6f
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.WS2_32.dll_closesocket]
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0xa8]
mov rcx, qword [rcx + rax]
call qword [sym.imp.WS2_32.dll_closesocket]
mov eax, 8
imul rax, rax, 1
mov rcx, qword [rsp + 0xa8]
mov rcx, qword [rcx + rax]
call qword [sym.imp.WS2_32.dll_closesocket]
mov eax, 0xffffffff
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1400ab3a0
add rsp, 0x80
pop rdi
ret