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

Disassembly:
mov qword [rsp + 0x18], r8
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x60
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov rdi, rdx
mov rbp, rcx
xor r13d, r13d
mov ebx, r13d
mov rcx, qword [rcx + 0x50]
cmp rcx, r13
je 0x10000cf67
mov rax, qword [rcx]
call qword [rax + 0x10]
lea rdx, [0x100002d28]
lea rcx, [rbp + 0x38]
call sub.MFC42u.dll_AfxDeleteObject
or r14, 0xffffffffffffffff
cmp rdi, r13
je 0x10000d0a0
cmp word [rdi], r13w
je 0x10000d0a0
mov rdx, rdi
lea rcx, [rbp + 0x38]
call sub.MFC42u.dll_AfxDeleteObject
lea r8d, [r14 + 3]
lea rdx, [rsp + 0xb0]
lea rcx, [rbp + 0x38]
call sub.MFC42u.dll_CDialog::OnCommandHelp
lea rdi, [0x100002d50]
mov rsi, qword [rax]
lea ecx, [r14 + 4]
repe cmpsw word [rsi], word [rdi]
sete dil
lea rcx, [rsp + 0xb0]
call sub.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
cmp dil, r13b
je 0x10000d00e
mov rax, qword [rbp + 0x38]
mov r8d, dword [rax - 8]
add r8d, 0xfffffffe
lea rdx, [rsp + 0xb0]
lea rcx, [rbp + 0x38]
call sub.MFC42u.dll_CFormView::SetOccDialogInfo
nop
mov rdx, rax
lea rcx, [rbp + 0x38]
call sub.MFC42u.dll_AfxDaoGetEngine
nop
lea rcx, [rsp + 0xb0]
call sub.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
lea rdx, [0x100002d28]
lea rcx, [rbp + 0x38]
call sub.MFC42u.dll_CRichEditView::FindTextW
cmp eax, r14d
je 0x10000d093
mov dword [rsp + 0xb0], r13d
mov rax, qword [rbp + 0x38]
mov ecx, dword [rax - 8]
mov dword [rsp + 0xb0], ecx
mov eax, 2
mul rcx
cmovo rax, r14
mov rcx, rax
call fcn.1000202b4
mov rdi, rax
cmp rax, r13
jne 0x10000d05c
mov ebx, 0x8007000e
jmp 0x10000d0a0
lea r8, [rsp + 0xb0]
mov rdx, rax
mov rcx, qword [rbp + 0x38]
call qword [sym.imp.KERNEL32.dll_DnsHostnameToComputerNameW]
cmp eax, r13d
je 0x10000d084
lea rcx, [rbp + 0x40]
mov rdx, rdi
call sub.MFC42u.dll_AfxDeleteObject
jmp 0x10000d089
mov ebx, 0x80070057
mov rcx, rdi
call sub.msvcrt.dll_free
jmp 0x10000d0a0
lea rcx, [rbp + 0x40]
lea rdx, [rbp + 0x38]
call sub.MFC42u.dll_AfxDaoGetEngine
lea rdx, [0x100002d30]
lea rcx, [rbp + 0x48]
call sub.MFC42u.dll_AfxDeleteObject
mov rdi, r13
mov qword [rsp + 0xa8], r13
mov qword [rsp + 0xa0], r13
cmp ebx, r13d
jl 0x10000d272
mov qword [rsp + 0x40], r13
mov dword [rsp + 0x38], r13d
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 4
xor r9d, r9d
xor r8d, r8d
mov edx, r14d
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeSecurity]
lea rdx, [rsp + 0xa0]
mov qword [rsp + 0x20], rdx
lea r9, [0x100008228]
xor edx, edx
lea r8d, [rdx + 1]
lea rcx, [0x100008238]
call qword [sym.imp.ole32.dll_CoCreateInstance]
mov ebx, eax
cmp eax, r13d
jl 0x10000d1e1
cmp qword [rsp + 0xa0], r13
je 0x10000d1e1
lea rcx, [rsp + 0xb0]
call sub.MFC42u.dll_CDaoIndexFieldInfo::CDaoIndexFieldInfo
nop
mov r9, qword [rbp + 0x48]
mov r8, qword [rbp + 0x38]
lea rdx, [0x100002d60]
lea rcx, [rsp + 0xb0]
call sub.MFC42u.dll_CPtrList::FreeNode
lea rcx, [rsp + 0xb0]
call sub.MFC42u.dll_COleControl::AmbientUIDead
mov rdi, rax
cmp rax, r13
je 0x10000d1be
mov rcx, qword [rsp + 0xa0]
mov rax, qword [rcx]
lea rdx, [rsp + 0xa8]
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], r13d
mov qword [rsp + 0x20], r13
xor r9d, r9d
xor r8d, r8d
mov rdx, rdi
call qword [rax + 0x18]
mov ebx, eax
mov rcx, rdi
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rcx, qword [rsp + 0xa0]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [rsp + 0xa0], r13
lea rcx, [rsp + 0xb0]
call sub.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
mov rdi, qword [rsp + 0xa8]
cmp rdi, r13
je 0x10000d272
cmp ebx, r13d
jl 0x10000d272
mov qword [rsp + 0xb0], r13
mov rax, qword [rdi]
lea r8, [rsp + 0xb0]
lea rdx, [0x100001e28]
mov rcx, rdi
call qword [rax]
cmp eax, r13d
jl 0x10000d26a
mov rcx, qword [rsp + 0xb0]
mov rax, qword [rcx]
mov dword [rsp + 0x40], r13d
mov qword [rsp + 0x38], r13
mov dword [rsp + 0x30], 3
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], r13
xor r9d, r9d
lea r8d, [r9 + 9]
mov rdx, rdi
call qword [rax + 0x20]
mov rcx, qword [rsp + 0xb0]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rdi, qword [rsp + 0xa8]
jmp 0x10000d272
mov rdi, qword [rsp + 0xa8]
mov dword [rbp + 0x30], ebx
mov qword [rbp + 0x50], rdi
mov eax, ebx
add rsp, 0x60
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret