Function at 0x14002c180
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
lea rbp, [rax - 0x148]
sub rsp, 0x230
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov rax, qword [0x140079008]
xor rax, rsp
mov qword [rbp + 0x120], rax
xor ecx, ecx
mov qword [rbp + 0xf0], rcx
mov qword [rbp + 0xf8], rcx
mov qword [rbp + 0x100], rcx
mov qword [rbp + 0x108], rcx
mov qword [rbp + 0x110], rcx
mov dword [rbp + 0xf0], 0x2c
mov dword [rbp + 0xf8], 5
movups xmm0, xmmword [rbp + 0xf0]
movups xmmword [0x14007d7c4], xmm0
movups xmm1, xmmword [rbp + 0x100]
movups xmmword [0x14007d7d4], xmm1
movsd xmm0, qword [rbp + 0x110]
movsd qword [0x14007d7e4], xmm0
mov dword [0x14007d7ec], ecx
xor edi, edi
cmp qword [0x14007f118], rcx
jne 0x14002c255
lea ecx, [rdi + 8]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonLinkCtrl::XElementButtonLinkCtrl]
test rax, rax
je 0x14002c24b
mov rcx, rax
call qword [sym.imp.mfc140u.dll_Ordinal_296]
jmp 0x14002c24e
mov rax, rdi
mov qword [0x14007f118], rax
cmp qword [0x14007f110], rdi
jne 0x14002c283
mov ecx, 8
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonLinkCtrl::XElementButtonLinkCtrl]
test rax, rax
je 0x14002c279
mov rcx, rax
call qword [sym.imp.mfc140u.dll_Ordinal_296]
jmp 0x14002c27c
mov rax, rdi
mov qword [0x14007f110], rax
lea rdx, str.CorelDefaultID_10980CorelDefaultID_10981
lea rcx, [rsp + 0x30]
call qword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__5]
nop
mov rdx, rax
mov rcx, qword [0x14007f110]
call qword [sym.imp.mfc140u.dll_Ordinal_1501]
nop
lea rcx, [rsp + 0x30]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
lea rdx, [0x140053b40]
lea rcx, [rsp + 0x30]
call qword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__5]
nop
mov rdx, rax
mov rcx, qword [0x14007f118]
call qword [sym.imp.mfc140u.dll_Ordinal_1501]
nop
lea rcx, [rsp + 0x30]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
mov dword [0x14007dc4c], edi
mov dword [0x14007da24], 2
lea rbx, [0x14007ffd8]
mov qword [rsp + 0x20], rbx
xor r9d, r9d
xor r8d, r8d
mov edx, 0x8005
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea rsi, [0x140000000]
test eax, eax
je 0x14002c339
mov rcx, rdi
nop
movzx eax, word [rcx + rsi + 0x593c4]
mov word [rcx + rsi + 0x7ffd8], ax
lea rcx, [rcx + 2]
test ax, ax
jne 0x14002c320
lea r15, [0x14007de00]
mov qword [rsp + 0x20], r15
xor r9d, r9d
xor r8d, r8d
mov edx, 0x8005
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x14002c379
mov rcx, rdi
nop
movzx eax, word [rcx + rsi + 0x593c4]
mov word [rcx + rsi + 0x7de00], ax
lea rcx, [rcx + 2]
test ax, ax
jne 0x14002c360
lea r14, [0x14007f768]
mov qword [rsp + 0x20], r14
xor r9d, r9d
xor r8d, r8d
mov edx, 0x8005
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x14002c3b9
mov rcx, rdi
nop
movzx eax, word [rcx + rsi + 0x593c4]
mov word [rcx + rsi + 0x7f768], ax
lea rcx, [rcx + 2]
test ax, ax
jne 0x14002c3a0
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcslwr]
sub rbx, 2
lea rbx, [rbx + 2]
cmp word [rbx], 0
jne 0x14002c3c6
mov eax, dword [0x140053b3c]
mov dword [rbx], eax
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcslwr]
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcslwr]
mov rcx, rdi
nop dword [rax]
movzx eax, word [rcx + rsi + 0x593b8]
mov word [rcx + rsi + 0x7e828], ax
lea rcx, [rcx + 2]
test ax, ax
jne 0x14002c3f0
mov rcx, rdi
nop dword [rax]
movzx eax, word [rcx + rsi + 0x593b0]
mov word [rcx + rsi + 0x7ea30], ax
lea rcx, [rcx + 2]
test ax, ax
jne 0x14002c410
mov dword [0x14007ec40], 0x710
mov dword [0x14007ee60], edi
mov dword [0x14007ee80], 0x24
mov dword [0x14007ee84], 0x24
mov dword [0x14007ee78], 0x64
mov dword [0x14007ee7c], 0x64
mov dword [0x14007ee74], 1
mov dword [0x14007ee64], 1
mov dword [0x14007ee6c], 1
mov dword [0x14007ee88], 1
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetDC]
mov rbx, rax
mov edx, 0x58
mov rcx, rax
call qword [sym.imp.GDI32.dll_GetDeviceCaps]
mov dword [0x14007ee8c], eax
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.USER32.dll_ReleaseDC]
mov eax, 0x76
mov word [0x14007da28], ax
mov dword [0x14007dc34], 1
mov word [0x14007dc40], ax
mov dword [0x14007dc3c], 1
lea rcx, [rsp + 0x30]
call qword [sym.imp.mfc140u.dll_Ordinal_296]
nop
mov edx, 0x702c
lea rcx, [rsp + 0x30]
call qword [sym.imp.mfc140u.dll_CRuntimeClass::IsDerivedFrom]
test eax, eax
jne 0x14002c531
lea edx, [rax + 0x20]
lea rcx, [rsp + 0x30]
call qword [sym.imp.mfc140u.dll_CWnd::get_accHelp]
mov r9d, 0x702c
lea r8, str.ResId___ld
mov edx, 0x1f
mov rcx, rax
call fcn.140017490
or edx, 0xffffffff
lea rcx, [rsp + 0x30]
call qword [sym.imp.mfc140u.dll_CDialogImpl::ProcessMouseClick]
nop
mov rax, qword [rsp + 0x30]
lea rdx, [0x14007da2a]
sub rdx, rax
movzx ecx, word [rax]
mov word [rdx + rax], cx
lea rax, [rax + 2]
test cx, cx
jne 0x14002c540
lea rcx, [rsp + 0x30]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
mov dword [0x14007dc48], edi
mov dword [0x14007eea8], 1
mov dword [0x14007eeac], 5
mov dword [0x14007eec4], 1
mov qword [0x14007eed0], 1
mov dword [0x14007eec8], 1
mov dword [0x14007eecc], 1
mov qword [0x14007eed8], 1
mov dword [0x14007eeb8], 1
mov dword [0x14007eebc], 1
mov dword [0x14007eec0], 1
mov qword [0x14007eee0], rdi
mov dword [0x14007f0f4], 1
mov dword [0x14007f100], 1
mov dword [0x14007f108], 1
mov dword [0x14007f104], 1
lea rdx, [0x140052e08]
lea rcx, [0x14007eee8]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
mov dword [0x14007f0fc], 0xffffff
mov dword [0x14007f0f8], 0xffffff
mov dword [0x14007f120], edi
mov dword [0x14007ee90], 0x12c
mov dword [0x14007ee94], 0x12c
mov dword [0x14007f758], 0x10000c
mov r9, qword [0x14007d5d0]
xor edx, edx
mov r8d, 0x10000c
lea rcx, [rsp + 0x40]
call qword [sym.imp.mfc140u.dll_CPaneDialog::CPaneDialog]
nop
lea rcx, [rsp + 0x40]
call qword [sym.imp.mfc140u.dll_Ordinal_5199]
mov rcx, qword [rbp + 0x70]
mov rax, qword [rcx + 0x10]
mov qword [0x14007f540], rax
mov rax, qword [rcx + 0x18]
mov qword [0x14007f548], rax
lea rdx, [0x140052e08]
lea rcx, [0x14007f130]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rdx, [0x140052e08]
lea rcx, [0x14007f338]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
mov rax, qword [rbp + 0x70]
mov rcx, qword [rax + 0x10]
test rcx, rcx
je 0x14002c6ef
call qword [sym.imp.KERNEL32.dll_GlobalLock]
test rax, rax
je 0x14002c6ef
lea rdx, [0x14007f550]
sub rdx, rax
nop dword [rax]
movzx ecx, word [rax]
mov word [rdx + rax], cx
lea rax, [rax + 2]
test cx, cx
jne 0x14002c6d0
mov rcx, qword [rbp + 0x70]
mov rcx, qword [rcx + 0x10]
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
nop
lea rax, vtable.CCommonDialog.0
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x40]
call qword [sym.imp.mfc140u.dll_CD2DResource::CD2DResource]
mov dword [0x14007f970], 0x600
mov qword [0x14007fd84], rdi
mov dword [0x14007fd90], edi
mov dword [0x14007fd94], 2
mov dword [0x14007eeb0], 0x14
lea rcx, [rsp + 0x30]
call qword [sym.imp.mfc140u.dll_Ordinal_296]
nop
mov edx, 0x704b
lea rcx, [rsp + 0x30]
call qword [sym.imp.mfc140u.dll_CRuntimeClass::IsDerivedFrom]
test eax, eax
jne 0x14002c788
lea edx, [rax + 0x20]
lea rcx, [rsp + 0x30]
call qword [sym.imp.mfc140u.dll_CWnd::get_accHelp]
mov r9d, 0x704b
lea r8, str.ResId___ld
mov edx, 0x1f
mov rcx, rax
call fcn.140017490
or edx, 0xffffffff
lea rcx, [rsp + 0x30]
call qword [sym.imp.mfc140u.dll_CDialogImpl::ProcessMouseClick]
nop
mov rax, qword [rsp + 0x30]
lea rdx, [0x14007fda0]
sub rdx, rax
nop word [rax + rax]
movzx ecx, word [rax]
mov word [rdx + rax], cx
lea rax, [rax + 2]
test cx, cx
jne 0x14002c7a0
lea rcx, [rsp + 0x30]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
mov rcx, rdi
nop
movzx eax, word [rcx + rsi + 0x593a8]
mov word [rcx + rsi + 0x7f974], ax
lea rcx, [rcx + 2]
test ax, ax
jne 0x14002c7c0
mov qword [0x14007ffa8], rdi
mov qword [0x14007ffb0], rdi
mov rax, qword [0x14007ffb8]
test rax, rax
jne 0x14002c816
lea ecx, [rax + 8]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonLinkCtrl::XElementButtonLinkCtrl]
test rax, rax
je 0x14002c80c
mov rcx, rax
call qword [sym.imp.mfc140u.dll_Ordinal_296]
jmp 0x14002c80f
mov rax, rdi
mov qword [0x14007ffb8], rax
mov rcx, rax
call qword [sym.imp.mfc140u.dll_CMFCToolBar::DrawButton]
cmp qword [0x14007ffc0], 0
jne 0x14002c855
mov ecx, 8
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonLinkCtrl::XElementButtonLinkCtrl]
mov qword [rsp + 0x30], rax
test rax, rax
je 0x14002c849
mov rcx, rax
call qword [sym.imp.CrlCtl.dll_class_ATL::CStringT_wchar_t__class_StrTraitMFC_DLL_wchar_t__class_ATL::ChTraitsCRT_wchar_t______cdecl_Framework::GetCursor_void_]
jmp 0x14002c84c
mov rax, rdi
mov qword [0x14007ffc0], rax
jmp 0x14002c87d
lea rcx, [rsp + 0x30]
call qword [sym.imp.CrlCtl.dll_class_ATL::CStringT_wchar_t__class_StrTraitMFC_DLL_wchar_t__class_ATL::ChTraitsCRT_wchar_t______cdecl_Framework::GetCursor_void_]
nop
mov rdx, rax
mov rcx, qword [0x14007ffc0]
call qword [sym.imp.mfc140u.dll_Ordinal_1501]
nop
lea rcx, [rsp + 0x30]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
mov qword [0x14007d7f8], rdi
mov qword [0x14007d800], rdi
xorps xmm0, xmm0
movdqa xmmword [0x14007da10], xmm0
mov dword [0x14007da20], edi
mov qword [0x14007f128], rdi
mov dword [0x14007ee5c], edi
mov qword [0x14007ee98], rdi
mov qword [0x14007eea0], rdi
lea rax, [0x14007dc50]
lea rcx, [0x14007dde0]
nop word [rax + rax]
mov qword [rax], rdi
add rax, 8
cmp rax, rcx
jl 0x14002c8d0
mov qword [0x14007dde0], rdi
mov dword [0x14007dde8], edi
mov dword [rsp + 0x20], 0xffffffff
or r9d, 0xffffffff
or r8d, r9d
or edx, r9d
lea rcx, [0x14007ddec]
call qword [sym.imp.USER32.dll_SetRect]
mov qword [0x14007f760], rdi
mov dword [0x140080a20], 0x30d40
mov rcx, qword [rbp + 0x120]
xor rcx, rsp
call fcn.140047b30
lea r11, [rsp + 0x230]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret