Function at 0x14005cd20
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 [0x1400e0c68]
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 0x14005cd86
mov eax, 0xffffffff
jmp 0x14005d083
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 0x14005ce16
jmp 0x14005d03d
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 0x14005ce36
jmp 0x14005d03d
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 0x14005ce57
cmp dword [rsp + 0x30], 0x10
jge 0x14005ce5c
jmp 0x14005d03d
mov edx, 1
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
jne 0x14005ce76
jmp 0x14005d03d
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 0x14005cebb
jmp 0x14005d03d
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 0x14005ceeb
jmp 0x14005d03d
mov edx, 1
mov rcx, qword [rsp + 0x38]
call fcn.14006e550
test eax, eax
jge 0x14005cf03
jmp 0x14005d03d
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.1400571f0
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 0x14005cf90
jmp 0x14005d03d
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 0x14005cfc9
cmp dword [rsp + 0x30], 0x10
jge 0x14005cfcb
jmp 0x14005d03d
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 0x14005d004
cmp dword [rsp + 0x30], 0x10
jge 0x14005d006
jmp 0x14005d03d
movzx eax, word [rsp + 0x48]
movzx ecx, word [rsp + 0x58]
cmp eax, ecx
jne 0x14005d02c
mov eax, dword [rsp + 0x5c]
cmp dword [rsp + 0x4c], eax
jne 0x14005d02c
movzx eax, word [rsp + 0x4a]
movzx ecx, word [rsp + 0x5a]
cmp eax, ecx
je 0x14005d02e
jmp 0x14005d03d
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
jmp 0x14005d083
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.140081e90
add rsp, 0x80
pop rdi
ret