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

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x188
mov dword [rsp + 0x50], 0
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeEx]
mov dword [rsp + 0x54], eax
cmp dword [rsp + 0x54], 0
jge 0x1401786da
lea rdx, str.Unknown
mov rcx, qword [rsp + 0x198]
call fcn.14015a028
mov eax, dword [rsp + 0x50]
or eax, 1
mov dword [rsp + 0x50], eax
mov rax, qword [rsp + 0x198]
jmp 0x140178cc9
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 + 0x54], eax
cmp dword [rsp + 0x54], 0
jge 0x140178754
call qword [sym.imp.ole32.dll_CoUninitialize]
lea rdx, str.Unknown
mov rcx, qword [rsp + 0x198]
call fcn.14015a028
mov eax, dword [rsp + 0x50]
or eax, 1
mov dword [rsp + 0x50], eax
mov rax, qword [rsp + 0x198]
jmp 0x140178cc9
mov qword [rsp + 0x58], 0
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
lea r9, [0x1404b9550]
mov r8d, 1
xor edx, edx
lea rcx, [0x1404b9560]
call qword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [rsp + 0x54], eax
cmp dword [rsp + 0x54], 0
jge 0x1401787c0
call qword [sym.imp.ole32.dll_CoUninitialize]
lea rdx, str.Unknown
mov rcx, qword [rsp + 0x198]
call fcn.14015a028
mov eax, dword [rsp + 0x50]
or eax, 1
mov dword [rsp + 0x50], eax
mov rax, qword [rsp + 0x198]
jmp 0x140178cc9
mov qword [rsp + 0x60], 0
mov rax, qword [rsp + 0x58]
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0xa8], rax
lea rdx, str.ROOTCIMV2
lea rcx, [rsp + 0xb0]
call fcn.14015c198
mov qword [rsp + 0x90], rax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x98], rax
mov rcx, qword [rsp + 0x98]
call fcn.14015fca4
mov qword [rsp + 0xa0], rax
lea rax, [rsp + 0x60]
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 + 0xa0]
mov rcx, qword [rsp + 0x58]
call qword [rsp + 0xa8]
mov dword [rsp + 0x54], eax
lea rcx, [rsp + 0xb0]
call fcn.14015e9b8
cmp dword [rsp + 0x54], 0
jge 0x1401788bf
mov rax, qword [rsp + 0x58]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x58]
call qword [rax + reloc.WS2_32.dll_recv]
call qword [sym.imp.ole32.dll_CoUninitialize]
lea rdx, str.Unknown
mov rcx, qword [rsp + 0x198]
call fcn.14015a028
mov eax, dword [rsp + 0x50]
or eax, 1
mov dword [rsp + 0x50], eax
mov rax, qword [rsp + 0x198]
jmp 0x140178cc9
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 + 0x60]
call qword [sym.imp.ole32.dll_CoSetProxyBlanket]
mov dword [rsp + 0x54], eax
cmp dword [rsp + 0x54], 0
jge 0x140178953
mov rax, qword [rsp + 0x60]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x60]
call qword [rax + reloc.WS2_32.dll_recv]
mov rax, qword [rsp + 0x58]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x58]
call qword [rax + reloc.WS2_32.dll_recv]
call qword [sym.imp.ole32.dll_CoUninitialize]
lea rdx, str.Unknown
mov rcx, qword [rsp + 0x198]
call fcn.14015a028
mov eax, dword [rsp + 0x50]
or eax, 1
mov dword [rsp + 0x50], eax
mov rax, qword [rsp + 0x198]
jmp 0x140178cc9
mov qword [rsp + 0x68], 0
mov rax, qword [rsp + 0x60]
mov rax, qword [rax]
mov rax, qword [rax + 0xa0]
mov qword [rsp + 0xe8], rax
lea rdx, str.SELECT__FROM_Win32_OperatingSystem
lea rcx, [rsp + 0xf8]
call fcn.14015c11c
mov qword [rsp + 0xb8], rax
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0xc0], rax
mov rcx, qword [rsp + 0xc0]
call fcn.14015fca4
mov qword [rsp + 0xd8], rax
lea rdx, [0x1403c4d6c]
lea rcx, [rsp + 0xf0]
call fcn.14015c11c
mov qword [rsp + 0xc8], rax
mov rax, qword [rsp + 0xc8]
mov qword [rsp + 0xd0], rax
mov rcx, qword [rsp + 0xd0]
call fcn.14015fca4
mov qword [rsp + 0xe0], rax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
mov r9d, gethostbyaddr
mov r8, qword [rsp + 0xd8]
mov rdx, qword [rsp + 0xe0]
mov rcx, qword [rsp + 0x60]
call qword [rsp + 0xe8]
mov dword [rsp + 0x54], eax
lea rcx, [rsp + 0xf0]
call fcn.14015e9b8
nop
lea rcx, [rsp + 0xf8]
call fcn.14015e9b8
cmp dword [rsp + 0x54], 0
jge 0x140178aa2
mov rax, qword [rsp + 0x60]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x60]
call qword [rax + reloc.WS2_32.dll_recv]
mov rax, qword [rsp + 0x58]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x58]
call qword [rax + reloc.WS2_32.dll_recv]
call qword [sym.imp.ole32.dll_CoUninitialize]
lea rdx, str.Unknown
mov rcx, qword [rsp + 0x198]
call fcn.14015a028
mov eax, dword [rsp + 0x50]
or eax, 1
mov dword [rsp + 0x50], eax
mov rax, qword [rsp + 0x198]
jmp 0x140178cc9
mov qword [rsp + 0x78], 0
mov dword [rsp + 0x70], 0
lea rdx, str.unknown
lea rcx, [rsp + 0x128]
call fcn.14015a028
nop
cmp qword [rsp + 0x68], 0
je 0x140178bf5
mov rax, qword [rsp + 0x68]
mov rax, qword [rax]
mov rax, qword [rax + 0x20]
mov qword [rsp + 0x100], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x78]
mov r8d, 1
mov edx, 0xffffffff
mov rcx, qword [rsp + 0x68]
call qword [rsp + 0x100]
mov dword [rsp + 0x80], eax
cmp dword [rsp + 0x70], 0
jne 0x140178b21
jmp 0x140178bf5
lea rcx, [rsp + 0x148]
call qword [sym.imp.OLEAUT32.dll_VariantClear]
mov rax, qword [rsp + 0x78]
mov rax, qword [rax]
mov rax, qword [rax + 0x20]
mov qword [rsp + 0x108], rax
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x148]
xor r8d, r8d
lea rdx, [0x1403c4d78]
mov rcx, qword [rsp + 0x78]
call qword [rsp + 0x108]
mov dword [rsp + 0x80], eax
mov rdx, qword [rsp + 0x150]
lea rcx, [rsp + 0x120]
call fcn.14015c198
mov qword [rsp + 0x110], rax
mov rax, qword [rsp + 0x110]
mov qword [rsp + 0x118], rax
mov rcx, qword [rsp + 0x118]
call fcn.14015fce4
mov rdx, rax
lea rcx, [rsp + 0x128]
call fcn.14015ef74
nop
lea rcx, [rsp + 0x120]
call fcn.14015e9b8
lea rcx, [rsp + 0x148]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
mov rax, qword [rsp + 0x78]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x78]
call qword [rax + reloc.WS2_32.dll_recv]
jmp 0x140178ac8
mov rax, qword [rsp + 0x60]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x60]
call qword [rax + reloc.WS2_32.dll_recv]
mov rax, qword [rsp + 0x58]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x58]
call qword [rax + reloc.WS2_32.dll_recv]
mov rax, qword [rsp + 0x68]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x68]
call qword [rax + reloc.WS2_32.dll_recv]
call qword [sym.imp.ole32.dll_CoUninitialize]
xor r8d, r8d
mov dl, 0x7c
lea rcx, [rsp + 0x128]
call fcn.140177c04
mov qword [rsp + 0x88], rax
cmp qword [rsp + 0x88], 0xffffffffffffffff
je 0x140178c94
mov r9, qword [rsp + 0x88]
xor r8d, r8d
lea rdx, [rsp + 0x160]
lea rcx, [rsp + 0x128]
call fcn.1401806b0
nop
lea rdx, [rsp + 0x160]
lea rcx, [rsp + 0x128]
call fcn.14015eee0
nop
lea rcx, [rsp + 0x160]
call fcn.14015db0c
lea rdx, [rsp + 0x128]
mov rcx, qword [rsp + 0x198]
call fcn.140159e18
mov eax, dword [rsp + 0x50]
or eax, 1
mov dword [rsp + 0x50], eax
lea rcx, [rsp + 0x128]
call fcn.14015db0c
mov rax, qword [rsp + 0x198]
add rsp, 0x188
ret