Function at 0x14008b050
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x60
mov rax, qword [0x140467f78]
xor rax, rsp
mov qword [rsp + 0x50], rax
movzx esi, dl
mov dword [rsp + 0x20], 4
xor ebp, ebp
lea rdx, str.SYSTEMCurrentControlSetServices_spacedeskService
lea r9, [rsp + 0x38]
mov dword [rsp + 0x38], ebp
lea r8, str.NetworkConnectionEnabled
mov rdi, rcx
xor bl, bl
call fcn.140092eb0
test al, al
jne 0x14008b0c0
lea r8, str.NetworkConnectionEnabled
lea rdx, str.SISettings::NetworkConnectionIsEnabled_failed__SIUtilRegistryValueGet__s_n
lea ecx, [rbp + 0x20]
call fcn.140093500
lea eax, [rbp + 1]
jmp 0x14008b0c8
mov eax, dword [rsp + 0x38]
test eax, eax
je 0x14008b0ef
cmp eax, 1
jne 0x14008b0ef
mov rax, qword [rdi + 8]
lea rcx, [rdi + 8]
call qword [rax + 0x18]
test al, al
jne 0x14008b0ef
lea rdx, str.SIConnectionListener::OnConnectorsEnable_NET_TCP_failed__n
mov ecx, 1
call fcn.140093500
jmp 0x14008b0f1
mov bl, 1
mov rax, qword [rdi + 0x28]
lea rcx, [rdi + 0x28]
call qword [rax + 0x18]
test al, al
jne 0x14008b113
lea rdx, str.SIConnectionListener::OnConnectorsEnable_L5Generic_failed__n
mov ecx, 1
call fcn.140093500
jmp 0x14008b115
mov bl, 1
test sil, sil
jne 0x14008b277
lea rax, [rsp + 0x30]
mov dword [rsp + 0x38], ebp
mov r9d, 1
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x40], 4
lea rdx, str.SYSTEMCurrentControlSetServices_spacedeskService
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x14008b172
mov r9d, eax
lea r8, str.SYSTEMCurrentControlSetServices_spacedeskService
lea rdx, str.SIUtilRegistryValueGet_RegOpenKeyEx_failed___s__d_n
mov ecx, 1
call fcn.140093500
jmp 0x14008b1dd
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x48]
lea rax, [rsp + 0x38]
xor r8d, r8d
lea rdx, str.AndroidUsbControlEnabled
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x14008b1fc
lea r8, str.AndroidUsbControlEnabled
mov ecx, 1
cmp eax, 2
jne 0x14008b1c3
lea rdx, str.SIUtilRegistryValueGet_RegQueryValueExW_failed___s_ERROR_FILE_NOT_FOUND_n
call fcn.140093500
jmp 0x14008b1d2
mov r9d, eax
lea rdx, str.SIUtilRegistryValueGet_RegQueryValueExW_failed___s__d_n
call fcn.140093500
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea r8, str.AndroidUsbControlEnabled
mov ecx, 0x20
lea rdx, str.SISettings::AndroidUsbCableIsEnabled_failed__SIUtilRegistryValueGet__s_n
call fcn.140093500
call fcn.1400d9820
jmp 0x14008b277
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [rsp + 0x48], 1
lea r9, str.AndroidUsbControlEnabled
lea r8, str.SYSTEMCurrentControlSetServices_spacedeskService
mov ecx, 0x40
jne 0x14008b239
lea rax, [rsp + 0x38]
lea rdx, str.SIUtilRegistryValueGet_RegQueryValueExW__s__s_Data:__s_n
mov qword [rsp + 0x20], rax
call fcn.140093500
jmp 0x14008b245
lea rdx, str.SIUtilRegistryValueGet_RegQueryValueExW__s__s_n
call fcn.140093500
cmp dword [rsp + 0x38], 1
je 0x14008b253
call fcn.1400d9820
jmp 0x14008b277
mov rax, qword [rdi + 0x18]
lea rcx, [rdi + 0x18]
call qword [rax + 0x18]
test al, al
jne 0x14008b275
lea rdx, str.SIConnectionListener::OnConnectorsEnable_USB_Android_failed__n
mov ecx, 1
call fcn.140093500
jmp 0x14008b277
mov bl, 1
movzx eax, bl
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1402ab320
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret