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

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x10], edx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0x90
mov r14, rcx
xor r15d, r15d
xor ecx, ecx
mov dword [rbp + 0x6f], r15d
xor edx, edx
mov edi, r15d
call qword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
js 0x1400012aa
mov qword [rsp + 0x40], r15
lea esi, [r15 + 3]
mov dword [rsp + 0x38], r15d
xor r9d, r9d
mov qword [rsp + 0x30], r15
xor r8d, r8d
mov dword [rsp + 0x28], esi
or edx, 0xffffffff
xor ecx, ecx
mov dword [rsp + 0x20], r15d
call qword [sym.imp.ole32.dll_CoInitializeSecurity]
test eax, eax
js 0x1400012aa
lea rax, [rbp + 0x7f]
mov qword [rbp + 0x7f], r15
lea r12d, [r15 + 1]
mov qword [rsp + 0x20], rax
mov r8d, r12d
lea r9, [0x1400164b8]
xor edx, edx
lea rcx, [0x1400164c8]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x1400012aa
lea r13d, [r15 + 0x18]
mov qword [rbp + 0x77], r15
mov ecx, r13d
call fcn.140001e78
mov rbx, rax
test rax, rax
je 0x1400014a8
lea rcx, str.ROOTCIMV2
mov qword [rax + 8], r15
mov dword [rax + 0x10], r12d
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov qword [rbx], rax
test rax, rax
je 0x1400014a8
mov rcx, qword [rbp + 0x7f]
lea rdx, [rbp + 0x77]
mov qword [rsp + 0x40], rdx
xor r9d, r9d
mov rdx, qword [rbx]
xor r8d, r8d
mov qword [rsp + 0x38], r15
mov rax, qword [rcx]
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], r15d
mov qword [rbp - 9], rbx
mov qword [rsp + 0x20], r15
call qword [rax + 0x18]
lea rcx, [rbp - 9]
mov ebx, eax
call fcn.140001110
test ebx, ebx
jns 0x1400012c7
mov rcx, qword [rbp + 0x7f]
mov rax, qword [rcx]
call qword [rax + 0x10]
call qword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
mov rbx, qword [rsp + 0xd0]
add rsp, 0x90
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov rcx, qword [rbp + 0x77]
xor r9d, r9d
mov dword [rsp + 0x38], r15d
xor r8d, r8d
mov qword [rsp + 0x30], r15
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 0x1400012fd
mov rcx, qword [rbp + 0x77]
mov rax, qword [rcx]
call qword [rax + 0x10]
jmp 0x14000129a
mov rcx, r13
mov qword [rbp - 0x11], r15
call fcn.140001e78
mov rbx, rax
test rax, rax
je 0x1400014a8
lea rcx, str.SELECT__FROM_Win32_DiskDrive
mov qword [rax + 8], r15
mov dword [rax + 0x10], r12d
call fcn.140002af0
mov rcx, r13
mov qword [rbx], rax
mov qword [rbp - 1], rbx
mov rsi, rax
call fcn.140001e78
mov rbx, rax
test rax, rax
je 0x1400014a8
lea rcx, [0x14001e600]
mov qword [rax + 8], r15
mov dword [rax + 0x10], r12d
call fcn.140002af0
mov qword [rbx], rax
mov r9d, 0x30
mov rcx, qword [rbp + 0x77]
lea rax, [rbp - 0x11]
mov rdx, qword [rbx]
mov r8, rsi
mov qword [rsp + 0x28], rax
mov qword [rbp - 9], rbx
mov r10, qword [rcx]
mov qword [rsp + 0x20], r15
call qword [r10 + 0xa0]
lea rcx, [rbp - 9]
mov ebx, eax
call fcn.140001110
lea rcx, [rbp - 1]
call fcn.140001110
test ebx, ebx
js 0x1400012f1
mov rcx, qword [rbp - 0x11]
mov qword [rbp - 0x19], r15
test rcx, rcx
je 0x14000147d
or esi, 0xffffffff
mov rax, qword [rcx]
lea rdx, [rbp + 0x6f]
mov qword [rsp + 0x20], rdx
lea r9, [rbp - 0x19]
mov edx, esi
mov r8d, r12d
call qword [rax + 0x20]
cmp dword [rbp + 0x6f], r15d
je 0x14000147d
mov rcx, qword [rbp - 0x19]
lea r9, [rbp + 7]
mov qword [rsp + 0x28], r15
lea rdx, str.Index
xor r8d, r8d
mov qword [rsp + 0x20], r15
mov rax, qword [rcx]
call qword [rax + 0x20]
mov ebx, dword [rbp + 0xf]
lea rcx, [rbp + 7]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
test ebx, ebx
jne 0x140001466
mov rcx, qword [rbp - 0x19]
lea r9, [rbp + 7]
mov qword [rsp + 0x28], r15
lea rdx, str.SerialNumber
xor r8d, r8d
mov qword [rsp + 0x20], r15
mov edi, r12d
mov rax, qword [rcx]
call qword [rax + 0x20]
mov r8, qword [rbp + 0xf]
mov r9d, esi
mov qword [rsp + 0x38], r15
xor edx, edx
mov qword [rsp + 0x30], r15
xor ecx, ecx
mov dword [rsp + 0x28], 0x100
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea rcx, [rbp + 7]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
mov rcx, qword [rbp - 0x19]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp - 0x11]
test rcx, rcx
jne 0x1400013ba
mov rcx, qword [rbp + 0x77]
mov rdx, qword [rcx]
call qword [rdx + 0x10]
mov rcx, qword [rbp + 0x7f]
mov rdx, qword [rcx]
call qword [rdx + 0x10]
mov rcx, qword [rbp - 0x11]
mov rdx, qword [rcx]
call qword [rdx + 0x10]
call qword [sym.imp.ole32.dll_CoUninitialize]
mov eax, edi
jmp 0x1400012ac
mov ecx, 0x8007000e
call fcn.140002ae0
int3