Function at 0x140014470
Capabilities:
Get common file path

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x180
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rsp + 0x1d0], rbx
mov rax, qword [0x1400cd4d0]
xor rax, rsp
mov qword [rsp + 0x170], rax
mov ebx, r9d
mov r13d, r8d
movsxd rbp, edx
mov r15, rcx
xor edi, edi
mov r12d, edi
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.140053120
nop
test ebp, ebp
jle 0x140014734
lea r8, section..data
lea rdx, str.shellfolder
lea rcx, [rsp + 0x30]
test ebx, ebx
je 0x1400144f2
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
xor r9d, r9d
jmp 0x140014511
lea rax, str._AMZ2112
mov qword [rsp + 0x28], rax
lea rax, str.shelloldbuild
mov qword [rsp + 0x20], rax
lea r9, str.shelloldmake
call fcn.140018f90
mov r12d, eax
test eax, eax
jle 0x140014734
lea r14, [0x1400ceb50]
or rsi, 0xffffffffffffffff
cmp byte [0x1400ceb50], 0
je 0x1400145cf
mov rbx, rsi
nop dword [rax]
inc rbx
cmp byte [r14 + rbx], 0
jne 0x140014540
lea rcx, [rsp + 0x30]
call fcn.140053780
mov rdi, rax
test rax, rax
je 0x1400145cf
nop dword [rax]
mov rcx, rdi
call fcn.140053770
mov r14, rax
test rax, rax
je 0x140014586
mov r8, rbx
lea rdx, [0x1400ceb50]
mov rcx, rax
call fcn.14002f498
test eax, eax
je 0x14001459d
mov rdx, rdi
lea rcx, [rsp + 0x30]
call fcn.1400537e0
mov rdi, rax
test rax, rax
je 0x1400145c8
jmp 0x140014560
mov r8, rbp
mov rcx, r15
test r13d, r13d
mov rdx, r14
jne 0x1400145af
lea rdx, [r14 + rbx]
call fcn.14002f5e0
lea eax, [rbp - 1]
movsxd rcx, eax
mov byte [rcx + r15], 0
test rdi, rdi
jne 0x140014734
lea r14, [0x1400ceb50]
mov edx, 0x104
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea rax, [rsp + 0x60]
inc rsi
cmp byte [rax + rsi], 0
jne 0x1400145e4
lea rcx, [rsp + 0x30]
call fcn.140053780
test rax, rax
mov rbx, rax
je 0x1400146b1
mov rcx, rax
call fcn.140053770
mov rdi, rax
test rax, rax
je 0x140014627
mov r8, rsi
lea rdx, [rsp + 0x60]
mov rcx, rax
call fcn.14002f498
test eax, eax
jne 0x140014636
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.1400537e0
jmp 0x1400145f7
cmp byte [0x1400ceb50], 0
jne 0x140014673
mov rcx, rdi
mov rdx, r14
sub rdx, rdi
nop dword [rax + rax]
movzx eax, byte [rcx]
mov byte [rdx + rcx], al
lea rcx, [rcx + 1]
test al, al
jne 0x140014650
mov edx, 0x5c
mov rcx, r14
call fcn.140028914
test rax, rax
je 0x140014673
mov byte [rax], 0
test r13d, r13d
jne 0x14001468f
lea edx, [r13 + 0x5c]
mov rcx, rdi
call fcn.140028914
lea rcx, [rax + 1]
test rax, rax
cmovne rdi, rcx
mov r8, rbp
mov rdx, rdi
mov rcx, r15
call fcn.14002f5e0
lea eax, [rbp - 1]
movsxd rcx, eax
mov byte [rcx + r15], 0
test rbx, rbx
jne 0x140014734
test r13d, r13d
je 0x140014731
lea rcx, [rsp + 0x30]
call fcn.140053780
test rax, rax
je 0x140014734
mov rcx, rax
call fcn.140053770
mov rbx, rax
test rax, rax
je 0x140014734
cmp byte [0x1400ceb50], 0
jne 0x140014716
mov r9, rax
mov r10, r14
sub r10, rax
nop word [rax + rax]
movzx r8d, byte [r9]
mov byte [r10 + r9], r8b
lea r9, [r9 + 1]
test r8b, r8b
jne 0x1400146f0
mov edx, 0x5c
mov rcx, r14
call fcn.140028914
test rax, rax
je 0x140014716
mov byte [rax], 0
mov r8, rbp
mov rdx, rbx
mov rcx, r15
call fcn.14002f5e0
lea eax, [rbp - 1]
movsxd rcx, eax
mov byte [rcx + r15], 0
jmp 0x140014734
xor r12d, r12d
mov edx, 1
lea rcx, [rsp + 0x30]
call fcn.140053570
nop
lea rcx, [rsp + 0x30]
call fcn.140053170
mov eax, r12d
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.140026f00
mov rbx, qword [rsp + 0x1d0]
add rsp, 0x180
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret