Function at 0x1800ed520
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 0x1800ed5a5
cmp eax, 0x80010119
jne 0x1800ed690
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 0x1800ed690
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], 0x80
mov qword [rsp + 0x20], r15
call qword [rax + 0x18]
test eax, eax
js 0x1800ed686
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 0x1800ed680
mov qword [rbp - 9], r15
lea rdx, [rbp - 9]
mov rax, qword [rcx]
lea r8, str.SELECT__FROM_Win32_ComputerSystemProduct
mov qword [rsp + 0x28], rdx
mov r9d, 0x30
lea rdx, [0x180163ea8]
mov qword [rsp + 0x20], r15
call qword [rax + 0xa0]
test eax, eax
jns 0x1800ed6a1
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 0x1800ed69a
call qword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
jmp 0x1800ed781
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 0x1800ed753
nop dword [rax]
nop word [rax + rax]
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 0x1800ed74f
mov rcx, qword [rbp - 1]
lea r9, [rbp + 7]
mov qword [rsp + 0x28], r15
lea rdx, str.UUID
xor r8d, r8d
mov qword [rsp + 0x20], r15
mov rax, qword [rcx]
call qword [rax + 0x20]
test eax, eax
jne 0x1800ed730
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 0x1800ed6d0
jmp 0x1800ed753
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 0x1800ed777
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