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

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0x3c8]
sub rsp, 0x4a0
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x1400ed040]
xor rax, rsp
mov qword [rbp + 0x398], rax
mov rsi, rcx
mov rdi, qword [rcx]
xor r12d, r12d
test rdi, rdi
je 0x140022181
mov qword [rcx], r12
mov rax, qword [rdi]
mov rbx, qword [rax + 0x10]
mov rcx, rbx
call qword [fcn.140007850]
mov rcx, rdi
call rbx
mov qword [rsp + 0x20], rsi
lea r9, [0x1400b7be0]
xor edx, edx
lea r8d, [rdx + 1]
lea rcx, [0x1400b7bd0]
call qword [sym.imp.ole32.dll_CoCreateInstance]
mov ebx, eax
test eax, eax
jns 0x1400222f4
cmp eax, 0x80004002
je 0x1400222b9
cmp eax, 0x80004003
je 0x14002227e
cmp eax, 0x80040110
je 0x140022243
cmp eax, 0x80040154
je 0x140022208
lea rdx, str.Error_initializing_IWbemLocator:_Unknown_Error
lea rcx, [rsp + 0x60]
call fcn.14000a350
nop
mov r8d, ebx
lea rdx, [rsp + 0x60]
lea rcx, [rbp + 0x140]
call fcn.140021090
lea rdx, [0x1400eae90]
lea rcx, [rbp + 0x140]
call fcn.140066bc8
nop
lea rdx, str.Error_initializing_IWbemLocator:_REGDB_E_CLASSNOTREG
lea rcx, [rbp - 0x80]
call fcn.14000a350
nop
mov r8d, 0x80040154
lea rdx, [rbp - 0x80]
lea rcx, [rbp + 0x168]
call fcn.140021090
lea rdx, [0x1400eae90]
lea rcx, [rbp + 0x168]
call fcn.140066bc8
nop
lea rdx, str.Error_initializing_IWbemLocator:_CLASS_E_NOAGGREGATION
lea rcx, [rbp - 0x60]
call fcn.14000a350
nop
mov r8d, 0x80040110
lea rdx, [rbp - 0x60]
lea rcx, [rbp + 0x190]
call fcn.140021090
lea rdx, [0x1400eae90]
lea rcx, [rbp + 0x190]
call fcn.140066bc8
nop
lea rdx, str.Error_initializing_IWbemLocator:_E_POINTER
lea rcx, [rbp - 0x40]
call fcn.14000a350
nop
mov r8d, 0x80004003
lea rdx, [rbp - 0x40]
lea rcx, [rbp + 0x1b8]
call fcn.140021090
lea rdx, [0x1400eae90]
lea rcx, [rbp + 0x1b8]
call fcn.140066bc8
nop
lea rdx, str.Error_initializing_IWbemLocator:_E_NOINTERFACE
lea rcx, [rbp - 0x20]
call fcn.14000a350
nop
mov r8d, 0x80004002
lea rdx, [rbp - 0x20]
lea rcx, [rbp + 0x1e0]
call fcn.140021090
lea rdx, [0x1400eae90]
lea rcx, [rbp + 0x1e0]
call fcn.140066bc8
nop
mov r15, qword [rsi]
mov ecx, 0x18
call fcn.14005e58c
mov rdi, rax
mov qword [rsp + 0x50], rax
test rax, rax
je 0x14002232a
mov qword [rax + 8], r12
mov dword [rax + 0x10], 1
lea rcx, str.._rootcimv2
call fcn.140063ea0
mov qword [rdi], rax
jmp 0x14002232d
mov rdi, r12
mov qword [rsp + 0x50], rdi
test rdi, rdi
jne 0x140022342
mov ecx, 0x8007000e
call fcn.140063e70
nop
add rsi, 8
mov r14, qword [rsi]
test r14, r14
je 0x140022366
mov qword [rsi], r12
mov rax, qword [r14]
mov rbx, qword [rax + 0x10]
mov rcx, rbx
call qword [fcn.140007850]
mov rcx, r14
call rbx
mov rax, qword [r15]
mov rbx, qword [rax + 0x18]
mov rcx, rbx
call qword [fcn.140007850]
mov qword [rsp + 0x40], rsi
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 rdx, qword [rdi]
mov rcx, r15
call rbx
mov ebx, eax
or ecx, 0xffffffff
lock xadd dword [rdi + 0x10], ecx
cmp ecx, 1
jne 0x1400223dc
mov rcx, qword [rdi]
test rcx, rcx
je 0x1400223bd
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rdi], r12
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x1400223cf
call fcn.14005e270
mov qword [rdi + 8], r12
mov edx, 0x18
mov rcx, rdi
call fcn.14005e270
test ebx, ebx
jns 0x1400225e8
lea eax, [rbx + 0x7ffbefff]
cmp eax, 0x63
ja case.0x14002240e.2147217406
cdqe
lea rdx, [0x140000000]
movzx eax, byte [rdx + rax + 0x226f0]
mov ecx, dword [rdx + rax*4 + 0x226d0]
add rcx, rdx
jmp rcx
lea rdx, str.Error_initializing_IWbemServices:_WBEM_E_ACCESS_DENIED
lea rcx, [rbp]
call fcn.14000a350
nop
mov r8d, ebx
lea rdx, [rbp]
lea rcx, [rbp + 0x208]
call fcn.140021090
lea rdx, [0x1400eae90]
lea rcx, [rbp + 0x208]
call fcn.140066bc8
nop
lea rdx, str.Error_initializing_IWbemServices:_WBEM_E_FAILED
lea rcx, [rbp + 0x20]
call fcn.14000a350
nop
mov r8d, ebx
lea rdx, [rbp + 0x20]
lea rcx, [rbp + 0x230]
call fcn.140021090
lea rdx, [0x1400eae90]
lea rcx, [rbp + 0x230]
call fcn.140066bc8
nop
lea rdx, str.Error_initializing_IWbemServices:_WBEM_E_INVALID_NAMESPACE
lea rcx, [rbp + 0x40]
call fcn.14000a350
nop
mov r8d, ebx
lea rdx, [rbp + 0x40]
lea rcx, [rbp + 0x258]
call fcn.140021090
lea rdx, [0x1400eae90]
lea rcx, [rbp + 0x258]
call fcn.140066bc8
nop
lea rdx, str.Error_initializing_IWbemServices:_WBEM_E_INVALID_PARAMETER
lea rcx, [rbp + 0x60]
call fcn.14000a350
nop
mov r8d, ebx
lea rdx, [rbp + 0x60]
lea rcx, [rbp + 0x280]
call fcn.140021090
lea rdx, [0x1400eae90]
lea rcx, [rbp + 0x280]
call fcn.140066bc8
nop
lea rdx, str.Error_initializing_IWbemServices:_WBEM_E_OUT_OF_MEMORY
lea rcx, [rbp + 0x80]
call fcn.14000a350
nop
mov r8d, ebx
lea rdx, [rbp + 0x80]
lea rcx, [rbp + 0x2a8]
call fcn.140021090
lea rdx, [0x1400eae90]
lea rcx, [rbp + 0x2a8]
call fcn.140066bc8
nop
lea rdx, str.Error_initializing_IWbemServices:_WBEM_E_TRANSPORT_FAILURE
lea rcx, [rbp + 0xa0]
call fcn.14000a350
nop
mov r8d, ebx
lea rdx, [rbp + 0xa0]
lea rcx, [rbp + 0x2d0]
call fcn.140021090
lea rdx, [0x1400eae90]
lea rcx, [rbp + 0x2d0]
call fcn.140066bc8
nop
lea rdx, str.Error_initializing_IWbemServices:_WBEM_E_LOCAL_CREDENTIALS
lea rcx, [rbp + 0xc0]
call fcn.14000a350
nop
mov r8d, ebx
lea rdx, [rbp + 0xc0]
lea rcx, [rbp + 0x2f8]
call fcn.140021090
lea rdx, [0x1400eae90]
lea rcx, [rbp + 0x2f8]
call fcn.140066bc8
nop
lea rdx, str.Error_initializing_IWbemServices:_Unknown_Error
lea rcx, [rbp + 0xe0]
call fcn.14000a350
nop
mov r8d, ebx
lea rdx, [rbp + 0xe0]
lea rcx, [rbp + 0x320]
call fcn.140021090
lea rdx, [0x1400eae90]
lea rcx, [rbp + 0x320]
call fcn.140066bc8
nop
mov dword [rsp + 0x38], r12d
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], r12d
or r9, 0xffffffffffffffff
xor r8d, r8d
or edx, 0xffffffff
mov rcx, qword [rsi]
call qword [sym.imp.ole32.dll_CoSetProxyBlanket]
mov ebx, eax
test eax, eax
jns 0x1400226a2
cmp eax, 0x80070057
je 0x140022661
lea rdx, str.Coult_not_set_proxy_blanket:_Unknown_Error
lea rcx, [rbp + 0x100]
call fcn.14000a350
nop
mov r8d, ebx
lea rdx, [rbp + 0x100]
lea rcx, [rbp + 0x348]
call fcn.140021090
lea rdx, [0x1400eae90]
lea rcx, [rbp + 0x348]
call fcn.140066bc8
nop
lea rdx, str.Coult_not_set_proxy_blanket:_E_INVALIDARG
lea rcx, [rbp + 0x120]
call fcn.14000a350
nop
mov r8d, 0x80070057
lea rdx, [rbp + 0x120]
lea rcx, [rbp + 0x370]
call fcn.140021090
lea rdx, [0x1400eae90]
lea rcx, [rbp + 0x370]
call fcn.140066bc8
nop
mov rcx, qword [rbp + 0x398]
xor rcx, rsp
call fcn.14005df90
lea r11, [rsp + 0x4a0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret