Function at 0x140066560
Capabilities:
Get common file path

Disassembly:
push rbp
push rbx
lea rbp, [rsp - 0x2468]
mov eax, 0x2568
call fcn.1400035e0
sub rsp, rax
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rbx, rcx
lea rdx, [rcx + 8]
lea rcx, [rbp + 0x2488]
call fcn.140062d90
nop
lea rcx, [rbp + 0x2488]
call fcn.140063530
test eax, eax
je 0x1400665d8
lea rdx, str.SPI_ERROR:_No_filename_given__cant_open_project_file
lea rcx, [rsp + 0x60]
call qword [sym.imp.MSVCR110.dll_sprintf]
xor eax, eax
lea rdx, [0x1401fd2b0]
movzx ecx, byte [rsp + rax + 0x60]
mov byte [rax + rdx], cl
lea rax, [rax + 1]
test cl, cl
jne 0x1400665c0
or ebx, 0xffffffff
jmp 0x140066808
lea rdx, [rbp + 0x2488]
lea rcx, [rbp + 0x2490]
call fcn.140062d90
nop
mov edx, 0x1f4
lea rcx, [rbp + 0x2490]
call fcn.140063420
cmp byte [rax], 0
je 0x140066612
cmp byte [rax], 0x5c
jne 0x14006660a
mov byte [rax], 0x2f
inc rax
cmp byte [rax], 0
jne 0x140066602
lea rcx, [rbp + 0x2490]
call fcn.140062fc0
lea rdx, str.cdssetup_projmgr_cds.cpm
lea rcx, [rbp + 0x2490]
call fcn.1400633d0
test eax, eax
jle 0x140066678
lea rcx, [rbp + 0x2488]
call fcn.140063110
mov r8, rax
lea rdx, str.SPI_ERROR:_Not_allow_to_open_the_installed_project_file___s_
lea rcx, [rsp + 0x60]
call qword [sym.imp.MSVCR110.dll_sprintf]
xor eax, eax
lea rdx, [0x1401fd2b0]
nop
movzx ecx, byte [rsp + rax + 0x60]
mov byte [rax + rdx], cl
lea rax, [rax + 1]
test cl, cl
jne 0x140066660
or ebx, 0xffffffff
jmp 0x1400667fb
lea rcx, [rbp + 0x2480]
call fcn.140062d40
nop
lea rcx, [rsp + 0x28]
call fcn.140067ea0
nop
lea rcx, [rbp + 0x2488]
call fcn.140063110
mov rdx, rax
lea r9, [rbp + 0x2480]
mov r8d, 0x40
lea rcx, [rsp + 0x28]
call fcn.140063860
test eax, eax
jne 0x140066744
lea rcx, [rbp + 0x2498]
call fcn.140062ed0
nop
mov edx, dword [rbp + 0x2480]
lea rcx, [rbp + 0x2498]
call fcn.140064f20
lea rcx, [rbp + 0x2498]
call fcn.140063110
mov rbx, rax
lea rcx, [rbp + 0x2488]
call fcn.140063110
mov r8, rax
mov r9, rbx
lea rdx, str.SPI_ERROR:_Failed_to_open_project_file___s_.__s
lea rcx, [rsp + 0x60]
call qword [sym.imp.MSVCR110.dll_sprintf]
xor eax, eax
lea rdx, [0x1401fd2b0]
nop dword [rax]
movzx ecx, byte [rsp + rax + 0x60]
mov byte [rax + rdx], cl
lea rax, [rax + 1]
test cl, cl
jne 0x140066720
lea rcx, [rbp + 0x2498]
call fcn.140063030
or ebx, 0xffffffff
jmp 0x1400667e3
xor eax, eax
mov qword [rbp + 0x460], rax
xor edx, edx
mov r8d, 0x1ff8
lea rcx, [rbp + 0x468]
call sub.MSVCR110.dll_memset
lea rdx, [rbp + 0x60]
mov ecx, Ordinal_1026
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x1400667cb
lea rcx, [rbp + 0x2488]
call fcn.140063110
mov rcx, rax
lea r9, [rbp + 0x460]
lea r8, [rbp + 0x60]
mov edx, Ordinal_1026
call qword [sym.imp.KERNEL32.dll_GetFullPathNameA]
test eax, eax
je 0x1400667cb
lea rdx, [rbp + 0x60]
lea rcx, [rbp + 0x2498]
call fcn.140062e90
nop
lea rcx, [rbx + 0x10]
lea rdx, [rbp + 0x2498]
call fcn.140063060
nop
lea rcx, [rbp + 0x2498]
call fcn.140063030
mov r9d, 3
lea r8, [rsp + 0x28]
mov rdx, rbx
mov rcx, qword [rbx]
call fcn.140069df0
mov ebx, eax
lea rcx, [rsp + 0x28]
call fcn.140067f00
nop
lea rcx, [rbp + 0x2480]
call fcn.140062fc0
nop
lea rcx, [rbp + 0x2490]
call fcn.140063030
nop
lea rcx, [rbp + 0x2488]
call fcn.140063030
mov eax, ebx
add rsp, 0x2568
pop rbx
pop rbp
ret