Function at 0x14004a6a0
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 [0x140132280]
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.140043700
nop
test ebp, ebp
jle 0x14004a964
lea r8, str.mskernel32hlp.dll
lea rdx, str.shellfolder
lea rcx, [rsp + 0x30]
test ebx, ebx
je 0x14004a722
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
xor r9d, r9d
jmp 0x14004a741
lea rax, str._AMZ2112
mov qword [rsp + 0x28], rax
lea rax, str.shelloldbuild
mov qword [rsp + 0x20], rax
lea r9, str.shelloldmake
call fcn.14004f420
mov r12d, eax
test eax, eax
jle 0x14004a964
lea r14, [0x1401354f0]
or rsi, 0xffffffffffffffff
cmp byte [0x1401354f0], 0
je 0x14004a7ff
mov rbx, rsi
nop dword [rax]
inc rbx
cmp byte [r14 + rbx], 0
jne 0x14004a770
lea rcx, [rsp + 0x30]
call fcn.140043de0
mov rdi, rax
test rax, rax
je 0x14004a7ff
nop dword [rax]
mov rcx, rdi
call fcn.140043dd0
mov r14, rax
test rax, rax
je 0x14004a7b6
mov r8, rbx
lea rdx, [0x1401354f0]
mov rcx, rax
call fcn.14007f05c
test eax, eax
je 0x14004a7cd
mov rdx, rdi
lea rcx, [rsp + 0x30]
call fcn.140043e40
mov rdi, rax
test rax, rax
je 0x14004a7f8
jmp 0x14004a790
mov r8, rbp
mov rcx, r15
test r13d, r13d
mov rdx, r14
jne 0x14004a7df
lea rdx, [r14 + rbx]
call fcn.14006f330
lea eax, [rbp - 1]
movsxd rcx, eax
mov byte [rcx + r15], 0
test rdi, rdi
jne 0x14004a964
lea r14, [0x1401354f0]
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 0x14004a814
lea rcx, [rsp + 0x30]
call fcn.140043de0
test rax, rax
mov rbx, rax
je 0x14004a8e1
mov rcx, rax
call fcn.140043dd0
mov rdi, rax
test rax, rax
je 0x14004a857
mov r8, rsi
lea rdx, [rsp + 0x60]
mov rcx, rax
call fcn.14007f05c
test eax, eax
jne 0x14004a866
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.140043e40
jmp 0x14004a827
cmp byte [0x1401354f0], 0
jne 0x14004a8a3
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 0x14004a880
mov edx, 0x5c
mov rcx, r14
call fcn.140064f8c
test rax, rax
je 0x14004a8a3
mov byte [rax], 0
test r13d, r13d
jne 0x14004a8bf
lea edx, [r13 + 0x5c]
mov rcx, rdi
call fcn.140064f8c
lea rcx, [rax + 1]
test rax, rax
cmovne rdi, rcx
mov r8, rbp
mov rdx, rdi
mov rcx, r15
call fcn.14006f330
lea eax, [rbp - 1]
movsxd rcx, eax
mov byte [rcx + r15], 0
test rbx, rbx
jne 0x14004a964
test r13d, r13d
je 0x14004a961
lea rcx, [rsp + 0x30]
call fcn.140043de0
test rax, rax
je 0x14004a964
mov rcx, rax
call fcn.140043dd0
mov rbx, rax
test rax, rax
je 0x14004a964
cmp byte [0x1401354f0], 0
jne 0x14004a946
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 0x14004a920
mov edx, 0x5c
mov rcx, r14
call fcn.140064f8c
test rax, rax
je 0x14004a946
mov byte [rax], 0
mov r8, rbp
mov rdx, rbx
mov rcx, r15
call fcn.14006f330
lea eax, [rbp - 1]
movsxd rcx, eax
mov byte [rcx + r15], 0
jmp 0x14004a964
xor r12d, r12d
mov edx, 1
lea rcx, [rsp + 0x30]
call fcn.140043bd0
nop
lea rcx, [rsp + 0x30]
call fcn.140043750
mov eax, r12d
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.140063ed0
mov rbx, qword [rsp + 0x1d0]
add rsp, 0x180
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret