Function at 0x140046830
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push rdi
sub rsp, 0xa8
mov qword [rsp + 0x98], 0xfffffffffffffffe
mov rdi, r9
mov rbp, r8
mov rbx, rdx
mov rsi, rcx
mov dword [rsp + 0x38], 0
mov rax, qword [rdx]
cmp dword [rax - 0x10], 0xf8
jge 0x1400468a7
call qword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_class]
nop
mov rcx, rbx
call qword [sym.imp.mfc90u.dll_CView::CView]
nop
mov rcx, rbp
call qword [sym.imp.mfc90u.dll_CView::CView]
nop
mov rcx, rdi
call qword [sym.imp.mfc90u.dll_CView::CView]
mov rax, rsi
jmp 0x140046f16
mov rbp, qword [rsp + 0xf0]
cmp qword [rbp + 0x38], 0
je 0x140046a3c
mov edx, 0x5c
xor r8d, r8d
mov rcx, rbx
call qword [sym.imp.mfc90u.dll_CRichEditView::EditStreamCallBack]
mov esi, eax
lea rcx, [rsp + 0x38]
call qword [0x140122ef8]
nop
cmp esi, 0xffffffff
je 0x140046a2c
cmp esi, 0xf8
jge 0x140046a2c
mov r9d, esi
xor r8d, r8d
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.mfc90u.dll_CDockContext::InitLoop]
nop
mov rdx, rax
lea rcx, [rsp + 0x38]
call qword [sym.imp.mfc90u.dll_CToolBarCtrl::CToolBarCtrl]
nop
lea rcx, [rsp + 0x30]
call qword [sym.imp.mfc90u.dll_CView::CView]
lea rcx, [rsp + 0x38]
call qword [sym.imp.mfc90u.dll_CDaoRecordset::InitFieldsCollection]
mov rdi, qword [rbp + 0x30]
mov rbx, qword [rdi + 8]
cmp byte [rbx + 0x29], 0
jne 0x140046965
nop word [rax + rax]
lea rcx, [rbx + 0x18]
mov rdx, qword [rsp + 0x38]
call qword [sym.imp.mfc90u.dll_CDaoTableDef::classCDaoTableDef]
test eax, eax
jns 0x140046959
mov rbx, qword [rbx + 0x10]
jmp 0x14004695f
mov rdi, rbx
mov rbx, qword [rbx]
cmp byte [rbx + 0x29], 0
je 0x140046940
mov qword [rsp + 0x60], rdi
mov rax, qword [rbp]
mov qword [rsp + 0x58], rax
mov rbx, qword [rbp + 0x30]
test rax, rax
je 0x140046981
cmp rax, rax
je 0x140046987
call qword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
cmp rdi, rbx
je 0x1400469a6
mov rdx, qword [rdi + 0x18]
lea rcx, [rsp + 0x38]
call qword [sym.imp.mfc90u.dll_CDaoTableDef::classCDaoTableDef]
test eax, eax
js 0x1400469a6
lea rcx, [rsp + 0x58]
jmp 0x1400469c6
mov rax, qword [rbp + 0x30]
mov qword [rsp + 0x90], rax
mov rax, qword [rbp]
mov qword [rsp + 0x88], rax
lea rcx, [rsp + 0x88]
lea rdx, [rsp + 0x78]
mov rax, qword [rcx]
mov qword [rdx], rax
mov rax, qword [rcx + 8]
mov qword [rdx + 8], rax
mov rbx, qword [rbp + 0x30]
mov rax, qword [rsp + 0x78]
test rax, rax
je 0x1400469ed
cmp rax, qword [rbp]
je 0x1400469f3
call qword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
cmp qword [rsp + 0x80], rbx
jne 0x140046a24
lea r8d, [rsi + 1]
mov edx, 0x5c
mov rbx, qword [rsp + 0xd8]
mov rcx, rbx
call qword [sym.imp.mfc90u.dll_CRichEditView::EditStreamCallBack]
mov esi, eax
cmp eax, 0xffffffff
jne 0x1400468e2
jmp 0x140046a2c
mov rbx, qword [rsp + 0xd8]
lea rcx, [rsp + 0x38]
call qword [sym.imp.mfc90u.dll_CView::CView]
cmp esi, 0xffffffff
jne 0x140046a8f
mov edx, 0x5c
mov rcx, rbx
call qword [sym.imp.mfc90u.dll_CMDIFrameWnd::PreTranslateMessage]
mov esi, eax
cmp eax, 0xffffffff
je 0x140046a8f
cmp esi, 0xf8
jle 0x140046a8f
mov r9d, esi
xor r8d, r8d
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.mfc90u.dll_CDockContext::InitLoop]
mov edx, 0x5c
lea rcx, [rsp + 0x30]
call qword [sym.imp.mfc90u.dll_CMDIFrameWnd::PreTranslateMessage]
mov esi, eax
lea rcx, [rsp + 0x30]
call qword [sym.imp.mfc90u.dll_CView::CView]
cmp esi, 0xffffffff
jne 0x140046a51
mov r9d, esi
xor r8d, r8d
lea rdx, [rsp + 0x48]
mov rcx, rbx
call qword [sym.imp.mfc90u.dll_CDockContext::InitLoop]
nop
lea rcx, [rsp + 0x48]
call qword [sym.imp.mfc90u.dll_CDaoRecordset::InitFieldsCollection]
mov rdi, qword [rbp + 0x30]
mov rbx, qword [rdi + 8]
cmp byte [rbx + 0x29], 0
jne 0x140046ae5
nop dword [rax]
lea rcx, [rbx + 0x18]
mov rdx, qword [rsp + 0x48]
call qword [sym.imp.mfc90u.dll_CDaoTableDef::classCDaoTableDef]
test eax, eax
jns 0x140046ad9
mov rbx, qword [rbx + 0x10]
jmp 0x140046adf
mov rdi, rbx
mov rbx, qword [rbx]
cmp byte [rbx + 0x29], 0
je 0x140046ac0
mov qword [rsp + 0x60], rdi
mov rax, qword [rbp]
mov qword [rsp + 0x58], rax
mov rbx, qword [rbp + 0x30]
test rax, rax
je 0x140046b01
cmp rax, rax
je 0x140046b07
call qword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
cmp rdi, rbx
je 0x140046b26
mov rdx, qword [rdi + 0x18]
lea rcx, [rsp + 0x48]
call qword [sym.imp.mfc90u.dll_CDaoTableDef::classCDaoTableDef]
test eax, eax
js 0x140046b26
lea rcx, [rsp + 0x58]
jmp 0x140046b46
mov rax, qword [rbp + 0x30]
mov qword [rsp + 0x90], rax
mov rax, qword [rbp]
mov qword [rsp + 0x88], rax
lea rcx, [rsp + 0x88]
lea rdx, [rsp + 0x78]
mov rax, qword [rcx]
mov qword [rdx], rax
mov rax, qword [rcx + 8]
mov qword [rdx + 8], rax
mov rax, qword [rbp + 0x30]
mov qword [rsp + 0x30], rax
mov rbx, qword [rsp + 0x78]
test rbx, rbx
je 0x140046b72
cmp rbx, qword [rbp]
je 0x140046b7d
call qword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov rax, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x80]
cmp rdi, rax
je 0x140046bb0
test rbx, rbx
jne 0x140046b99
call qword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
xor eax, eax
jmp 0x140046b9c
mov rax, qword [rbx]
cmp rdi, qword [rax + 0x30]
jne 0x140046ba8
call qword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov edi, dword [rdi + 0x20]
jmp 0x140046d30
mov rdi, qword [rbp + 0x38]
lea rdx, [rsp + 0x48]
mov rcx, rbp
call fcn.140047cd0
mov dword [rax], edi
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x140046c06
mov r9d, esi
xor r8d, r8d
lea rdx, [rsp + 0x30]
mov rbx, qword [rsp + 0xd8]
mov rcx, rbx
call qword [sym.imp.mfc90u.dll_CDockContext::InitLoop]
mov rdx, qword [rax]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHCreateDirectory]
lea rcx, [rsp + 0x30]
call qword [sym.imp.mfc90u.dll_CView::CView]
jmp 0x140046c0e
mov rbx, qword [rsp + 0xd8]
mov rax, qword [rsp + 0xe8]
mov rax, qword [rax]
cmp dword [rax - 0x10], 0
je 0x140046d30
lea rcx, [rsp + 0x58]
call sub.mfc90u.dll_CDynLinkLibrary::CDynLinkLibrary
nop
xor r9d, r9d
mov r8d, 0x3002
mov rax, qword [rsp + 0xe8]
mov rdx, qword [rax]
lea rcx, [rsp + 0x58]
call sub.mfc90u.dll_COleFrameHook::OnPreTranslateMessage
test eax, eax
je 0x140046d26
lea rcx, [rsp + 0x58]
call sub.mfc90u.dll_COleServerDoc::XOleObject::GetExtent
test rax, rax
jne 0x140046c84
mov eax, 0xfeff
mov word [rsp + 0x38], ax
mov r8d, 2
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x58]
call sub.mfc90u.dll_CDaoRecordset::SetParamValue
jmp 0x140046c97
xor edx, edx
lea r8d, [rdx + 2]
lea rcx, [rsp + 0x58]
mov rax, qword [rsp + 0x58]
call qword [rax + 0x60]
lea rcx, [rsp + 0x30]
call qword [0x140122ef8]
nop
mov r9d, esi
xor r8d, r8d
lea rdx, [rsp + 0x38]
mov rcx, rbx
call qword [sym.imp.mfc90u.dll_CDockContext::InitLoop]
mov rbx, rax
lea rdx, [rsp + 0x48]
mov rcx, rbp
call fcn.140047cd0
mov ecx, dword [rax]
mov dword [rsp + 0x20], ecx
mov rcx, qword [rsp + 0xe0]
mov r9, qword [rcx]
mov r8, qword [rbx]
lea rdx, str._s__r_n______s_d_r_n
lea rcx, [rsp + 0x30]
call qword [sym.imp.mfc90u.dll_COleServerDoc::XOleObject::EnumAdvise]
nop
lea rcx, [rsp + 0x38]
call qword [sym.imp.mfc90u.dll_CView::CView]
mov rdx, qword [rsp + 0x30]
mov r8d, dword [rdx - 0x10]
add r8d, r8d
lea rcx, [rsp + 0x58]
call sub.mfc90u.dll_CDaoRecordset::SetParamValue
lea rcx, [rsp + 0x58]
call sub.mfc90u.dll_CFrameWnd::CanEnterHelpMode
nop
lea rcx, [rsp + 0x30]
call qword [sym.imp.mfc90u.dll_CView::CView]
nop
lea rcx, [rsp + 0x58]
call sub.mfc90u.dll_CDialogTemplate::CDialogTemplate
lea rcx, [rsp + 0x40]
call qword [0x140122ef8]
nop
lea r8d, [rsi + 1]
lea rdx, [rsp + 0x30]
mov rsi, qword [rsp + 0xd8]
mov rcx, rsi
call qword [sym.imp.mfc90u.dll_CWinApp::InitLibId]
nop
mov rax, qword [rax]
mov qword [rsp + 0x20], rax
mov r9d, edi
mov rbx, qword [rsp + 0xe0]
mov r8, qword [rbx]
lea rdx, str._s_d_s
lea rcx, [rsp + 0x40]
call qword [sym.imp.mfc90u.dll_COleServerDoc::XOleObject::EnumAdvise]
nop
lea rcx, [rsp + 0x30]
call qword [sym.imp.mfc90u.dll_CView::CView]
mov r11, qword [rsp + 0x40]
cmp dword [r11 - 0x10], 0x104
jge 0x140046e66
mov edx, 0x5c
lea rcx, [rsp + 0x40]
call qword [sym.imp.mfc90u.dll_CMDIFrameWnd::PreTranslateMessage]
cmp eax, 0xf8
jge 0x140046e66
mov edx, 0x5c
lea rcx, [rsp + 0x40]
call qword [sym.imp.mfc90u.dll_CMDIFrameWnd::PreTranslateMessage]
mov r9d, eax
xor r8d, r8d
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x40]
call qword [sym.imp.mfc90u.dll_CDockContext::InitLoop]
nop
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x140046dfc
mov rdx, qword [rsp + 0x50]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHCreateDirectory]
lea rdx, [rsp + 0x40]
mov rbx, qword [rsp + 0xd0]
mov rcx, rbx
call qword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_class]
nop
lea rcx, [rsp + 0x50]
call qword [sym.imp.mfc90u.dll_CView::CView]
nop
lea rcx, [rsp + 0x40]
call qword [sym.imp.mfc90u.dll_CView::CView]
nop
lea rcx, [rsp + 0x48]
call qword [sym.imp.mfc90u.dll_CView::CView]
nop
mov rcx, rsi
call qword [sym.imp.mfc90u.dll_CView::CView]
nop
mov rcx, qword [rsp + 0xe0]
call qword [sym.imp.mfc90u.dll_CView::CView]
nop
mov rcx, qword [rsp + 0xe8]
call qword [sym.imp.mfc90u.dll_CView::CView]
mov rax, rbx
jmp 0x140046f16
lea rax, [rsp + 0x30]
mov qword [rsp + 0x78], rax
lea rax, [rsp + 0x38]
mov qword [rsp + 0x88], rax
mov rdx, qword [rsp + 0xe8]
lea rcx, [rsp + 0x30]
call qword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_class]
mov rdi, rax
mov rdx, rbx
lea rcx, [rsp + 0x38]
call qword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_class]
mov rbx, rax
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x58]
call qword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_class]
nop
mov qword [rsp + 0x20], rbp
mov r9, rdi
mov r8, rbx
mov rdx, rax
mov rbx, qword [rsp + 0xd0]
mov rcx, rbx
call fcn.140046830
nop
lea rcx, [rsp + 0x40]
call qword [sym.imp.mfc90u.dll_CView::CView]
nop
lea rcx, [rsp + 0x48]
call qword [sym.imp.mfc90u.dll_CView::CView]
nop
mov rcx, rsi
call qword [sym.imp.mfc90u.dll_CView::CView]
nop
mov rcx, qword [rsp + 0xe0]
call qword [sym.imp.mfc90u.dll_CView::CView]
nop
mov rcx, qword [rsp + 0xe8]
call qword [sym.imp.mfc90u.dll_CView::CView]
mov rax, rbx
add rsp, 0xa8
pop rdi
pop rsi
pop rbp
pop rbx
ret