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

Disassembly:
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0xc0
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [rsp + 0x108], rbx
mov rax, qword [0x1400e9088]
xor rax, rsp
mov qword [rsp + 0xb8], rax
mov rdi, r8
mov r15, rdx
mov rsi, rcx
mov qword [rsp + 0x58], rcx
xor r12d, r12d
mov dword [rsp + 0x50], r12d
call qword [sym.imp.OLEAUT32.dll_VariantClear]
mov dword [rsp + 0x50], 1
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
js 0x140023d01
mov qword [rsp + 0x88], r12
mov rcx, qword [rsp + 0x88]
test rcx, rcx
je 0x140023912
mov rax, qword [rcx]
call qword [rax + 0x10]
lea rax, [rsp + 0x88]
mov qword [rsp + 0x20], rax
lea r9, [0x1400c0648]
xor edx, edx
lea r8d, [rdx + 1]
lea rcx, [0x1400b0740]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jns 0x14002396f
mov qword [rsp + 0x88], r12
lea rax, str.CreateInstance
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, 0x205
lea rdx, str...PdsmqLibExtraCollectionUtils.cpp
lea ecx, [r9 + 2]
call fcn.140022c00
jmp 0x140023cde
mov qword [rsp + 0x80], r12
mov rbx, qword [rsp + 0x88]
test rbx, rbx
jne 0x14002398e
mov ecx, 0x80004003
call fcn.140057660
lea rdx, str.ROOTCIMV2
lea rcx, [rsp + 0x78]
call fcn.14001ada0
mov r14, rax
mov rcx, qword [rsp + 0x80]
test rcx, rcx
je 0x1400239b5
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [rsp + 0x80], r12
mov rax, qword [r14]
test rax, rax
je 0x1400239ca
mov rdx, qword [rax]
jmp 0x1400239cd
mov rdx, r12
mov rax, qword [rbx]
lea rcx, [rsp + 0x80]
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r12
xor r9d, r9d
xor r8d, r8d
mov rcx, rbx
call qword [rax + SafeArrayPutElement]
test eax, eax
setns bl
lea rcx, [rsp + 0x78]
call fcn.14001ae50
xor r9d, r9d
test bl, bl
je 0x140023ca6
mov dword [rsp + 0x38], r12d
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 3
xor r8d, r8d
lea edx, [r9 + 0xa]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
js 0x140023c94
mov qword [rsp + 0x78], r12
mov r8, r15
lea rdx, str.SELECT__FROM
lea rcx, [rsp + 0x98]
call fcn.140014520
nop
mov rbx, qword [rsp + 0x80]
test rbx, rbx
jne 0x140023a82
mov ecx, 0x80004003
call fcn.140057660
lea rdx, [rsp + 0x98]
cmp qword [rsp + 0xb0], 8
cmovae rdx, qword [rsp + 0x98]
lea rcx, [rsp + 0x90]
call fcn.14001ada0
mov r14, rax
lea rdx, [0x1400c07f8]
lea rcx, [rsp + 0x70]
call fcn.14001ada0
mov r15, rax
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x140023ad0
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [rsp + 0x78], r12
mov rax, qword [r14]
test rax, rax
je 0x140023ae2
mov r8, qword [rax]
jmp 0x140023ae5
mov r8, r12
mov rax, qword [r15]
test rax, rax
je 0x140023af2
mov rdx, qword [rax]
jmp 0x140023af5
mov rdx, r12
mov rax, qword [rbx]
lea rcx, [rsp + 0x78]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], r12
mov r9d, 0x30
mov rcx, rbx
call qword [rax + 0xa0]
test eax, eax
setns bl
lea rcx, [rsp + 0x70]
call fcn.14001ae50
nop
lea rcx, [rsp + 0x90]
call fcn.14001ae50
test bl, bl
je 0x140023c19
mov dword [rsp + 0x90], r12d
cmp qword [rsp + 0x78], 0
je 0x140023c3f
mov qword [rsp + 0x70], r12
mov rbx, qword [rsp + 0x78]
test rbx, rbx
jne 0x140023b68
mov ecx, 0x80004003
call fcn.140057660
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x140023b78
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [rsp + 0x70], r12
mov rax, qword [rbx]
lea rcx, [rsp + 0x90]
mov qword [rsp + 0x20], rcx
lea r9, [rsp + 0x70]
mov r8d, 1
or edx, 0xffffffff
mov rcx, rbx
call qword [rax + 0x20]
test eax, eax
js 0x140023bf2
cmp dword [rsp + 0x90], 0
je 0x140023bf2
mov rcx, qword [rsp + 0x70]
test rcx, rcx
jne 0x140023bc3
mov ecx, 0x80004003
call fcn.140057660
cmp qword [rdi + 0x18], 8
jb 0x140023bcf
mov rdx, qword [rdi]
jmp 0x140023bd2
mov rdx, rdi
mov rax, qword [rcx]
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
mov r9, rsi
xor r8d, r8d
call qword [rax + 0x20]
test eax, eax
js 0x140023c04
cmp word [rsi], 2
jb 0x140023c04
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x140023c3f
mov rax, qword [rcx]
call qword [rax + 0x10]
jmp 0x140023c3f
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x140023c14
mov rax, qword [rcx]
call qword [rax + 0x10]
jmp 0x140023b43
lea rax, str.ExecQuery
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, 0x1f3
lea rdx, str...PdsmqLibExtraCollectionUtils.cpp
lea ecx, [r9 + 2]
call fcn.140022c00
nop
mov r8, qword [rsp + 0xb0]
cmp r8, 8
jb 0x140023c65
inc r8
mov rdx, qword [rsp + 0x98]
lea rcx, [rsp + 0x98]
call fcn.1400129b0
mov qword [rsp + 0xb0], 7
mov qword [rsp + 0xa8], r12
mov word [rsp + 0x98], r12w
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x140023cca
mov rax, qword [rcx]
call qword [rax + 0x10]
jmp 0x140023cca
lea rax, [0x1400c0870]
xor r9d, r9d
mov r8d, 0x1f9
jmp 0x140023cb3
lea rax, str.ConnectServer
mov r8d, 0x1ff
mov qword [rsp + 0x20], rax
lea rdx, str...PdsmqLibExtraCollectionUtils.cpp
mov ecx, 2
call fcn.140022c00
nop
mov rcx, qword [rsp + 0x80]
test rcx, rcx
je 0x140023cde
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
mov rcx, qword [rsp + 0x88]
test rcx, rcx
je 0x140023cf2
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
jmp 0x140023cf9
call qword [sym.imp.ole32.dll_CoUninitialize]
jmp 0x140023d2a
mov dword [rsp + 0x28], eax
lea rax, str.CoInitialize___failed:_0x_08lx
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, 0x214
lea rdx, str...PdsmqLibExtraCollectionUtils.cpp
lea ecx, [r9 + 2]
call fcn.140022c00
mov rax, rsi
mov rcx, qword [rsp + 0xb8]
xor rcx, rsp
call fcn.140056280
mov rbx, qword [rsp + 0x108]
add rsp, 0xc0
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret