Function at 0x14005d560
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
Receive data
Receive data on socket
Send data
Send data on socket
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, 0xe0
lea rdi, [rsp + 0x30]
mov ecx, Ordinal_46
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov ecx, dword [rsp + 0xf0]
mov rax, qword [0x1400dad40]
xor rax, rsp
mov qword [rsp + 0xd8], rax
mov dword [rsp + 0x64], reloc.WS2_32.dll_recv
mov dword [rsp + 0x84], 1
mov r8d, 6
mov edx, 1
mov ecx, 2
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0xffffffffffffffff
jne 0x14005d5e4
mov eax, 0xffffffff
jmp 0x14005d8f4
mov r8d, reloc.WS2_32.dll_recv
xor edx, edx
lea rcx, [rsp + 0x38]
call sub.VCRUNTIME140.dll_memset
mov eax, 2
mov word [rsp + 0x38], ax
mov ecx, 0x7f000001
call qword [sym.imp.WS2_32.dll_htonl]
mov dword [rsp + 0x3c], eax
xor eax, eax
mov word [rsp + 0x3a], ax
mov eax, 8
imul rax, rax, 1
mov rcx, qword [rsp + 0x108]
mov qword [rcx + rax], 0xffffffffffffffff
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x108]
mov qword [rcx + rax], 0xffffffffffffffff
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x84]
mov r8d, 4
mov edx, 0xffff
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x14005d678
jmp 0x14005d8ae
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x14005d698
jmp 0x14005d8ae
lea r8, [rsp + 0x64]
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
jne 0x14005d6b7
jmp 0x14005d8ae
mov edx, 1
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
jne 0x14005d6d1
jmp 0x14005d8ae
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 + 0x108]
mov qword [rdx + rcx], rax
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x108]
cmp qword [rcx + rax], 0xffffffffffffffff
jne 0x14005d716
jmp 0x14005d8ae
mov eax, 8
imul rax, rax, 0
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x108]
mov rcx, qword [rcx + rax]
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x14005d746
jmp 0x14005d8ae
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.WS2_32.dll_accept]
mov ecx, 8
imul rcx, rcx, 1
mov rdx, qword [rsp + 0x108]
mov qword [rdx + rcx], rax
mov eax, 8
imul rax, rax, 1
mov rcx, qword [rsp + 0x108]
cmp qword [rcx + rax], 0xffffffffffffffff
jne 0x14005d788
jmp 0x14005d8ae
mov eax, listen
imul rax, rax, 0
lea rax, [rsp + rax + 0xa8]
mov r9, qword [rsp + 0x108]
lea r8, [0x1400d361c]
mov edx, listen
mov rcx, rax
call fcn.140047a20
mov eax, listen
imul rax, rax, 0
lea rax, [rsp + rax + 0xa8]
mov rcx, rax
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
mov qword [rsp + 0xc8], rax
mov eax, listen
imul rax, rax, 0
lea rax, [rsp + rax + 0xa8]
mov ecx, 8
imul rcx, rcx, 0
xor r9d, r9d
mov r8d, dword [rsp + 0xc8]
mov rdx, rax
mov rax, qword [rsp + 0x108]
mov rcx, qword [rax + rcx]
call qword [sym.imp.WS2_32.dll_send]
cdqe
cmp rax, qword [rsp + 0xc8]
je 0x14005d821
jmp 0x14005d8ae
mov eax, listen
imul rax, rax, 1
lea rax, [rsp + rax + 0xa8]
mov ecx, 8
imul rcx, rcx, 1
xor r9d, r9d
mov r8d, listen
mov rdx, rax
mov rax, qword [rsp + 0x108]
mov rcx, qword [rax + rcx]
call qword [sym.imp.WS2_32.dll_recv]
cdqe
cmp rax, qword [rsp + 0xc8]
je 0x14005d867
jmp 0x14005d8ae
mov eax, listen
imul rax, rax, 1
lea rax, [rsp + rax + 0xa8]
mov ecx, listen
imul rcx, rcx, 0
lea rcx, [rsp + rcx + 0xa8]
mov r8, qword [rsp + 0xc8]
mov rdx, rax
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x14005d89f
jmp 0x14005d8ae
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
jmp 0x14005d8f4
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.WS2_32.dll_closesocket]
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x108]
mov rcx, qword [rcx + rax]
call qword [sym.imp.WS2_32.dll_closesocket]
mov eax, 8
imul rax, rax, 1
mov rcx, qword [rsp + 0x108]
mov rcx, qword [rcx + rax]
call qword [sym.imp.WS2_32.dll_closesocket]
mov eax, 0xffffffff
mov rdi, rax
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_connect
call fcn.1400abe64
mov rax, rdi
mov rcx, qword [rsp + 0xd8]
xor rcx, rsp
call fcn.1400ab680
add rsp, 0xe0
pop rdi
ret