Function at 0x14012e2d0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x1a0]
sub rsp, 0x2a0
mov rax, qword [0x14058f6b8]
xor rax, rsp
mov qword [rbp + 0x190], rax
mov rbx, rcx
test rcx, rcx
je 0x14012e3d2
mov rax, rcx
cmp qword [rcx + 0x18], 0x10
jb 0x14012e318
mov rax, qword [rcx]
xor r15d, r15d
mov qword [rcx + 0x10], r15
mov byte [rax], r15b
mov byte [rsp + 0x30], r15b
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea rdx, [rsp + 0x30]
call fcn.14012fbc0
test al, al
je 0x14012e3d2
cmp byte [rsp + 0x30], r15b
je 0x14012e478
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp - 0x80]
call fcn.14039b120
lea rax, [rbp - 0x80]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r15 + 0x1c]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x14012e3d7
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x40]
call fcn.140078c60
nop
lea rcx, [rsp + 0x40]
cmp qword [rsp + 0x58], 8
setae r14b
cmovae rcx, qword [rsp + 0x40]
mov qword [rsp + 0x20], 0xa
lea r9, str.Packages_
mov rdi, qword [rsp + 0x50]
mov rdx, rdi
call fcn.1400e2c50
mov rcx, rax
cmp rax, 0xffffffffffffffff
jne 0x14012e3ff
lea rcx, [rsp + 0x40]
call fcn.14007cec0
nop
mov eax, 0x80004005
mov rcx, qword [rbp + 0x190]
xor rcx, rsp
call fcn.140398000
lea r11, [rsp + 0x2a0]
mov rbx, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
cmp rdi, rcx
jb 0x14012e58e
lea rax, [rsp + 0x40]
test r14b, r14b
cmovne rax, qword [rsp + 0x40]
mov qword [rsp + 0x50], rcx
mov word [rax + rcx*2], r15w
mov r8d, 3
lea rdx, [0x14052acd0]
lea rcx, [rsp + 0x40]
call fcn.14007c980
lea rcx, [rsp + 0x40]
cmp qword [rsp + 0x58], 8
cmovae rcx, qword [rsp + 0x40]
mov rdx, rbx
call fcn.140128330
nop
test eax, eax
jne 0x14012e465
lea rcx, [rsp + 0x40]
call fcn.14007cec0
nop
jmp 0x14012e3d2
lea rcx, [rsp + 0x40]
call fcn.14007cec0
nop
mov eax, r15d
jmp 0x14012e3d7
mov rax, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x14012e485
mov rax, qword [rbx]
mov qword [rbx + 0x10], r15
mov byte [rax], r15b
mov qword [rsp + 0x38], r15
lea r9, [rsp + 0x38]
xor r8d, r8d
xor edx, edx
lea rcx, [0x1404afbb0]
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
mov edi, eax
test eax, eax
jns 0x14012e4c9
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x14012e587
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, edi
jmp 0x14012e3d7
mov rdx, qword [rsp + 0x38]
test rdx, rdx
je 0x14012e539
lea rcx, [rsp + 0x60]
call fcn.140078c60
nop
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x58], r15
lea rcx, [rsp + 0x40]
call fcn.14007d020
nop
lea rcx, [rsp + 0x60]
cmp qword [rsp + 0x78], 8
cmovae rcx, qword [rsp + 0x60]
lea rdx, [rsp + 0x40]
call fcn.140128330
test eax, eax
jne 0x14012e545
lea rcx, [rsp + 0x40]
call fcn.14007cfc0
nop
lea rcx, [rsp + 0x60]
call fcn.14007cec0
nop
mov edi, 0x8000ffff
mov eax, edi
jmp 0x14012e3d7
lea rax, [rsp + 0x40]
cmp rbx, rax
je 0x14012e56e
lea rdx, [rsp + 0x40]
cmp qword [rsp + 0x58], 0x10
cmovae rdx, qword [rsp + 0x40]
mov r8, qword [rsp + 0x50]
mov rcx, rbx
call fcn.14007cb70
nop
lea rcx, [rsp + 0x40]
call fcn.14007cfc0
nop
lea rcx, [rsp + 0x60]
call fcn.14007cec0
nop
mov edi, r15d
mov eax, edi
jmp 0x14012e3d7
call fcn.14007d100
int3