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

Disassembly:
mov qword [rsp + 8], rcx
push rbx
push rdi
sub rsp, 0x588
mov qword [rsp + CDaoRecordset::AllocDatabase], 0xfffffffffffffffe
mov rax, qword [0x1404f5550]
xor rax, rsp
mov qword [rsp + CRecordset::BindParams], rax
mov dword [rsp + AfxSetDefaultValue], 0
mov rax, qword [rsp + 0x5a0]
cmp dword [rax + 0x294], 0
je 0x1402cba11
mov rax, qword [rsp + 0x5a0]
cmp dword [rax + 0x5d0], 0
jne 0x1402cba11
lea rdx, [0x14040a96c]
mov rcx, qword [rsp + 0x5a0]
call sub.mfc90u.dll_CToolCmdUI::SetCheck
mov r11, qword [rsp + 0x5a0]
mov dword [r11 + 0xc4], 0
xor eax, eax
test rax, rax
jne 0x1402cb9d9
mov qword [rsp + 0x508], 0
jmp 0x1402cb9ea
xor eax, eax
add rax, 8
mov rax, qword [rax]
mov qword [rsp + 0x508], rax
mov r9d, 0x405
mov r8, qword [rsp + 0x508]
xor edx, edx
mov rcx, qword [rsp + 0x5a0]
mov rcx, qword [rcx + 0x40]
call qword [sym.imp.USER32.dll_RedrawWindow]
jmp 0x1402cc4a3
mov rax, qword [rsp + 0x5a0]
mov eax, dword [rax + 0xcc]
mov dword [rsp + 0x510], eax
cmp dword [rsp + 0x510], 2
je 0x1402cc0ab
cmp dword [rsp + 0x510], 3
je 0x1402cbb8c
cmp dword [rsp + 0x510], 4
je 0x1402cba51
jmp 0x1402cc496
mov rax, qword [0x1404f95e0]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x1402cbb87
lea rcx, [rsp + 0x58]
call qword [0x140409500]
nop
lea rdx, [rsp + 0x58]
mov rcx, qword [rsp + 0x5a0]
call sub.mfc90u.dll_CMultiDocTemplate::GetThisClass
lea rcx, [rsp + 0x60]
call qword [0x140409500]
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 + 0x5a0]
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x50]
call fcn.1401eb420
test eax, eax
je 0x1402cbb70
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 0x1402cbb04
mov dword [rsp + COleControl::AmbientShowHatching], 1
jmp 0x1402cbb0f
mov dword [rsp + COleControl::AmbientShowHatching], 0
movzx eax, byte [rsp + 0x514]
test eax, eax
je 0x1402cbb70
lea rcx, [rsp + 0x60]
call qword [sym.imp.mfc90u.dll_CDumpContext::operator___1]
mov rdx, rax
mov rcx, qword [rsp + 0x5a0]
call sub.mfc90u.dll_CToolCmdUI::SetCheck
mov r8d, 1
xor r9d, r9d
mov edx, reloc.OLEAUT32.dll_UnRegisterTypeLib
mov rcx, qword [rsp + 0x5a0]
mov rcx, qword [rcx + 0x40]
call qword [sym.imp.USER32.dll_SendMessageW]
mov rax, qword [rsp + 0x5a0]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x5a0]
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 0x1402cc496
lea rcx, [rsp + reloc.mfc90u.dll_AfxCriticalNewHandler]
call qword [0x140409500]
nop
lea rdx, [rsp + reloc.mfc90u.dll_AfxCriticalNewHandler]
mov rcx, qword [rsp + 0x5a0]
call sub.mfc90u.dll_CMultiDocTemplate::GetThisClass
lea rdx, [0x140466898]
lea rcx, [rsp + reloc.mfc90u.dll_AfxCriticalNewHandler]
call qword [sym.imp.mfc90u.dll_COleControl::XOleInPlaceActiveObject::EnableModeless]
test eax, eax
jl 0x1402cbc0f
mov rax, qword [rsp + 0x5a0]
mov rax, qword [rax]
lea rdx, [rsp + reloc.mfc90u.dll_AfxCriticalNewHandler]
mov rcx, qword [rsp + 0x5a0]
call qword [rax + 0x2b8]
test eax, eax
jne 0x1402cbc0f
mov rcx, qword [rsp + 0x5a0]
call sub.mfc90u.dll_CDHtmlDialog::ResizeBorder
nop
lea rcx, [rsp + reloc.mfc90u.dll_AfxCriticalNewHandler]
call qword [sym.imp.mfc90u.dll_CView::CView]
jmp 0x1402cc4a3
lea rcx, [rsp + 0x440]
call qword [0x140409500]
nop
lea rcx, [rsp + reloc.mfc90u.dll_AfxCompareValueByRef]
call qword [0x140409500]
nop
lea rcx, [rsp + reloc.mfc90u.dll_AfxCriticalNewHandler]
call qword [sym.imp.mfc90u.dll_CStatusBar::GetThisMessageMap]
movzx eax, al
test eax, eax
jne 0x1402cbd90
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 0x1402cbc97
mov eax, dword [rsp + 0x448]
and eax, 0x10
test eax, eax
je 0x1402cbc97
lea rdx, [rsp + reloc.mfc90u.dll_AfxCriticalNewHandler]
lea rcx, [rsp + reloc.mfc90u.dll_AfxCompareValueByRef]
call qword [sym.imp.mfc90u.dll_CToolBarCtrl::CToolBarCtrl]
jmp 0x1402cbd90
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 0x1402cbd7a
mov r8d, dword [rsp + 0x44c]
lea rdx, [rsp + 0x490]
lea rcx, [rsp + reloc.mfc90u.dll_AfxCriticalNewHandler]
call qword [sym.imp.mfc90u.dll_CDockState::GetVersion]
mov qword [rsp + COleControl::AmbientShowHatching], rax
mov rax, qword [rsp + 0x518]
mov qword [rsp + ATL::CSimpleStringT<char,1>::Append], rax
mov rdx, qword [rsp + 0x520]
lea rcx, [rsp + reloc.mfc90u.dll_AfxCompareValueByRef]
call qword [sym.imp.mfc90u.dll_CToolBarCtrl::CToolBarCtrl]
nop
lea rcx, [rsp + 0x490]
call qword [sym.imp.mfc90u.dll_CView::CView]
mov r8d, dword [rsp + 0x44c]
add r8d, 1
lea rdx, [rsp + 0x498]
lea rcx, [rsp + reloc.mfc90u.dll_AfxCriticalNewHandler]
call qword [sym.imp.mfc90u.dll_CWinApp::InitLibId]
mov qword [rsp + 0x528], rax
mov rax, qword [rsp + 0x528]
mov qword [rsp + ATL::CStringT<wchar_t,class StrTraitMFC_DLL<wchar_t,class ATL::ChTraitsCRT<wchar_t> > >::AppendFormat], rax
mov rdx, qword [rsp + 0x530]
lea rcx, [rsp + 0x440]
call qword [sym.imp.mfc90u.dll_CToolBarCtrl::CToolBarCtrl]
nop
lea rcx, [rsp + 0x498]
call qword [sym.imp.mfc90u.dll_CView::CView]
jmp 0x1402cbd90
lea rdx, [rsp + reloc.mfc90u.dll_AfxCriticalNewHandler]
lea rcx, [rsp + 0x440]
call qword [sym.imp.mfc90u.dll_CToolBarCtrl::CToolBarCtrl]
mov rcx, qword [rsp + 0x5a0]
mov rcx, qword [rcx + 0x40]
call qword [sym.imp.USER32.dll_GetParent]
mov rcx, rax
call sub.mfc90u.dll_CDaoDatabase::Execute
mov qword [rsp + AfxStoreField], rax
mov rcx, qword [rsp + 0x5a0]
add rcx, reloc.mfc90u.dll_CDocObjectServerItem::CDocObjectServerItem
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 + 0x5a0]
add rcx, 0x280
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 + 0x4d0]
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.1403c1c02
nop
lea rcx, [rsp + reloc.mfc90u.dll_AfxCompareValueByRef]
call qword [sym.imp.mfc90u.dll_CStatusBar::GetThisMessageMap]
movzx eax, al
test eax, eax
jne 0x1402cbe64
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 0x1402cbf07
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 + 0x4d8], rax
mov eax, dword [rsp + 0x4c8]
or eax, 1
mov dword [rsp + AfxSetDefaultValue], eax
mov rcx, qword [rsp + 0x4d8]
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 0x1402cbee3
mov dword [rsp + CGdiObject::Attach], 1
jmp 0x1402cbeee
mov dword [rsp + CGdiObject::Attach], 0
movzx eax, byte [rsp + 0x540]
test eax, eax
je 0x1402cbf07
mov dword [rsp + CMonikerFile::Attach], 1
jmp 0x1402cbf12
mov dword [rsp + CMonikerFile::Attach], 0
movzx eax, byte [rsp + 0x544]
mov byte [rsp + AfxOleInit], al
mov eax, dword [rsp + 0x4c8]
and eax, 1
test eax, eax
je 0x1402cbf45
and dword [rsp + 0x4c8], 0xfffffffe
lea rcx, [rsp + 0x4a8]
call qword [sym.imp.mfc90u.dll_CView::CView]
movzx eax, byte [rsp + 0x4a0]
test eax, eax
je 0x1402cbfe5
lea rdx, [rsp + 0x4b0]
lea rcx, [rsp + 0x70]
call sub.mfc90u.dll_CDaoRecordset::GetLastModifiedBookmark
mov qword [rsp + CMonikerFile::Attach], rax
mov rax, qword [rsp + 0x548]
mov qword [rsp + CWnd::AttachControlSite], rax
mov rcx, qword [rsp + 0x550]
call qword [sym.imp.mfc90u.dll_CDumpContext::operator___1]
mov rdx, rax
mov rcx, qword [rsp + 0x5a0]
call sub.mfc90u.dll_CToolCmdUI::SetCheck
nop
lea rcx, [rsp + 0x4b0]
call qword [sym.imp.mfc90u.dll_CView::CView]
mov r8d, 1
xor r9d, r9d
mov edx, reloc.OLEAUT32.dll_UnRegisterTypeLib
mov rcx, qword [rsp + 0x5a0]
mov rcx, qword [rcx + 0x40]
call qword [sym.imp.USER32.dll_SendMessageW]
mov rax, qword [rsp + 0x5a0]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x5a0]
call qword [rax + 0x2a0]
mov rcx, qword [rsp + 0x5a0]
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 0x1402cc06f
mov rcx, qword [rsp + 0x5a0]
mov rcx, qword [rcx + 0x40]
call qword [sym.imp.USER32.dll_GetParent]
mov rcx, rax
call sub.mfc90u.dll_CDaoDatabase::Execute
mov qword [rsp + AfxThrowResourceException], rax
xor eax, eax
test rax, rax
jne 0x1402cc03b
mov qword [rsp + 0x558], 0
jmp 0x1402cc04c
xor eax, eax
add rax, 8
mov rax, qword [rax]
mov qword [rsp + 0x558], rax
mov r9d, 0x481
mov r8, qword [rsp + 0x558]
xor edx, edx
mov rcx, qword [rsp + 0x4e0]
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 0x1402cc496
mov rax, qword [rsp + 0x5a0]
cmp qword [rax + 0x5d8], 0
je 0x1402cc109
mov rax, qword [rsp + 0x5a0]
mov rax, qword [rax + 0x5d8]
mov qword [rsp + 0x4e8], rax
xor r9d, r9d
xor r8d, r8d
mov edx, reloc.WS2_32.dll_recv
mov rcx, qword [rsp + 0x4e8]
mov rcx, qword [rcx + 0x40]
call qword [sym.imp.USER32.dll_SendMessageW]
mov rax, qword [rsp + 0x5a0]
mov qword [rax + CCheckListBox::CheckFromPoint], 0
jmp 0x1402cc4a3
lea rcx, [rsp + 0x450]
call qword [0x140409500]
nop
lea rdx, [rsp + 0x450]
mov rcx, qword [rsp + 0x5a0]
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 0x1402cc18c
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, [0x14043f5d8]
mov rcx, rax
call qword [sym.imp.MSVCR90.dll_swscanf_s]
mov ecx, 0x3450
call fcn.1403c089a
mov qword [rsp + reloc.mfc90u.dll_AfxPropPageCallback], rax
cmp qword [rsp + reloc.mfc90u.dll_AfxPropPageCallback], 0
je 0x1402cc216
movsd xmm0, qword [rsp + 0x468]
movsd qword [rsp + AfxW2AHelper], xmm0
mov rcx, qword [rsp + reloc.mfc90u.dll_AfxPropPageCallback]
call fcn.140111370
nop
mov rcx, qword [rsp + reloc.mfc90u.dll_AfxPropPageCallback]
lea rax, vtable.CBCGPCalculatorPopup.0
mov qword [rcx], rax
mov rcx, qword [rsp + reloc.mfc90u.dll_AfxPropPageCallback]
add rcx, 0x1928
mov r9, qword [rsp + 0x5a0]
xor r8d, r8d
movsd xmm1, qword [rsp + 0x4f0]
call fcn.140307df0
nop
mov rax, qword [rsp + reloc.mfc90u.dll_AfxPropPageCallback]
mov qword [rsp + 0x560], rax
jmp 0x1402cc222
mov qword [rsp + CAsyncSocket::Bind], 0
mov rax, qword [rsp + 0x560]
mov qword [rsp + AfxParseURL], rax
mov rcx, qword [rsp + 0x5a0]
mov rax, qword [rsp + 0x4b8]
mov qword [rcx + CCheckListBox::CheckFromPoint], rax
mov rax, qword [rsp + 0x5a0]
cmp qword [rax + 0x5f8], 0
jne 0x1402cc268
mov dword [rsp + reloc.mfc90u.dll_CAsyncSocket::Bind], 1
jmp 0x1402cc273
mov dword [rsp + reloc.mfc90u.dll_CAsyncSocket::Bind], 0
cmp dword [rsp + reloc.mfc90u.dll_CAsyncSocket::Bind], 0
jne 0x1402cc2db
mov rax, qword [rsp + 0x5a0]
mov rax, qword [rax + 0x5d8]
mov rcx, qword [rsp + 0x5a0]
mov rcx, qword [rcx + 0x5d8]
mov rax, qword [rax]
call qword [rax + COleVariant::operator=]
mov rbx, rax
call fcn.140307c80
mov rdx, rbx
mov rcx, rax
call sub.mfc90u.dll_AfxCheckError
mov qword [rsp + AfxGetRoot], rax
mov rdx, qword [rsp + 0x5a0]
add rdx, 0x5e0
mov rcx, qword [rsp + 0x470]
call fcn.14030ce30
mov rax, qword [rsp + 0x5a0]
cmp qword [rax + 0x630], 0
jne 0x1402cc2fa
mov dword [rsp + reloc.mfc90u.dll_CWnd::BindDefaultProperty], 1
jmp 0x1402cc305
mov dword [rsp + reloc.mfc90u.dll_CWnd::BindDefaultProperty], 0
cmp dword [rsp + reloc.mfc90u.dll_CWnd::BindDefaultProperty], 0
jne 0x1402cc36d
mov rax, qword [rsp + 0x5a0]
mov rax, qword [rax + 0x5d8]
mov rcx, qword [rsp + 0x5a0]
mov rcx, qword [rcx + 0x5d8]
mov rax, qword [rax]
call qword [rax + COleVariant::operator=]
mov rbx, rax
call fcn.140307c80
mov rdx, rbx
mov rcx, rax
call sub.mfc90u.dll_AfxCheckError
mov qword [rsp + AfxHookWindowCreate], rax
mov rdx, qword [rsp + 0x5a0]
add rdx, 0x618
mov rcx, qword [rsp + 0x478]
call fcn.14030cf00
lea rdx, [rsp + 0x458]
mov rcx, qword [rsp + 0x5a0]
mov rcx, qword [rcx + 0x40]
call qword [sym.imp.USER32.dll_GetWindowRect]
mov rax, qword [rsp + 0x5a0]
mov rax, qword [rax + 0x5d8]
mov rcx, qword [rsp + 0x5a0]
mov rcx, qword [rcx + 0x5d8]
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 + 0x5a0]
call qword [rax + 0x3d8]
test eax, eax
jne 0x1402cc3fb
mov rax, qword [rsp + 0x5a0]
mov qword [rax + CCheckListBox::CheckFromPoint], 0
jmp 0x1402cc488
mov rax, qword [rsp + 0x5a0]
mov rax, qword [rax + 0x5d8]
mov rcx, qword [rsp + 0x5a0]
mov rcx, qword [rcx + 0x5d8]
mov rax, qword [rax]
call qword [rax + COleVariant::operator=]
mov rcx, rax
call sub.mfc90u.dll_CDHtmlDialog::ResizeBorder
mov rax, qword [rsp + 0x5a0]
mov rax, qword [rax + 0x5d8]
mov qword [rsp + 0x4f8], rax
lea rdx, [rsp + reloc.mfc90u.dll_AfxInitExtensionModule]
mov rcx, qword [rsp + 0x4f8]
mov rcx, qword [rcx + 0x40]
call qword [sym.imp.USER32.dll_GetWindowRect]
lea rdx, [rsp + reloc.mfc90u.dll_AfxInitExtensionModule]
mov rcx, qword [rsp + 0x5a0]
mov rcx, qword [rcx + 0x5d8]
call fcn.14011bec0
nop
lea rcx, [rsp + 0x450]
call qword [sym.imp.mfc90u.dll_CView::CView]
jmp 0x1402cc4a3
lea rcx, [rsp + 0x450]
call qword [sym.imp.mfc90u.dll_CView::CView]
mov rcx, qword [rsp + 0x5a0]
call sub.mfc90u.dll_CDHtmlDialog::ResizeBorder
mov rcx, qword [rsp + 0x570]
xor rcx, rsp
call fcn.1403c2380
add rsp, 0x588
pop rdi
pop rbx
ret