Function at 0x14004c2a0
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 [0x1401385c0]
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.140040cc0
nop
test ebp, ebp
jle 0x14004c564
lea r8, str.mskernel32hlp.dll
lea rdx, str.shellfolder
lea rcx, [rsp + 0x30]
test ebx, ebx
je 0x14004c322
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
xor r9d, r9d
jmp 0x14004c341
lea rax, str._AMZ2112
mov qword [rsp + 0x28], rax
lea rax, str.shelloldbuild
mov qword [rsp + 0x20], rax
lea r9, str.shelloldmake
call fcn.140050f70
mov r12d, eax
test eax, eax
jle 0x14004c564
lea r14, [0x14013a6f0]
or rsi, 0xffffffffffffffff
cmp byte [0x14013a6f0], 0
je 0x14004c3ff
mov rbx, rsi
nop dword [rax]
inc rbx
cmp byte [r14 + rbx], 0
jne 0x14004c370
lea rcx, [rsp + 0x30]
call fcn.1400413a0
mov rdi, rax
test rax, rax
je 0x14004c3ff
nop dword [rax]
mov rcx, rdi
call fcn.140041390
mov r14, rax
test rax, rax
je 0x14004c3b6
mov r8, rbx
lea rdx, [0x14013a6f0]
mov rcx, rax
call fcn.140078598
test eax, eax
je 0x14004c3cd
mov rdx, rdi
lea rcx, [rsp + 0x30]
call fcn.140041400
mov rdi, rax
test rax, rax
je 0x14004c3f8
jmp 0x14004c390
mov r8, rbp
mov rcx, r15
test r13d, r13d
mov rdx, r14
jne 0x14004c3df
lea rdx, [r14 + rbx]
call fcn.14006a380
lea eax, [rbp - 1]
movsxd rcx, eax
mov byte [rcx + r15], 0
test rdi, rdi
jne 0x14004c564
lea r14, [0x14013a6f0]
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 0x14004c414
lea rcx, [rsp + 0x30]
call fcn.1400413a0
test rax, rax
mov rbx, rax
je 0x14004c4e1
mov rcx, rax
call fcn.140041390
mov rdi, rax
test rax, rax
je 0x14004c457
mov r8, rsi
lea rdx, [rsp + 0x60]
mov rcx, rax
call fcn.140078598
test eax, eax
jne 0x14004c466
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.140041400
jmp 0x14004c427
cmp byte [0x14013a6f0], 0
jne 0x14004c4a3
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 0x14004c480
mov edx, 0x5c
mov rcx, r14
call fcn.140061090
test rax, rax
je 0x14004c4a3
mov byte [rax], 0
test r13d, r13d
jne 0x14004c4bf
lea edx, [r13 + 0x5c]
mov rcx, rdi
call fcn.140061090
lea rcx, [rax + 1]
test rax, rax
cmovne rdi, rcx
mov r8, rbp
mov rdx, rdi
mov rcx, r15
call fcn.14006a380
lea eax, [rbp - 1]
movsxd rcx, eax
mov byte [rcx + r15], 0
test rbx, rbx
jne 0x14004c564
test r13d, r13d
je 0x14004c561
lea rcx, [rsp + 0x30]
call fcn.1400413a0
test rax, rax
je 0x14004c564
mov rcx, rax
call fcn.140041390
mov rbx, rax
test rax, rax
je 0x14004c564
cmp byte [0x14013a6f0], 0
jne 0x14004c546
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 0x14004c520
mov edx, 0x5c
mov rcx, r14
call fcn.140061090
test rax, rax
je 0x14004c546
mov byte [rax], 0
mov r8, rbp
mov rdx, rbx
mov rcx, r15
call fcn.14006a380
lea eax, [rbp - 1]
movsxd rcx, eax
mov byte [rcx + r15], 0
jmp 0x14004c564
xor r12d, r12d
mov edx, 1
lea rcx, [rsp + 0x30]
call fcn.140041190
nop
lea rcx, [rsp + 0x30]
call fcn.140040d10
mov eax, r12d
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.14005f0d0
mov rbx, qword [rsp + 0x1d0]
add rsp, 0x180
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret