Function at 0x7ff7cd6a4cac
Capabilities:
Connect to wmi namespace via wbemlocator
Reference wmi statements

Disassembly:
push rbp
push rbx
push rdi
mov rbp, rsp
sub rsp, 0x80
xor edi, edi
mov qword [rbp + 0x30], rdi
lea rax, [rbp + 0x30]
mov qword [rsp + 0x20], rax
lea r9, [0x7ff7cd6db168]
xor edx, edx
lea r8d, [rdi + 1]
lea rcx, [0x7ff7cd6db238]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x7ff7cd6a4f0a
mov qword [rbp + 0x28], rdi
lea rdx, str.ROOTCIMV2
lea rcx, [rbp - 0x28]
call fcn.7ff7cd6a4b98
nop
mov rcx, qword [rax]
test rcx, rcx
je 0x7ff7cd6a4d0d
mov rdx, qword [rcx]
jmp 0x7ff7cd6a4d10
mov rdx, rdi
mov rcx, qword [rbp + 0x30]
mov rax, qword [rcx]
lea r8, [rbp + 0x28]
mov qword [rsp + 0x40], r8
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rdi
xor r9d, r9d
xor r8d, r8d
mov rax, qword [rax + 0x18]
call qword [0x7ff7cd6d8518]
mov ebx, eax
lea rcx, [rbp - 0x28]
call fcn.7ff7cd6a4fa4
test ebx, ebx
js 0x7ff7cd6a4ef9
mov dword [rsp + 0x38], edi
mov qword [rsp + 0x30], rdi
mov eax, 3
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], eax
xor r9d, r9d
xor r8d, r8d
lea edx, [rax + 7]
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
js 0x7ff7cd6a4ee8
mov qword [rbp - 0x30], rdi
lea rdx, str.SELECT__FROM_Win32_OperatingSystem
lea rcx, [rbp - 0x20]
call fcn.7ff7cd6a4b28
mov rbx, rax
lea rdx, [0x7ff7cd6d8f8c]
lea rcx, [rbp - 0x28]
call fcn.7ff7cd6a4b28
nop
mov rcx, qword [rbx]
test rcx, rcx
je 0x7ff7cd6a4dbc
mov r8, qword [rcx]
jmp 0x7ff7cd6a4dbf
mov r8, rdi
mov rax, qword [rax]
test rax, rax
je 0x7ff7cd6a4dcc
mov rdx, qword [rax]
jmp 0x7ff7cd6a4dcf
mov rdx, rdi
mov rcx, qword [rbp + 0x28]
mov rax, qword [rcx]
lea r9, [rbp - 0x30]
mov qword [rsp + 0x28], r9
mov qword [rsp + 0x20], rdi
mov r9d, 0x30
mov rax, qword [rax + 0xa0]
call qword [0x7ff7cd6d8518]
mov ebx, eax
lea rcx, [rbp - 0x28]
call fcn.7ff7cd6a4fa4
nop
lea rcx, [rbp - 0x20]
call fcn.7ff7cd6a4fa4
test ebx, ebx
js 0x7ff7cd6a4ee8
mov rcx, qword [rbp - 0x30]
test rcx, rcx
je 0x7ff7cd6a4ee8
mov qword [rbp + 0x38], rdi
mov dword [rbp + 0x20], edi
mov rax, qword [rcx]
lea rdx, [rbp + 0x20]
mov qword [rsp + 0x20], rdx
lea r9, [rbp + 0x38]
mov r8d, 1
or edx, 0xffffffff
mov rax, qword [rax + 0x20]
call qword [0x7ff7cd6d8518]
mov rcx, qword [rbp + 0x38]
test rcx, rcx
je 0x7ff7cd6a4eb0
cmp dword [rbp + 0x20], edi
jbe 0x7ff7cd6a4eb0
mov rax, qword [rcx]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
lea r9, [rbp - 0x18]
xor r8d, r8d
lea rdx, [0x7ff7cd6d8f90]
mov rax, qword [rax + 0x20]
call qword [0x7ff7cd6d8518]
lea rdx, str.Windows_10
mov rcx, qword [rbp - 0x10]
call fcn.7ff7cd6c4814
test rax, rax
setne dil
lea rcx, [rbp - 0x18]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
mov rcx, qword [rbp + 0x38]
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x7ff7cd6d8518]
mov rcx, qword [rbp + 0x28]
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x7ff7cd6d8518]
mov rcx, qword [rbp + 0x30]
mov rdx, qword [rcx]
mov rax, qword [rdx + 0x10]
call qword [0x7ff7cd6d8518]
mov rcx, qword [rbp - 0x30]
mov rdx, qword [rcx]
mov rax, qword [rdx + 0x10]
call qword [0x7ff7cd6d8518]
mov al, dil
jmp 0x7ff7cd6a4f0c
mov rcx, qword [rbp + 0x28]
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x7ff7cd6d8518]
mov rcx, qword [rbp + 0x30]
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x7ff7cd6d8518]
xor al, al
add rsp, 0x80
pop rdi
pop rbx
pop rbp
ret