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

Disassembly:
push rbp
push rbx
push rsi
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xa0
mov rax, qword [0x180185680]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov r14d, edx
mov rsi, rcx
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeEx]
xor r15d, r15d
mov ebx, 1
mov qword [rsp + 0x40], r15
test eax, eax
mov dword [rsp + 0x38], r15d
cmovs ebx, r15d
mov qword [rsp + 0x30], r15
xor r9d, r9d
mov dword [rsp + 0x28], 3
xor r8d, r8d
mov dword [rsp + 0x20], r15d
xor ecx, ecx
lea edx, [r15 - 1]
call qword [sym.imp.ole32.dll_CoInitializeSecurity]
mov edx, 0x80000000
lea ecx, [rax + rdx]
test edx, ecx
jne 0x1800ed825
cmp eax, 0x80010119
jne 0x1800ed90d
xor edx, edx
mov qword [rbp - 0x11], r15
lea rax, [rbp - 0x11]
lea r9, [0x180142b28]
mov qword [rsp + 0x20], rax
lea rcx, [0x180142bf8]
lea r8d, [rdx + 1]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x1800ed90d
mov rcx, qword [rbp - 0x11]
lea rdx, [rbp - 0x19]
mov qword [rsp + 0x40], rdx
xor r9d, r9d
mov qword [rsp + 0x38], r15
lea rdx, str.ROOTCIMV2
mov qword [rbp - 0x19], r15
xor r8d, r8d
mov rax, qword [rcx]
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], r15
call qword [rax + 0x18]
test eax, eax
js 0x1800ed903
mov rcx, qword [rbp - 0x19]
xor r9d, r9d
mov dword [rsp + 0x38], r15d
xor r8d, r8d
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 3
lea edx, [r9 + 0xa]
mov dword [rsp + 0x20], 3
call qword [sym.imp.ole32.dll_CoSetProxyBlanket]
mov rcx, qword [rbp - 0x19]
test eax, eax
js 0x1800ed8fd
mov qword [rbp - 9], r15
lea rdx, [rbp - 9]
mov rax, qword [rcx]
lea r8, str.SELECT__FROM_Win32_ComputerSystem
mov qword [rsp + 0x28], rdx
mov r9d, 0x30
lea rdx, [0x180163ea8]
mov qword [rsp + 0x20], r15
call qword [rax + 0xa0]
test eax, eax
jns 0x1800ed91e
mov rcx, qword [rbp - 0x19]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp - 0x11]
mov rax, qword [rcx]
call qword [rax + 0x10]
test ebx, ebx
je 0x1800ed917
call qword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
jmp 0x1800ed9f1
mov rcx, qword [rbp - 9]
mov qword [rsp + 0xe0], rdi
mov edi, r15d
mov qword [rbp - 1], r15
mov dword [rbp + 0x1f], r15d
test rcx, rcx
je 0x1800ed9c3
nop
mov rax, qword [rcx]
lea rdx, [rbp + 0x1f]
mov qword [rsp + 0x20], rdx
lea r9, [rbp - 1]
mov edx, 0xffffffff
lea r8d, [rdx + 2]
call qword [rax + 0x20]
cmp dword [rbp + 0x1f], r15d
je 0x1800ed9bf
mov rcx, qword [rbp - 1]
lea r9, [rbp + 7]
mov qword [rsp + 0x28], r15
lea rdx, str.Model
xor r8d, r8d
mov qword [rsp + 0x20], r15
mov rax, qword [rcx]
call qword [rax + 0x20]
test eax, eax
jne 0x1800ed9a0
mov r8, qword [rbp + 0xf]
lea eax, [r14 - 1]
movsxd rdx, eax
mov rcx, rsi
call fcn.1801259f0
mov edi, 1
lea rcx, [rbp + 7]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
mov rcx, qword [rbp - 1]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp - 9]
test rcx, rcx
jne 0x1800ed940
jmp 0x1800ed9c3
mov rcx, qword [rbp - 9]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp - 0x19]
mov rdx, qword [rcx]
call qword [rdx + 0x10]
mov rcx, qword [rbp - 0x11]
mov rdx, qword [rcx]
call qword [rdx + 0x10]
test ebx, ebx
je 0x1800ed9e7
call qword [sym.imp.ole32.dll_CoUninitialize]
mov eax, edi
mov rdi, qword [rsp + 0xe0]
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.18010faf0
add rsp, 0xa0
pop r15
pop r14
pop rsi
pop rbx
pop rbp
ret