Function at 0x140298a00
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rcx
push rbx
push rdi
sub rsp, 0x578
mov qword [rsp + 0x4f8], 0xfffffffffffffffe
mov rax, qword [0x1404e41f8]
xor rax, rsp
mov qword [rsp + 0x560], rax
mov dword [rsp + reloc.mfc90u.dll_AfxPropPageCallback], 0
mov rax, qword [rsp + reloc.mfc90u.dll_CReBar::CalcDynamicLayout]
mov eax, dword [rax + 0xcc]
mov dword [rsp + 0x500], eax
cmp dword [rsp + 0x500], 2
je 0x1402990d1
cmp dword [rsp + 0x500], 3
je 0x140298bb2
cmp dword [rsp + 0x500], 4
je 0x140298a77
jmp 0x14029942a
mov rax, qword [0x1404e7dd0]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x140298bad
lea rcx, [rsp + 0x58]
call qword [0x1403f4428]
nop
lea rdx, [rsp + 0x58]
mov rcx, qword [rsp + reloc.mfc90u.dll_CReBar::CalcDynamicLayout]
call sub.mfc90u.dll_CMultiDocTemplate::GetThisClass
lea rcx, [rsp + 0x60]
call qword [0x1403f4428]
nop
lea rcx, [rsp + 0x58]
call qword [sym.imp.mfc90u.dll_CDumpContext::operator___1]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], 0
mov r9, rax
mov r8, qword [rsp + reloc.mfc90u.dll_CReBar::CalcDynamicLayout]
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x50]
call fcn.1401f5b60
test eax, eax
je 0x140298b96
lea rcx, [rsp + 0x58]
call qword [sym.imp.mfc90u.dll_CDumpContext::operator___1]
mov rdx, rax
lea rcx, [rsp + 0x60]
call qword [sym.imp.mfc90u.dll_CDaoTableDef::classCDaoTableDef]
test eax, eax
je 0x140298b2a
mov dword [rsp + CDaoRecordset::AllocDatabase], 1
jmp 0x140298b35
mov dword [rsp + CDaoRecordset::AllocDatabase], 0
movzx eax, byte [rsp + 0x504]
test eax, eax
je 0x140298b96
lea rcx, [rsp + 0x60]
call qword [sym.imp.mfc90u.dll_CDumpContext::operator___1]
mov rdx, rax
mov rcx, qword [rsp + reloc.mfc90u.dll_CReBar::CalcDynamicLayout]
call sub.mfc90u.dll_CToolCmdUI::SetCheck
mov r8d, 1
xor r9d, r9d
mov edx, reloc.OLEAUT32.dll_UnRegisterTypeLib
mov rcx, qword [rsp + reloc.mfc90u.dll_CReBar::CalcDynamicLayout]
mov rcx, qword [rcx + 0x40]
call qword [sym.imp.USER32.dll_SendMessageW]
mov rax, qword [rsp + reloc.mfc90u.dll_CReBar::CalcDynamicLayout]
mov rax, qword [rax]
mov rcx, qword [rsp + reloc.mfc90u.dll_CReBar::CalcDynamicLayout]
call qword [rax + 0x2a0]
nop
lea rcx, [rsp + 0x60]
call qword [sym.imp.mfc90u.dll_CView::CView]
nop
lea rcx, [rsp + 0x58]
call qword [sym.imp.mfc90u.dll_CView::CView]
jmp 0x14029942a
lea rcx, [rsp + reloc.mfc90u.dll_AfxCriticalNewHandler]
call qword [0x1403f4428]
nop
lea rdx, [rsp + reloc.mfc90u.dll_AfxCriticalNewHandler]
mov rcx, qword [rsp + reloc.mfc90u.dll_CReBar::CalcDynamicLayout]
call sub.mfc90u.dll_CMultiDocTemplate::GetThisClass
lea rdx, [0x14044def8]
lea rcx, [rsp + reloc.mfc90u.dll_AfxCriticalNewHandler]
call qword [sym.imp.mfc90u.dll_COleControl::XOleInPlaceActiveObject::EnableModeless]
test eax, eax
jl 0x140298c35
mov rax, qword [rsp + reloc.mfc90u.dll_CReBar::CalcDynamicLayout]
mov rax, qword [rax]
lea rdx, [rsp + reloc.mfc90u.dll_AfxCriticalNewHandler]
mov rcx, qword [rsp + reloc.mfc90u.dll_CReBar::CalcDynamicLayout]
call qword [rax + 0x2b8]
test eax, eax
jne 0x140298c35
mov rcx, qword [rsp + reloc.mfc90u.dll_CReBar::CalcDynamicLayout]
call sub.mfc90u.dll_CDHtmlDialog::ResizeBorder
nop
lea rcx, [rsp + reloc.mfc90u.dll_AfxCriticalNewHandler]
call qword [sym.imp.mfc90u.dll_CView::CView]
jmp 0x140299437
lea rcx, [rsp + 0x440]
call qword [0x1403f4428]
nop
lea rcx, [rsp + reloc.mfc90u.dll_AfxCompareValueByRef]
call qword [0x1403f4428]
nop
lea rcx, [rsp + reloc.mfc90u.dll_AfxCriticalNewHandler]
call qword [sym.imp.mfc90u.dll_CStatusBar::GetThisMessageMap]
movzx eax, al
test eax, eax
jne 0x140298db6
lea rcx, [rsp + reloc.mfc90u.dll_AfxCriticalNewHandler]
call qword [sym.imp.mfc90u.dll_CDumpContext::operator___1]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [rsp + 0x448], eax
cmp dword [rsp + 0x448], 0xffffffff
je 0x140298cbd
mov eax, dword [rsp + 0x448]
and eax, 0x10
test eax, eax
je 0x140298cbd
lea rdx, [rsp + reloc.mfc90u.dll_AfxCriticalNewHandler]
lea rcx, [rsp + reloc.mfc90u.dll_AfxCompareValueByRef]
call qword [sym.imp.mfc90u.dll_CToolBarCtrl::CToolBarCtrl]
jmp 0x140298db6
mov dx, 0x5c
lea rcx, [rsp + reloc.mfc90u.dll_AfxCriticalNewHandler]
call qword [sym.imp.mfc90u.dll_CMDIFrameWnd::PreTranslateMessage]
mov dword [rsp + AfxFailMaxChars], eax
cmp dword [rsp + 0x44c], 0
jle 0x140298da0
mov r8d, dword [rsp + 0x44c]
lea rdx, [rsp + 0x488]
lea rcx, [rsp + reloc.mfc90u.dll_AfxCriticalNewHandler]
call qword [sym.imp.mfc90u.dll_CDockState::GetVersion]
mov qword [rsp + 0x508], rax
mov rax, qword [rsp + 0x508]
mov qword [rsp + 0x510], rax
mov rdx, qword [rsp + 0x510]
lea rcx, [rsp + reloc.mfc90u.dll_AfxCompareValueByRef]
call qword [sym.imp.mfc90u.dll_CToolBarCtrl::CToolBarCtrl]
nop
lea rcx, [rsp + 0x488]
call qword [sym.imp.mfc90u.dll_CView::CView]
mov r8d, dword [rsp + 0x44c]
add r8d, 1
lea rdx, [rsp + 0x490]
lea rcx, [rsp + reloc.mfc90u.dll_AfxCriticalNewHandler]
call qword [sym.imp.mfc90u.dll_CWinApp::InitLibId]
mov qword [rsp + COleControl::AmbientLocaleID], rax
mov rax, qword [rsp + 0x518]
mov qword [rsp + ATL::CSimpleStringT<char,1>::Append], rax
mov rdx, qword [rsp + 0x520]
lea rcx, [rsp + 0x440]
call qword [sym.imp.mfc90u.dll_CToolBarCtrl::CToolBarCtrl]
nop
lea rcx, [rsp + 0x490]
call qword [sym.imp.mfc90u.dll_CView::CView]
jmp 0x140298db6
lea rdx, [rsp + reloc.mfc90u.dll_AfxCriticalNewHandler]
lea rcx, [rsp + 0x440]
call qword [sym.imp.mfc90u.dll_CToolBarCtrl::CToolBarCtrl]
mov rcx, qword [rsp + reloc.mfc90u.dll_CReBar::CalcDynamicLayout]
mov rcx, qword [rcx + 0x40]
call qword [sym.imp.USER32.dll_GetParent]
mov rcx, rax
call sub.mfc90u.dll_CDaoDatabase::Execute
mov qword [rsp + AfxSetDefaultValue], rax
mov rcx, qword [rsp + reloc.mfc90u.dll_CReBar::CalcDynamicLayout]
add rcx, 0x100
call qword [sym.imp.mfc90u.dll_CDumpContext::operator___1]
mov rdi, rax
lea rcx, [rsp + 0x440]
call qword [sym.imp.mfc90u.dll_CDumpContext::operator___1]
mov rbx, rax
mov rcx, qword [rsp + reloc.mfc90u.dll_CReBar::CalcDynamicLayout]
add rcx, 0xf8
call qword [sym.imp.mfc90u.dll_CDumpContext::operator___1]
mov r8, rax
mov dword [rsp + 0x40], 1
mov dword [rsp + 0x38], 0
mov rax, qword [rsp + 0x4c8]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], 0
mov r9, rbx
mov edx, 1
lea rcx, [rsp + 0x70]
call fcn.1403ad64e
nop
lea rcx, [rsp + reloc.mfc90u.dll_AfxCompareValueByRef]
call qword [sym.imp.mfc90u.dll_CStatusBar::GetThisMessageMap]
movzx eax, al
test eax, eax
jne 0x140298e8a
lea rcx, [rsp + reloc.mfc90u.dll_AfxCompareValueByRef]
call qword [sym.imp.mfc90u.dll_CDumpContext::operator___1]
mov rbx, rax
lea rcx, [rsp + 0x70]
call sub.mfc90u.dll_CRichEditCtrl::GetIRichEditOle
mov qword [rax + 0x50], rbx
lea rcx, [rsp + 0x70]
call sub.mfc90u.dll_CFieldExchange::Default
cmp rax, 1
jne 0x140298f2d
lea rdx, [rsp + 0x4a0]
lea rcx, [rsp + 0x70]
call sub.mfc90u.dll_CDaoRecordset::GetLastModifiedBookmark
mov qword [rsp + 0x528], rax
mov rax, qword [rsp + 0x528]
mov qword [rsp + AfxStoreField], rax
mov eax, dword [rsp + reloc.mfc90u.dll_AfxPropPageCallback]
or eax, 1
mov dword [rsp + reloc.mfc90u.dll_AfxPropPageCallback], eax
mov rcx, qword [rsp + 0x4d0]
call qword [sym.imp.mfc90u.dll_CDumpContext::operator___1]
mov rdx, rax
lea rcx, [rsp + reloc.mfc90u.dll_AfxCriticalNewHandler]
call qword [sym.imp.mfc90u.dll_CDaoTableDef::classCDaoTableDef]
test eax, eax
je 0x140298f09
mov dword [rsp + ATL::CStringT<wchar_t,class StrTraitMFC_DLL<wchar_t,class ATL::ChTraitsCRT<wchar_t> > >::AppendFormat], 1
jmp 0x140298f14
mov dword [rsp + ATL::CStringT<wchar_t,class StrTraitMFC_DLL<wchar_t,class ATL::ChTraitsCRT<wchar_t> > >::AppendFormat], 0
movzx eax, byte [rsp + 0x530]
test eax, eax
je 0x140298f2d
mov dword [rsp + ATL::CStringT<wchar_t,class StrTraitMFC_DLL<wchar_t,class ATL::ChTraitsCRT<wchar_t> > >::AppendFormat], 1
jmp 0x140298f38
mov dword [rsp + ATL::CStringT<wchar_t,class StrTraitMFC_DLL<wchar_t,class ATL::ChTraitsCRT<wchar_t> > >::AppendFormat], 0
movzx eax, byte [rsp + 0x534]
mov byte [rsp + AfxLockGlobals], al
mov eax, dword [rsp + reloc.mfc90u.dll_AfxPropPageCallback]
and eax, 1
test eax, eax
je 0x140298f6b
and dword [rsp + reloc.mfc90u.dll_AfxPropPageCallback], 0xfffffffe
lea rcx, [rsp + 0x4a0]
call qword [sym.imp.mfc90u.dll_CView::CView]
movzx eax, byte [rsp + 0x498]
test eax, eax
je 0x14029900b
lea rdx, [rsp + 0x4a8]
lea rcx, [rsp + 0x70]
call sub.mfc90u.dll_CDaoRecordset::GetLastModifiedBookmark
mov qword [rsp + 0x538], rax
mov rax, qword [rsp + 0x538]
mov qword [rsp + 0x540], rax
mov rcx, qword [rsp + 0x540]
call qword [sym.imp.mfc90u.dll_CDumpContext::operator___1]
mov rdx, rax
mov rcx, qword [rsp + reloc.mfc90u.dll_CReBar::CalcDynamicLayout]
call sub.mfc90u.dll_CToolCmdUI::SetCheck
nop
lea rcx, [rsp + 0x4a8]
call qword [sym.imp.mfc90u.dll_CView::CView]
mov r8d, 1
xor r9d, r9d
mov edx, reloc.OLEAUT32.dll_UnRegisterTypeLib
mov rcx, qword [rsp + reloc.mfc90u.dll_CReBar::CalcDynamicLayout]
mov rcx, qword [rcx + 0x40]
call qword [sym.imp.USER32.dll_SendMessageW]
mov rax, qword [rsp + reloc.mfc90u.dll_CReBar::CalcDynamicLayout]
mov rax, qword [rax]
mov rcx, qword [rsp + reloc.mfc90u.dll_CReBar::CalcDynamicLayout]
call qword [rax + 0x2a0]
mov rcx, qword [rsp + reloc.mfc90u.dll_CReBar::CalcDynamicLayout]
mov rcx, qword [rcx + 0x40]
call qword [sym.imp.USER32.dll_GetParent]
mov rcx, rax
call sub.mfc90u.dll_CDaoDatabase::Execute
test rax, rax
je 0x140299095
mov rcx, qword [rsp + reloc.mfc90u.dll_CReBar::CalcDynamicLayout]
mov rcx, qword [rcx + 0x40]
call qword [sym.imp.USER32.dll_GetParent]
mov rcx, rax
call sub.mfc90u.dll_CDaoDatabase::Execute
mov qword [rsp + 0x4d8], rax
xor eax, eax
test rax, rax
jne 0x140299061
mov qword [rsp + CMonikerFile::Attach], 0
jmp 0x140299072
xor eax, eax
add rax, 8
mov rax, qword [rax]
mov qword [rsp + CMonikerFile::Attach], rax
mov r9d, 0x481
mov r8, qword [rsp + 0x548]
xor edx, edx
mov rcx, qword [rsp + 0x4d8]
mov rcx, qword [rcx + 0x40]
call qword [sym.imp.USER32.dll_RedrawWindow]
nop
lea rcx, [rsp + 0x70]
call sub.mfc90u.dll_CDocItem::CDocItem
nop
lea rcx, [rsp + reloc.mfc90u.dll_AfxCompareValueByRef]
call qword [sym.imp.mfc90u.dll_CView::CView]
nop
lea rcx, [rsp + 0x440]
call qword [sym.imp.mfc90u.dll_CView::CView]
nop
lea rcx, [rsp + reloc.mfc90u.dll_AfxCriticalNewHandler]
call qword [sym.imp.mfc90u.dll_CView::CView]
jmp 0x14029942a
mov rax, qword [rsp + reloc.mfc90u.dll_CReBar::CalcDynamicLayout]
cmp qword [rax + 0x110], 0
je 0x14029912f
mov rax, qword [rsp + reloc.mfc90u.dll_CReBar::CalcDynamicLayout]
mov rax, qword [rax + 0x110]
mov qword [rsp + AfxThrowResourceException], rax
xor r9d, r9d
xor r8d, r8d
mov edx, reloc.WS2_32.dll_recv
mov rcx, qword [rsp + 0x4e0]
mov rcx, qword [rcx + 0x40]
call qword [sym.imp.USER32.dll_SendMessageW]
mov rax, qword [rsp + reloc.mfc90u.dll_CReBar::CalcDynamicLayout]
mov qword [rax + 0x110], 0
jmp 0x140299437
lea rcx, [rsp + 0x450]
call qword [0x1403f4428]
nop
lea rdx, [rsp + 0x450]
mov rcx, qword [rsp + reloc.mfc90u.dll_CReBar::CalcDynamicLayout]
call sub.mfc90u.dll_CMultiDocTemplate::GetThisClass
xorpd xmm5, xmm5
movsd qword [rsp + 0x468], xmm5
lea rcx, [rsp + 0x450]
call qword [sym.imp.mfc90u.dll_CStatusBar::GetThisMessageMap]
movzx eax, al
test eax, eax
jne 0x1402991b2
mov r8w, 0x2e
mov dx, 0x2c
lea rcx, [rsp + 0x450]
call qword [sym.imp.mfc90u.dll_CMDIChildWnd::PreCreateWindow]
lea rcx, [rsp + 0x450]
call qword [sym.imp.mfc90u.dll_CDumpContext::operator___1]
lea r8, [rsp + 0x468]
lea rdx, [0x1404314b8]
mov rcx, rax
call qword [sym.imp.MSVCR90.dll_swscanf_s]
mov ecx, 0x2db0
call sub.mfc90u.dll_CSplitterWnd::CSplitterWnd
mov qword [rsp + AfxParseURL], rax
cmp qword [rsp + 0x4b8], 0
je 0x14029923c
movsd xmm0, qword [rsp + 0x468]
movsd qword [rsp + 0x4e8], xmm0
mov rcx, qword [rsp + 0x4b8]
call fcn.1401316d0
nop
mov rcx, qword [rsp + 0x4b8]
lea rax, vtable.CBCGPCalculatorPopup.0
mov qword [rcx], rax
mov rcx, qword [rsp + 0x4b8]
add rcx, 0x1928
mov r9, qword [rsp + reloc.mfc90u.dll_CReBar::CalcDynamicLayout]
xor r8d, r8d
movsd xmm1, qword [rsp + 0x4e8]
call fcn.1402fc6e0
nop
mov rax, qword [rsp + 0x4b8]
mov qword [rsp + CWnd::AttachControlSite], rax
jmp 0x140299248
mov qword [rsp + CWnd::AttachControlSite], 0
mov rax, qword [rsp + 0x550]
mov qword [rsp + AfxOleUnlockControl], rax
mov rcx, qword [rsp + reloc.mfc90u.dll_CReBar::CalcDynamicLayout]
mov rax, qword [rsp + 0x4b0]
mov qword [rcx + 0x110], rax
mov rax, qword [rsp + reloc.mfc90u.dll_CReBar::CalcDynamicLayout]
cmp qword [rax + 0x130], 0
jne 0x14029928e
mov dword [rsp + 0x558], 1
jmp 0x140299299
mov dword [rsp + 0x558], 0
cmp dword [rsp + 0x558], 0
jne 0x140299301
mov rax, qword [rsp + reloc.mfc90u.dll_CReBar::CalcDynamicLayout]
mov rax, qword [rax + 0x110]
mov rcx, qword [rsp + reloc.mfc90u.dll_CReBar::CalcDynamicLayout]
mov rcx, qword [rcx + 0x110]
mov rax, qword [rax]
call qword [rax + COleVariant::operator=]
mov rbx, rax
call fcn.1402fc5e0
mov rdx, rbx
mov rcx, rax
call sub.mfc90u.dll_AfxCheckError
mov qword [rsp + AfxGetRoot], rax
mov rdx, qword [rsp + reloc.mfc90u.dll_CReBar::CalcDynamicLayout]
add rdx, 0x118
mov rcx, qword [rsp + 0x470]
call fcn.140301030
lea rdx, [rsp + 0x458]
mov rcx, qword [rsp + reloc.mfc90u.dll_CReBar::CalcDynamicLayout]
mov rcx, qword [rcx + 0x40]
call qword [sym.imp.USER32.dll_GetWindowRect]
mov rax, qword [rsp + reloc.mfc90u.dll_CReBar::CalcDynamicLayout]
mov rax, qword [rax + 0x110]
mov rcx, qword [rsp + reloc.mfc90u.dll_CReBar::CalcDynamicLayout]
mov rcx, qword [rcx + 0x110]
mov rax, qword [rax]
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], 0
mov r9d, dword [rsp + 0x464]
mov r8d, dword [rsp + 0x458]
mov rdx, qword [rsp + reloc.mfc90u.dll_CReBar::CalcDynamicLayout]
call qword [rax + 0x3d8]
test eax, eax
jne 0x14029938f
mov rax, qword [rsp + reloc.mfc90u.dll_CReBar::CalcDynamicLayout]
mov qword [rax + 0x110], 0
jmp 0x14029941c
mov rax, qword [rsp + reloc.mfc90u.dll_CReBar::CalcDynamicLayout]
mov rax, qword [rax + 0x110]
mov rcx, qword [rsp + reloc.mfc90u.dll_CReBar::CalcDynamicLayout]
mov rcx, qword [rcx + 0x110]
mov rax, qword [rax]
call qword [rax + COleVariant::operator=]
mov rcx, rax
call sub.mfc90u.dll_CDHtmlDialog::ResizeBorder
mov rax, qword [rsp + reloc.mfc90u.dll_CReBar::CalcDynamicLayout]
mov rax, qword [rax + 0x110]
mov qword [rsp + AfxWinInit], rax
lea rdx, [rsp + 0x478]
mov rcx, qword [rsp + 0x4f0]
mov rcx, qword [rcx + 0x40]
call qword [sym.imp.USER32.dll_GetWindowRect]
lea rdx, [rsp + 0x478]
mov rcx, qword [rsp + reloc.mfc90u.dll_CReBar::CalcDynamicLayout]
mov rcx, qword [rcx + 0x110]
call fcn.14013c200
nop
lea rcx, [rsp + 0x450]
call qword [sym.imp.mfc90u.dll_CView::CView]
jmp 0x140299437
lea rcx, [rsp + 0x450]
call qword [sym.imp.mfc90u.dll_CView::CView]
mov rcx, qword [rsp + reloc.mfc90u.dll_CReBar::CalcDynamicLayout]
call sub.mfc90u.dll_CDHtmlDialog::ResizeBorder
mov rcx, qword [rsp + 0x560]
xor rcx, rsp
call fcn.1403addc0
add rsp, 0x578
pop rdi
pop rbx
ret