Function at 0x140005048
Capabilities:
Check os version

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
sub rsp, 0x180
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x1404f5550]
xor rax, rsp
mov qword [rsp + 0x170], rax
mov ebp, r8d
mov rsi, rcx
cmp r8d, 1
jne 0x140005085
call sub.mfc90u.dll_CAsyncMonikerFile::Open
mov rcx, rsi
call sub.mfc90u.dll_CRecordset::GetData
mov qword [rsp + 0x40], rax
test rax, rax
je 0x1400052a8
lea rdx, [0x14040a96c]
lea rcx, [rsp + 0x38]
call qword [0x1404094a8]
nop
lea rdx, [rsp + 0x40]
mov rcx, rsi
call sub.mfc90u.dll_CCmdTarget::GetInterfaceMap
mov rbx, rax
mov r9, qword [rax]
mov r8d, 5
lea rdx, [rsp + 0x38]
mov rcx, rax
call qword [r9 + 0xd8]
test eax, eax
je 0x140005291
lea rcx, [rsp + 0x38]
call qword [sym.imp.mfc90u.dll_CStatusBar::GetThisMessageMap]
test al, al
jne 0x140005291
lea rdx, [0x14040a96c]
lea rcx, [rsp + 0x20]
call qword [0x1404094a8]
nop
mov rax, qword [rbx]
xor r8d, r8d
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [rax + 0xd8]
test eax, eax
je 0x140005285
lea rcx, [rsp + 0x20]
call qword [sym.imp.mfc90u.dll_CStatusBar::GetThisMessageMap]
test al, al
jne 0x140005285
lea rcx, [rsp + 0x38]
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 + 0x20]
call qword [sym.imp.mfc90u.dll_COleServerDoc::XOleObject::EnumAdvise]
mov rdi, 0xffffffff80000000
mov qword [rsp + 0x28], rdi
and dword [rsp + 0x30], 0
test ebp, ebp
je 0x14000522c
lea rcx, [rsp + 0x20]
call qword [sym.imp.mfc90u.dll_CDumpContext::operator___1]
mov rdx, rax
xor r9d, r9d
lea r8, str._open___1___
lea rcx, [rsp + 0x28]
call fcn.140004ce8
test eax, eax
jne 0x140005249
lea rdx, str.Application
lea rcx, [rsp + 0x20]
call qword [sym.imp.mfc90u.dll_COleCurrency::operator_]
xor edx, edx
mov r8d, 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 + 0x54]
call sub.MSVCR90.dll_memset
mov dword [rsp + 0x50], 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 + 0x50]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [rsp + 0x60], 2
jne 0x140005203
cmp dword [rsp + 0x54], 5
jne 0x140005203
cmp dword [rsp + 0x58], 1
jb 0x140005203
lea rcx, [rsp + 0x20]
call qword [sym.imp.mfc90u.dll_CDumpContext::operator___1]
mov rdx, rax
lea rcx, [rsp + 0x28]
call fcn.14000497c
jmp 0x140005249
call sub.mfc90u.dll_AfxFailMaxChars
mov rbx, qword [rax + 0x20]
lea rcx, [rsp + 0x20]
call qword [sym.imp.mfc90u.dll_CDumpContext::operator___1]
mov rdx, rax
xor r9d, r9d
mov r8, rbx
lea rcx, [rsp + 0x28]
call fcn.140004ce8
jmp 0x140005249
lea rcx, [rsp + 0x20]
call qword [sym.imp.mfc90u.dll_CDumpContext::operator___1]
mov rdx, rax
lea rcx, [rsp + 0x28]
call fcn.140004db4
mov rdi, qword [rsp + 0x28]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegFlushKey]
test rdi, rdi
je 0x140005267
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edi, edi
mov qword [rsp + 0x28], rdi
and dword [rsp + 0x30], 0
test rdi, rdi
je 0x140005280
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
and qword [rsp + 0x28], 0
and dword [rsp + 0x30], 0
lea rcx, [rsp + 0x20]
call qword [sym.imp.mfc90u.dll_CView::CView]
nop
lea rcx, [rsp + 0x38]
call qword [sym.imp.mfc90u.dll_CView::CView]
cmp qword [rsp + 0x40], 0
jne 0x14000509b
test ebp, ebp
jne 0x1400052b4
mov rcx, rsi
call sub.mfc90u.dll_COleUILinkInfo::SetLinkUpdateOptions
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.1403c2380
mov rbx, qword [rsp + 0x1b0]
add rsp, 0x180
pop rdi
pop rsi
pop rbp
ret