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

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x178
mov rax, qword [0x1801d9040]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov dword [rsp + 0x54], 0
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeEx]
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jge 0x180005e2c
lea rdx, str.Failed_to_initialize_COM_library._Error_code__0x
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.180008160
lea rdx, [0x1800052b0]
mov rcx, rax
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::ios_base____ptr64____cdecl___class_std::ios_base____ptr64_____ptr64]
mov edx, dword [rsp + 0x50]
mov rcx, rax
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___long_int____ptr64]
lea rdx, [0x1800084e0]
mov rcx, rax
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]
nop
mov qword [rsp + 0x40], 0
mov dword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 0xffffffff
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeSecurity]
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jge 0x180005ebb
lea rdx, str.Failed_to_initialize_security._Error_code__0x
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.180008160
lea rdx, [0x1800052b0]
mov rcx, rax
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::ios_base____ptr64____cdecl___class_std::ios_base____ptr64_____ptr64]
mov edx, dword [rsp + 0x50]
mov rcx, rax
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___long_int____ptr64]
lea rdx, [0x1800084e0]
mov rcx, rax
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]
nop
mov qword [rsp + 0xe0], 0
lea rax, [rsp + 0xe0]
mov qword [rsp + 0x20], rax
lea r9, [0x180147b98]
mov r8d, 1
xor edx, edx
lea rcx, [0x180147ba8]
call qword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jge 0x180005f51
lea rdx, str.Failed_to_create_IWbemLocator_object.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.180008160
lea rdx, str._Err_code__0x
mov rcx, rax
call fcn.180008160
lea rdx, [0x1800052b0]
mov rcx, rax
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::ios_base____ptr64____cdecl___class_std::ios_base____ptr64_____ptr64]
mov edx, dword [rsp + 0x50]
mov rcx, rax
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___long_int____ptr64]
lea rdx, [0x1800084e0]
mov rcx, rax
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]
nop
mov qword [rsp + 0xe8], 0
lea rdx, str.ROOTCIMV2
lea rcx, [rsp + 0x78]
call fcn.1800053a0
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x68], rax
mov rcx, qword [rsp + 0x68]
call fcn.180005450
mov rcx, qword [rsp + 0xe0]
mov rcx, qword [rcx]
mov qword [rsp + 0x70], rcx
lea rdx, [rsp + 0xe8]
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rdx, rax
mov rcx, qword [rsp + 0xe0]
mov rax, qword [rsp + 0x70]
call qword [rax + 0x18]
mov dword [rsp + 0x50], eax
lea rcx, [rsp + 0x78]
call fcn.180005430
nop
cmp dword [rsp + 0x50], 0
jge 0x180006053
lea rdx, str.Could_not_connect._Error_code__0x
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.180008160
lea rdx, [0x1800052b0]
mov rcx, rax
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::ios_base____ptr64____cdecl___class_std::ios_base____ptr64_____ptr64]
mov edx, dword [rsp + 0x50]
mov rcx, rax
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___long_int____ptr64]
lea rdx, [0x1800084e0]
mov rcx, rax
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 rax, qword [rsp + 0xe0]
mov rax, qword [rax]
mov rcx, qword [rsp + 0xe0]
call qword [rax + 0x10]
call qword [sym.imp.ole32.dll_CoUninitialize]
nop
lea rdx, str.Connected_to_ROOTCIMV2_WMI_namespace
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.180008160
lea rdx, [0x1800084e0]
mov rcx, rax
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 dword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0xa
mov rcx, qword [rsp + 0xe8]
call qword [sym.imp.ole32.dll_CoSetProxyBlanket]
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jge 0x18000612e
lea rdx, str.Could_not_set_proxy_blanket._Error_code__0x
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.180008160
lea rdx, [0x1800052b0]
mov rcx, rax
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::ios_base____ptr64____cdecl___class_std::ios_base____ptr64_____ptr64]
mov edx, dword [rsp + 0x50]
mov rcx, rax
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___long_int____ptr64]
lea rdx, [0x1800084e0]
mov rcx, rax
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 rax, qword [rsp + 0xe8]
mov rax, qword [rax]
mov rcx, qword [rsp + 0xe8]
call qword [rax + 0x10]
mov rax, qword [rsp + 0xe0]
mov rax, qword [rax]
mov rcx, qword [rsp + 0xe0]
call qword [rax + 0x10]
call qword [sym.imp.ole32.dll_CoUninitialize]
nop
mov qword [rsp + 0xf8], 0
lea rdx, str.SELECT__FROM_Win32_BaseBoard
lea rcx, [rsp + 0xb8]
call fcn.180005310
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x90], rax
lea rdx, [0x180147f98]
lea rcx, [rsp + 0xb0]
call fcn.180005310
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x98], rax
mov rcx, qword [rsp + 0x90]
call fcn.180005450
mov qword [rsp + 0xa0], rax
mov rcx, qword [rsp + 0x98]
call fcn.180005450
mov rcx, qword [rsp + 0xe8]
mov rcx, qword [rcx]
mov qword [rsp + 0xa8], rcx
lea rdx, [rsp + 0xf8]
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x20], 0
mov r9d, 0x30
mov rdx, qword [rsp + 0xa0]
mov r8, rdx
mov rdx, rax
mov rcx, qword [rsp + 0xe8]
mov rax, qword [rsp + 0xa8]
call qword [rax + 0xa0]
mov dword [rsp + 0x50], eax
lea rcx, [rsp + 0xb0]
call fcn.180005430
nop
lea rcx, [rsp + 0xb8]
call fcn.180005430
nop
cmp dword [rsp + 0x50], 0
jge 0x1800062b4
lea rdx, str.Query_for_operating_system_name_failed.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.180008160
lea rdx, str._Error_code__0x
mov rcx, rax
call fcn.180008160
lea rdx, [0x1800052b0]
mov rcx, rax
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::ios_base____ptr64____cdecl___class_std::ios_base____ptr64_____ptr64]
mov edx, dword [rsp + 0x50]
mov rcx, rax
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___long_int____ptr64]
lea rdx, [0x1800084e0]
mov rcx, rax
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 rax, qword [rsp + 0xe8]
mov rax, qword [rax]
mov rcx, qword [rsp + 0xe8]
call qword [rax + 0x10]
mov rax, qword [rsp + 0xe0]
mov rax, qword [rax]
mov rcx, qword [rsp + 0xe0]
call qword [rax + 0x10]
call qword [sym.imp.ole32.dll_CoUninitialize]
nop
mov qword [rsp + 0xf0], 0
mov dword [rsp + 0x118], 0
mov rax, qword [rsp + 0xf8]
mov rax, qword [rax]
lea rcx, [rsp + 0x118]
mov qword [rsp + 0x20], rcx
lea r9, [rsp + 0xf0]
mov r8d, 1
mov edx, 0xffffffff
mov rcx, qword [rsp + 0xf8]
call qword [rax + 0x20]
mov dword [rsp + 0x5c], eax
cmp qword [rsp + 0xf0], 0
je 0x180006484
mov rax, qword [rsp + 0xf0]
mov rax, qword [rax]
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x100]
xor r8d, r8d
lea rdx, str.SerialNumber
mov rcx, qword [rsp + 0xf0]
call qword [rax + 0x20]
mov dword [rsp + 0x5c], eax
mov rdx, qword [rsp + 0x108]
lea rcx, [rsp + 0x120]
call fcn.1800073f0
nop
lea rcx, [rsp + 0x58]
call fcn.180003dd0
mov qword [rsp + 0xc0], rax
lea rdx, [rsp + 0xd0]
lea rcx, [rsp + 0x120]
call fcn.180007300
mov qword [rsp + 0xc8], rax
lea rdx, [rsp + 0xd8]
lea rcx, [rsp + 0x120]
call fcn.180007360
mov rcx, qword [rsp + 0xc0]
mov r9, rcx
mov rcx, qword [rsp + 0xc8]
mov r8, qword [rcx]
mov rdx, qword [rax]
lea rcx, [rsp + 0x140]
call fcn.180007fe0
nop
lea rcx, [rsp + 0x100]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
mov rax, qword [rsp + 0xf0]
mov rax, qword [rax]
mov rcx, qword [rsp + 0xf0]
call qword [rax + 0x10]
mov rax, qword [rsp + 0xe8]
mov rax, qword [rax]
mov rcx, qword [rsp + 0xe8]
call qword [rax + 0x10]
mov rax, qword [rsp + 0xe0]
mov rax, qword [rax]
mov rcx, qword [rsp + 0xe0]
call qword [rax + 0x10]
mov rax, qword [rsp + 0xf8]
mov rax, qword [rax]
mov rcx, qword [rsp + 0xf8]
call qword [rax + 0x10]
call qword [sym.imp.ole32.dll_CoUninitialize]
lea rdx, [rsp + 0x140]
mov rcx, qword [rsp + 0x180]
call fcn.180007440
mov eax, dword [rsp + 0x54]
or eax, 1
mov dword [rsp + 0x54], eax
lea rcx, [rsp + 0x140]
call fcn.180003190
nop
lea rcx, [rsp + 0x120]
call fcn.1800073c0
mov rax, qword [rsp + 0x180]
jmp 0x1800064ab
lea rdx, [0x180147ffc]
mov rcx, qword [rsp + 0x180]
call fcn.180004ad0
mov eax, dword [rsp + 0x54]
or eax, 1
mov dword [rsp + 0x54], eax
mov rax, qword [rsp + 0x180]
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.180143cd0
add rsp, 0x178
ret