Function at 0x14001341c
Capabilities:
Delete file
Move file

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x2e0
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x1400fd258]
xor rax, rsp
mov qword [rsp + 0x2d0], rax
mov rsi, rcx
xor edi, edi
mov qword [rsp + 0x50], rdi
mov ebx, edi
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x48], rdi
mov r15, qword [rcx + reloc.MFC42u.dll_CDaoRecordView::CDaoRecordView]
mov qword [rsp + 0x60], rdi
lea rdx, [rcx + 0x180]
lea r9, [rsp + 0x60]
lea r8, [rsp + 0x50]
call fcn.14001310c
mov r14d, eax
test eax, eax
je 0x1400134c6
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x1400134a9
mov rdx, qword [rcx]
mov rax, qword [rdx + 0x10]
call qword [str._E_t_]
nop
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1400134c1
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [str._E_t_]
nop
jmp 0x140013a32
mov r13, qword [r15 + 0x10]
test r13, r13
je 0x140013683
mov r14d, 7
mov qword [rsp + 0xb0], r14
mov qword [rsp + 0xa8], rdi
mov word [rsp + 0x98], di
mov r10, qword [r13 + 8]
mov rax, qword [r10 + 8]
mov rdx, r10
cmp byte [rax + 0x69], dil
jne 0x14001355a
lea r15, [rsi + 0x1d8]
cmp qword [rsi + 0x1f0], 8
jb 0x140013518
mov r8, qword [r15]
jmp 0x14001351b
mov r8, r15
lea rcx, [rax + 0x20]
cmp qword [rax + 0x38], 8
jb 0x140013529
mov rcx, qword [rcx]
sub r8, rcx
movzx r9d, word [rcx]
movzx r11d, word [rcx + r8]
sub r9d, r11d
jne 0x140013543
add rcx, 2
test r11d, r11d
jne 0x14001352c
test r9d, r9d
jns 0x14001354e
mov rax, qword [rax + 0x10]
jmp 0x140013554
mov rdx, rax
mov rax, qword [rax]
cmp byte [rax + 0x69], dil
je 0x140013509
cmp rdx, r10
je 0x1400135a0
lea rcx, [rdx + 0x20]
cmp qword [rdx + 0x38], 8
jb 0x14001356d
mov rcx, qword [rcx]
lea rax, [rsi + 0x1d8]
cmp qword [rsi + 0x1f0], 8
jb 0x140013581
mov rax, qword [rax]
sub rcx, rax
movzx r8d, word [rax]
movzx r9d, word [rax + rcx]
sub r8d, r9d
jne 0x14001359b
add rax, 2
test r9d, r9d
jne 0x140013584
test r8d, r8d
jns 0x1400135a3
mov rdx, r10
cmp rdx, r10
je 0x140013669
add rdx, 0x40
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rcx, [rsp + 0x90]
call fcn.14000cac4
lea rdx, [rsi + 0x1d0]
mov rcx, r13
call fcn.140015634
xor r9d, r9d
lea r8, [rsp + 0x48]
lea rdx, [rsp + 0x90]
mov rcx, rsi
call fcn.14001310c
mov r15d, eax
test eax, eax
je 0x140013661
cmp qword [rsp + 0xb0], 8
jb 0x140013611
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.MFC42u.dll_CMonthCalCtrl::SetFirstDayOfWeek]
nop dword [rax + rax]
mov qword [rsp + 0xb0], r14
mov qword [rsp + 0xa8], rdi
mov word [rsp + 0x98], di
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140013641
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [str._E_t_]
nop
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140013659
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [str._E_t_]
nop
mov eax, r15d
jmp 0x140013a35
mov r14, qword [rsp + 0xb0]
cmp r14, 8
jb 0x140013683
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.MFC42u.dll_CMonthCalCtrl::SetFirstDayOfWeek]
nop dword [rax + rax]
mov rax, rsi
cmp dword [rax + 0x144], edi
jle 0x1400139b1
cmp dword [rax + reloc.MFC42u.dll_CDialogTemplate::CDialogTemplate], edi
jle 0x1400139b1
mov rax, qword [rax + 0x144]
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x68], rdi
mov dword [rsp + 0x40], edi
test byte [0x1400fecc0], 4
je 0x1400136c9
lea rdx, [0x1400b2280]
call fcn.140016f80
nop
lea rdx, [rsp + 0x68]
mov rcx, qword [rsp + 0x50]
call fcn.14006d5fc
mov ebx, eax
test eax, eax
je 0x140013715
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x1400136f6
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [str._E_t_]
nop
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x14001370e
mov rdx, qword [rcx]
mov rax, qword [rdx + 0x10]
call qword [str._E_t_]
nop
mov eax, ebx
jmp 0x140013a35
movups xmm0, xmmword [0x1400b1c60]
movdqu xmmword [rsp + 0x80], xmm0
mov rax, qword [rsi + 0x130]
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x80]
mov qword [rsp + 0x20], rcx
lea r9, [rsp + 0x70]
mov r8, qword [rax + 0xc8]
mov r12, qword [rsp + 0x68]
mov rcx, r12
call fcn.14006d034
mov r14d, eax
test eax, eax
jns 0x14001392f
mov r15, qword [rsp + 0x60]
mov rax, qword [r15]
mov ebx, dword [rax - 8]
mov edx, 0x2f
mov rcx, r15
call qword [sym.imp.MFC42u.dll_COleControlContainer::XOleIPFrame::SetMenu]
nop dword [rax + rax]
sub ebx, eax
lea r8d, [rbx - 1]
lea rdx, [rsp + 0x60]
mov rcx, r15
call qword [sym.imp.MFC42u.dll_CFormView::SetOccDialogInfo]
nop dword [rax + rax]
nop
mov r8, r12
mov ebx, 0x104
mov edx, ebx
lea rcx, [rsp + 0xc0]
call fcn.1400098b8
mov r8, qword [rsp + 0x60]
mov edx, ebx
lea rcx, [rsp + 0xc0]
call fcn.140009940
lea rdx, [rsp + 0xc0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_MoveFileW]
nop dword [rax + rax]
mov r13d, eax
mov rcx, qword [rsi + 0x130]
mov rdx, qword [rcx + 0xd0]
mov r8, qword [rdx + 0x80]
mov rcx, qword [r8]
mov rax, qword [rcx + 0x290]
xor edx, edx
mov rcx, r8
call qword [str._E_t_]
mov rbx, rax
mov eax, 1
mov dword [rbx + 0xe4], eax
test r13d, r13d
je 0x14001388d
mov qword [rsp + 0x28], rdi
mov word [rsp + 0x20], di
mov r9d, eax
lea r8, [0x1400b1c60]
lea rdx, [rsp + 0xc0]
mov rcx, rbx
call qword [sym.imp.MFC42u.dll_CProcessLocal__AFX_MAIL_STATE_::CreateObject]
nop dword [rax + rax]
test eax, eax
je 0x14001388d
mov rcx, qword [rsi + 0x130]
xor r8d, r8d
mov rdx, rbx
mov rcx, qword [rcx + 0xd0]
call fcn.14000637c
mov r14d, eax
mov rcx, rbx
call qword [sym.imp.MFC42u.dll_CStringList::InsertAfter]
nop dword [rax + rax]
mov dword [rbx + 0xe4], edi
test r14d, r14d
je 0x1400138c8
jns 0x1400138cb
lea r9, [rsi + 0x188]
cmp qword [rsi + 0x1a0], 8
jb 0x1400138a8
mov r9, qword [r9]
mov r8d, 0x8f7
lea rdx, str.CDocxOleObject::HandleEmbeddedObject
lea rcx, str.Ignoring_Error:_Func__s_Line__d:_skipping_this_oleobject
call fcn.140062434
xor ecx, ecx
call fcn.1400631ec
mov r14d, edi
mov edx, 1
mov rcx, rbx
call qword [sym.imp.MFC42u.dll_CDaoDatabase::DeleteRelation]
nop dword [rax + rax]
mov rcx, r15
call qword [sym.imp.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef]
nop dword [rax + rax]
mov rcx, r15
call qword [sym.imp.MFC42u.dll_CMonthCalCtrl::SetFirstDayOfWeek]
nop dword [rax + rax]
test r13d, r13d
je 0x140013917
lea rcx, [rsp + 0xc0]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop dword [rax + rax]
nop
lea rcx, [rsp + 0x60]
call qword [sym.imp.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef]
nop dword [rax + rax]
mov rbx, qword [rsp + 0x58]
jmp 0x140013983
cmp dword [rsp + 0x40], edi
jne 0x140013928
mov r9, qword [rsp + 0x48]
test r9, r9
je 0x140013928
mov rax, qword [rsi + 0x130]
mov rcx, qword [rax + 0xd0]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r8d, dword [rsi + 0x1f8]
mov rbx, qword [rsp + 0x58]
mov rdx, rbx
mov rcx, qword [rcx + 0x40]
call fcn.14006ddac
mov r14d, eax
jmp 0x14001392d
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop dword [rax + rax]
mov rcx, r12
call sub.msvcrt.dll_free
test byte [0x1400fecc0], 4
je 0x1400139ec
lea rdx, [0x1400b2388]
call fcn.140016f80
jmp 0x1400139ec
mov rax, qword [rax + reloc.MFC42u.dll_CDaoRecordView::CDaoRecordView]
test rax, rax
jne 0x140013686
mov r14d, edi
lea r9, [0x1400b2e04]
mov r8d, 0x927
lea rdx, str.CDocxOleObject::HandleEmbeddedObject
lea rcx, str.Ignoring_Error:_Func__s_Line__d:_OLE_Object_has_size_0.Skipping_OLE_Object.
call fcn.140062434
xor ecx, ecx
call fcn.1400631ec
nop
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140013a04
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [str._E_t_]
nop
test rbx, rbx
je 0x140013a1a
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax + 0x10]
call qword [str._E_t_]
nop
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140013a32
mov rdx, qword [rcx]
mov rax, qword [rdx + 0x10]
call qword [str._E_t_]
nop
mov eax, r14d
mov rcx, qword [rsp + 0x2d0]
xor rcx, rsp
call fcn.1400929d0
lea r11, [rsp + 0x2e0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret