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

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x68
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov rdi, rcx
cmp qword [rcx + 0x30], 0
jne 0x1400cfad6
mov eax, 0x80041008
jmp 0x1400cfd1c
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeEx]
xor ebp, ebp
mov qword [rsp + 0x90], rbp
lea rax, [rsp + 0x90]
mov qword [rsp + 0x20], rax
lea r9, [0x1401b2358]
xor edx, edx
lea r8d, [rbp + 1]
lea rcx, [0x1401b2338]
call qword [sym.imp.ole32.dll_CoCreateInstance]
mov ebx, eax
test eax, eax
jns 0x1400cfb44
test byte [0x1402d741c], 2
je 0x1400cfb39
mov r9d, eax
lea r8, str.Failed_to_create_IWbemLocator_object._Error_code__0x_x_n
lea edx, [rbp + 2]
lea rcx, str.CWMIEventApp::Initialize
call fcn.14011a490
call qword [sym.imp.ole32.dll_CoUninitialize]
jmp 0x1400cfd1a
mov qword [rsp + 0x98], rbp
mov ecx, 0x18
call fcn.14011f8a0
mov rbx, rax
mov qword [rsp + 0xa8], rax
test rax, rax
je 0x1400cfb91
mov qword [rax + 8], rbp
mov dword [rax + 0x10], 1
lea rcx, str.ROOTCIMV2
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov qword [rbx], rax
test rax, rax
jne 0x1400cfb94
mov ecx, 0x8007000e
call fcn.14011c8b0
int3
mov rbx, rbp
mov qword [rsp + 0xa8], rbx
test rbx, rbx
jne 0x1400cfbac
mov ecx, 0x8007000e
call fcn.14011c8b0
nop
mov rcx, qword [rsp + 0x90]
mov rax, qword [rcx]
lea rdx, [rsp + 0x98]
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x38], rbp
mov qword [rsp + 0x30], rbp
mov dword [rsp + 0x28], ebp
mov qword [rsp + 0x20], rbp
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rbx]
call qword [rax + 0x18]
mov esi, eax
mov rcx, rbx
call fcn.14003ff40
test esi, esi
jns 0x1400cfc30
test byte [0x1402d741c], 2
je 0x1400cfc15
mov r9d, esi
lea r8, str.Could_not_connect._Error_code__0x_x_n
mov edx, 2
lea rcx, str.CWMIEventApp::Initialize
call fcn.14011a490
mov rcx, qword [rsp + 0x90]
mov rax, qword [rcx]
call qword [rax + 0x10]
call qword [sym.imp.ole32.dll_CoUninitialize]
mov eax, esi
jmp 0x1400cfd1c
mov dword [rsp + 0x38], ebp
mov qword [rsp + 0x30], rbp
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0xa]
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.ole32.dll_CoSetProxyBlanket]
mov ebx, eax
test eax, eax
jns 0x1400cfcaf
test byte [0x1402d741c], 2
je 0x1400cfc8b
lea r8, str.Could_not_set_proxy_blanket._Error_code__0x_x_n
mov r9d, eax
mov edx, 2
lea rcx, str.CWMIEventApp::Initialize
call fcn.14011a490
mov rcx, qword [rsp + 0x98]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rsp + 0x90]
mov rax, qword [rcx]
call qword [rax + 0x10]
call qword [sym.imp.ole32.dll_CoUninitialize]
jmp 0x1400cfd1a
mov qword [rsp + 0xa0], rbp
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x20], rax
lea r9, [0x1401b2328]
xor edx, edx
lea r8d, [rdx + 4]
lea rcx, [0x1401b2348]
call qword [sym.imp.ole32.dll_CoCreateInstance]
mov ebx, eax
test eax, eax
jns 0x1400cfcf6
test byte [0x1402d741c], 2
je 0x1400cfc8b
lea r8, str.Failed_to_create_apartment._Error_code__0x_x_n
jmp 0x1400cfc77
mov rax, qword [rsp + 0xa0]
mov qword [rdi + 0x20], rax
mov rax, qword [rsp + 0x90]
mov qword [rdi + 8], rax
mov rax, qword [rsp + 0x98]
mov qword [rdi + 0x10], rax
mov eax, ebx
add rsp, 0x68
pop rdi
pop rsi
pop rbp
pop rbx
ret