Function at 0x140007c40
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 rbx, rdx
mov rsi, rcx
xor r12d, r12d
mov edi, r12d
mov rcx, qword [rcx + 0x50]
test rcx, rcx
je 0x140007c7f
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x140022378]
lea r14, [rsi + 0x38]
lea rdx, [0x1400239c8]
mov rcx, r14
call qword [sym.imp.MFC42u.dll_AfxDeleteObject]
test rbx, rbx
je 0x140007dbc
cmp word [rbx], r12w
je 0x140007dbc
mov rdx, rbx
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 rdx, qword [rax]
movzx ecx, word [rdx]
movzx eax, word [0x1400239f0]
sub ecx, eax
jne 0x140007cf2
movzx ecx, word [rdx + 2]
movzx eax, word [0x1400239f2]
sub ecx, eax
jne 0x140007cf2
movzx ecx, word [rdx + 4]
movzx eax, word [0x1400239f4]
sub ecx, eax
test ecx, ecx
sete bl
lea rcx, [rbp + 0x40]
call qword [sym.imp.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef]
test bl, bl
je 0x140007d35
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, [0x1400239c8]
mov rcx, r14
call qword [sym.imp.MFC42u.dll_CRichEditView::FindTextW]
or r8, 0xffffffffffffffff
cmp eax, r8d
je 0x140007daf
mov dword [rbp + 0x40], r12d
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.14001c78c
mov rbx, rax
test rax, rax
jne 0x140007d7d
mov edi, 0x8007000e
jmp 0x140007dbc
lea r8, [rbp + 0x40]
mov rdx, rbx
mov rcx, qword [r14]
call qword [sym.imp.KERNEL32.dll_DnsHostnameToComputerNameW]
test eax, eax
je 0x140007da0
lea rcx, [rsi + 0x40]
mov rdx, rbx
call qword [sym.imp.MFC42u.dll_AfxDeleteObject]
jmp 0x140007da5
mov edi, 0x80070057
mov rcx, rbx
call sub.msvcrt.dll_free
jmp 0x140007dbc
lea rcx, [rsi + 0x40]
mov rdx, r14
call qword [sym.imp.MFC42u.dll_AfxDaoGetEngine]
lea rbx, [rsi + 0x48]
lea rdx, str.cimv2
mov rcx, rbx
call qword [sym.imp.MFC42u.dll_AfxDeleteObject]
test r15, r15
je 0x140007de7
cmp word [r15], r12w
je 0x140007de7
mov rdx, r15
mov rcx, rbx
call qword [sym.imp.MFC42u.dll_AfxDeleteObject]
mov rax, r12
mov qword [rbp + 0x50], rax
mov qword [rbp + 0x48], r12
test edi, edi
js 0x140007edf
lea rax, [rbp + 0x48]
mov qword [rsp + 0x20], rax
lea r9, [0x1400290e8]
xor edx, edx
lea r8d, [rdx + 1]
lea rcx, [0x1400290d8]
call qword [sym.imp.ole32.dll_CoCreateInstance]
mov edi, eax
test eax, eax
js 0x140007ec6
cmp qword [rbp + 0x48], r12
je 0x140007ec6
lea rcx, [rbp + 0x40]
call qword [sym.imp.MFC42u.dll_CDaoIndexFieldInfo::CDaoIndexFieldInfo]
nop
mov r9, qword [rbx]
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 rbx, rax
test rax, rax
je 0x140007ea7
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, rbx
call qword [0x140022378]
mov edi, eax
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rcx, qword [rbp + 0x48]
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x140022378]
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 0x140007edf
test edi, edi
js 0x140007edf
mov rcx, rax
call fcn.140006668
mov rax, qword [rbp + 0x50]
mov dword [rsi + 0x30], edi
mov qword [rsi + 0x50], rax
mov eax, edi
add rsp, 0x60
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret