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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r14
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xc0
mov rax, qword [0x140007040]
xor rax, rsp
mov qword [rbp + 0x47], rax
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
jns 0x1400012ae
lea rdx, [0x1400044b8]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400016f0
mov rcx, rax
lea rdx, [0x1400018c0]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov eax, 1
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.1400022e0
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
xor r14d, r14d
mov qword [rsp + 0x40], r14
mov dword [rsp + 0x38], r14d
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], r14d
xor r9d, r9d
xor r8d, r8d
lea edx, [r14 - 1]
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeSecurity]
test eax, eax
jns 0x140001311
lea rdx, [0x1400044e0]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400016f0
mov rcx, rax
lea rdx, [0x1400018c0]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
call qword [sym.imp.ole32.dll_CoUninitialize]
jmp 0x140001280
mov qword [rbp + 7], r14
lea rax, [rbp + 7]
mov qword [rsp + 0x20], rax
lea r9, [0x1400043c8]
xor edx, edx
lea r8d, [rdx + 1]
lea rcx, [0x1400043d8]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jns 0x140001345
lea rdx, [0x140004508]
jmp 0x1400012ea
mov qword [rbp + 0xf], r14
mov ecx, 0x18
call fcn.140002308
mov rbx, rax
mov qword [rbp - 0x19], rax
test rax, rax
je 0x140001391
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rax
mov qword [rbx + 8], r14
mov dword [rbx + 0x10], 1
lea rcx, str.ROOTCIMV2
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov qword [rbx], rax
test rax, rax
je 0x1400016d7
jmp 0x140001394
mov rbx, r14
mov qword [rbp - 0x11], rbx
test rbx, rbx
je 0x1400016e2
mov rcx, qword [rbp + 7]
mov rax, qword [rcx]
lea rdx, [rbp + 0xf]
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], r14
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rbx]
call qword [rax + 0x18]
mov edi, eax
mov ecx, 0xffffffff
lock xadd dword [rbx + 0x10], ecx
cmp ecx, 1
jne 0x140001412
mov rcx, qword [rbx]
test rcx, rcx
je 0x1400013f3
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rbx], r14
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x140001405
call fcn.140002300
mov qword [rbx + 8], r14
mov edx, 0x18
mov rcx, rbx
call fcn.140002300
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
test edi, edi
jns 0x14000144e
lea rdx, [0x140004550]
call fcn.1400016f0
mov rcx, rax
lea rdx, [0x1400018c0]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov rcx, qword [rbp + 7]
mov rax, qword [rcx]
call qword [rax + 0x10]
call qword [sym.imp.ole32.dll_CoUninitialize]
jmp 0x140001280
lea rdx, [0x140004570]
call fcn.1400016f0
mov rcx, rax
lea rdx, [0x1400018c0]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov qword [rbp + 0x17], r14
mov ecx, 0x18
call fcn.140002308
mov rbx, rax
mov qword [rbp - 0x19], rax
test rax, rax
je 0x1400014ac
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rax
mov qword [rbx + 8], r14
mov dword [rbx + 0x10], 1
lea rcx, str.SELECT__FROM_Win32_PhysicalMedia
call fcn.140001fb0
mov qword [rbx], rax
jmp 0x1400014af
mov rbx, r14
mov qword [rbp - 9], rbx
test rbx, rbx
je 0x1400016e2
mov ecx, 0x18
call fcn.140002308
mov rdi, rax
mov qword [rbp - 0x19], rax
test rax, rax
je 0x1400014fa
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], rax
mov qword [rdi + 8], r14
mov dword [rdi + 0x10], 1
lea rcx, [0x1400045b4]
call fcn.140001fb0
mov qword [rdi], rax
jmp 0x1400014fd
mov rdi, r14
mov qword [rbp - 1], rdi
test rdi, rdi
je 0x1400016cc
mov rcx, qword [rbp + 0xf]
mov rax, qword [rcx]
lea rdx, [rbp + 0x17]
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x20], r14
mov r9d, 0x30
mov r8, qword [rbx]
mov rdx, qword [rdi]
call qword [rax + 0xa0]
mov esi, eax
mov ecx, 0xffffffff
lock xadd dword [rdi + 0x10], ecx
cmp ecx, 1
jne 0x140001573
mov rcx, qword [rdi]
test rcx, rcx
je 0x140001553
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rdi], r14
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x140001565
call fcn.140002300
mov qword [rdi + 8], r14
mov edx, 0x18
mov rcx, rdi
call fcn.140002300
nop
mov eax, 0xffffffff
lock xadd dword [rbx + 0x10], eax
cmp eax, 1
jne 0x1400015b2
mov rcx, qword [rbx]
test rcx, rcx
je 0x140001593
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rbx], r14
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x1400015a5
call fcn.140002300
mov qword [rbx + 8], r14
mov edx, 0x18
mov rcx, rbx
call fcn.140002300
test esi, esi
jns 0x1400015f8
lea rdx, [0x1400045b8]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400016f0
mov rcx, rax
lea rdx, [0x1400018c0]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov rcx, qword [rbp + 0xf]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp + 7]
mov rax, qword [rcx]
call qword [rax + 0x10]
call qword [sym.imp.ole32.dll_CoUninitialize]
jmp 0x140001280
mov qword [rbp + 0x1f], r14
mov dword [rbp + 0x3f], r14d
mov rcx, qword [rbp + 0x17]
test rcx, rcx
je 0x1400016a1
nop dword [rax]
mov rax, qword [rcx]
lea rdx, [rbp + 0x3f]
mov qword [rsp + 0x20], rdx
lea r9, [rbp + 0x1f]
mov edx, 0xffffffff
lea r8d, [rdx + 2]
call qword [rax + 0x20]
cmp dword [rbp + 0x3f], 0
je 0x1400016a1
mov rcx, qword [rbp + 0x1f]
mov rax, qword [rcx]
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r14
lea r9, [rbp + 0x27]
xor r8d, r8d
lea rdx, str.SerialNumber
call qword [rax + 0x20]
test eax, eax
js 0x140001680
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.140001900
mov rcx, rax
mov rdx, qword [rbp + 0x2f]
call fcn.140001b60
mov rcx, rax
lea rdx, [0x140001d40]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
lea rcx, [rbp + 0x27]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
mov rcx, qword [rbp + 0x1f]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp + 0x17]
test rcx, rcx
jne 0x140001610
mov rcx, qword [rbp + 0xf]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp + 7]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp + 0x17]
mov rax, qword [rcx]
call qword [rax + 0x10]
call qword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
jmp 0x140001285
mov ecx, 0x8007000e
call fcn.140001fa0
nop
mov ecx, 0x8007000e
call fcn.140001fa0
nop
mov ecx, 0x8007000e
call fcn.140001fa0
int3