Function at 0x14002b3b0
Capabilities:
Reference wmi statements

Disassembly:
mov qword [rsp + 0x20], rdi
push rbp
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x1400c4080]
xor rax, rsp
mov qword [rbp - 0x10], rax
xor edi, edi
lea r8, [0x1400b00f0]
lea rdx, [rbp - 0x38]
mov qword [rbp - 0x48], rdi
lea rcx, [rbp - 0x48]
mov qword [rbp - 0x38], rdi
mov qword [rbp - 0x50], rdi
call fcn.1400325d0
test eax, eax
je 0x14002b608
mov qword [rsp + 0x90], rbx
lea rcx, [0x1400b4688]
mov qword [rsp + 0x98], rsi
mov qword [rsp + 0xa0], r14
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
lea rcx, str.SELECT__FROM_Win32_PnPEntity
mov rsi, rax
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
lea r14d, [rdi + 1]
mov rbx, rax
test rsi, rsi
je 0x14002b49d
test rax, rax
je 0x14002b494
mov rcx, qword [rbp - 0x48]
lea rax, [rbp - 0x50]
mov qword [rsp + 0x28], rax
lea r9d, [rdi + 0x30]
mov r8, rbx
mov qword [rsp + 0x20], rdi
mov rdx, qword [rcx]
mov r10, qword [rdx + 0xa0]
mov rdx, rsi
call r10
test eax, eax
jns 0x14002b494
lea rcx, str.ExecQuery
mov r14d, edi
call fcn.14002fa60
mov rcx, qword [rbp - 0x48]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, qword [rbp - 0x38]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
call qword [sym.imp.ole32.dll_CoUninitialize]
mov rcx, rsi
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rsi, qword [rsp + 0x98]
test rbx, rbx
je 0x14002b4b3
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
test r14d, r14d
mov r14, qword [rsp + 0xa0]
je 0x14002b5e1
mov rcx, qword [rbp - 0x50]
mov ebx, edi
mov qword [rbp - 0x40], rdi
mov dword [rbp - 0x18], edi
test rcx, rcx
je 0x14002b5ba
nop word [rax + rax]
mov rax, qword [rcx]
lea rdx, [rbp - 0x18]
mov qword [rsp + 0x20], rdx
lea r9, [rbp - 0x40]
mov edx, 0xffffffff
lea r8d, [rdx + 2]
call qword [rax + reloc.WLDAP32.dll_Ordinal_32]
cmp dword [rbp - 0x18], edi
je 0x14002b5b6
mov rcx, qword [rbp - 0x40]
lea r9, [rbp - 0x30]
mov qword [rsp + 0x28], rdi
lea rdx, str.Name
xor r8d, r8d
mov qword [rsp + 0x20], rdi
mov rax, qword [rcx]
call qword [rax + reloc.WLDAP32.dll_Ordinal_32]
test eax, eax
js 0x14002b59d
movzx eax, word [rbp - 0x30]
cmp ax, 1
je 0x14002b59d
test al, 8
je 0x14002b593
mov rcx, qword [rbp - 0x28]
lea rdx, str.82801FB
call qword [sym.imp.VCRUNTIME140.dll_wcsstr]
test rax, rax
jne 0x14002b591
mov rcx, qword [rbp - 0x28]
lea rdx, str.82441FX
call qword [sym.imp.VCRUNTIME140.dll_wcsstr]
test rax, rax
jne 0x14002b591
mov rcx, qword [rbp - 0x28]
lea rdx, str.82371SB
call qword [sym.imp.VCRUNTIME140.dll_wcsstr]
test rax, rax
jne 0x14002b591
mov rcx, qword [rbp - 0x28]
lea rdx, str.OpenHCD
call qword [sym.imp.VCRUNTIME140.dll_wcsstr]
test rax, rax
je 0x14002b593
inc ebx
lea rcx, [rbp - 0x30]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
mov rcx, qword [rbp - 0x40]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, qword [rbp - 0x50]
test rcx, rcx
jne 0x14002b4e0
jmp 0x14002b5ba
mov rcx, qword [rbp - 0x50]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, qword [rbp - 0x48]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, qword [rbp - 0x38]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
call qword [sym.imp.ole32.dll_CoUninitialize]
cmp ebx, 3
setge dil
mov rbx, qword [rsp + 0x90]
mov eax, edi
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.140095750
mov rdi, qword [rsp + 0xa8]
add rsp, 0x80
pop rbp
ret
mov eax, edi
jmp 0x14002b5eb