Function at 0x14000123c
Capabilities:
Connect to wmi namespace via wbemlocator
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
push rbp
push r14
push r15
lea rbp, [rax - 0x1e8]
sub rsp, 0x2d0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x1c0], rax
lea rax, [0x1400206c8]
mov qword [rsp + 0x78], rax
lea rcx, str.ROOTCimV2
lea rax, [0x1400206e8]
mov qword [rbp - 0x80], rax
lea rax, [0x140020708]
mov qword [rbp - 0x78], rax
lea rax, [0x140020728]
mov qword [rbp - 0x70], rax
lea rax, [0x140020748]
mov qword [rbp - 0x68], rax
lea rax, str.ACPIQCOM05970
mov qword [rsp + 0x50], rax
lea rax, str.ACPIQCOM03040
mov qword [rsp + 0x58], rax
lea rax, str.ACPIQCOM1A8B0
mov qword [rsp + 0x60], rax
lea rax, str.ACPIQCOM04970
mov qword [rsp + 0x68], rax
lea rax, str.ACPIQCOM08970
mov qword [rsp + 0x70], rax
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
xor edx, edx
xor ecx, ecx
mov rbx, rax
call qword [sym.imp.ole32.dll_CoInitializeEx]
xor r15d, r15d
xor r9d, r9d
xor r8d, r8d
mov dword [0x140025d78], eax
mov qword [rsp + 0x40], r15
or edx, 0xffffffff
mov dword [rsp + 0x38], r15d
xor ecx, ecx
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], r15d
call qword [sym.imp.ole32.dll_CoInitializeSecurity]
mov dword [0x140025d78], eax
lea r12d, [r15 + 1]
lea rax, [0x140025d70]
xor edx, edx
lea r9, [0x1400183b0]
mov qword [rsp + 0x20], rax
mov r8d, r12d
lea rcx, [0x1400183c0]
call qword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [0x140025d78], eax
test eax, eax
js 0x1400015f2
mov rcx, qword [0x140025d70]
lea rdx, [0x140025d80]
mov qword [rsp + 0x40], rdx
xor r9d, r9d
mov qword [rsp + 0x38], r15
xor r8d, r8d
mov qword [rsp + 0x30], r15
mov rdx, rbx
mov rax, qword [rcx]
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], r15
call qword [rax + 0x18]
mov rcx, rbx
mov dword [0x140025d78], eax
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
xor edx, edx
mov dword [rbp - 0x50], r15d
mov r8d, 0xfe
mov word [rbp - 0x40], r15w
lea rcx, [rbp - 0x3e]
call fcn.140016770
mov ebx, r15d
lea rdi, [rsp + 0x50]
lea rax, [0x14002082c]
mov edx, 0x80
mov qword [rsp + 0x28], rax
lea r9, [0x140020830]
mov rax, qword [rdi]
lea r8, str._ls_ls_ls
lea rcx, [rbp - 0x40]
mov qword [rsp + 0x20], rax
call fcn.140001008
lea rcx, [rbp - 0x40]
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
lea rcx, [0x140020538]
mov qword [rbp - 0x60], r15
mov rsi, rax
mov qword [rbp - 0x58], r15
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov rcx, qword [0x140025d80]
mov r9d, 0x20
mov r14, rax
mov r8, rsi
lea rax, [rbp - 0x60]
mov rdx, r14
mov qword [rsp + 0x28], rax
mov r10, qword [rcx]
mov qword [rsp + 0x20], r15
call qword [r10 + 0xa0]
mov rcx, qword [rbp - 0x60]
lea r9, [rbp - 0x58]
mov dword [0x140025d78], eax
mov r8d, r12d
lea rax, [rbp - 0x50]
or edx, 0xffffffff
mov qword [rsp + 0x20], rax
mov r10, qword [rcx]
call qword [r10 + 0x20]
mov rcx, qword [rbp - 0x60]
mov dword [0x140025d78], eax
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp - 0x58]
test rcx, rcx
je 0x14000149e
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, r14
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rcx, rsi
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
cmp dword [rbp - 0x50], r15d
ja 0x1400014ea
add ebx, r12d
add rdi, 8
cmp ebx, 5
jb 0x1400013db
lea rdx, str.Your_device_is_not_supported_
lea r8, str.USB_Host_Mode_Control_V7.0___Native_
mov r9d, 0x10
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
mov eax, r12d
jmp 0x1400015c2
mov rcx, qword [0x140025d80]
movsxd rax, ebx
mov rbx, qword [rsp + rax*8 + 0x78]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [0x140025d70]
mov rax, qword [rcx]
call qword [rax + 0x10]
call qword [sym.imp.ole32.dll_CoUninitialize]
lea rax, [0x140020540]
mov edx, 0x80
mov word [0x140025ec0], ax
lea r9, str.SYSTEMCurrentControlSetEnum_
lea rax, str.Device_Parameters
mov qword [rsp + 0x28], rax
lea r8, str._ls_ls_ls
lea rcx, [0x140025dc0]
mov qword [rsp + 0x20], rbx
call fcn.140001008
cmp dword [0x140025da8], r15d
je 0x140001565
lea rdx, str.couldnt_open_the_registry_key
jmp 0x1400014cd
mov rdx, qword [0x140025ec0]
lea rax, [rbp - 0x4c]
mov qword [rsp + 0x30], rax
lea r8, str.RoleSwitchMode
lea rax, [rbp + 0xc0]
mov dword [rbp - 0x4c], 0x80
mov qword [rsp + 0x28], rax
mov r9d, 0xffff
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], r15
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
mov r9, rbx
lea rdx, str.enable
mov r8b, r12b
lea rcx, str.in_an_unknown_state
call fcn.14000105c
xor eax, eax
mov rcx, qword [rbp + 0x1c0]
xor rcx, rsp
call fcn.140001620
lea r11, [rsp + 0x2d0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
call qword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, r12d
call fcn.140005c88
int3