Function at 0x140021a20
Capabilities:
Delete file
Get common file path

Disassembly:
jmp 0x140021a20
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x6a8]
sub rsp, 0x780
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x14003c008]
xor rax, rsp
mov qword [rbp + 0x670], rax
mov rsi, rcx
lea rax, [fcn.140022360]
mov qword [0x140041ab0], rax
add rcx, 0x720
mov edx, 1
call qword [sym.imp.mfc140u.dll_CMFCTasksPaneToolBarCmdUI::Enable]
lea rcx, [rsi + 0x808]
mov edx, 1
call qword [sym.imp.mfc140u.dll_CMFCTasksPaneToolBarCmdUI::Enable]
lea rcx, [rsi + 0x1b0]
mov edx, 1
call qword [sym.imp.mfc140u.dll_CMFCTasksPaneToolBarCmdUI::Enable]
lea rcx, [rsi + 0x550]
mov edx, 1
call qword [sym.imp.mfc140u.dll_CMFCTasksPaneToolBarCmdUI::Enable]
lea rcx, [rsi + 0xba8]
xor edx, edx
call qword [sym.imp.mfc140u.dll_CMFCTasksPaneToolBarCmdUI::Enable]
lea rcx, [rsi + 0xac0]
xor edx, edx
call qword [sym.imp.mfc140u.dll_CMFCTasksPaneToolBarCmdUI::Enable]
xor edx, edx
lea rcx, [rsi + 0xe60]
call qword [sym.imp.mfc140u.dll_CMFCTasksPaneToolBarCmdUI::Enable]
xor edx, edx
lea rcx, [rsi + 0xd78]
call qword [sym.imp.mfc140u.dll_CMFCTasksPaneToolBarCmdUI::Enable]
lea rcx, [rsi + 0x468]
xor edx, edx
call qword [sym.imp.mfc140u.dll_CMFCTasksPaneToolBarCmdUI::Enable]
lea rcx, [rsi + 0x638]
xor edx, edx
call qword [sym.imp.mfc140u.dll_CMFCTasksPaneToolBarCmdUI::Enable]
lea rcx, [rsi + 0x9d8]
xor edx, edx
call qword [sym.imp.mfc140u.dll_CMFCTasksPaneToolBarCmdUI::Enable]
lea rcx, [rsi + 0x8f0]
xor edx, edx
call qword [sym.imp.mfc140u.dll_CMFCTasksPaneToolBarCmdUI::Enable]
lea rcx, [rsi + 0xf48]
xor edx, edx
call qword [sym.imp.mfc140u.dll_CMFCTasksPaneToolBarCmdUI::Enable]
lea rcx, [rsi + 0xc90]
xor edx, edx
call qword [sym.imp.mfc140u.dll_CMFCTasksPaneToolBarCmdUI::Enable]
mov edx, 0x3fc
mov rcx, rsi
call qword [sym.imp.mfc140u.dll_CMFCRibbonGallery::GetCompactSize]
mov rcx, rax
xor edx, edx
call qword [sym.imp.mfc140u.dll_CMFCTasksPaneToolBarCmdUI::Enable]
mov edx, 0x3fb
mov rcx, rsi
call qword [sym.imp.mfc140u.dll_CMFCRibbonGallery::GetCompactSize]
mov rcx, rax
xor edx, edx
call qword [sym.imp.mfc140u.dll_CMFCTasksPaneToolBarCmdUI::Enable]
lea rcx, [rsp + 0x20]
call qword [sym.imp.mfc140u.dll_Ordinal_296]
nop
mov edx, 0x12c
lea rcx, [rsp + 0x20]
call qword [sym.imp.mfc140u.dll_Ordinal_4946]
mov rdx, rax
mov r8d, 0x12a
lea rcx, [rsi + 0xe60]
call qword [sym.imp.mfc140u.dll_CMFCOutlookBarTabCtrl::GetMessageMap]
or edx, 0xffffffff
lea rcx, [rsp + 0x20]
call qword [sym.imp.mfc140u.dll_CDialogImpl::ProcessMouseClick]
mov rdx, qword [rsp + 0x20]
lea rcx, [rsp + 0x28]
call qword [sym.imp.mfc140u.dll_ATL::CStringT_char_StrTraitMFC_DLL_char_ATL::ChTraitsCRT_char_]
mov rdx, qword [rax]
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
lea rcx, [rsp + 0x28]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XImage::XImage]
cmp byte [rsp + 0x50], 0
jne 0x140021c4f
mov rdi, qword [rsi + 0x40]
mov edx, 0xfffffffa
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetWindowLongPtrW]
mov rbx, rax
mov r9d, 0x12c
lea r8, [rbp + 0x1b0]
mov edx, 0x80
mov rcx, rax
call qword [sym.imp.USER32.dll_LoadStringA]
mov r9d, 0x12c
lea r8, [rbp + 0x2e0]
mov edx, 0xe726
mov rcx, rbx
call qword [sym.imp.USER32.dll_LoadStringA]
lea r8, [rbp + 0x1b0]
lea rdx, [rbp + 0x2e0]
jmp 0x140021d14
mov edx, 0x12c
lea rcx, [rsp + 0x20]
call qword [sym.imp.mfc140u.dll_Ordinal_4946]
mov rdx, rax
mov r8d, 0x12a
lea rcx, [rsi + 0xd78]
call qword [sym.imp.mfc140u.dll_CMFCOutlookBarTabCtrl::GetMessageMap]
or edx, 0xffffffff
lea rcx, [rsp + 0x20]
call qword [sym.imp.mfc140u.dll_CDialogImpl::ProcessMouseClick]
mov rdx, qword [rsp + 0x20]
lea rcx, [rsp + 0x28]
call qword [sym.imp.mfc140u.dll_ATL::CStringT_char_StrTraitMFC_DLL_char_ATL::ChTraitsCRT_char_]
mov rdx, qword [rax]
lea rcx, [rbp + 0x80]
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
lea rcx, [rsp + 0x28]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XImage::XImage]
cmp byte [rbp + 0x80], 0
jne 0x140021d4a
mov rdi, qword [rsi + 0x40]
mov edx, 0xfffffffa
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetWindowLongPtrW]
mov rbx, rax
mov r9d, 0x12c
lea r8, [rbp + 0x2e0]
mov edx, 0x80
mov rcx, rax
call qword [sym.imp.USER32.dll_LoadStringA]
mov r9d, 0x12c
lea r8, [rbp + 0x1b0]
mov edx, 0xe729
mov rcx, rbx
call qword [sym.imp.USER32.dll_LoadStringA]
lea r8, [rbp + 0x2e0]
lea rdx, [rbp + 0x1b0]
mov r9d, 0x10
mov rcx, rdi
call qword [sym.imp.USER32.dll_MessageBoxA]
cmp dword [0x140041aa4], 0
je 0x140021ea4
cmp dword [0x140041c48], 0
jne 0x140021ea4
xor ecx, ecx
call qword [sym.imp.USER32.dll_PostQuitMessage]
jmp 0x140021ea4
mov ecx, 0x10
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonLinkCtrl::XElementButtonLinkCtrl]
mov r14, rax
mov qword [rsp + 0x38], rax
xor ebx, ebx
test rax, rax
je 0x140021d99
mov word [rax], bx
mov qword [rax + 8], rbx
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jle 0x140021d9c
inc eax
movsxd rcx, eax
call qword [sym.imp.mfc140u.dll_operator_1]
mov qword [r14 + 8], rax
lea rdx, [rsp + 0x50]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x140021d9c
mov r14, rbx
mov edx, 1
mov rcx, r14
call fcn.14002a380
mov r13, rax
test rax, rax
jne 0x140021dbd
lea rdx, str.Unable_to_open_source_file.
jmp 0x140021e8e
mov ecx, 0x10
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonLinkCtrl::XElementButtonLinkCtrl]
mov rdi, rax
mov qword [rsp + 0x38], rax
test rax, rax
je 0x140021e0e
mov word [rax], bx
mov qword [rax + 8], rbx
lea rcx, [rbp + 0x80]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jle 0x140021e11
inc eax
movsxd rcx, eax
call qword [sym.imp.mfc140u.dll_operator_1]
mov qword [rdi + 8], rax
lea rdx, [rbp + 0x80]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x140021e11
mov rdi, rbx
mov edx, 3
mov rcx, rdi
call fcn.14002a380
mov qword [rsp + 0x28], rax
test rax, rax
jne 0x140021e31
lea rdx, str.Unable_to_open_destination_file.
jmp 0x140021e8e
lea rdx, [rbp + 0x410]
mov ecx, 0x12c
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
lea r9, [rbp + 0x540]
xor r8d, r8d
lea rdx, [0x140031f28]
lea rcx, [rbp + 0x410]
call qword [sym.imp.KERNEL32.dll_GetTempFileNameA]
lea rcx, [rbp + 0x540]
call fcn.14002a700
mov qword [rsp + 0x38], rax
mov edx, 0xb
mov rcx, rax
call fcn.14002a380
mov r15, rax
test rax, rax
jne 0x140021eb5
lea rdx, str.Unable_to_merge_file.
mov r9d, 0x40
lea r8, str.Spell_Utility
mov rcx, rsi
call qword [sym.imp.mfc140u.dll_CMFCRibbonStatusBar::LoadState]
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x318]
jmp 0x14002213b
mov dword [rsi + 0x1034], 1
mov dword [rsi + 0x1a8], ebx
inc dword [0x140041c48]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x147
mov rcx, qword [rsi + 0xf88]
call qword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x140021f2e
sub eax, 1
je 0x140021f1c
sub eax, 1
je 0x140021f0a
cmp eax, 1
jne 0x14002213b
lea edx, [rax + 3]
mov r8, r15
mov rcx, r13
call fcn.1400248b0
jmp 0x140021f3b
mov edx, 2
mov r8, r15
mov rcx, r13
call fcn.1400248b0
jmp 0x140021f3b
mov edx, 1
mov r8, r15
mov rcx, r13
call fcn.1400248b0
jmp 0x140021f3b
mov r8, r15
lea rcx, [rsp + 0x50]
call fcn.140023c40
movzx r12d, ax
dec dword [0x140041c48]
test ax, ax
jne 0x140021f7a
mov edx, 0x3fc
mov rcx, rsi
call qword [sym.imp.mfc140u.dll_CSmartDockingStandaloneGuide::Highlight]
lea r8, [rsp + 0x30]
mov rdx, qword [rsp + 0x28]
mov rcx, r15
cmp eax, 1
jne 0x140021f71
call fcn.140016f30
jmp 0x140021f76
call fcn.140014790
movzx r12d, ax
mov ecx, 0x64
mov r8d, ecx
lea rdx, [0x140031f60]
call fcn.140022360
mov rcx, r15
call fcn.14002a1e0
mov rcx, qword [rsp + 0x28]
call fcn.14002a1e0
mov rcx, r13
call fcn.14002a1e0
mov r15, qword [rsp + 0x38]
mov rcx, qword [r15 + 8]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov rcx, r15
call fcn.14002a780
mov rcx, r14
call fcn.14002a780
mov rcx, rdi
call fcn.14002a780
movzx edx, r12w
mov rcx, qword [rsi + 0x40]
call fcn.140020fa0
mov dword [rsi + 0x1034], ebx
xor edx, edx
lea rcx, [rsi + 0x720]
call qword [sym.imp.mfc140u.dll_CMFCTasksPaneToolBarCmdUI::Enable]
xor edx, edx
lea rcx, [rsi + 0x808]
call qword [sym.imp.mfc140u.dll_CMFCTasksPaneToolBarCmdUI::Enable]
xor edx, edx
lea rcx, [rsi + 0x1b0]
call qword [sym.imp.mfc140u.dll_CMFCTasksPaneToolBarCmdUI::Enable]
xor edx, edx
lea rcx, [rsi + 0x550]
call qword [sym.imp.mfc140u.dll_CMFCTasksPaneToolBarCmdUI::Enable]
mov edx, 1
lea rcx, [rsi + 0xba8]
call qword [sym.imp.mfc140u.dll_CMFCTasksPaneToolBarCmdUI::Enable]
mov edx, 1
lea rcx, [rsi + 0xac0]
call qword [sym.imp.mfc140u.dll_CMFCTasksPaneToolBarCmdUI::Enable]
mov edx, 1
lea rcx, [rsi + 0xe60]
call qword [sym.imp.mfc140u.dll_CMFCTasksPaneToolBarCmdUI::Enable]
mov edx, 1
lea rcx, [rsi + 0xd78]
call qword [sym.imp.mfc140u.dll_CMFCTasksPaneToolBarCmdUI::Enable]
mov edx, 1
lea rcx, [rsi + 0x468]
call qword [sym.imp.mfc140u.dll_CMFCTasksPaneToolBarCmdUI::Enable]
mov edx, 1
lea rcx, [rsi + 0x638]
call qword [sym.imp.mfc140u.dll_CMFCTasksPaneToolBarCmdUI::Enable]
mov edx, 1
lea rcx, [rsi + 0x9d8]
call qword [sym.imp.mfc140u.dll_CMFCTasksPaneToolBarCmdUI::Enable]
mov edx, 1
lea rcx, [rsi + 0x8f0]
call qword [sym.imp.mfc140u.dll_CMFCTasksPaneToolBarCmdUI::Enable]
mov edx, 1
lea rcx, [rsi + 0xf48]
call qword [sym.imp.mfc140u.dll_CMFCTasksPaneToolBarCmdUI::Enable]
mov edx, 1
lea rcx, [rsi + 0xc90]
call qword [sym.imp.mfc140u.dll_CMFCTasksPaneToolBarCmdUI::Enable]
mov edx, 0x3fc
mov rcx, rsi
call qword [sym.imp.mfc140u.dll_CMFCRibbonGallery::GetCompactSize]
mov rcx, rax
mov edx, 1
call qword [sym.imp.mfc140u.dll_CMFCTasksPaneToolBarCmdUI::Enable]
mov edx, 0x3fb
mov rcx, rsi
call qword [sym.imp.mfc140u.dll_CMFCRibbonGallery::GetCompactSize]
mov rcx, rax
mov edx, 1
call qword [sym.imp.mfc140u.dll_CMFCTasksPaneToolBarCmdUI::Enable]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x402
mov rcx, qword [rsi + 0x3c0]
call qword [sym.imp.USER32.dll_SendMessageW]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x402
mov rcx, qword [rsi + 0x2d8]
call qword [sym.imp.USER32.dll_SendMessageW]
nop
lea rcx, [rsp + 0x20]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
mov rcx, qword [rbp + 0x670]
xor rcx, rsp
call fcn.14002c160
lea r11, [rsp + 0x780]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret