Function at 0x140013c4c
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 [0x1400ff2b8]
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.14001393c
mov r14d, eax
test eax, eax
je 0x140013cf6
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140013cd9
mov rdx, qword [rcx]
mov rax, qword [rdx + 0x10]
call qword [str._S_t_]
nop
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140013cf1
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [str._S_t_]
nop
jmp 0x140014274
mov r13, qword [r15 + 0x10]
test r13, r13
je 0x140013ebf
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 0x140013d8d
lea r15, [rsi + 0x1d8]
cmp qword [rsi + 0x1f0], 8
jb 0x140013d48
mov r8, qword [r15]
jmp 0x140013d4b
mov r8, r15
cmp qword [rax + 0x38], 8
jb 0x140013d58
mov rcx, qword [rax + 0x20]
jmp 0x140013d5c
lea rcx, [rax + 0x20]
sub r8, rcx
movzx r9d, word [rcx]
movzx r11d, word [rcx + r8]
sub r9d, r11d
jne 0x140013d76
add rcx, 2
test r11d, r11d
jne 0x140013d5f
test r9d, r9d
jns 0x140013d81
mov rax, qword [rax + 0x10]
jmp 0x140013d87
mov rdx, rax
mov rax, qword [rax]
cmp byte [rax + 0x69], dil
je 0x140013d39
cmp rdx, r10
je 0x140013ddc
cmp qword [rdx + 0x38], 8
jb 0x140013d9f
mov rcx, qword [rdx + 0x20]
jmp 0x140013da3
lea rcx, [rdx + 0x20]
cmp qword [rsi + 0x1f0], 8
jb 0x140013db6
mov rax, qword [rsi + 0x1d8]
jmp 0x140013dbd
lea rax, [rsi + 0x1d8]
sub rcx, rax
movzx r8d, word [rax]
movzx r9d, word [rax + rcx]
sub r8d, r9d
jne 0x140013dd7
add rax, 2
test r9d, r9d
jne 0x140013dc0
test r8d, r8d
jns 0x140013ddf
mov rdx, r10
cmp rdx, r10
je 0x140013ea5
add rdx, 0x40
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rcx, [rsp + 0x90]
call fcn.14000cd5c
lea rdx, [rsi + 0x1d0]
mov rcx, r13
call fcn.140015e64
xor r9d, r9d
lea r8, [rsp + 0x48]
lea rdx, [rsp + 0x90]
mov rcx, rsi
call fcn.14001393c
mov r15d, eax
test eax, eax
je 0x140013e9d
cmp qword [rsp + 0xb0], 8
jb 0x140013e4d
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 0x140013e7d
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [str._S_t_]
nop
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140013e95
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [str._S_t_]
nop
mov eax, r15d
jmp 0x140014277
mov r14, qword [rsp + 0xb0]
cmp r14, 8
jb 0x140013ebf
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 0x1400141f3
cmp dword [rax + reloc.MFC42u.dll_CDialogTemplate::CDialogTemplate], edi
jle 0x1400141f3
mov rax, qword [rax + 0x144]
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x68], rdi
mov dword [rsp + 0x40], edi
test byte [0x140100d00], 4
je 0x140013f05
lea rdx, [0x1400b3290]
call fcn.1400177d0
nop
lea rdx, [rsp + 0x68]
mov rcx, qword [rsp + 0x50]
call fcn.14006c35c
mov ebx, eax
test eax, eax
je 0x140013f51
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140013f32
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [str._S_t_]
nop
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140013f4a
mov rdx, qword [rcx]
mov rax, qword [rdx + 0x10]
call qword [str._S_t_]
nop
mov eax, ebx
jmp 0x140014277
movups xmm0, xmmword [0x1400b2c90]
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.14006bda4
mov r14d, eax
test eax, eax
jns 0x140014171
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.140009b48
mov r8, qword [rsp + 0x60]
mov edx, ebx
lea rcx, [rsp + 0xc0]
call fcn.140009bd0
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._S_t_]
mov rbx, rax
mov eax, 1
mov dword [rbx + 0xe4], eax
test r13d, r13d
je 0x1400140c9
mov qword [rsp + 0x28], rdi
mov word [rsp + 0x20], di
mov r9d, eax
lea r8, [0x1400b2c90]
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 0x1400140c9
mov rcx, qword [rsi + 0x130]
xor r8d, r8d
mov rdx, rbx
mov rcx, qword [rcx + 0xd0]
call fcn.1400065ec
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 0x14001410a
jns 0x14001410d
cmp qword [rsi + 0x1a0], 8
jb 0x1400140e3
mov r9, qword [rsi + 0x188]
jmp 0x1400140ea
lea r9, [rsi + 0x188]
mov r8d, 0x8f7
lea rdx, str.CDocxOleObject::HandleEmbeddedObject
lea rcx, str.Ignoring_Error:_Func__s_Line__d:_skipping_this_oleobject
call fcn.140061364
xor ecx, ecx
call fcn.14006211c
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 0x140014159
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 0x1400141c5
cmp dword [rsp + 0x40], edi
jne 0x14001416a
mov r9, qword [rsp + 0x48]
test r9, r9
je 0x14001416a
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.14006cae8
mov r14d, eax
jmp 0x14001416f
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop dword [rax + rax]
mov rcx, r12
call sub.msvcrt.dll_free
test byte [0x140100d00], 4
je 0x14001422e
lea rdx, [0x1400b33a8]
call fcn.1400177d0
jmp 0x14001422e
mov rax, qword [rax + reloc.MFC42u.dll_CDaoRecordView::CDaoRecordView]
test rax, rax
jne 0x140013ec2
mov r14d, edi
lea r9, [0x1400b3e24]
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.140061364
xor ecx, ecx
call fcn.14006211c
nop
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140014246
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [str._S_t_]
nop
test rbx, rbx
je 0x14001425c
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax + 0x10]
call qword [str._S_t_]
nop
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140014274
mov rdx, qword [rcx]
mov rax, qword [rdx + 0x10]
call qword [str._S_t_]
nop
mov eax, r14d
mov rcx, qword [rsp + 0x2d0]
xor rcx, rsp
call fcn.140093810
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