Function at 0x140058b64
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 [0x140117dd8]
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 0x140058bca
mov eax, 0xffffffff
jmp 0x140058ec7
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 0x140058c5a
jmp 0x140058e81
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 0x140058c7a
jmp 0x140058e81
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 0x140058c9b
cmp dword [rsp + 0x30], 0x10
jge 0x140058ca0
jmp 0x140058e81
mov edx, 1
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
jne 0x140058cba
jmp 0x140058e81
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 0x140058cff
jmp 0x140058e81
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 0x140058d2f
jmp 0x140058e81
mov edx, 1
mov rcx, qword [rsp + 0x38]
call fcn.14006a7ec
test eax, eax
jge 0x140058d47
jmp 0x140058e81
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.140052fd0
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 0x140058dd4
jmp 0x140058e81
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 0x140058e0d
cmp dword [rsp + 0x30], 0x10
jge 0x140058e0f
jmp 0x140058e81
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 0x140058e48
cmp dword [rsp + 0x30], 0x10
jge 0x140058e4a
jmp 0x140058e81
movzx eax, word [rsp + 0x48]
movzx ecx, word [rsp + 0x58]
cmp eax, ecx
jne 0x140058e70
mov eax, dword [rsp + 0x5c]
cmp dword [rsp + 0x4c], eax
jne 0x140058e70
movzx eax, word [rsp + 0x4a]
movzx ecx, word [rsp + 0x5a]
cmp eax, ecx
je 0x140058e72
jmp 0x140058e81
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
jmp 0x140058ec7
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.14007e5f0
add rsp, 0x80
pop rdi
ret