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

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x190
mov rax, qword [0x1406b92c0]
xor rax, rsp
mov qword [rsp + 0x188], rax
mov r15, r8
mov rsi, rdx
mov r14, rcx
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
mov ebx, eax
test eax, eax
js 0x14002205c
mov qword [rsp + 0x178], 0
lea rax, [rsp + 0x178]
mov qword [rsp + 0x20], rax
lea r9, [0x1404f8f80]
xor edx, edx
lea r8d, [rdx + 1]
lea rcx, [0x1404f8f90]
call qword [sym.imp.ole32.dll_CoCreateInstance]
mov ebx, eax
test eax, eax
jns 0x140021fa2
lea rcx, [rsp + 0x40]
cmp eax, 0x80004002
je 0x140022174
cmp eax, 0x80004003
je 0x14002213d
cmp eax, 0x80040110
je 0x140022106
cmp eax, 0x80040154
je 0x1400220cf
jmp 0x140022098
mov rdi, qword [rsp + 0x178]
mov qword [rsp + 0x30], rdi
mov rdx, rsi
mov rcx, rdi
call fcn.1400204f0
mov rbx, rax
mov qword [rsp + 0x38], rax
mov rdx, r14
mov rcx, rbx
call fcn.1400209b0
mov rsi, rax
mov qword [rsp + 0x180], 0
lea rax, [0x140500740]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], r15
lea rax, [rsp + 0x180]
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x78], rax
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.140020d20
nop
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
call qword [sym.imp.ole32.dll_CoUninitialize]
mov rcx, qword [rsp + 0x188]
xor rcx, rsp
call fcn.14028f750
lea r11, [rsp + 0x190]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
lea rdx, str.The_COM_library_is_already_initialized_on_this_thread
lea rcx, [rsp + 0x40]
call fcn.140005540
nop
mov r8d, ebx
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x88]
call fcn.140020280
lea rdx, [0x1405286c8]
lea rcx, [rsp + 0x88]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
lea rdx, str.Error_initializing_IWbemLocator:_Unknown_Error
call fcn.140005540
nop
mov r8d, ebx
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0xb0]
call fcn.140020280
lea rdx, [0x1405286c8]
lea rcx, [rsp + 0xb0]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
lea rdx, str.Error_initializing_IWbemLocator:_REGDB_E_CLASSNOTREG
call fcn.140005540
nop
mov r8d, ebx
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0xd8]
call fcn.140020280
lea rdx, [0x1405286c8]
lea rcx, [rsp + 0xd8]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
lea rdx, str.Error_initializing_IWbemLocator:_CLASS_E_NOAGGREGATION
call fcn.140005540
nop
mov r8d, ebx
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x100]
call fcn.140020280
lea rdx, [0x1405286c8]
lea rcx, [rsp + 0x100]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
lea rdx, str.Error_initializing_IWbemLocator:_E_POINTER
call fcn.140005540
nop
mov r8d, ebx
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x128]
call fcn.140020280
lea rdx, [0x1405286c8]
lea rcx, [rsp + 0x128]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
lea rdx, str.Error_initializing_IWbemLocator:_E_NOINTERFACE
call fcn.140005540
nop
mov r8d, ebx
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x150]
call fcn.140020280
lea rdx, [0x1405286c8]
lea rcx, [rsp + 0x150]
call sub.VCRUNTIME140.dll__CxxThrowException
int3