Function at 0x1400d5f70
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r14
sub rsp, 0x50
mov rax, qword [0x140467f78]
xor rax, rsp
mov qword [rsp + 0x40], rax
movzx ebp, dx
mov rdi, rcx
mov r12d, 2
lea rdx, str.L4ConnectionEnumerator::Subscribe_n
mov ecx, r12d
movzx r14d, r8b
call fcn.1400d3f90
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
xor r9d, r9d
mov dword [rsp + 0x28], 1
lea edx, [r12 - 1]
mov dword [rsp + 0x20], 0
lea r8d, [r12 + 4]
mov ecx, r12d
lea rbx, [rdi + 0xf0]
call qword [sym.imp.WS2_32.dll_WSASocketW]
mov qword [rbx + 8], rax
cmp rax, 0xffffffffffffffff
jne 0x1400d600e
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, eax
lea rdx, str.L4SocketTcpListener::Listen_WSASocket_failed___d_n
lea ecx, [r12 - 1]
call fcn.1400d3f90
jmp 0x1400d6096
movzx ecx, bp
mov word [rsp + 0x30], r12w
call qword [sym.imp.WS2_32.dll_htons]
xor ecx, ecx
mov word [rsp + 0x32], ax
call qword [sym.imp.WS2_32.dll_htonl]
mov rcx, qword [rbx + 8]
lea rdx, [rsp + 0x30]
mov r8d, 0x10
mov dword [rsp + 0x34], eax
mov qword [rsp + 0x38], 0
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x1400d6060
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.L4SocketTcpListener::Listen_bind_failed___d_n
jmp 0x1400d6081
mov rcx, qword [rbx + 8]
mov edx, 0x7fffffff
call qword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
jne 0x1400d60a9
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.L4SocketTcpListener::Listen_listen_failed___d_n
mov r8d, eax
mov ecx, 1
call fcn.1400d3f90
mov rcx, rbx
call fcn.1400d9590
lea rdx, str.L4ThreadNotificationNetwork::Start_m_SocketServerListener.Listen_failed__n
mov ecx, 1
call fcn.1400d3f90
jmp 0x1400d60d6
lea rcx, [rdi + 0x68]
mov byte [rdi + 0x100], 0
call fcn.1400d7f80
test al, al
jne 0x1400d60ee
lea rdx, str.L4ThreadNotificationNetwork::Start_L4ThreadBase::Start_failed__n
mov ecx, 1
call fcn.1400d3f90
mov rcx, rbx
call fcn.1400d9590
lea rdx, str.L4ConnectionEnumerator::Subscribe_m_ThreadNotification.Start_failed__n
mov ecx, 1
call fcn.1400d3f90
xor al, al
jmp 0x1400d6234
mov qword [rsp + 0x90], r15
test r14b, r14b
je 0x1400d622a
movzx r15d, byte [rdi + 0x108]
lea rdx, str.L4ThreadNetDiscovery::Start_Port:_d_n
mov r8d, ebp
mov ecx, 0x20
call fcn.1400d3f90
lea rcx, [rdi + 0x50]
movzx r8d, bp
call fcn.1400d9170
test al, al
jne 0x1400d6145
mov r8d, ebp
lea rdx, str.L4ThreadNetDiscovery::Start_m_Socket.Initialize_failed__Port:_d_n
mov ecx, 1
call fcn.1400d3f90
jmp 0x1400d61d6
lea rcx, [rdi + 0x10]
mov word [rdi + 0x62], bp
mov byte [rdi + 0x60], 0
mov byte [rdi + 0x64], r15b
call fcn.1400d7f80
test al, al
jne 0x1400d622a
lea rdx, str.L4ThreadNetDiscovery::Start_L4ThreadBase::Start_failed__n
mov ecx, 1
call fcn.1400d3f90
mov rcx, qword [rdi + 0x58]
cmp rcx, 0xffffffffffffffff
je 0x1400d61d6
mov edx, r12d
call qword [sym.imp.WS2_32.dll_shutdown]
cmp eax, 0xffffffff
jne 0x1400d61a5
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.L4SocketUdp::Close_shutdown_failed___d_n
mov ecx, 1
mov r8d, eax
call fcn.1400d3f90
mov rcx, qword [rdi + 0x58]
call qword [sym.imp.WS2_32.dll_closesocket]
cmp eax, 0xffffffff
jne 0x1400d61ce
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.L4SocketUdp::Close_closesocket_failed___d_n
mov ecx, 1
mov r8d, eax
call fcn.1400d3f90
mov qword [rdi + 0x58], 0xffffffffffffffff
lea rdx, str.L4ConnectionEnumerator::Subscribe_m_ThreadSocketServerUDP.Start_failed__n
mov ecx, 1
call fcn.1400d3f90
mov rcx, rbx
mov byte [rdi + 0x100], 1
call fcn.1400d9590
lea rbx, [rdi + 0x70]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rdi, qword [rdi + 0x98]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test rdi, rdi
je 0x1400d6226
mov edx, 0xffffffff
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor al, al
jmp 0x1400d622c
mov al, 1
mov r15, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1402ab320
mov rbx, qword [rsp + 0x98]
add rsp, 0x50
pop r14
pop r12
pop rdi
pop rsi
pop rbp
ret