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

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x80
mov rax, qword [0x14012a210]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov rsi, r8
mov rdi, rdx
mov rbp, rcx
mov qword [rsp + 0x50], rdx
mov qword [rsp + 0x58], r8
cmp dword [rcx + 0x20], 0
je 0x1400213e8
mov rcx, qword [rdx]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop
mov rcx, qword [rsi]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, 1
jmp 0x1400215cf
mov rcx, qword [rdx]
call qword [sym.imp.OLEAUT32.dll_VariantInit]
test eax, eax
je 0x1400215ba
mov rcx, qword [rsi]
call qword [sym.imp.OLEAUT32.dll_VariantInit]
test eax, eax
je 0x1400215ba
mov rcx, qword [rbp + 8]
xor r15d, r15d
cmp rcx, qword [rdi]
je 0x14002144c
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rcx, qword [rdi]
test rcx, rcx
jne 0x140021429
mov eax, r15d
jmp 0x14002143a
call qword [sym.imp.OLEAUT32.dll_SysAllocStringByteLen]
mov edx, eax
mov rcx, qword [rdi]
call qword [sym.imp.OLEAUT32.dll_DllRegisterServer]
mov qword [rbp + 8], rax
cmp qword [rdi], r15
je 0x14002144c
test rax, rax
je 0x1400215fe
mov rcx, qword [rbp + 0x10]
cmp rcx, qword [rsi]
je 0x14002148b
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rcx, qword [rsi]
test rcx, rcx
jne 0x140021468
mov rax, r15
jmp 0x140021479
call qword [sym.imp.OLEAUT32.dll_SysAllocStringByteLen]
mov edx, eax
mov rcx, qword [rsi]
call qword [sym.imp.OLEAUT32.dll_DllRegisterServer]
mov qword [rbp + 0x10], rax
cmp qword [rsi], r15
je 0x14002148b
test rax, rax
je 0x1400215fe
mov qword [rsp + 0x60], r15
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea r9, [0x1400f0838]
xor edx, edx
lea r8d, [rdx + 1]
lea rcx, [0x1400f0828]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jns 0x1400214d0
lea rdx, str.Failed_to_create_instance_of_WbemLocator.
mov rcx, qword [0x140132990]
call fcn.140011f10
jmp 0x14002158f
lea rcx, str.MS_409
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov rbx, rax
mov qword [rsp + 0x68], rax
test rax, rax
je 0x1400215f3
lea r14, [rbp + 0x18]
mov rcx, qword [rsp + 0x60]
mov rax, qword [rcx]
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], rbx
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rbp + 8]
call qword [rax + 0x18]
test eax, eax
jns 0x140021539
lea rdx, str.Failed_to_get_IWbemServices.
mov rcx, qword [0x140132990]
call fcn.140011f10
jmp 0x140021586
mov dword [rsp + 0x38], r15d
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0xa]
mov rcx, qword [r14]
call qword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
jns 0x14002157f
lea rdx, str.Failed_to_set_security_level.
mov rcx, qword [0x140132990]
call fcn.140011f10
jmp 0x140021586
mov dword [rbp + 0x20], 1
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov ebx, dword [rbp + 0x20]
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x1400215a3
mov rdx, qword [rcx]
call qword [rdx + 0x10]
nop
mov rcx, qword [rdi]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop
mov rcx, qword [rsi]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, ebx
jmp 0x1400215cf
mov rcx, qword [rdi]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop
mov rcx, qword [rsi]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
xor eax, eax
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.1400a5460
mov rbx, qword [rsp + 0xc8]
add rsp, 0x80
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
mov ecx, 0x8007000e
call fcn.140003f50
nop
mov ecx, 0x8007000e
call fcn.140003f50
int3