Function at 0x1400131cc
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 [0x1400ebe98]
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.140012eb8
mov r14d, eax
test eax, eax
je 0x140013276
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140013259
mov rdx, qword [rcx]
mov rax, qword [rdx + 0x10]
call qword [str._N_b_]
nop
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140013271
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [str._N_b_]
nop
jmp 0x14001380e
mov r13, qword [r15 + 0x10]
test r13, r13
je 0x140013433
mov r14d, 7
mov qword [rsp + 0xa0], r14
mov qword [rsp + 0x98], rdi
mov word [rsp + 0x88], di
mov r10, qword [r13 + 8]
mov rax, qword [r10 + 8]
mov rdx, r10
cmp byte [rax + 0x69], dil
jne 0x14001330a
lea r15, [rsi + 0x1d8]
cmp qword [rsi + 0x1f0], 8
jb 0x1400132c8
mov r8, qword [r15]
jmp 0x1400132cb
mov r8, r15
lea rcx, [rax + 0x20]
cmp qword [rax + 0x38], 8
jb 0x1400132d9
mov rcx, qword [rcx]
sub r8, rcx
movzx r9d, word [rcx]
movzx r11d, word [rcx + r8]
sub r9d, r11d
jne 0x1400132f3
add rcx, 2
test r11d, r11d
jne 0x1400132dc
test r9d, r9d
jns 0x1400132fe
mov rax, qword [rax + 0x10]
jmp 0x140013304
mov rdx, rax
mov rax, qword [rax]
cmp byte [rax + 0x69], dil
je 0x1400132b9
cmp rdx, r10
je 0x140013350
lea rcx, [rdx + 0x20]
cmp qword [rdx + 0x38], 8
jb 0x14001331d
mov rcx, qword [rcx]
lea rax, [rsi + 0x1d8]
cmp qword [rsi + 0x1f0], 8
jb 0x140013331
mov rax, qword [rax]
sub rcx, rax
movzx r8d, word [rax]
movzx r9d, word [rax + rcx]
sub r8d, r9d
jne 0x14001334b
add rax, 2
test r9d, r9d
jne 0x140013334
test r8d, r8d
jns 0x140013353
mov rdx, r10
cmp rdx, r10
je 0x140013419
add rdx, 0x40
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rcx, [rsp + 0x80]
call fcn.14000ce2c
lea rdx, [rsi + 0x1d0]
mov rcx, r13
call fcn.140015464
xor r9d, r9d
lea r8, [rsp + 0x48]
lea rdx, [rsp + 0x80]
mov rcx, rsi
call fcn.140012eb8
mov r15d, eax
test eax, eax
je 0x140013411
cmp qword [rsp + 0xa0], 8
jb 0x1400133c1
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.MFC42u.dll_CMonthCalCtrl::SetFirstDayOfWeek]
nop dword [rax + rax]
mov qword [rsp + 0xa0], r14
mov qword [rsp + 0x98], rdi
mov word [rsp + 0x88], di
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x1400133f1
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [str._N_b_]
nop
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140013409
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [str._N_b_]
nop
mov eax, r15d
jmp 0x140013811
mov r14, qword [rsp + 0xa0]
cmp r14, 8
jb 0x140013433
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.MFC42u.dll_CMonthCalCtrl::SetFirstDayOfWeek]
nop dword [rax + rax]
mov rax, rsi
cmp dword [rax + 0x144], edi
jle 0x14001378d
cmp dword [rax + reloc.MFC42u.dll_CDialogTemplate::CDialogTemplate], edi
jle 0x14001378d
mov rax, qword [rax + 0x144]
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x68], rdi
mov dword [rsp + 0x40], edi
mov r15d, 1
test byte [0x1400ed740], 4
je 0x14001348f
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x20], rax
mov r9d, r15d
lea rdx, [0x1400a30d8]
call fcn.140016e58
nop
lea rdx, [rsp + 0x68]
mov rcx, qword [rsp + 0x50]
call fcn.14006154c
mov ebx, eax
test eax, eax
je 0x1400134db
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x1400134bc
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [str._N_b_]
nop
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1400134d4
mov rdx, qword [rcx]
mov rax, qword [rdx + 0x10]
call qword [str._N_b_]
nop
mov eax, ebx
jmp 0x140013811
movups xmm0, xmmword [0x1400a2ad0]
movdqu xmmword [rsp + 0xb0], 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 + 0xb0]
mov qword [rsp + 0x20], rcx
lea r9, [rsp + 0x70]
mov r8, qword [rax + 0xc8]
mov r13, qword [rsp + 0x68]
mov rcx, r13
call fcn.140060f88
mov r14d, eax
test eax, eax
jns 0x1400136f5
mov r12, qword [rsp + 0x60]
mov rax, qword [r12]
mov ebx, dword [rax - 8]
mov edx, 0x2f
mov rcx, r12
call qword [sym.imp.MFC42u.dll_COleControlContainer::XOleIPFrame::SetMenu]
nop dword [rax + rax]
sub ebx, eax
sub ebx, r15d
mov r8d, ebx
lea rdx, [rsp + 0x60]
mov rcx, r12
call qword [sym.imp.MFC42u.dll_CFormView::SetOccDialogInfo]
nop dword [rax + rax]
nop
mov r8, r13
mov ebx, 0x104
mov edx, ebx
lea rcx, [rsp + 0xc0]
call fcn.140009c88
mov r8, qword [rsp + 0x60]
mov edx, ebx
lea rcx, [rsp + 0xc0]
call fcn.140009d14
lea rdx, [rsp + 0xc0]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_MoveFileW]
nop dword [rax + rax]
mov dword [rsp + 0x40], 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._N_b_]
mov rbx, rax
mov dword [rax + 0xe4], r15d
cmp dword [rsp + 0x40], edi
je 0x140013654
mov qword [rsp + 0x28], rdi
mov word [rsp + 0x20], di
mov r9d, r15d
lea r8, [0x1400a2ad0]
lea rdx, [rsp + 0xc0]
mov rcx, rax
call qword [sym.imp.MFC42u.dll_CProcessLocal__AFX_MAIL_STATE_::CreateObject]
nop dword [rax + rax]
test eax, eax
je 0x140013654
mov rcx, qword [rsi + 0x130]
xor r8d, r8d
mov rdx, rbx
mov rcx, qword [rcx + 0xd0]
call fcn.140006860
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 0x14001368f
jns 0x140013692
lea r9, [rsi + 0x188]
cmp qword [rsi + 0x1a0], 8
jb 0x14001366f
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.14005618c
xor ecx, ecx
call fcn.140056fd0
mov r14d, edi
mov edx, r15d
mov rcx, rbx
call qword [sym.imp.MFC42u.dll_CDaoDatabase::DeleteRelation]
nop dword [rax + rax]
mov rcx, r12
call qword [sym.imp.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef]
nop dword [rax + rax]
mov rcx, r12
call qword [sym.imp.MFC42u.dll_CMonthCalCtrl::SetFirstDayOfWeek]
nop dword [rax + rax]
cmp dword [rsp + 0x40], edi
je 0x1400136dd
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 0x14001374f
cmp dword [rsp + 0x40], edi
jne 0x1400136ee
mov r9, qword [rsp + 0x48]
test r9, r9
je 0x1400136ee
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.140061d54
mov r14d, eax
jmp 0x1400136f3
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop dword [rax + rax]
mov rcx, r13
call sub.msvcrt.dll_free
test byte [0x1400ed740], 4
je 0x1400137c8
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x20], rax
mov r9d, r15d
lea rdx, [0x1400a31f0]
call fcn.140016e58
jmp 0x1400137c8
mov rax, qword [rax + reloc.MFC42u.dll_CDaoRecordView::CDaoRecordView]
test rax, rax
jne 0x140013436
mov r14d, edi
lea r9, [0x1400a3ca8]
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.14005618c
xor ecx, ecx
call fcn.140056fd0
nop
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x1400137e0
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [str._N_b_]
nop
test rbx, rbx
je 0x1400137f6
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax + 0x10]
call qword [str._N_b_]
nop
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x14001380e
mov rdx, qword [rcx]
mov rax, qword [rdx + 0x10]
call qword [str._N_b_]
nop
mov eax, r14d
mov rcx, qword [rsp + 0x2d0]
xor rcx, rsp
call fcn.140083280
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