Function at 0x1400d78e0
Capabilities:
Get hostname
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push r14
lea rbp, [rsp - 0x530]
sub rsp, 0x630
mov rax, qword [0x140467f78]
xor rax, rsp
mov qword [rbp + 0x520], rax
mov rbx, rcx
lea rdx, str.___L4ThreadNetDiscovery::Run_n
mov ecx, 8
call fcn.1400d3f90
xor esi, esi
mov qword [rsp + 0x658], rdi
mov r14d, 0x6e5c
nop dword [rax]
xor edx, edx
lea rcx, [rbp + 0x120]
mov r8d, 0x400
call fcn.1402ae030
mov rcx, qword [rbx + 0x48]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea rdx, [rbp + 0x120]
lea rax, [rsp + 0x40]
mov dword [rsp + 0x50], 0x10
xorps xmm0, xmm0
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, 0x400
movups xmmword [rsp + 0x40], xmm0
call qword [sym.imp.WS2_32.dll_recvfrom]
cmp eax, 0xffffffff
jne 0x1400d7a4b
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.L4SocketUdp::ReceiveBroadcast_recv_failed__Error:_d__n
mov ecx, 1
mov r8d, eax
call fcn.1400d3f90
cmp byte [rbx + 0x50], sil
jne 0x1400d7ba1
lea rdx, str.L4ThreadNetDiscovery::Run_ReceiveBroadcast_failed__n
mov ecx, 1
call fcn.1400d3f90
mov rcx, qword [rbx + 0x48]
cmp rcx, 0xffffffffffffffff
je 0x1400d7a25
mov edx, 2
call qword [sym.imp.WS2_32.dll_shutdown]
cmp eax, 0xffffffff
jne 0x1400d79f4
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 [rbx + 0x48]
call qword [sym.imp.WS2_32.dll_closesocket]
cmp eax, 0xffffffff
jne 0x1400d7a1d
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 [rbx + 0x48], 0xffffffffffffffff
movzx r8d, word [rbx + 0x52]
lea rcx, [rbx + 0x40]
call fcn.1400d9170
test al, al
je 0x1400d7b89
mov ecx, 0xbb8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400d7930
movzx ecx, word [rsp + 0x42]
call qword [sym.imp.WS2_32.dll_ntohs]
movzx ecx, word [rsp + 0x42]
movzx edi, ax
call qword [sym.imp.WS2_32.dll_ntohs]
movzx ecx, byte [rsp + 0x47]
movzx edx, byte [rsp + 0x46]
movzx r9d, byte [rsp + 0x45]
movzx r8d, byte [rsp + 0x44]
mov dword [rsp + 0x38], edi
movzx eax, ax
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], ecx
mov ecx, 0x20
mov dword [rsp + 0x20], edx
lea rdx, str.Broadcast_Message_Received_ipAddress:_d._d._d._d_reply_port:_d_0x_x_n
call fcn.1400d3f90
xor edx, edx
lea rcx, [rsp + 0x60]
mov r8d, 0x134
call fcn.1402ae030
mov r8d, 0x14
lea rdx, str.SPACEDESK_NET_CLIENT
lea rcx, [rbp + 0x120]
call fcn.1402b9d20
test eax, eax
jne 0x1400d7af3
movzx eax, byte [rbx + 0x54]
lea r8, [rsp + 0x60]
neg al
lea rdx, [rsp + 0x40]
sbb ecx, ecx
and ecx, 0x10
mov dword [rbp + 0x78], ecx
lea rcx, [rbx + 0x40]
call fcn.1400d92a0
jmp 0x1400d7930
mov edx, 0x80
lea rcx, [rbp + 0xa0]
call qword [sym.imp.WS2_32.dll_gethostname]
lea r9, [rbp + 0xa0]
mov qword [rsp + 0x58], rsi
mov r8d, 0x80
mov qword [rsp + 0x20], 0x80
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x58]
call fcn.1402c0620
mov rcx, qword [rbx + 0x48]
lea rax, [rsp + 0x40]
mov dword [rsp + 0x28], 0x10
lea rdx, [rsp + 0x60]
xor r9d, r9d
mov qword [rsp + 0x20], rax
mov r8d, 0x108
mov word [rbp + 0x64], r14w
mov dword [rbp + 0x60], esi
call qword [sym.imp.WS2_32.dll_sendto]
cmp eax, 0xffffffff
jne 0x1400d7930
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.L4SocketUdp::SendReplyDiscovery_sendto_failed___d_n
mov ecx, 1
mov r8d, eax
call fcn.1400d3f90
jmp 0x1400d7930
movzx r8d, word [rbx + 0x52]
lea rdx, str.L4ThreadNetDiscovery::Run_m_Socket.Initialize_failed__Port:_d_n
mov ecx, 1
call fcn.1400d3f90
jmp 0x1400d7bb2
lea rdx, str.L4ThreadNetDiscovery::Run_exit_requested_n
mov ecx, 0x20
call fcn.1400d3f90
lea rdx, str.___L4ThreadNetDiscovery::Run_exit..._n
mov ecx, 8
call fcn.1400d3f90
mov rdi, qword [rsp + 0x658]
mov rcx, qword [rbp + 0x520]
xor rcx, rsp
call fcn.1402ab320
mov rbx, qword [rsp + 0x660]
add rsp, 0x630
pop r14
pop rsi
pop rbp
ret