Function at 0x14008a350
Capabilities:
Get hostname
Get local ipv4 addresses
Get socket information

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0xf0
mov rax, qword [0x140263a80]
xor rax, rsp
mov qword [rsp + 0xe0], rax
xorps xmm0, xmm0
mov dword [rsp + 0x34], reloc.WLDAP32.dll_Ordinal_30
movups xmmword [rsp + 0x40], xmm0
xor eax, eax
mov rsi, rcx
mov rcx, qword [rcx + 0x270]
movups xmmword [rsp + 0x50], xmm0
mov dword [rsp + 0x30], reloc.WS2_32.dll_recv
movups xmmword [rsp + 0x60], xmm0
lea edx, [rax + 1]
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rsp + 0x80], xmm0
mov qword [r11 - 0x58], rax
movups xmmword [r11 - 0x78], xmm0
movups xmmword [r11 - 0x68], xmm0
call qword [sym.imp.bthprops.cpl_BluetoothEnableIncomingConnections]
mov rcx, qword [rsi + 0x270]
xor ebp, ebp
mov dword [rsi + 0xc], ebp
call qword [sym.imp.bthprops.cpl_BluetoothIsDiscoverable]
test eax, eax
jne 0x14008a3f7
mov rcx, qword [rsi + 0x270]
lea edx, [rbp + 1]
call qword [sym.imp.bthprops.cpl_BluetoothEnableDiscovery]
jmp 0x14008a3fc
mov eax, 1
mov dword [rsi + 0x268], eax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov edx, 8
mov rcx, rax
lea r8d, [rdx + 0x20]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
lea rdx, [rsp + 0x30]
mov rbx, rax
lea rcx, [rsp + 0xc0]
call qword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
jne 0x14008a43a
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, 1
mov r15d, reloc.WLDAP32.dll_Ordinal_32
mov ecx, r15d
lea r8d, [rdx + 2]
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rsi + 0x10], rax
lea r14, [rsi + 0x20]
mov ecx, reloc.WLDAP32.dll_Ordinal_30
lea r8d, [r15 - 2]
xor eax, eax
mov rdi, r14
rep stosb byte [rdi], al
mov rcx, qword [rsi + 0x10]
mov rdx, r14
mov word [r14], r15w
mov dword [rsi + 0x3a], 0xffffffff
call qword [sym.imp.WS2_32.dll_bind]
mov rcx, qword [rsi + 0x10]
cmp eax, 0xffffffff
je 0x14008a5e9
lea r8, [rsp + 0x34]
mov rdx, r14
call qword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
jne 0x14008a4a8
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test rbx, rbx
je 0x14008a5d1
lea rax, [0x140245dd8]
mov dword [rbx + 8], reloc.WLDAP32.dll_Ordinal_30
mov qword [rbx], r14
mov rcx, r15
mov dword [rbx + 0x18], reloc.WLDAP32.dll_Ordinal_30
mov qword [rbx + 0x10], r14
mov dword [rbx + 0x20], 1
mov dword [rbx + 0x24], 3
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0xc0]
mov dword [rsp + 0x40], 0x78
cmp word [rax], bp
je 0x14008a502
add rax, 2
sub rcx, 1
jne 0x14008a4f3
sub r15, rcx
test rcx, rcx
cmove r15, rbp
cmovne rbp, r15
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
lea r8, [rbp + 0x31]
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
test rax, rax
jne 0x14008a53b
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14008a5bd
lea rax, str.Monect_Bluetooth_Server
mov rcx, rdi
lea r9, [rsp + 0xc0]
mov qword [rsp + 0x20], rax
lea r8, str._s__s
lea rdx, [rbp + 0x31]
call fcn.1400773d0
lea rax, str.Monect_PC_Remote_Service_instance_registered_in_the_directory_service_through_RnR
mov qword [rsp + 0x48], rdi
xor r8d, r8d
mov qword [rsp + 0x60], rax
xor edx, edx
mov dword [rsp + 0x68], reloc.WS2_32.dll_recv
lea rcx, [rsp + 0x40]
mov dword [rsp + 0x98], 1
mov qword [rsp + 0xa0], rbx
call qword [sym.imp.WS2_32.dll_WSASetServiceW]
cmp eax, 0xffffffff
jne 0x14008a5a9
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [rsi + 0x10]
mov edx, 4
call qword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
jne 0x14008a5ef
mov rcx, qword [rsi + 0x10]
call qword [sym.imp.WS2_32.dll_closesocket]
mov rcx, qword [rsp + 0xe0]
xor rcx, rsp
call fcn.1401d0310
lea r11, [rsp + 0xf0]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret