Function at 0x1400011ae
Capabilities:
Act as tcp client
Connect tcp socket
Connect udp socket
Set socket configuration

Disassembly:
jmp 0x1400167d0
mov word [rsp + 0x20], r9w
mov qword [rsp + 0x18], r8
mov word [rsp + 0x10], dx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x158
lea rbp, [rsp + 0x30]
lea rcx, reloc.WS2_32.dll_accept
call fcn.1400012ad
call qword [sym.imp.ucrtbased.dll__errno]
mov dword [rax], 0
xor ecx, ecx
call sub.WS2_32.dll_WSASetLastError
movzx eax, word [0x140029f50]
test eax, eax
je 0x14001683a
mov r8d, reloc.WS2_32.dll_recvfrom
mov edx, 2
mov ecx, 2
call sub.WS2_32.dll_socket
mov dword [0x14002a748], eax
jmp 0x140016855
mov r8d, 6
mov edx, 1
mov ecx, 2
call sub.WS2_32.dll_socket
mov dword [0x14002a748], eax
cmp dword [0x14002a748], 0
jge 0x14001686a
lea rcx, str.Cant_get_socket
call fcn.140001046
cmp dword [0x14002a748], 0
jne 0x140016885
mov ecx, dword [0x14002a748]
call qword [sym.imp.ucrtbased.dll__dup]
mov dword [0x14002a748], eax
movsxd rax, dword [0x14002a748]
mov dword [rsp + 0x20], 8
mov r9, qword [0x14002a750]
mov r8d, 4
mov edx, 0xffff
mov rcx, rax
call sub.WS2_32.dll_setsockopt
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0xffffffff
jne 0x1400168c3
lea rcx, str.nnetfd_reuseaddr_failed
call fcn.14000105f
mov eax, 2
mov rcx, qword [0x140029f08]
mov word [rcx], ax
mov eax, 2
mov rcx, qword [0x140029f10]
mov word [rcx], ax
cmp qword [rbp + 0x150], 0
je 0x14001690b
mov rax, qword [0x140029f08]
add rax, 4
mov r8d, 4
mov rdx, qword [rbp + 0x150]
mov rcx, rax
call sub.VCRUNTIME140D.dll_memcpy
movzx eax, word [rbp + 0x158]
test eax, eax
je 0x14001692d
movzx ecx, word [rbp + 0x158]
call sub.WS2_32.dll_htons
mov rcx, qword [0x140029f08]
mov word [rcx + 2], ax
mov dword [rbp + 4], 0
cmp qword [rbp + 0x150], 0
jne 0x14001694d
movzx eax, word [rbp + 0x158]
test eax, eax
je 0x1400169fb
movzx eax, word [rbp + 0x158]
mov dword [rbp + 0x24], eax
mov dword [rbp + 0x44], 4
jmp 0x140016968
mov eax, dword [rbp + 0x44]
dec eax
mov dword [rbp + 0x44], eax
cmp dword [rbp + 0x44], 0
jle 0x1400169fb
movsxd rax, dword [0x14002a748]
mov r8d, reloc.WS2_32.dll_recv
mov rdx, qword [0x140029f08]
mov rcx, rax
call sub.WS2_32.dll_bind
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0
jne 0x140016999
jmp 0x1400169fb
call qword [sym.imp.ucrtbased.dll__errno]
cmp dword [rax], 0x2740
je 0x1400169ab
jmp 0x1400169fb
movzx eax, word [rbp + 0x158]
mov dword [rbp + 0x114], eax
mov rcx, qword [0x140029f08]
mov ecx, dword [rcx + 4]
call sub.WS2_32.dll_inet_ntoa
mov ecx, dword [rbp + 0x114]
mov r8d, ecx
mov rdx, rax
lea rcx, str.retrying_local__s:_d
call fcn.14000105f
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
call qword [sym.imp.ucrtbased.dll__errno]
mov dword [rax], 0
jmp 0x140016960
cmp dword [rbp + 4], 0
je 0x140016a35
movzx eax, word [rbp + 0x158]
mov dword [rbp + 0x114], eax
mov rcx, qword [0x140029f08]
mov ecx, dword [rcx + 4]
call sub.WS2_32.dll_inet_ntoa
mov ecx, dword [rbp + 0x114]
mov r8d, ecx
mov rdx, rax
lea rcx, str.Cant_grab__s:_d_with_bind
call fcn.140001046
movzx eax, word [0x140029f40]
test eax, eax
je 0x140016a4b
mov eax, dword [0x14002a748]
jmp 0x140016b55
mov rax, qword [0x140029f10]
add rax, 4
mov r8d, 4
mov rdx, qword [rbp + 0x140]
mov rcx, rax
call sub.VCRUNTIME140D.dll_memcpy
movzx ecx, word [rbp + 0x148]
call sub.WS2_32.dll_htons
mov rcx, qword [0x140029f10]
mov word [rcx + 2], ax
cmp dword [0x140029ee8], 0
je 0x140016a97
lea rcx, str.Warning:_source_routing_unavailable_on_this_machine__ignoring
call fcn.14000105f
mov edx, dword [0x140029f58]
mov ecx, 1
call fcn.1400011fe
lea rcx, [0x140029de0]
mov rdx, rbp
add rdx, 0xffffffffffffffd0
call sub.VCRUNTIME140D.dll___intrinsic_setjmp
test eax, eax
jne 0x140016adf
movsxd rax, dword [0x14002a748]
mov r8d, reloc.WS2_32.dll_recv
mov rdx, qword [0x140029f10]
mov rcx, rax
call sub.WS2_32.dll_connect
mov dword [rbp + 4], eax
jmp 0x140016af0
mov dword [rbp + 4], 0xffffffff
mov ecx, 0x274c
call sub.WS2_32.dll_WSASetLastError
xor edx, edx
xor ecx, ecx
call fcn.1400011fe
cmp dword [rbp + 4], 0
jne 0x140016b07
mov eax, dword [0x14002a748]
jmp 0x140016b55
call sub.WS2_32.dll_WSAGetLastError
mov dword [rbp + 0x114], eax
call qword [sym.imp.ucrtbased.dll__errno]
mov ecx, dword [rbp + 0x114]
mov dword [rax], ecx
movsxd rax, dword [0x14002a748]
mov edx, 2
mov rcx, rax
call sub.WS2_32.dll_shutdown
movsxd rax, dword [0x14002a748]
mov rcx, rax
call sub.WS2_32.dll_closesocket
call qword [sym.imp.ucrtbased.dll__errno]
mov ecx, dword [rax]
call sub.WS2_32.dll_WSASetLastError
mov eax, 0xffffffff
lea rsp, [rbp + 0x128]
pop rdi
pop rbp
ret