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

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r14
mov rbp, rsp
sub rsp, 0x70
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeEx]
xor r14d, r14d
test eax, eax
js 0x140004280
mov qword [rsp + 0x40], r14
lea esi, [r14 + 3]
mov dword [rsp + 0x38], r14d
xor r9d, r9d
mov qword [rsp + 0x30], r14
xor r8d, r8d
mov dword [rsp + 0x28], esi
or edx, 0xffffffff
xor ecx, ecx
mov dword [rsp + 0x20], r14d
call qword [sym.imp.ole32.dll_CoInitializeSecurity]
test eax, eax
js 0x14000427a
lea rax, [rbp + 0x40]
mov qword [rbp + 0x40], r14
lea r9, [0x140005230]
mov qword [rsp + 0x20], rax
xor edx, edx
lea r8d, [r14 + 1]
lea rcx, [0x140005240]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x14000427a
lea rcx, str.ROOTCIMV2
mov qword [rbp + 0x38], r14
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov rcx, qword [rbp + 0x40]
xor r9d, r9d
mov rdi, rax
xor r8d, r8d
lea rax, [rbp + 0x38]
mov rdx, rdi
mov qword [rsp + 0x40], rax
mov r10, qword [rcx]
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], r14
call qword [r10 + 0x18]
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
test ebx, ebx
jns 0x14000415c
mov rcx, qword [rbp + 0x40]
jmp 0x140004274
mov rcx, qword [rbp + 0x38]
xor r9d, r9d
mov dword [rsp + 0x38], r14d
xor r8d, r8d
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], esi
lea edx, [r9 + 0xa]
mov dword [rsp + 0x20], esi
call qword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
jns 0x140004192
mov rcx, qword [rbp + 0x38]
mov rax, qword [rcx]
call qword [rax + 0x10]
jmp 0x140004153
lea rcx, [0x140005a78]
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
lea rcx, str.SELECT__FROM_Win32_VideoController
mov rsi, rax
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov rcx, qword [rbp + 0x38]
mov r9d, 0x30
mov rdi, rax
mov qword [rbp + 0x48], r14
lea rax, [rbp + 0x48]
mov r8, rdi
mov qword [rsp + 0x28], rax
mov rdx, rsi
mov r10, qword [rcx]
mov qword [rsp + 0x20], r14
call qword [r10 + 0xa0]
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rcx, rdi
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
test ebx, ebx
js 0x140004186
mov rcx, qword [rbp + 0x48]
mov dword [rbp + 0x30], r14d
test rcx, rcx
je 0x14000425c
mov rax, qword [rcx]
lea r9, [rbp + 0x30]
mov qword [rsp + 0x20], r9
mov r8d, 1
lea r9, [rbp - 0x20]
or edx, 0xffffffff
call qword [rax + 0x20]
cmp dword [rbp + 0x30], r14d
je 0x14000425c
mov rcx, qword [rbp - 0x20]
lea r9, [rbp - 0x18]
mov qword [rsp + 0x28], r14
lea rdx, str.Name
xor r8d, r8d
mov qword [rsp + 0x20], r14
mov rax, qword [rcx]
call qword [rax + 0x20]
mov ecx, 0x104
call fcn.140001050
mov rcx, qword [rbp - 0x10]
call fcn.140004658
jmp 0x140004282
mov rcx, qword [rbp + 0x38]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp + 0x40]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp + 0x48]
mov rax, qword [rcx]
call qword [rax + 0x10]
call qword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
add rsp, 0x70
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret