Function at 0x14000839c
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, 0x50
mov r15, r8
mov r14, rdx
mov rsi, rcx
xor r12d, r12d
mov ebx, r12d
mov rcx, qword [rcx + 0x50]
test rcx, rcx
je 0x1400083dd
mov rax, qword [rcx]
movabs r10, 0xbaac1f10365eb170
mov rax, qword [rax + 0x10]
call qword [0x1400283f8]
lea rdi, [rsi + 0x38]
lea rdx, [0x140029dd8]
mov rcx, rdi
call qword [sym.imp.MFC42u.dll_AfxDeleteObject]
nop dword [rax + rax]
test r14, r14
je 0x14000855b
cmp word [r14], r12w
je 0x14000855b
mov rdx, r14
mov rcx, rdi
call qword [sym.imp.MFC42u.dll_AfxDeleteObject]
nop dword [rax + rax]
mov r8d, 2
lea rdx, [rbp + 0x40]
mov rcx, rdi
call qword [sym.imp.MFC42u.dll_CDialog::OnCommandHelp]
nop dword [rax + rax]
mov rcx, qword [rax]
movzx r14d, word [rcx]
mov edx, 0x5c
movzx eax, dx
sub r14d, eax
jne 0x140008462
movzx r14d, word [rcx + 2]
movzx eax, dx
sub r14d, eax
jne 0x140008462
movzx r14d, word [rcx + 4]
movzx eax, r12w
sub r14d, eax
lea rcx, [rbp + 0x40]
call qword [sym.imp.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef]
nop dword [rax + rax]
test r14d, r14d
jne 0x1400084b9
mov rax, qword [rdi]
mov r8d, dword [rax - 8]
add r8d, 0xfffffffe
lea rdx, [rbp + 0x40]
mov rcx, rdi
call qword [sym.imp.MFC42u.dll_CFormView::SetOccDialogInfo]
nop dword [rax + rax]
nop
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.MFC42u.dll_AfxDaoGetEngine]
nop dword [rax + rax]
nop
lea rcx, [rbp + 0x40]
call qword [sym.imp.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef]
nop dword [rax + rax]
lea rdx, [0x140029dd8]
mov rcx, rdi
call qword [sym.imp.MFC42u.dll_CRichEditView::FindTextW]
nop dword [rax + rax]
or r8, 0xffffffffffffffff
cmp eax, r8d
je 0x140008548
mov rax, qword [rdi]
mov ecx, dword [rax - 8]
mov dword [rbp + 0x40], ecx
lea eax, [r8 + 3]
mul rcx
cmovo rax, r8
mov rcx, rax
call fcn.140004e8c
mov r14, rax
test rax, rax
jne 0x140008503
mov ebx, 0x8007000e
jmp 0x14000855b
lea r8, [rbp + 0x40]
mov rdx, r14
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_DnsHostnameToComputerNameW]
nop dword [rax + rax]
test eax, eax
je 0x140008532
lea rcx, [rsi + 0x40]
mov rdx, r14
call qword [sym.imp.MFC42u.dll_AfxDeleteObject]
nop dword [rax + rax]
jmp 0x140008537
mov ebx, 0x80070057
mov rcx, r14
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_]
nop dword [rax + rax]
jmp 0x14000855b
lea rcx, [rsi + 0x40]
mov rdx, rdi
call qword [sym.imp.MFC42u.dll_AfxDaoGetEngine]
nop dword [rax + rax]
lea r14, [rsi + 0x48]
lea rdx, str.cimv2
mov rcx, r14
call qword [sym.imp.MFC42u.dll_AfxDeleteObject]
nop dword [rax + rax]
test r15, r15
je 0x140008592
cmp word [r15], r12w
je 0x140008592
mov rdx, r15
mov rcx, r14
call qword [sym.imp.MFC42u.dll_AfxDeleteObject]
nop dword [rax + rax]
mov rax, r12
mov qword [rbp + 0x50], rax
mov qword [rbp + 0x48], r12
test ebx, ebx
js 0x1400086c2
lea rax, [rbp + 0x48]
mov qword [rsp + 0x20], rax
lea r9, [0x140028da8]
xor edx, edx
lea r8d, [rdx + 1]
lea rcx, [0x140028db8]
call qword [sym.imp.ole32.dll_CoCreateInstance]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
js 0x1400086a9
cmp qword [rbp + 0x48], r12
je 0x1400086a9
lea rcx, [rbp + 0x40]
call qword [sym.imp.MFC42u.dll_CDaoIndexFieldInfo::CDaoIndexFieldInfo]
nop dword [rax + rax]
nop
mov r9, qword [r14]
mov r8, qword [rdi]
lea rdx, str._s_root_s
lea rcx, [rbp + 0x40]
call qword [sym.imp.MFC42u.dll_CPtrList::FreeNode]
nop dword [rax + rax]
lea rcx, [rbp + 0x40]
call qword [sym.imp.MFC42u.dll_COleControl::AmbientUIDead]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
je 0x14000867a
mov rcx, qword [rbp + 0x48]
mov rdx, qword [rcx]
mov rax, qword [rdx + 0x18]
movabs r10, 0xc2392f9178de2a70
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 [0x1400283f8]
mov ebx, eax
mov rcx, rdi
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop dword [rax + rax]
mov rcx, qword [rbp + 0x48]
mov rax, qword [rcx]
movabs r10, 0xbaac1f10365eb170
mov rax, qword [rax + 0x10]
call qword [0x1400283f8]
mov qword [rbp + 0x48], r12
lea rcx, [rbp + 0x40]
call qword [sym.imp.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef]
nop dword [rax + rax]
mov rax, qword [rbp + 0x50]
test rax, rax
je 0x1400086c2
test ebx, ebx
js 0x1400086c2
mov rcx, rax
call fcn.140007df0
mov rax, qword [rbp + 0x50]
mov dword [rsi + 0x30], ebx
mov qword [rsi + 0x50], rax
mov eax, ebx
add rsp, 0x50
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret