Function at 0x140180d70
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x188
mov rax, qword [0x1401ed028]
xor rax, rsp
mov qword [rsp + 0x178], rax
mov dword [rsp + 0x54], 0
lea rdx, [0x1401caa74]
lea rcx, [rsp + 0x158]
call fcn.1400259b0
nop
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeEx]
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jge 0x140180e54
lea rdx, str.Failed_to_init_COM_Lib_
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.14017b8f0
mov qword [rsp + 0x88], rax
lea rdx, [0x14017bff0]
mov rcx, qword [rsp + 0x88]
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]
lea rdx, [rsp + 0x158]
mov rcx, qword [rsp + 0x190]
call fcn.140025930
mov eax, dword [rsp + 0x54]
or eax, 1
mov dword [rsp + 0x54], eax
lea rcx, [rsp + 0x158]
call fcn.140025900
nop
mov rcx, qword [rsp + 0x198]
call fcn.140028c90
nop
mov rcx, qword [rsp + 0x1a0]
call fcn.140028c90
mov rax, qword [rsp + 0x190]
jmp 0x14018166a
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
mov qword [rsp + 0x110], 0
lea rax, [rsp + 0x110]
mov qword [rsp + 0x20], rax
lea r9, [0x1401cc720]
mov r8d, 1
xor edx, edx
lea rcx, [0x1401cc730]
call qword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jge 0x140180f7f
lea rdx, str.Failed_to_create_IWbemLocator_object._Error_code:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.14017b8f0
mov qword [rsp + 0x90], rax
mov edx, dword [rsp + 0x50]
mov rcx, qword [rsp + 0x90]
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]
mov qword [rsp + 0x98], rax
lea rdx, [0x14017bff0]
mov rcx, qword [rsp + 0x98]
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]
lea rdx, [rsp + 0x158]
mov rcx, qword [rsp + 0x190]
call fcn.140025930
mov eax, dword [rsp + 0x54]
or eax, 1
mov dword [rsp + 0x54], eax
lea rcx, [rsp + 0x158]
call fcn.140025900
nop
mov rcx, qword [rsp + 0x198]
call fcn.140028c90
nop
mov rcx, qword [rsp + 0x1a0]
call fcn.140028c90
mov rax, qword [rsp + 0x190]
jmp 0x14018166a
mov qword [rsp + 0x118], 0
mov rax, qword [rsp + 0x110]
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0xb8], rax
lea rdx, str.ROOTCIMV2
lea rcx, [rsp + 0xc0]
call fcn.14017fc50
mov qword [rsp + 0xa0], rax
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0xa8], rax
mov rcx, qword [rsp + 0xa8]
call fcn.1401806d0
mov qword [rsp + 0xb0], rax
lea rax, [rsp + 0x118]
mov qword [rsp + 0x40], rax
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, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0x110]
call qword [rsp + 0xb8]
mov dword [rsp + 0x50], eax
lea rcx, [rsp + 0xc0]
call fcn.1401801d0
cmp dword [rsp + 0x50], 0
jge 0x140181108
lea rdx, str.Failed_to_connect_to_IWbemServices_object._Error_code:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.14017b8f0
mov qword [rsp + 0xc8], rax
mov edx, dword [rsp + 0x50]
mov rcx, qword [rsp + 0xc8]
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]
mov qword [rsp + 0xd0], rax
lea rdx, [0x14017bff0]
mov rcx, qword [rsp + 0xd0]
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 + 0x110]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x110]
call qword [rax + 0x10]
call qword [sym.imp.ole32.dll_CoUninitialize]
lea rdx, [rsp + 0x158]
mov rcx, qword [rsp + 0x190]
call fcn.140025930
mov eax, dword [rsp + 0x54]
or eax, 1
mov dword [rsp + 0x54], eax
lea rcx, [rsp + 0x158]
call fcn.140025900
nop
mov rcx, qword [rsp + 0x198]
call fcn.140028c90
nop
mov rcx, qword [rsp + 0x1a0]
call fcn.140028c90
mov rax, qword [rsp + 0x190]
jmp 0x14018166a
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 + 0x118]
call qword [sym.imp.ole32.dll_CoSetProxyBlanket]
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jge 0x140181223
lea rdx, str.Failed_to_set_proxy_blanket._Error_code:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.14017b8f0
mov qword [rsp + 0xd8], rax
mov edx, dword [rsp + 0x50]
mov rcx, qword [rsp + 0xd8]
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]
mov qword [rsp + 0xe0], rax
lea rdx, [0x14017bff0]
mov rcx, qword [rsp + 0xe0]
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 + 0x118]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x118]
call qword [rax + 0x10]
mov rax, qword [rsp + 0x110]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x110]
call qword [rax + 0x10]
call qword [sym.imp.ole32.dll_CoUninitialize]
lea rdx, [rsp + 0x158]
mov rcx, qword [rsp + 0x190]
call fcn.140025930
mov eax, dword [rsp + 0x54]
or eax, 1
mov dword [rsp + 0x54], eax
lea rcx, [rsp + 0x158]
call fcn.140025900
nop
mov rcx, qword [rsp + 0x198]
call fcn.140028c90
nop
mov rcx, qword [rsp + 0x1a0]
call fcn.140028c90
mov rax, qword [rsp + 0x190]
jmp 0x14018166a
mov edx, 8
lea rcx, [rsp + 0x148]
call fcn.140027d90
lea rcx, [rsp + 0x148]
call fcn.140036330
nop
mov rcx, qword [rsp + 0x198]
call fcn.140082f10
mov r8, rax
lea rdx, str.SELECT__FROM__ws
lea rcx, [rsp + 0x148]
call fcn.1401809e0
mov qword [rsp + 0x128], 0
mov rax, qword [rsp + 0x118]
mov rax, qword [rax]
mov rax, qword [rax + 0xa0]
mov qword [rsp + 0x108], rax
lea rcx, [rsp + 0x148]
call fcn.1400273c0
mov qword [rsp + 0xf8], rax
lea rdx, [0x1401cadac]
lea rcx, [rsp + 0x58]
call fcn.14017fbc0
mov qword [rsp + 0xe8], rax
mov rax, qword [rsp + 0xe8]
mov qword [rsp + 0xf0], rax
mov rcx, qword [rsp + 0xf0]
call fcn.1401806d0
mov qword [rsp + 0x100], rax
lea rax, [rsp + 0x128]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
mov r9d, gethostbyname
mov r8, qword [rsp + 0xf8]
mov rdx, qword [rsp + 0x100]
mov rcx, qword [rsp + 0x118]
call qword [rsp + 0x108]
mov dword [rsp + 0x50], eax
lea rcx, [rsp + 0x58]
call fcn.1401801d0
cmp dword [rsp + 0x50], 0
jge 0x140181408
lea rdx, str.Failed_to_execute_query._Error_code:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.14017b8f0
mov qword [rsp + 0x60], rax
mov edx, dword [rsp + 0x50]
mov rcx, qword [rsp + 0x60]
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]
mov qword [rsp + 0x68], rax
lea rdx, [0x14017bff0]
mov rcx, qword [rsp + 0x68]
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 + 0x118]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x118]
call qword [rax + 0x10]
mov rax, qword [rsp + 0x110]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x110]
call qword [rax + 0x10]
call qword [sym.imp.ole32.dll_CoUninitialize]
lea rdx, [rsp + 0x158]
mov rcx, qword [rsp + 0x190]
call fcn.140025930
mov eax, dword [rsp + 0x54]
or eax, 1
mov dword [rsp + 0x54], eax
lea rcx, [rsp + 0x148]
call fcn.140036310
nop
lea rcx, [rsp + 0x158]
call fcn.140025900
nop
mov rcx, qword [rsp + 0x198]
call fcn.140028c90
nop
mov rcx, qword [rsp + 0x1a0]
call fcn.140028c90
mov rax, qword [rsp + 0x190]
jmp 0x14018166a
mov qword [rsp + 0x120], 0
mov dword [rsp + 0x150], 0
cmp qword [rsp + 0x128], 0
je 0x14018154f
mov rax, qword [rsp + 0x128]
mov rax, qword [rax]
mov rax, qword [rax + 0x20]
mov qword [rsp + 0x70], rax
lea rax, [rsp + 0x150]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x120]
mov r8d, 1
mov edx, 0xffffffff
mov rcx, qword [rsp + 0x128]
call qword [rsp + WSAStartup]
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x150], 0
je 0x140181487
cmp qword [rsp + 0x120], 0
jne 0x14018148c
jmp 0x14018154f
mov rax, qword [rsp + 0x120]
mov rax, qword [rax]
mov rax, qword [rax + 0x20]
mov qword [rsp + 0x80], rax
mov rcx, qword [rsp + 0x1a0]
call fcn.140082f10
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x130]
xor r8d, r8d
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x120]
call qword [rsp + 0x80]
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jl 0x140181534
mov rcx, qword [rsp + 0x138]
call fcn.14019fd70
mov rdx, rax
lea rcx, [rsp + 0x158]
call fcn.140032290
lea rcx, [rsp + 0x130]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
mov rax, qword [rsp + 0x120]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x120]
call qword [rax + 0x10]
jmp 0x14018154f
mov rax, qword [rsp + 0x120]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x120]
call qword [rax + 0x10]
jmp 0x14018141f
mov rax, qword [rsp + 0x128]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x128]
call qword [rax + 0x10]
mov rax, qword [rsp + 0x118]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x118]
call qword [rax + 0x10]
mov rax, qword [rsp + 0x110]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x110]
call qword [rax + 0x10]
call qword [sym.imp.ole32.dll_CoUninitialize]
lea rcx, [rsp + 0x158]
call fcn.140026f60
movzx eax, al
test eax, eax
je 0x14018160b
lea rdx, [0x1401caa75]
mov rcx, qword [rsp + 0x190]
call fcn.1400259b0
mov eax, dword [rsp + 0x54]
or eax, 1
mov dword [rsp + 0x54], eax
lea rcx, [rsp + 0x148]
call fcn.140036310
nop
lea rcx, [rsp + 0x158]
call fcn.140025900
nop
mov rcx, qword [rsp + 0x198]
call fcn.140028c90
nop
mov rcx, qword [rsp + 0x1a0]
call fcn.140028c90
mov rax, qword [rsp + 0x190]
jmp 0x14018166a
lea rdx, [rsp + 0x158]
mov rcx, qword [rsp + 0x190]
call fcn.140025930
mov eax, dword [rsp + 0x54]
or eax, 1
mov dword [rsp + 0x54], eax
lea rcx, [rsp + 0x148]
call fcn.140036310
nop
lea rcx, [rsp + 0x158]
call fcn.140025900
nop
mov rcx, qword [rsp + 0x198]
call fcn.140028c90
nop
mov rcx, qword [rsp + 0x1a0]
call fcn.140028c90
mov rax, qword [rsp + 0x190]
mov rcx, qword [rsp + 0x178]
xor rcx, rsp
call fcn.1400d63a0
add rsp, 0x188
ret