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

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x60
mov qword [rbp - 0x10], 0xfffffffffffffffe
mov r15, r8
mov rdi, rdx
mov rsi, rcx
xor r12d, r12d
mov ebx, r12d
mov rcx, qword [rcx + 0x50]
test rcx, rcx
je 0x1400080df
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x140022398]
lea r14, [rsi + 0x38]
lea rdx, [0x1400239e8]
mov rcx, r14
call qword [sym.imp.MFC42u.dll_AfxDeleteObject]
test rdi, rdi
je 0x140008213
cmp word [rdi], r12w
je 0x140008213
mov rdx, rdi
mov rcx, r14
call qword [sym.imp.MFC42u.dll_AfxDeleteObject]
mov r8d, 2
lea rdx, [rbp + 0x40]
mov rcx, r14
call qword [sym.imp.MFC42u.dll_CDialog::OnCommandHelp]
mov rcx, qword [rax]
movzx edi, word [rcx]
movzx eax, word [0x140023a10]
sub edi, eax
jne 0x140008152
movzx edi, word [rcx + 2]
movzx eax, word [0x140023a12]
sub edi, eax
jne 0x140008152
movzx edi, word [rcx + 4]
movzx eax, word [0x140023a14]
sub edi, eax
lea rcx, [rbp + 0x40]
call qword [sym.imp.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef]
test edi, edi
jne 0x140008190
mov rax, qword [r14]
mov r8d, dword [rax - 8]
add r8d, 0xfffffffe
lea rdx, [rbp + 0x40]
mov rcx, r14
call qword [sym.imp.MFC42u.dll_CFormView::SetOccDialogInfo]
nop
mov rdx, rax
mov rcx, r14
call qword [sym.imp.MFC42u.dll_AfxDaoGetEngine]
nop
lea rcx, [rbp + 0x40]
call qword [sym.imp.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef]
lea rdx, [0x1400239e8]
mov rcx, r14
call qword [sym.imp.MFC42u.dll_CRichEditView::FindTextW]
or r8, 0xffffffffffffffff
cmp eax, r8d
je 0x140008206
mov rax, qword [r14]
mov ecx, dword [rax - 8]
mov dword [rbp + 0x40], ecx
lea eax, [r8 + 3]
mul rcx
cmovo rax, r8
mov rcx, rax
call fcn.14001d390
mov rdi, rax
test rax, rax
jne 0x1400081d4
mov ebx, 0x8007000e
jmp 0x140008213
lea r8, [rbp + 0x40]
mov rdx, rdi
mov rcx, qword [r14]
call qword [sym.imp.KERNEL32.dll_DnsHostnameToComputerNameW]
test eax, eax
je 0x1400081f7
lea rcx, [rsi + 0x40]
mov rdx, rdi
call qword [sym.imp.MFC42u.dll_AfxDeleteObject]
jmp 0x1400081fc
mov ebx, 0x80070057
mov rcx, rdi
call sub.msvcrt.dll_free
jmp 0x140008213
lea rcx, [rsi + 0x40]
mov rdx, r14
call qword [sym.imp.MFC42u.dll_AfxDaoGetEngine]
lea rdi, [rsi + 0x48]
lea rdx, str.cimv2
mov rcx, rdi
call qword [sym.imp.MFC42u.dll_AfxDeleteObject]
test r15, r15
je 0x14000823e
cmp word [r15], r12w
je 0x14000823e
mov rdx, r15
mov rcx, rdi
call qword [sym.imp.MFC42u.dll_AfxDeleteObject]
mov rax, r12
mov qword [rbp + 0x50], rax
mov qword [rbp + 0x48], r12
test ebx, ebx
js 0x140008336
lea rax, [rbp + 0x48]
mov qword [rsp + 0x20], rax
lea r9, [0x140029290]
xor edx, edx
lea r8d, [rdx + 1]
lea rcx, [0x140029280]
call qword [sym.imp.ole32.dll_CoCreateInstance]
mov ebx, eax
test eax, eax
js 0x14000831d
cmp qword [rbp + 0x48], r12
je 0x14000831d
lea rcx, [rbp + 0x40]
call qword [sym.imp.MFC42u.dll_CDaoIndexFieldInfo::CDaoIndexFieldInfo]
nop
mov r9, qword [rdi]
mov r8, qword [r14]
lea rdx, str._s_root_s
lea rcx, [rbp + 0x40]
call qword [sym.imp.MFC42u.dll_CPtrList::FreeNode]
lea rcx, [rbp + 0x40]
call qword [sym.imp.MFC42u.dll_COleControl::AmbientUIDead]
mov rdi, rax
test rax, rax
je 0x1400082fe
mov rcx, qword [rbp + 0x48]
mov rdx, qword [rcx]
mov rax, qword [rdx + 0x18]
lea rdx, [rbp + 0x50]
mov qword [rsp + 0x40], rdx
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, rdi
call qword [0x140022398]
mov ebx, eax
mov rcx, rdi
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rcx, qword [rbp + 0x48]
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x140022398]
mov qword [rbp + 0x48], r12
lea rcx, [rbp + 0x40]
call qword [sym.imp.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef]
mov rax, qword [rbp + 0x50]
test rax, rax
je 0x140008336
test ebx, ebx
js 0x140008336
mov rcx, rax
call fcn.140006a5c
mov rax, qword [rbp + 0x50]
mov dword [rsi + 0x30], ebx
mov qword [rsi + 0x50], rax
mov eax, ebx
add rsp, 0x60
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret