Function at 0x140012910
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
lea rbp, [rax - 0x288]
sub rsp, 0x370
mov qword [rbp - 0x78], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x14007d008]
xor rax, rsp
mov qword [rbp + 0x260], rax
mov rbx, rcx
call fcn.140013420
xor r15d, r15d
mov esi, r15d
cmp dword [0x14007d050], r15d
je 0x140012985
lea rdi, [0x14007d050]
nop dword [rax]
mov edx, esi
mov rcx, rbx
call fcn.1400136b0
inc esi
lea rdi, [rdi + 0xc]
cmp dword [rdi], r15d
jne 0x140012970
lea rdx, [rbp - 0x70]
call fcn.140003750
nop
mov edx, 0x104
lea rcx, [rbp - 0x70]
call qword [sym.imp.mfc140u.dll_Ordinal_4946]
mov rcx, rax
lea rdx, str.Settings
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
mov r9d, 1
lea r8, str.ShowToolbarText
mov rdx, qword [rbp - 0x70]
call fcn.14001a850
mov dword [rbx + 8], eax
xor r9d, r9d
lea r8, str.IncludeNested
mov rdx, qword [rbp - 0x70]
call fcn.14001a850
mov dword [rbx + 0x10], eax
mov r9d, 1
lea r8, str.WriteLog
mov rdx, qword [rbp - 0x70]
call fcn.14001a850
mov dword [rbx + 0xc], eax
lea r9, str.LogFileName
mov r8, qword [rbp - 0x70]
lea rcx, [rsp + 0x30]
call fcn.14001a720
nop
mov rdx, rax
lea rcx, [rbx + 0x30]
call qword [sym.imp.mfc140u.dll_Ordinal_1501]
nop
lea rcx, [rsp + 0x30]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
mov rax, qword [rbx + 0x30]
cmp dword [rax - 0x10], 0
jne 0x140012a7d
lea rax, [rbp + 0x50]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x8005
xor ecx, ecx
call qword [sym.imp.SHFOLDER.dll_SHGetFolderPathW]
lea rcx, [rbx + 0x30]
test eax, eax
js 0x140012a70
lea rdx, [rbp + 0x50]
call qword [sym.imp.mfc140u.dll_CMFCControlRendererInfo::CMFCControlRendererInfo]
lea rdx, [0x1400551e0]
lea rcx, [rbx + 0x30]
call qword [sym.imp.mfc140u.dll_COleCurrency::operator_]
jmp 0x140012a7d
lea rdx, str.log.txt
call qword [sym.imp.mfc140u.dll_CMFCControlRendererInfo::CMFCControlRendererInfo]
lea r9, str.ExportFolderName
mov r8, qword [rbp - 0x70]
lea rcx, [rsp + 0x30]
call fcn.14001a720
nop
lea rcx, [rbx + 0x28]
mov rdx, rax
call qword [sym.imp.mfc140u.dll_Ordinal_1501]
nop
lea rcx, [rsp + 0x30]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
lea r9, str.AddFolderName
mov r8, qword [rbp - 0x70]
lea rcx, [rsp + 0x30]
call fcn.14001a720
nop
lea rcx, [rbx + 0x20]
mov rdx, rax
call qword [sym.imp.mfc140u.dll_Ordinal_1501]
nop
lea rcx, [rsp + 0x30]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
lea r9, str.ProfileName
mov r8, qword [rbp - 0x70]
lea rcx, [rsp + 0x30]
call fcn.14001a720
nop
lea rcx, [rbx + 0x38]
mov rdx, rax
call qword [sym.imp.mfc140u.dll_Ordinal_1501]
nop
lea rcx, [rsp + 0x30]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
mov r9d, 1
lea r8, str.ShowFullPath
mov rdx, qword [rbp - 0x70]
call fcn.14001a850
mov dword [rbx + 0x14], eax
mov r9d, 1
lea r8, str.ViewByDWG
mov rdx, qword [rbp - 0x70]
call fcn.14001a850
mov dword [rbx + 0x18], eax
xor r9d, r9d
lea r8, str.UpdateDwgFormat
mov rdx, qword [rbp - 0x70]
call fcn.14001a850
mov dword [rbx + 0x1c], eax
or r9d, 0xffffffff
lea r8, str.AlertDialogs
mov rdx, qword [rbp - 0x70]
call fcn.14001a850
mov dword [rbx + 0x40], eax
mov r9d, 0x64
lea r8, str.SortBy
mov rdx, qword [rbp - 0x70]
call fcn.14001a850
mov dword [rbx + 0x70], eax
mov r9d, 1
lea r8, str.SortOrder
mov rdx, qword [rbp - 0x70]
call fcn.14001a850
mov dword [rbx + 0x74], eax
lea r9, str.ColumnWidth
mov r8, qword [rbp - 0x70]
lea rcx, [rbp - 0x30]
call fcn.14001a720
nop
xor eax, eax
mov qword [rbp - 0x68], rax
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], rax
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], rax
lea rcx, [rbp - 0x68]
call qword [sym.imp.mfc140u.dll_CSmartDockingStandaloneGuideWnd::CSmartDockingStandaloneGuideWnd]
nop
lea rdx, [0x140053e64]
lea rcx, [rsp + 0x60]
call qword [sym.imp.acdb21.dll_public:_void___cdecl_AdXREFString::constructor_wchar_t_const____ptr64____ptr64]
nop
mov rdx, qword [rbp - 0x30]
lea rcx, [rsp + 0x38]
call qword [sym.imp.acdb21.dll_public:_void___cdecl_AdXREFString::constructor_wchar_t_const____ptr64____ptr64]
nop
lea r8, [rbp - 0x68]
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x38]
call fcn.140019b30
nop
lea rcx, [rsp + 0x38]
call qword [sym.imp.acdb21.dll_public_virtual:_void___cdecl_AdXREFString::destructor_void____ptr64]
nop
lea rcx, [rsp + 0x60]
call qword [sym.imp.acdb21.dll_public_virtual:_void___cdecl_AdXREFString::destructor_void____ptr64]
xor eax, eax
mov qword [rbp + 0x28], rax
mov qword [rbp + 0x30], rax
mov qword [rbp + 0x38], rax
mov qword [rbp + 0x40], rax
mov qword [rbp + 0x48], rax
lea rcx, [rbp + 0x28]
call qword [sym.imp.mfc140u.dll_CView::CView]
nop
mov esi, r15d
mov rcx, qword [rbp - 0x58]
test rcx, rcx
jle 0x140012d09
mov rdi, r15
test rdi, rdi
js 0x140012d02
cmp rdi, rcx
jge 0x140012d02
mov rax, qword [rbp - 0x60]
lea rcx, [rax + rdi*8]
inc esi
inc rdi
mov rcx, qword [rcx]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__wtoi]
mov r14d, eax
movsxd rcx, esi
mov rax, qword [rbp - 0x58]
cmp rcx, rax
jge 0x140012d09
test rdi, rdi
js 0x140012cfb
cmp rdi, rax
jge 0x140012cfb
mov rcx, qword [rbp - 0x60]
mov rcx, qword [rcx + rdi*8]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__wtoi]
mov r9d, eax
mov edx, r15d
mov rcx, r15
cmp qword [rbx + 0x58], rcx
jle 0x140012cde
test rcx, rcx
js 0x140012cf4
cmp rcx, qword [rbx + 0x58]
jge 0x140012cf4
mov rax, qword [rbx + 0x50]
mov r8, qword [rax + rcx*8]
cmp dword [r8 + 8], r14d
je 0x140012cda
inc edx
inc rcx
movsxd rax, edx
cmp rax, qword [rbx + 0x58]
jl 0x140012cb1
jmp 0x140012cde
mov dword [r8 + 0x10], r9d
inc esi
inc rdi
movsxd rax, esi
mov rcx, qword [rbp - 0x58]
cmp rax, rcx
jge 0x140012d09
jmp 0x140012c53
call qword [sym.imp.mfc140u.dll_AfxRegDeleteKey]
int3
call qword [sym.imp.mfc140u.dll_AfxRegDeleteKey]
int3
call qword [sym.imp.mfc140u.dll_AfxRegDeleteKey]
int3
or r8, 0xffffffffffffffff
xor edx, edx
lea rcx, [rbp - 0x68]
call qword [sym.imp.mfc140u.dll_COleClientItem::SetIconicMetafile]
lea r9, str.ColumnOrder
mov r8, qword [rbp - 0x70]
lea rcx, [rbp - 0x38]
call fcn.14001a720
nop
lea rdx, [0x140053e64]
lea rcx, [rsp + 0x38]
call qword [sym.imp.acdb21.dll_public:_void___cdecl_AdXREFString::constructor_wchar_t_const____ptr64____ptr64]
nop
mov rdx, qword [rbp - 0x38]
lea rcx, [rsp + 0x60]
call qword [sym.imp.acdb21.dll_public:_void___cdecl_AdXREFString::constructor_wchar_t_const____ptr64____ptr64]
nop
lea r8, [rbp - 0x68]
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x60]
call fcn.140019b30
nop
lea rcx, [rsp + 0x60]
call qword [sym.imp.acdb21.dll_public_virtual:_void___cdecl_AdXREFString::destructor_void____ptr64]
nop
lea rcx, [rsp + 0x38]
call qword [sym.imp.acdb21.dll_public_virtual:_void___cdecl_AdXREFString::destructor_void____ptr64]
xor eax, eax
mov qword [rbp], rax
mov qword [rbp + 8], rax
mov qword [rbp + 0x10], rax
mov qword [rbp + 0x18], rax
mov qword [rbp + 0x20], rax
lea rcx, [rbp]
call qword [sym.imp.mfc140u.dll_CView::CView]
nop
mov esi, r15d
mov rcx, qword [rbp - 0x58]
test rcx, rcx
jle 0x140012df4
mov rdi, r15
nop dword [rax]
test rdi, rdi
js 0x140012ded
cmp rdi, rcx
jge 0x140012ded
mov rax, qword [rbp - 0x60]
mov rcx, qword [rax + rdi*8]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__wtoi]
movzx r8d, ax
mov rdx, qword [rbp + 0x10]
lea rcx, [rbp]
call qword [sym.imp.mfc140u.dll_CRichEditView::SameAsSelected]
inc esi
inc rdi
movsxd rax, esi
mov rcx, qword [rbp - 0x58]
cmp rax, rcx
jl 0x140012db0
jmp 0x140012df4
call qword [sym.imp.mfc140u.dll_AfxRegDeleteKey]
int3
or r8, 0xffffffffffffffff
xor edx, edx
lea rcx, [rbp - 0x68]
call qword [sym.imp.mfc140u.dll_COleClientItem::SetIconicMetafile]
lea rdx, [rbp]
mov rcx, rbx
call fcn.1400134b0
lea r9, str.HiddenColumns
mov r8, qword [rbp - 0x70]
lea rcx, [rbp - 0x40]
call fcn.14001a720
nop
lea rdx, [0x140053e64]
lea rcx, [rsp + 0x38]
call qword [sym.imp.acdb21.dll_public:_void___cdecl_AdXREFString::constructor_wchar_t_const____ptr64____ptr64]
nop
mov rdx, qword [rbp - 0x40]
lea rcx, [rsp + 0x60]
call qword [sym.imp.acdb21.dll_public:_void___cdecl_AdXREFString::constructor_wchar_t_const____ptr64____ptr64]
nop
lea r8, [rbp - 0x68]
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x60]
call fcn.140019b30
nop
lea rcx, [rsp + 0x60]
call qword [sym.imp.acdb21.dll_public_virtual:_void___cdecl_AdXREFString::destructor_void____ptr64]
nop
lea rcx, [rsp + 0x38]
call qword [sym.imp.acdb21.dll_public_virtual:_void___cdecl_AdXREFString::destructor_void____ptr64]
xor eax, eax
mov qword [rbp - 0x28], rax
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], rax
mov qword [rbp - 0x10], rax
mov qword [rbp - 8], rax
lea rcx, [rbp - 0x28]
call qword [sym.imp.mfc140u.dll_CView::CView]
nop
mov esi, r15d
mov rcx, qword [rbp - 0x58]
test rcx, rcx
jle 0x140012ee7
mov rdi, r15
test rdi, rdi
js 0x140012ee0
cmp rdi, rcx
jge 0x140012ee0
mov rax, qword [rbp - 0x60]
mov rcx, qword [rax + rdi*8]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__wtoi]
movzx r8d, ax
mov rdx, qword [rbp - 0x18]
lea rcx, [rbp - 0x28]
call qword [sym.imp.mfc140u.dll_CRichEditView::SameAsSelected]
inc esi
inc rdi
movsxd rax, esi
mov rcx, qword [rbp - 0x58]
cmp rax, rcx
jl 0x140012ea3
jmp 0x140012ee7
call qword [sym.imp.mfc140u.dll_AfxRegDeleteKey]
int3
or r8, 0xffffffffffffffff
xor edx, edx
lea rcx, [rbp - 0x68]
call qword [sym.imp.mfc140u.dll_COleClientItem::SetIconicMetafile]
mov edi, r15d
mov r11, qword [rbp - 0x18]
test r11, r11
jle 0x140012f77
mov r9, r15
test r9, r9
js 0x140012f70
cmp r9, r11
jge 0x140012f70
mov rax, qword [rbp - 0x20]
movzx r10d, word [rax + r9*2]
mov edx, r15d
mov rcx, r15
cmp qword [rbx + 0x58], rcx
jle 0x140012f5a
test rcx, rcx
js 0x140012f69
cmp rcx, qword [rbx + 0x58]
jge 0x140012f69
mov rax, qword [rbx + 0x50]
mov r8, qword [rax + rcx*8]
movzx eax, r10w
cmp dword [r8 + 8], eax
je 0x140012f52
inc edx
inc rcx
movsxd rax, edx
cmp rax, qword [rbx + 0x58]
jl 0x140012f25
jmp 0x140012f5a
mov dword [r8 + 0xc], r15d
mov r11, qword [rbp - 0x18]
inc edi
inc r9
movsxd rax, edi
cmp rax, r11
jge 0x140012f77
jmp 0x140012f06
call qword [sym.imp.mfc140u.dll_AfxRegDeleteKey]
int3
call qword [sym.imp.mfc140u.dll_AfxRegDeleteKey]
nop
lea rcx, [rbp - 0x28]
call qword [sym.imp.mfc140u.dll_CTabView::CTabView]
nop
lea rcx, [rbp - 0x40]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
nop
lea rcx, [rbp]
call qword [sym.imp.mfc140u.dll_CTabView::CTabView]
nop
lea rcx, [rbp - 0x38]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
nop
lea rcx, [rbp + 0x28]
call qword [sym.imp.mfc140u.dll_CTabView::CTabView]
nop
lea rcx, [rbp - 0x68]
call qword [sym.imp.mfc140u.dll_CSemaphore::CSemaphore]
nop
lea rcx, [rbp - 0x30]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
nop
lea rcx, [rbp - 0x70]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
mov eax, 1
mov rcx, qword [rbp + 0x260]
xor rcx, rsp
call fcn.1400489c0
lea r11, [rsp + 0x370]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret