Function at 0x1400336f0
Capabilities:
Delete file

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x1c8]
sub rsp, 0x290
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov rdi, rdx
mov rsi, rcx
lea r13, str._b0_n_
mov r12d, 0x100
mov rcx, qword [str._b0_n_]
cmp rcx, r13
je 0x140033759
test dword [rcx + 0x1c], r12d
je 0x140033759
cmp byte [rcx + 0x19], 4
jb 0x140033759
mov edx, 0x27
lea r8, [0x140088ed8]
mov rcx, qword [rcx + 0x10]
call fcn.1400043e4
lea rcx, [rbp + 0x1e0]
call qword [sym.imp.MFC42u.dll_CDaoIndexFieldInfo::CDaoIndexFieldInfo]
nop dword [rax + rax]
nop
lea rcx, [rsp + 0x40]
call qword [sym.imp.MFC42u.dll_CFile::CFile]
nop dword [rax + rax]
nop
xor ebx, ebx
mov r15d, ebx
test dword [rsi + 0x28], 0x40000
je 0x140033b17
test rdi, rdi
je 0x1400337ad
mov rdx, rdi
lea rcx, [rsp + 0x40]
call qword [sym.imp.MFC42u.dll_COleDataObject::BeginEnumFormats]
nop dword [rax + rax]
mov r15d, eax
lea rcx, [rbp + 0x1d0]
call qword [sym.imp.MFC42u.dll_CDaoIndexFieldInfo::CDaoIndexFieldInfo]
nop dword [rax + rax]
nop
mov eax, r15d
neg eax
sbb r9, r9
lea rax, [rsp + 0x40]
and r9, rax
mov r14d, 0x4010c
mov r8d, r14d
xor edx, edx
lea rcx, [rbp - 0x40]
call qword [sym.imp.MFC42u.dll_CStringList::CStringList]
nop dword [rax + rax]
lea rax, vtable.C_PrintDialogEx.0
mov qword [rbp - 0x40], rax
lea rax, vtable.C_PrintDialogEx::XPrintDialogCallback.0
mov qword [rbp + 0x100], rax
mov edi, 0x88
mov r8d, edi
xor edx, edx
lea rcx, [rbp + 0x108]
call sub.msvcrt.dll_memset
mov dword [rbp + 0x108], edi
mov dword [rbp + 0x130], r14d
lea rcx, [rbp - 0x40]
call fcn.1400319f0
cmp rax, 1
je 0x14003387a
call qword [sym.imp.COMDLG32.dll_CommDlgExtendedError]
nop dword [rax + rax]
mov edi, eax
mov rcx, qword [str._b0_n_]
cmp rcx, r13
je 0x140033ada
test dword [rcx + 0x1c], r12d
je 0x140033ada
cmp byte [rcx + 0x19], 2
jb 0x140033ada
mov edx, 0x28
lea r9, str.C_PrintDialogEx::DoModal
jmp 0x140033ac6
mov rax, qword [rbp + 0x80]
mov r14, qword [rax + 0x20]
test r14, r14
jne 0x1400338c7
mov edi, reloc.MFC42u.dll_COleDocument::AddItem
mov rcx, qword [str._b0_n_]
cmp rcx, r13
je 0x140033ada
test dword [rcx + 0x1c], r12d
je 0x140033ada
cmp byte [rcx + 0x19], 2
jb 0x140033ada
lea edx, [r14 + 0x29]
mov dword [rsp + 0x20], edi
lea r9, str.C_PrintDialogEx::GetPrinterDC
jmp 0x140033aca
lea rdx, [rbp + 0x1e8]
lea rcx, [rbp - 0x40]
call qword [sym.imp.MFC42u.dll_CRecordset::GetFieldStatus]
nop dword [rax + rax]
nop
mov rdx, rax
lea rcx, [rbp + 0x1e0]
call qword [sym.imp.MFC42u.dll_AfxDaoGetEngine]
nop dword [rax + rax]
nop
lea rcx, [rbp + 0x1e8]
call qword [sym.imp.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef]
nop dword [rax + rax]
mov rax, qword [rsi]
lea rdx, [rbp + 0x1d0]
mov rcx, rsi
mov rax, qword [rax + 0x28]
call qword [case.0x14000c28f.0]
mov edi, eax
test eax, eax
je 0x1400339b7
mov rcx, qword [str._b0_n_]
cmp rcx, r13
je 0x140033962
test dword [rcx + 0x1c], r12d
je 0x140033962
cmp byte [rcx + 0x19], 2
jb 0x140033962
mov edx, 0x2a
mov dword [rsp + 0x20], edi
lea r9, str.CFaxMsg::GetTIFF
lea r8, [0x140088ed8]
mov rcx, qword [rcx + 0x10]
call fcn.140004454
call qword [sym.imp.MFC42u.dll_Ordinal_1471]
nop dword [rax + rax]
mov rcx, rax
test rax, rax
je 0x140033988
mov rax, qword [rax]
mov rax, qword [rax + 0xf8]
call qword [case.0x14000c28f.0]
jmp 0x14003398b
mov rax, rbx
test rax, rax
je 0x140033a57
mov r8, rdi
mov edx, 0x8003
mov r9d, 0x6703d4
mov rcx, qword [rax + 0x40]
call qword [sym.imp.USER32.dll_PostMessageW]
nop dword [rax + rax]
jmp 0x140033a57
mov rdx, qword [rbp + 0x1e0]
mov rcx, qword [rbp + 0x1d0]
cmp dword [rsi + 0x100], ebx
je 0x1400339fe
call fcn.140033b60
mov edi, eax
test eax, eax
je 0x140033a57
mov rcx, qword [str._b0_n_]
cmp rcx, r13
je 0x140033a57
test dword [rcx + 0x1c], r12d
je 0x140033a57
cmp byte [rcx + 0x19], 2
jb 0x140033a57
mov edx, 0x2b
lea r9, str.TiffPrintToAnyPrinter
jmp 0x140033a43
mov r8, r14
call qword [sym.imp.FXSTIFF.dll_TiffPrintDC]
nop dword [rax + rax]
test eax, eax
jne 0x140033a57
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
mov rcx, qword [str._b0_n_]
cmp rcx, r13
je 0x140033a57
test dword [rcx + 0x1c], r12d
je 0x140033a57
cmp byte [rcx + 0x19], 2
jb 0x140033a57
mov edx, 0x2c
lea r9, [0x140088e18]
mov dword [rsp + 0x20], eax
lea r8, [0x140088ed8]
mov rcx, qword [rcx + 0x10]
call fcn.140004454
mov rcx, r14
call qword [sym.imp.MFC42u.dll_CDockBar::GetBarInfo]
nop dword [rax + rax]
mov rcx, rax
call qword [sym.imp.MFC42u.dll_CThreadSlotData::DeleteValues]
nop dword [rax + rax]
cmp dword [rsi + 0x100], ebx
jne 0x140033ada
mov rcx, qword [rbp + 0x1d0]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop dword [rax + rax]
test eax, eax
jne 0x140033ada
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
mov rcx, qword [str._b0_n_]
cmp rcx, r13
je 0x140033ada
test dword [rcx + 0x1c], r12d
je 0x140033ada
cmp byte [rcx + 0x19], 2
jb 0x140033ada
mov edx, 0x2d
lea r9, str.DeleteFile
mov dword [rsp + 0x20], eax
lea r8, [0x140088ed8]
mov rcx, qword [rcx + 0x10]
call fcn.140004454
test r15d, r15d
je 0x140033af0
lea rcx, [rsp + 0x40]
call qword [sym.imp.MFC42u.dll_COleControlSite::XOleIPSite::DiscardUndoState]
nop dword [rax + rax]
mov ebx, edi
lea rcx, [rbp - 0x40]
call qword [sym.imp.MFC42u.dll_COleVariant::operator]
nop dword [rax + rax]
nop
lea rcx, [rbp + 0x1d0]
call qword [sym.imp.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef]
nop dword [rax + rax]
nop
lea rcx, [rsp + 0x40]
call qword [sym.imp.MFC42u.dll_COlePropertyPage::XPropNotifySink::AddRef]
nop dword [rax + rax]
nop
lea rcx, [rbp + 0x1e0]
call qword [sym.imp.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef]
nop dword [rax + rax]
mov eax, ebx
mov rbx, qword [rsp + 0x2d8]
add rsp, 0x290
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret