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

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], r8
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x60
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rax + 0x20], rbx
mov rdi, rdx
mov rbp, rcx
xor r13d, r13d
mov ebx, r13d
mov rcx, qword [rcx + 0x50]
cmp rcx, r13
je 0x10000cf76
mov rax, qword [rcx]
call qword [rax + 0x10]
lea rdx, [0x100002d28]
lea rcx, [rbp + 0x38]
call sub.MFC42u.dll_AfxDeleteObject
cmp rdi, r13
je 0x10000d0af
cmp word [rdi], r13w
je 0x10000d0af
mov rdx, rdi
lea rcx, [rbp + 0x38]
call sub.MFC42u.dll_AfxDeleteObject
mov r8d, 2
lea rdx, [rsp + 0xa0]
lea rcx, [rbp + 0x38]
call sub.MFC42u.dll_CDialog::OnCommandHelp
lea rdi, [0x100002d50]
mov rsi, qword [rax]
mov ecx, 3
repe cmpsw word [rsi], word [rdi]
sete dil
lea rcx, [rsp + 0xa0]
call sub.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
cmp dil, r13b
je 0x10000d01c
mov rax, qword [rbp + 0x38]
mov r8d, dword [rax - 8]
add r8d, 0xfffffffe
lea rdx, [rsp + 0xa0]
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 + 0xa0]
call sub.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
lea rdx, [0x100002d28]
lea rcx, [rbp + 0x38]
call sub.MFC42u.dll_CRichEditView::FindTextW
or rdi, 0xffffffffffffffff
cmp eax, edi
je 0x10000d0a2
mov dword [rsp + 0xa0], r13d
mov rax, qword [rbp + 0x38]
mov ecx, dword [rax - 8]
mov dword [rsp + 0xa0], ecx
lea eax, [rdi + 3]
mul rcx
cmovo rax, rdi
mov rcx, rax
call fcn.1000202dc
mov rdi, rax
cmp rax, r13
jne 0x10000d06b
mov ebx, 0x8007000e
jmp 0x10000d0af
lea r8, [rsp + 0xa0]
mov rdx, rax
mov rcx, qword [rbp + 0x38]
call qword [sym.imp.KERNEL32.dll_DnsHostnameToComputerNameW]
cmp eax, r13d
je 0x10000d093
lea rcx, [rbp + 0x40]
mov rdx, rdi
call sub.MFC42u.dll_AfxDeleteObject
jmp 0x10000d098
mov ebx, 0x80070057
mov rcx, rdi
call sub.msvcrt.dll_free
jmp 0x10000d0af
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 + 0x98], r13
mov qword [rsp + 0x90], r13
cmp ebx, r13d
jl 0x10000d251
lea rax, [rsp + 0x90]
mov qword [rsp + 0x20], rax
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 0x10000d1c0
cmp qword [rsp + 0x90], r13
je 0x10000d1c0
lea rcx, [rsp + 0xa0]
call sub.MFC42u.dll_CDaoIndexFieldInfo::CDaoIndexFieldInfo
nop
mov r9, qword [rbp + 0x48]
mov r8, qword [rbp + 0x38]
lea rdx, [0x100002d60]
lea rcx, [rsp + 0xa0]
call sub.MFC42u.dll_CPtrList::FreeNode
lea rcx, [rsp + 0xa0]
call sub.MFC42u.dll_COleControl::AmbientUIDead
mov rdi, rax
cmp rax, r13
je 0x10000d19d
mov rcx, qword [rsp + 0x90]
mov rax, qword [rcx]
lea rdx, [rsp + 0x98]
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 + 0x90]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [rsp + 0x90], r13
lea rcx, [rsp + 0xa0]
call sub.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
mov rdi, qword [rsp + 0x98]
cmp rdi, r13
je 0x10000d251
cmp ebx, r13d
jl 0x10000d251
mov qword [rsp + 0xa0], r13
mov rax, qword [rdi]
lea r8, [rsp + 0xa0]
lea rdx, [0x100001e28]
mov rcx, rdi
call qword [rax]
cmp eax, r13d
jl 0x10000d249
mov rcx, qword [rsp + 0xa0]
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 + 0xa0]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rdi, qword [rsp + 0x98]
jmp 0x10000d251
mov rdi, qword [rsp + 0x98]
mov dword [rbp + 0x30], ebx
mov qword [rbp + 0x50], rdi
mov eax, ebx
mov rbx, qword [rsp + 0xa8]
add rsp, 0x60
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret