Function at 0x140023350
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 0x1400237d7
mov qword [rsp + 0x88], r12
mov rcx, qword [rsp + 0x88]
test rcx, rcx
je 0x1400233d2
mov rax, qword [rcx]
call qword [rax + 0x10]
lea rax, [rsp + 0x88]
mov qword [rsp + 0x20], rax
lea r9, [0x1400c0ae8]
xor edx, edx
lea r8d, [rdx + 1]
lea rcx, [0x1400b0808]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jns 0x140023434
mov qword [rsp + 0x88], r12
lea rax, str.CreateInstance
mov qword [rsp + 0x20], rax
lea r9, str.HP::Pdsmq::Extra::Collection::Utils::GetWmiProperty
mov r8d, 0x206
lea rdx, str...PdsmqLibExtraCollectionUtils.cpp
mov ecx, 2
call fcn.140022620
jmp 0x1400237b4
mov qword [rsp + 0x80], r12
mov rbx, qword [rsp + 0x88]
test rbx, rbx
jne 0x140023453
mov ecx, 0x80004003
call fcn.140057480
lea rdx, str.ROOTCIMV2
lea rcx, [rsp + 0x78]
call fcn.14001a5f0
mov r14, rax
mov rcx, qword [rsp + 0x80]
test rcx, rcx
je 0x14002347a
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [rsp + 0x80], r12
mov rax, qword [r14]
test rax, rax
je 0x14002348f
mov rdx, qword [rax]
jmp 0x140023492
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.14001a6a0
test bl, bl
je 0x140023775
mov dword [rsp + 0x38], r12d
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0xa]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
js 0x140023766
mov qword [rsp + 0x78], r12
mov r8, r15
lea rdx, str.SELECT__FROM
lea rcx, [rsp + 0x98]
call fcn.14001ed10
nop
mov rbx, qword [rsp + 0x80]
test rbx, rbx
jne 0x140023547
mov ecx, 0x80004003
call fcn.140057480
lea rdx, [rsp + 0x98]
cmp qword [rsp + 0xb0], 8
cmovae rdx, qword [rsp + 0x98]
lea rcx, [rsp + 0x90]
call fcn.14001a5f0
mov r14, rax
lea rdx, [0x1400c0908]
lea rcx, [rsp + 0x70]
call fcn.14001a5f0
mov r15, rax
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x140023595
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [rsp + 0x78], r12
mov rax, qword [r14]
test rax, rax
je 0x1400235a7
mov r8, qword [rax]
jmp 0x1400235aa
mov r8, r12
mov rax, qword [r15]
test rax, rax
je 0x1400235b7
mov rdx, qword [rax]
jmp 0x1400235ba
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.14001a6a0
nop
lea rcx, [rsp + 0x90]
call fcn.14001a6a0
test bl, bl
je 0x1400236e6
mov dword [rsp + 0x90], r12d
nop dword [rax + rax]
cmp qword [rsp + 0x78], 0
je 0x140023711
mov qword [rsp + 0x70], r12
mov rbx, qword [rsp + 0x78]
test rbx, rbx
jne 0x140023635
mov ecx, 0x80004003
call fcn.140057480
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x140023645
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 0x1400236bf
cmp dword [rsp + 0x90], 0
je 0x1400236bf
mov rcx, qword [rsp + 0x70]
test rcx, rcx
jne 0x140023690
mov ecx, 0x80004003
call fcn.140057480
cmp qword [rdi + 0x18], 8
jb 0x14002369c
mov rdx, qword [rdi]
jmp 0x14002369f
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 0x1400236d1
cmp word [rsi], 2
jb 0x1400236d1
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x140023711
mov rax, qword [rcx]
call qword [rax + 0x10]
jmp 0x140023711
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x1400236e1
mov rax, qword [rcx]
call qword [rax + 0x10]
jmp 0x140023610
lea rax, str.ExecQuery
mov qword [rsp + 0x20], rax
lea r9, str.HP::Pdsmq::Extra::Collection::Utils::GetWmiProperty
mov r8d, 0x1f4
lea rdx, str...PdsmqLibExtraCollectionUtils.cpp
mov ecx, 2
call fcn.140022620
nop
mov r8, qword [rsp + 0xb0]
cmp r8, 8
jb 0x140023737
inc r8
mov rdx, qword [rsp + 0x98]
lea rcx, [rsp + 0x98]
call fcn.140012760
mov qword [rsp + 0xb0], 7
mov qword [rsp + 0xa8], r12
mov word [rsp + 0x98], r12w
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x1400237a0
mov rax, qword [rcx]
call qword [rax + 0x10]
jmp 0x1400237a0
lea rax, [0x1400c09f0]
mov r8d, 0x1fa
jmp 0x140023782
lea rax, str.ConnectServer
mov r8d, 0x200
mov qword [rsp + 0x20], rax
lea r9, str.HP::Pdsmq::Extra::Collection::Utils::GetWmiProperty
lea rdx, str...PdsmqLibExtraCollectionUtils.cpp
mov ecx, 2
call fcn.140022620
nop
mov rcx, qword [rsp + 0x80]
test rcx, rcx
je 0x1400237b4
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
mov rcx, qword [rsp + 0x88]
test rcx, rcx
je 0x1400237c8
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
jmp 0x1400237cf
call qword [sym.imp.ole32.dll_CoUninitialize]
jmp 0x140023805
mov dword [rsp + 0x28], eax
lea rax, str.CoInitialize___failed:_0x_08lx
mov qword [rsp + 0x20], rax
lea r9, str.HP::Pdsmq::Extra::Collection::Utils::GetWmiProperty
mov r8d, 0x215
lea rdx, str...PdsmqLibExtraCollectionUtils.cpp
mov ecx, 2
call fcn.140022620
mov rax, rsi
mov rcx, qword [rsp + 0xb8]
xor rcx, rsp
call fcn.140056080
mov rbx, qword [rsp + 0x108]
add rsp, 0xc0
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret