Function at 0x140017d4c
Capabilities:
Delete file
Move file

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x2c0
mov rax, qword [0x1400fc1e8]
xor rax, rsp
mov qword [rsp + 0x2b0], rax
mov r14, rcx
xor edi, edi
mov qword [rsp + 0x50], rdi
mov ebx, edi
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x48], rdi
mov rsi, qword [rcx + 0x128]
mov qword [rsp + 0x68], rdi
lea r13, [rcx + 0x168]
lea r9, [rsp + 0x68]
lea r8, [rsp + 0x50]
mov rdx, r13
call fcn.140014fa0
mov r15d, eax
test eax, eax
je 0x140017e06
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140017ddc
mov rdx, qword [rcx]
movabs r10, 0xbaac1f10365eb170
mov rax, qword [rdx + 0x10]
call qword [case.0x140063541.0]
nop
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140017dfe
mov rax, qword [rcx]
movabs r10, 0xbaac1f10365eb170
mov rax, qword [rax + 0x10]
call qword [case.0x140063541.0]
nop
mov eax, r15d
jmp 0x1400184c9
mov qword [rsp + 0x58], rdi
cmp qword [rsi + 0x10], rdi
je 0x140018084
mov r12d, 7
mov qword [rsp + 0x98], r12
mov qword [rsp + 0x90], rdi
mov word [rsp + 0x80], di
lea rdx, [rsp + 0x58]
mov rcx, rsi
call fcn.140024938
mov esi, eax
test eax, eax
je 0x140017eca
cmp qword [rsp + 0x98], 8
jb 0x140017e69
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.MFC42u.dll_CMonthCalCtrl::SetFirstDayOfWeek]
nop dword [rax + rax]
mov qword [rsp + 0x98], r12
mov qword [rsp + 0x90], rdi
mov word [rsp + 0x80], di
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140017ea3
mov rax, qword [rcx]
movabs r10, 0xbaac1f10365eb170
mov rax, qword [rax + 0x10]
call qword [case.0x140063541.0]
nop
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140017ec5
mov rax, qword [rcx]
movabs r10, 0xbaac1f10365eb170
mov rax, qword [rax + 0x10]
call qword [case.0x140063541.0]
nop
jmp 0x1400184c7
lea rsi, [r14 + 0x1a8]
mov r15, qword [rsp + 0x58]
mov rdx, qword [r15]
mov rax, qword [rdx + 8]
mov r10, rdx
cmp byte [rax + 0x19], dil
jne 0x140018065
lea rcx, [rax + 0x20]
cmp qword [rsi + 0x18], 8
jb 0x140017efa
mov r8, qword [rsi]
jmp 0x140017efd
mov r8, rsi
cmp qword [rcx + 0x18], 8
jb 0x140017f07
mov rcx, qword [rcx]
sub r8, rcx
movzx r9d, word [rcx]
cmp r9w, word [rcx + r8]
jne 0x140017f23
add rcx, 2
test r9w, r9w
jne 0x140017f0a
mov ecx, edi
jmp 0x140017f28
sbb ecx, ecx
or ecx, 1
shr ecx, 0x1f
test cl, cl
je 0x140017f35
mov rax, qword [rax + 0x10]
jmp 0x140017f3b
mov rdx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], dil
je 0x140017eea
cmp rdx, r10
je 0x140018065
lea rcx, [rdx + 0x20]
cmp qword [rcx + 0x18], 8
jb 0x140017f58
mov rcx, qword [rcx]
cmp qword [rsi + 0x18], 8
jb 0x140017f64
mov rax, qword [rsi]
jmp 0x140017f67
mov rax, rsi
sub rcx, rax
movzx r8d, word [rax]
cmp r8w, word [rax + rcx]
jne 0x140017f83
add rax, 2
test r8w, r8w
jne 0x140017f6a
mov eax, edi
jmp 0x140017f88
sbb eax, eax
or eax, 1
shr eax, 0x1f
test al, al
jne 0x140018065
add rdx, 0x40
lea rax, [rsp + 0x80]
cmp rax, rdx
je 0x140017fb8
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rcx, [rsp + 0x80]
call fcn.140010b30
mov rdx, rsi
mov rcx, r15
call fcn.14001b254
xor r9d, r9d
lea r8, [rsp + 0x48]
lea rdx, [rsp + 0x80]
mov rcx, r14
call fcn.140014fa0
mov esi, eax
test eax, eax
je 0x140018065
cmp qword [rsp + 0x98], 8
jb 0x140018004
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.MFC42u.dll_CMonthCalCtrl::SetFirstDayOfWeek]
nop dword [rax + rax]
mov qword [rsp + 0x98], r12
mov qword [rsp + 0x90], rdi
mov word [rsp + 0x80], di
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14001803e
mov rax, qword [rcx]
movabs r10, 0xbaac1f10365eb170
mov rax, qword [rax + 0x10]
call qword [case.0x140063541.0]
nop
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140018060
mov rax, qword [rcx]
movabs r10, 0xbaac1f10365eb170
mov rax, qword [rax + 0x10]
call qword [case.0x140063541.0]
nop
jmp 0x1400184c7
cmp qword [rsp + 0x98], 8
jb 0x140018084
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.MFC42u.dll_CMonthCalCtrl::SetFirstDayOfWeek]
nop dword [rax + rax]
mov rax, r14
cmp dword [rax + 0x134], edi
jle 0x140018429
cmp dword [rax + reloc.MFC42u.dll_CDaoRecordView::CDaoRecordView], edi
jle 0x140018429
mov rax, qword [rax + 0x134]
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x58], rdi
mov dword [rsp + 0x40], edi
test byte [0x1400fdac0], 4
je 0x1400180dd
lea rax, [rsp + 0x80]
mov qword [rsp + 0x20], rax
mov r9d, 1
lea rdx, [0x1400b9b10]
call fcn.14001b510
nop
lea rdx, [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
call fcn.1400787c4
mov ebx, eax
test eax, eax
je 0x14001813d
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140018114
mov rax, qword [rcx]
movabs r10, 0xbaac1f10365eb170
mov rax, qword [rax + 0x10]
call qword [case.0x140063541.0]
nop
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140018136
mov rdx, qword [rcx]
movabs r10, 0xbaac1f10365eb170
mov rax, qword [rdx + 0x10]
call qword [case.0x140063541.0]
nop
mov eax, ebx
jmp 0x1400184c9
mov rax, qword [r14 + 0x120]
movups xmm0, xmmword [0x1400b94f0]
movdqu xmmword [rsp + 0x80], xmm0
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x80]
mov qword [rsp + 0x20], rcx
lea r9, [rsp + 0x70]
mov r8, qword [rax + 0xa8]
mov r12, qword [rsp + 0x58]
mov rcx, r12
call fcn.140078940
mov esi, eax
test eax, eax
jns 0x14001838f
mov r15, qword [rsp + 0x68]
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 + 0x68]
mov rcx, r15
call qword [sym.imp.MFC42u.dll_CFormView::SetOccDialogInfo]
nop dword [rax + rax]
nop
mov edx, 0x104
mov r8d, edx
lea rcx, [rsp + 0xa0]
lea rax, [rsp + 0xa0]
mov r9, r12
sub r9, rax
lea rax, [r8 + 0x7ffffefa]
test rax, rax
je 0x140018213
movzx eax, word [rcx + r9]
test ax, ax
je 0x140018213
mov word [rcx], ax
add rcx, 2
sub r8, 1
jne 0x1400181f0
lea rax, [rcx - 2]
test r8, r8
cmovne rax, rcx
mov word [rax], di
mov r8, qword [rsp + 0x68]
lea rcx, [rsp + 0xa0]
call fcn.14000fb80
lea rdx, [rsp + 0xa0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_MoveFileW]
nop dword [rax + rax]
mov esi, eax
mov dword [rsp + 0x40], eax
mov rcx, qword [r14 + 0x120]
mov rdx, qword [rcx + 0xb0]
mov rcx, qword [rdx + 0x80]
mov rdx, qword [rcx]
mov rax, qword [rdx + 0x290]
movabs r10, 0x8899bee0305ddb70
xor edx, edx
call qword [case.0x140063541.0]
mov rbx, rax
mov dword [rax + 0xe4], 1
test esi, esi
je 0x1400182fa
mov qword [rsp + 0x28], rdi
mov word [rsp + 0x20], di
mov r9d, 1
lea r8, [0x1400b94f0]
lea rdx, [rsp + 0xa0]
mov rcx, rax
call qword [sym.imp.MFC42u.dll_CProcessLocal__AFX_MAIL_STATE_::CreateObject]
nop dword [rax + rax]
test eax, eax
je 0x1400182fa
mov rax, qword [r14 + 0x120]
xor r8d, r8d
mov rdx, rbx
mov rcx, qword [rax + 0xb0]
call fcn.140002f08
mov esi, eax
mov rcx, rbx
call qword [sym.imp.MFC42u.dll_CStringList::InsertAfter]
nop dword [rax + rax]
mov dword [rbx + 0xe4], edi
test esi, esi
je 0x140018328
jns 0x14001832a
cmp qword [r13 + 0x18], 8
jb 0x140018305
mov r13, qword [r13]
mov r9, r13
mov r8d, 0x8f7
lea rdx, str.CDocxOleObject::HandleEmbeddedObject
lea rcx, str.Ignoring_Error:_Func__s_Line__d:_skipping_this_oleobject
call fcn.14006ca60
xor ecx, ecx
call fcn.14006cb0c
mov esi, 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]
cmp dword [rsp + 0x40], edi
je 0x140018377
lea rcx, [rsp + 0xa0]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop dword [rax + rax]
nop
lea rcx, [rsp + 0x68]
call qword [sym.imp.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef]
nop dword [rax + rax]
mov rbx, qword [rsp + 0x60]
jmp 0x1400183e1
cmp dword [rsp + 0x40], edi
jne 0x140018388
mov r9, qword [rsp + 0x48]
test r9, r9
je 0x140018388
mov rax, qword [r14 + 0x120]
mov rcx, qword [rax + 0xb0]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r8d, dword [r14 + 0x1c8]
mov rbx, qword [rsp + 0x60]
mov rdx, rbx
mov rcx, qword [rcx + 0x40]
call fcn.140078fa8
mov esi, eax
jmp 0x14001838d
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop dword [rax + rax]
mov rcx, r12
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_]
nop dword [rax + rax]
test byte [0x1400fdac0], 4
je 0x140018463
lea rax, [rsp + 0x80]
mov qword [rsp + 0x20], rax
mov r9d, 1
lea rdx, [0x1400b9c28]
call fcn.14001b510
jmp 0x140018463
mov rax, qword [rax + 0x128]
test rax, rax
jne 0x140018087
mov esi, edi
lea r9, [0x1400ba6e0]
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.14006ca60
xor ecx, ecx
call fcn.14006cb0c
nop
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140018485
mov rax, qword [rcx]
movabs r10, 0xbaac1f10365eb170
mov rax, qword [rax + 0x10]
call qword [case.0x140063541.0]
nop
test rbx, rbx
je 0x1400184a5
mov rax, qword [rbx]
movabs r10, 0xbaac1f10365eb170
mov rcx, rbx
mov rax, qword [rax + 0x10]
call qword [case.0x140063541.0]
nop
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1400184c7
mov rdx, qword [rcx]
movabs r10, 0xbaac1f10365eb170
mov rax, qword [rdx + 0x10]
call qword [case.0x140063541.0]
nop
mov eax, esi
mov rcx, qword [rsp + 0x2b0]
xor rcx, rsp
call fcn.14000bdb0
lea r11, [rsp + 0x2c0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret