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

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0xc8]
sub rsp, 0x1a0
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x1400b8518]
xor rax, rsp
mov qword [rbp + 0x90], rax
mov rsi, rcx
cmp byte [rcx], 0
jne 0x14003b40f
mov edx, 2
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeEx]
mov dword [rsp + 0x50], eax
xor edi, edi
cmp eax, 0xffffffff
jg 0x14003af42
mov dword [rsp + 0x58], 0x32
xor eax, eax
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], rax
mov qword [rbp - 0x80], 0xf
mov qword [rsp + 0x78], rdi
mov byte [rsp + 0x68], al
lea rcx, [rsp + 0x68]
call fcn.14003bf70
mov rcx, rax
call fcn.140036410
mov rcx, rax
lea rdx, [rsp + 0x58]
call fcn.140036530
mov rdx, rax
lea rcx, [rbp + 0x10]
call fcn.140031f80
lea rsi, vtable.SysException.0
mov qword [rbp + 0x10], rsi
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp + 0x88], eax
lea rcx, [rbp + 0x10]
call fcn.14003c080
mov rcx, rax
lea rdx, [rsp + 0x50]
call fcn.14003c1c0
mov rbx, rax
lea rax, vtable.std::exception.0
mov qword [rbp - 0x70], rax
xor eax, eax
mov qword [rbp - 0x68], rax
mov qword [rbp - 0x60], rax
lea rcx, [rbx + 8]
lea rdx, [rbp - 0x68]
call qword [sym.imp.VCRUNTIME140.dll___std_exception_copy]
nop
lea rax, vtable.BaseException.0
mov qword [rbp - 0x70], rax
lea rdx, [rbx + 0x18]
mov qword [rbp - 0x40], 0xf
mov qword [rbp - 0x48], rdi
mov byte [rbp - 0x58], dil
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rcx, [rbp - 0x58]
call fcn.140025680
nop
lea rax, vtable.ExceptionStream_class_Exception__class_BaseException_.0
mov qword [rbp - 0x70], rax
lea rdx, [rbx + 0x38]
mov qword [rbp - 0x20], 0xf
mov qword [rbp - 0x28], rdi
mov byte [rbp - 0x38], dil
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rcx, [rbp - 0x38]
call fcn.140025680
nop
lea rax, vtable.ExceptionStream_class_SysException__class_Exception_.0
mov qword [rbp - 0x70], rax
lea rdx, [rbx + 0x58]
mov qword [rbp], 0xf
mov qword [rbp - 8], rdi
mov byte [rbp - 0x18], dil
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rcx, [rbp - 0x18]
call fcn.140025680
nop
mov qword [rbp - 0x70], rsi
mov eax, dword [rbx + 0x78]
mov dword [rbp + 8], eax
lea rdx, [0x1400b4458]
lea rcx, [rbp - 0x70]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
mov qword [rsp + 0x40], rdi
mov dword [rsp + 0x38], edi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], edi
xor r9d, r9d
xor r8d, r8d
or edx, 0xffffffff
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeSecurity]
mov dword [rsp + 0x50], eax
mov edx, 0x80000000
lea ecx, [rax + rdx]
test edx, ecx
jne 0x14003b0e1
cmp eax, 0x80010119
je 0x14003b0e1
call qword [sym.imp.ole32.dll_CoUninitialize]
mov dword [rsp + 0x58], 0x40
xor eax, eax
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], rax
mov qword [rbp - 0x80], 0xf
mov qword [rsp + 0x78], rdi
mov byte [rsp + 0x68], al
lea rcx, [rsp + 0x68]
call fcn.14003bf70
mov rcx, rax
call fcn.140036410
mov rcx, rax
lea rdx, [rsp + 0x58]
call fcn.140036530
mov rdx, rax
lea rcx, [rbp + 0x10]
call fcn.140031f80
lea rsi, vtable.SysException.0
mov qword [rbp + 0x10], rsi
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp + 0x88], eax
lea rcx, [rbp + 0x10]
call fcn.14003c310
mov rcx, rax
lea rdx, [rsp + 0x50]
call fcn.14003c1c0
mov rbx, rax
lea rax, vtable.std::exception.0
mov qword [rbp - 0x70], rax
xor eax, eax
mov qword [rbp - 0x68], rax
mov qword [rbp - 0x60], rax
lea rcx, [rbx + 8]
lea rdx, [rbp - 0x68]
call qword [sym.imp.VCRUNTIME140.dll___std_exception_copy]
nop
lea rax, vtable.BaseException.0
mov qword [rbp - 0x70], rax
lea rdx, [rbx + 0x18]
mov qword [rbp - 0x40], 0xf
mov qword [rbp - 0x48], rdi
mov byte [rbp - 0x58], 0
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rcx, [rbp - 0x58]
call fcn.140025680
nop
lea rax, vtable.ExceptionStream_class_Exception__class_BaseException_.0
mov qword [rbp - 0x70], rax
lea rdx, [rbx + 0x38]
mov qword [rbp - 0x20], 0xf
mov qword [rbp - 0x28], rdi
mov byte [rbp - 0x38], 0
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rcx, [rbp - 0x38]
call fcn.140025680
nop
lea rax, vtable.ExceptionStream_class_SysException__class_Exception_.0
mov qword [rbp - 0x70], rax
lea rdx, [rbx + 0x58]
mov qword [rbp], 0xf
mov qword [rbp - 8], rdi
mov byte [rbp - 0x18], 0
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rcx, [rbp - 0x18]
call fcn.140025680
nop
mov qword [rbp - 0x70], rsi
mov eax, dword [rbx + 0x78]
mov dword [rbp + 8], eax
lea rdx, [0x1400b4458]
lea rcx, [rbp - 0x70]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
lea r15, [rsi + 8]
mov qword [rsp + 0x20], r15
lea r9, [0x14009e870]
xor edx, edx
lea r8d, [rdx + 1]
lea rcx, [0x14009e860]
call qword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [rsp + 0x50], eax
test eax, eax
jns 0x14003b1c5
call qword [sym.imp.ole32.dll_CoUninitialize]
mov dword [rsp + 0x58], 0x4b
xor eax, eax
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rdi
mov qword [rbp - 0x80], rdi
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x68]
call fcn.140023c20
nop
lea rcx, [rsp + 0x68]
call fcn.14003bf70
mov rcx, rax
call fcn.140036410
mov rcx, rax
lea rdx, [rsp + 0x58]
call fcn.140036530
mov rdx, rax
lea rcx, [rbp + 0x10]
call fcn.140031f80
lea rsi, vtable.SysException.0
mov qword [rbp + 0x10], rsi
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp + 0x88], eax
lea rcx, [rbp + 0x10]
call fcn.14003c450
mov rcx, rax
lea rdx, [rsp + 0x50]
call fcn.14003c1c0
mov rbx, rax
mov rdx, rax
lea rcx, [rbp - 0x70]
call fcn.140031b50
mov qword [rbp - 0x70], rsi
mov eax, dword [rbx + 0x78]
mov dword [rbp + 8], eax
lea rdx, [0x1400b4458]
lea rcx, [rbp - 0x70]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
lea r14, [rsi + 0x18]
cmp qword [r14 + 0x18], 0x10
jb 0x14003b1d5
mov rdx, qword [r14]
jmp 0x14003b1d8
mov rdx, r14
lea rcx, [rsp + 0x58]
call fcn.140038280
nop
mov rcx, qword [rax]
test rcx, rcx
je 0x14003b1f0
mov rdx, qword [rcx]
jmp 0x14003b1f3
mov rdx, rdi
mov rcx, qword [r15]
lea r12, [rsi + 0x10]
mov rax, qword [rcx]
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rdi
xor r9d, r9d
xor r8d, r8d
call qword [rax + 0x18]
mov ebx, eax
mov dword [rsp + 0x50], eax
lea rcx, [rsp + 0x58]
call fcn.140028740
test ebx, ebx
jns 0x14003b307
mov rcx, qword [r15]
mov rax, qword [rcx]
call qword [rax + 0x10]
call qword [sym.imp.ole32.dll_CoUninitialize]
mov dword [rsp + 0x58], 0x5a
xor eax, eax
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rdi
mov qword [rbp - 0x80], rdi
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x68]
call fcn.140023c20
nop
lea rcx, [rsp + 0x68]
call fcn.14003bf70
mov rcx, rax
call fcn.140036410
mov rcx, rax
lea rdx, [rsp + 0x58]
call fcn.140036530
mov rdx, rax
lea rcx, [rbp + 0x10]
call fcn.140031f80
lea rsi, vtable.SysException.0
mov qword [rbp + 0x10], rsi
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp + 0x88], eax
lea rcx, [rbp + 0x10]
call fcn.14003c590
mov rcx, rax
mov rdx, r14
call fcn.14003a0f0
mov rcx, rax
call fcn.14003c6d0
mov rcx, rax
lea rdx, [rsp + 0x50]
call fcn.14003c1c0
mov rbx, rax
mov rdx, rax
lea rcx, [rbp - 0x70]
call fcn.140031b50
mov qword [rbp - 0x70], rsi
mov eax, dword [rbx + 0x78]
mov dword [rbp + 8], eax
lea rdx, [0x1400b4458]
lea rcx, [rbp - 0x70]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
mov dword [rsp + 0x38], 0x40
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0xa]
mov rcx, qword [r12]
call qword [sym.imp.ole32.dll_CoSetProxyBlanket]
mov dword [rsp + 0x50], eax
test eax, eax
jns 0x14003b40c
mov rcx, qword [r12]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [r15]
mov rax, qword [rcx]
call qword [rax + 0x10]
call qword [sym.imp.ole32.dll_CoUninitialize]
mov dword [rsp + 0x58], 0x67
xor eax, eax
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rdi
mov qword [rbp - 0x80], rdi
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x68]
call fcn.140023c20
nop
lea rcx, [rsp + 0x68]
call fcn.14003bf70
mov rcx, rax
call fcn.140036410
mov rcx, rax
lea rdx, [rsp + 0x58]
call fcn.140036530
mov rdx, rax
lea rcx, [rbp + 0x10]
call fcn.140031f80
lea rsi, vtable.SysException.0
mov qword [rbp + 0x10], rsi
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp + 0x88], eax
lea rcx, [rbp + 0x10]
call fcn.14003c810
mov rcx, rax
lea rdx, [rsp + 0x50]
call fcn.14003c1c0
mov rbx, rax
mov rdx, rax
lea rcx, [rbp - 0x70]
call fcn.140031b50
mov qword [rbp - 0x70], rsi
mov eax, dword [rbx + 0x78]
mov dword [rbp + 8], eax
lea rdx, [0x1400b4458]
lea rcx, [rbp - 0x70]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
mov byte [rsi], 1
mov rcx, qword [rbp + 0x90]
xor rcx, rsp
call fcn.14005ac10
lea r11, [rsp + 0x1a0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret