Function at 0x140023540
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 [0x1400e44d0]
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.140062280
nop
test ebp, ebp
jle 0x140023804
lea r8, section..data
lea rdx, str.shellfolder
lea rcx, [rsp + 0x30]
test ebx, ebx
je 0x1400235c2
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
xor r9d, r9d
jmp 0x1400235e1
lea rax, str._AMZ2112
mov qword [rsp + 0x28], rax
lea rax, str.shelloldbuild
mov qword [rsp + 0x20], rax
lea r9, str.shelloldmake
call fcn.140027f30
mov r12d, eax
test eax, eax
jle 0x140023804
lea r14, [0x1400e5ee0]
or rsi, 0xffffffffffffffff
cmp byte [0x1400e5ee0], 0
je 0x14002369f
mov rbx, rsi
nop dword [rax]
inc rbx
cmp byte [r14 + rbx], 0
jne 0x140023610
lea rcx, [rsp + 0x30]
call fcn.140062960
mov rdi, rax
test rax, rax
je 0x14002369f
nop dword [rax]
mov rcx, rdi
call fcn.140062950
mov r14, rax
test rax, rax
je 0x140023656
mov r8, rbx
lea rdx, [0x1400e5ee0]
mov rcx, rax
call fcn.14003e23c
test eax, eax
je 0x14002366d
mov rdx, rdi
lea rcx, [rsp + 0x30]
call fcn.1400629c0
mov rdi, rax
test rax, rax
je 0x140023698
jmp 0x140023630
mov r8, rbp
mov rcx, r15
test r13d, r13d
mov rdx, r14
jne 0x14002367f
lea rdx, [r14 + rbx]
call fcn.14003e380
lea eax, [rbp - 1]
movsxd rcx, eax
mov byte [rcx + r15], 0
test rdi, rdi
jne 0x140023804
lea r14, [0x1400e5ee0]
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 0x1400236b4
lea rcx, [rsp + 0x30]
call fcn.140062960
test rax, rax
mov rbx, rax
je 0x140023781
mov rcx, rax
call fcn.140062950
mov rdi, rax
test rax, rax
je 0x1400236f7
mov r8, rsi
lea rdx, [rsp + 0x60]
mov rcx, rax
call fcn.14003e23c
test eax, eax
jne 0x140023706
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.1400629c0
jmp 0x1400236c7
cmp byte [0x1400e5ee0], 0
jne 0x140023743
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 0x140023720
mov edx, 0x5c
mov rcx, r14
call fcn.1400375f4
test rax, rax
je 0x140023743
mov byte [rax], 0
test r13d, r13d
jne 0x14002375f
lea edx, [r13 + 0x5c]
mov rcx, rdi
call fcn.1400375f4
lea rcx, [rax + 1]
test rax, rax
cmovne rdi, rcx
mov r8, rbp
mov rdx, rdi
mov rcx, r15
call fcn.14003e380
lea eax, [rbp - 1]
movsxd rcx, eax
mov byte [rcx + r15], 0
test rbx, rbx
jne 0x140023804
test r13d, r13d
je 0x140023801
lea rcx, [rsp + 0x30]
call fcn.140062960
test rax, rax
je 0x140023804
mov rcx, rax
call fcn.140062950
mov rbx, rax
test rax, rax
je 0x140023804
cmp byte [0x1400e5ee0], 0
jne 0x1400237e6
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 0x1400237c0
mov edx, 0x5c
mov rcx, r14
call fcn.1400375f4
test rax, rax
je 0x1400237e6
mov byte [rax], 0
mov r8, rbp
mov rdx, rbx
mov rcx, r15
call fcn.14003e380
lea eax, [rbp - 1]
movsxd rcx, eax
mov byte [rcx + r15], 0
jmp 0x140023804
xor r12d, r12d
mov edx, 1
lea rcx, [rsp + 0x30]
call fcn.140062750
nop
lea rcx, [rsp + 0x30]
call fcn.1400622d0
mov eax, r12d
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.140035b70
mov rbx, qword [rsp + 0x1d0]
add rsp, 0x180
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret