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

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xd8
mov qword [rsp + 0xa8], 0xfffffffffffffffe
mov byte [rsp + 0x60], 0
mov r8d, 2
lea rdx, [rsp + 0x78]
mov rcx, qword [rsp + 0xe0]
call fcn.140006ac0
mov qword [rsp + 0xb0], rax
lea rdx, [0x14024092c]
mov rcx, qword [rsp + 0xb0]
call fcn.140006d30
mov byte [rsp + 0x70], al
lea rcx, [rsp + 0x78]
call fcn.140001470
movzx r11d, byte [rsp + 0x70]
test r11d, r11d
je 0x140172b1b
mov r8, qword [rsp + 0xe0]
lea rdx, [0x140240938]
lea rcx, [rsp + 0x80]
call fcn.140006c30
mov qword [rsp + 0xb8], rax
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0xc0], rax
mov rdx, qword [rsp + 0xc0]
mov rcx, qword [rsp + 0xe0]
call fcn.140002d20
nop
lea rcx, [rsp + 0x80]
call fcn.140001470
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], 0
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
mov dword [rsp + 0x64], eax
cmp dword [rsp + 0x64], 0
jge 0x140172b75
cmp dword [rsp + 0x64], 0x80010106
je 0x140172b70
mov eax, dword [rsp + 0x64]
mov dword [rsp + 0x88], eax
mov rcx, qword [rsp + 0xe0]
call fcn.140001470
mov eax, dword [rsp + 0x88]
jmp 0x140172dc3
mov byte [rsp + 0x60], 1
mov qword [rsp + 0x40], 0
mov dword [rsp + 0x38], 2
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 6
xor r9d, r9d
xor r8d, r8d
mov edx, 0xffffffff
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeSecurity]
mov dword [rsp + 0x64], eax
cmp dword [rsp + 0x64], 0
jge 0x140172beb
cmp dword [rsp + 0x64], 0x80010119
je 0x140172beb
mov eax, dword [rsp + 0x64]
mov dword [rsp + 0x8c], eax
mov rcx, qword [rsp + 0xe0]
call fcn.140001470
mov eax, dword [rsp + 0x8c]
jmp 0x140172dc3
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
lea r9, [0x14020eaf0]
mov r8d, 1
xor edx, edx
lea rcx, [0x14020ebc0]
call qword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [rsp + 0x64], eax
cmp dword [rsp + 0x64], 0
jge 0x140172c40
mov eax, dword [rsp + 0x64]
mov dword [rsp + 0x90], eax
mov rcx, qword [rsp + 0xe0]
call fcn.140001470
mov eax, dword [rsp + 0x90]
jmp 0x140172dc3
mov rcx, qword [rsp + 0xe0]
call fcn.140014a70
mov qword [rsp + 0x68], rax
mov r10, qword [rsp + 0x50]
mov r10, qword [r10]
lea rax, [rsp + 0x58]
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 + 0x68]
mov rcx, qword [rsp + 0x50]
call qword [r10 + reloc.OLEAUT32.dll_SafeArrayGetElement]
mov dword [rsp + 0x64], eax
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
cmp dword [rsp + 0x64], 0
jge 0x140172cd5
mov eax, dword [rsp + 0x64]
mov dword [rsp + 0x94], eax
mov rcx, qword [rsp + 0xe0]
call fcn.140001470
mov eax, dword [rsp + 0x94]
jmp 0x140172dc3
mov rcx, qword [rsp + 0x58]
call fcn.14016f4d0
mov dword [rsp + 0x64], eax
cmp dword [rsp + 0x64], 0
jge 0x140172d1e
mov rax, qword [rsp + 0x58]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x58]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
mov eax, dword [rsp + 0x64]
mov dword [rsp + 0x98], eax
mov rcx, qword [rsp + 0xe0]
call fcn.140001470
mov eax, dword [rsp + 0x98]
jmp 0x140172dc3
cmp dword [rsp + 0xf0], 0
jne 0x140172d70
mov r8d, dword [rsp + 0xf0]
mov rdx, qword [rsp + 0xe8]
mov rcx, qword [rsp + 0x58]
call fcn.140171310
mov dword [rsp + 0x64], eax
cmp dword [rsp + 0x64], 0
je 0x140172d6e
mov eax, dword [rsp + 0x64]
mov dword [rsp + 0x9c], eax
mov rcx, qword [rsp + 0xe0]
call fcn.140001470
mov eax, dword [rsp + 0x9c]
jmp 0x140172dc3
jmp 0x140172d85
mov rdx, qword [rsp + 0xe8]
mov rdx, qword [rdx]
mov rcx, qword [rsp + 0x58]
call fcn.140171740
mov rax, qword [rsp + 0x58]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x58]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
movzx eax, byte [rsp + 0x60]
test eax, eax
jne 0x140172da4
call qword [sym.imp.ole32.dll_CoUninitialize]
mov dword [rsp + 0xa0], 0
mov rcx, qword [rsp + 0xe0]
call fcn.140001470
mov eax, dword [rsp + 0xa0]
add rsp, 0xd8
ret