Function at 0x140006f30
Capabilities:
Check os version
Set registry value

Disassembly:
mov rax, rsp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x1c0
mov qword [rsp + 0x88], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rbp
mov rax, qword [0x1404e41f8]
xor rax, rsp
mov qword [rsp + 0x1b0], rax
mov r12d, r8d
mov rbp, rcx
cmp r8d, 1
jne 0x140006f79
call sub.mfc90u.dll_CAsyncMonikerFile::Open
mov rcx, rbp
call sub.mfc90u.dll_CRecordset::GetData
mov qword [rsp + 0x78], rax
test rax, rax
je 0x14000722c
xor r13d, r13d
lea r14, str._open___1___
nop dword [rax]
lea rdx, [0x1403f57dc]
lea rcx, [rsp + 0x58]
call qword [0x1403f4480]
nop
lea rdx, [rsp + 0x78]
mov rcx, rbp
call sub.mfc90u.dll_CCmdTarget::GetInterfaceMap
mov rbx, rax
mov r9, qword [rax]
mov r8d, 5
lea rdx, [rsp + 0x58]
mov rcx, rax
call qword [r9 + 0xd8]
test eax, eax
je 0x140007215
lea rcx, [rsp + 0x58]
call qword [sym.imp.mfc90u.dll_CStatusBar::GetThisMessageMap]
test al, al
jne 0x140007215
lea rdx, [0x1403f57dc]
lea rcx, [rsp + 0x50]
call qword [0x1403f4480]
nop
mov rax, qword [rbx]
xor r8d, r8d
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [rax + 0xd8]
test eax, eax
je 0x140007209
lea rcx, [rsp + 0x50]
call qword [sym.imp.mfc90u.dll_CStatusBar::GetThisMessageMap]
test al, al
jne 0x140007209
lea rcx, [rsp + 0x58]
call qword [sym.imp.mfc90u.dll_CDumpContext::operator___1]
mov r8, rax
lea r9, str.ddeexec
lea rdx, str._s_shellopen_s
lea rcx, [rsp + 0x50]
call qword [sym.imp.mfc90u.dll_COleServerDoc::XOleObject::EnumAdvise]
mov rdi, 0xffffffff80000000
mov qword [rsp + 0x60], rdi
mov dword [rsp + 0x68], r13d
test r12d, r12d
je 0x1400071ba
lea rcx, [rsp + 0x50]
call qword [sym.imp.mfc90u.dll_CDumpContext::operator___1]
mov rbx, r13
mov qword [rsp + 0x70], r13
lea rcx, [rsp + 0x80]
mov qword [rsp + 0x40], rcx
lea rcx, [rsp + 0x70]
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], r13d
xor r9d, r9d
xor r8d, r8d
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
test eax, eax
jne 0x1400070d5
mov esi, r13d
mov rbx, qword [rsp + 0x70]
test esi, esi
jne 0x140007103
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [rax + rax + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r14
lea r9d, [rsi + 1]
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
test rbx, rbx
je 0x140007111
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x1400071d7
lea rdx, str.Application
lea rcx, [rsp + 0x50]
call qword [sym.imp.mfc90u.dll_COleCurrency::operator_]
xor edx, edx
mov r8d, pe_nt_image_headers64
lea rcx, [rsp + 0x94]
call sub.MSVCR90.dll_memset
mov dword [rsp + 0x90], ATL::CStringT<wchar_t,class StrTraitMFC_DLL<wchar_t,class ATL::ChTraitsCRT<wchar_t> > >::CStringT<wchar_t,class StrTraitMFC_DLL<wchar_t,class ATL::ChTraitsCRT<wchar_t> > >
lea rcx, [rsp + 0x90]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [rsp + 0xa0], 2
jne 0x140007191
cmp dword [rsp + 0x94], 5
jne 0x140007191
cmp dword [rsp + 0x98], 1
jb 0x140007191
lea rcx, [rsp + 0x50]
call qword [sym.imp.mfc90u.dll_CDumpContext::operator___1]
mov rdx, rax
lea rcx, [rsp + 0x60]
call fcn.140006880
jmp 0x1400071d7
call sub.mfc90u.dll_AfxFailMaxChars
mov rbx, qword [rax + 0x20]
lea rcx, [rsp + 0x50]
call qword [sym.imp.mfc90u.dll_CDumpContext::operator___1]
mov rdx, rax
xor r9d, r9d
mov r8, rbx
lea rcx, [rsp + 0x60]
call fcn.140006be0
jmp 0x1400071d7
lea rcx, [rsp + 0x50]
call qword [sym.imp.mfc90u.dll_CDumpContext::operator___1]
mov rdx, rax
lea rcx, [rsp + 0x60]
call fcn.140006cb0
mov rdi, qword [rsp + 0x60]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegFlushKey]
test rdi, rdi
je 0x1400071f1
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdi, r13
test rdi, rdi
je 0x140007204
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x60], r13
mov dword [rsp + 0x68], r13d
lea rcx, [rsp + 0x50]
call qword [sym.imp.mfc90u.dll_CView::CView]
nop
lea rcx, [rsp + 0x58]
call qword [sym.imp.mfc90u.dll_CView::CView]
cmp qword [rsp + 0x78], 0
jne 0x140006fa0
test r12d, r12d
jne 0x140007239
mov rcx, rbp
call sub.mfc90u.dll_COleUILinkInfo::SetLinkUpdateOptions
mov rcx, qword [rsp + 0x1b0]
xor rcx, rsp
call fcn.1403addc0
lea r11, [rsp + 0x1c0]
mov rbx, qword [r11 + 0x40]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret