Function at 0x140001214
Capabilities:
Connect to wmi namespace via wbemlocator

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 - 0xe8]
sub rsp, 0x1d0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0xc0], rax
lea rax, [0x140020680]
mov qword [rsp + 0x78], rax
lea rcx, str.ROOTCimV2
lea rax, [0x1400206a0]
mov qword [rbp - 0x80], rax
lea rax, [0x1400206c0]
mov qword [rbp - 0x78], rax
lea rax, [0x1400206e0]
mov qword [rbp - 0x70], rax
lea rax, [0x140020700]
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 [0x140024d78], 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 [0x140024d78], eax
lea r12d, [r15 + 1]
lea rax, [0x140024d70]
xor edx, edx
lea r9, [0x140018390]
mov qword [rsp + 0x20], rax
mov r8d, r12d
lea rcx, [0x1400183a0]
call qword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [0x140024d78], eax
test eax, eax
js 0x140001588
mov rcx, qword [0x140024d70]
lea rdx, [0x140024d80]
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 [0x140024d78], 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.140016700
mov ebx, r15d
lea rdi, [rsp + 0x50]
lea rax, [0x1400207e4]
mov edx, 0x80
mov qword [rsp + 0x28], rax
lea r9, str.Select__from_Win32_PnPEntity_Where_DeviceID__
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, [0x140020518]
mov qword [rbp - 0x60], r15
mov rsi, rax
mov qword [rbp - 0x58], r15
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov rcx, qword [0x140024d80]
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 [0x140024d78], 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 [0x140024d78], eax
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp - 0x58]
test rcx, rcx
je 0x140001476
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 0x1400014c2
add ebx, r12d
add rdi, 8
cmp ebx, 5
jb 0x1400013b3
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 0x140001558
mov rcx, qword [0x140024d80]
movsxd rax, ebx
mov rbx, qword [rsp + rax*8 + 0x78]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [0x140024d70]
mov rax, qword [rcx]
call qword [rax + 0x10]
call qword [sym.imp.ole32.dll_CoUninitialize]
lea rax, [0x140020520]
mov edx, 0x80
mov word [0x140024ec0], ax
lea r9, str.SYSTEMCurrentControlSetEnum_
lea rax, str.Device_Parameters
mov qword [rsp + 0x28], rax
lea r8, str._ls_ls_ls
lea rcx, [0x140024dc0]
mov qword [rsp + 0x20], rbx
call fcn.140001008
cmp dword [0x140024da8], r15d
je 0x14000153d
lea rdx, str.couldnt_open_the_registry_key
jmp 0x1400014a5
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 + 0xc0]
xor rcx, rsp
call fcn.1400015b0
lea r11, [rsp + 0x1d0]
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.140005c18
int3