Function at 0x140008a10
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
mov rdi, rcx
mov rax, qword [0x140036138]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor r14d, r14d
xor edx, edx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
je 0x140008bb7
mov ebx, eax
mov r15d, eax
add r15, r15
mov rcx, r15
call fcn.14000a950
mov rsi, rax
xor r14d, r14d
mov rcx, rax
xor edx, edx
mov r8, r15
call fcn.14000c660
mov rcx, rdi
mov rdx, rsi
mov r8d, ebx
call qword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
je 0x140008baf
mov qword [rsp + 0x38], 0
lea rcx, [0x140027070]
lea rdi, [rsp + 0x38]
xor edx, edx
xor r8d, r8d
mov r9, rdi
call sub.SHELL32.dll_SHGetKnownFolderPath
test eax, eax
js 0x140008bac
mov rbx, qword [rsp + 0x38]
mov rcx, rbx
call fcn.1400148ac
test rax, rax
je 0x140008b9e
cmp word [rbx + rax*2 - 2], 0x5c
jne 0x140008bd8
mov rcx, rsi
mov rdx, rbx
mov r8, rax
call fcn.140012b9c
test eax, eax
je 0x140008c39
mov rcx, rbx
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov dword [rsp + 0x38], 0
mov qword [rsp + 0x30], rdi
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersion
lea r8, str.ProgramFilesDir
mov rcx, 0xffffffff80000002
mov r9d, 0x10002
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x140008bac
mov r15d, dword [rsp + 0x38]
cmp r15, 4
jb 0x140008bac
mov r12d, r15d
and r12d, 0xfffffffe
mov rcx, r12
call fcn.14000a950
mov rbx, rax
xor r14d, r14d
mov rcx, rax
xor edx, edx
mov r8, r12
call fcn.14000c660
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], 0
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersion
lea r8, str.ProgramFilesDir
mov rcx, 0xffffffff80000002
mov r9d, 0x10002
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
je 0x140008c4a
mov rcx, rbx
call fcn.14000a958
jmp 0x140008baf
test rbx, rbx
je 0x140008bac
mov rcx, rbx
call qword [sym.imp.ole32.dll_CoTaskMemFree]
xor r14d, r14d
mov rcx, rsi
call fcn.14000a958
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14000ac40
mov eax, r14d
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea r14, [rax + 1]
mov r15, rax
add r15, 2
lea rax, [rax + rax + 4]
mov r12, 0xffffffffffffffff
cmovns r12, rax
mov rcx, r12
call fcn.14000a950
mov r13, rax
mov rcx, rax
xor edx, edx
mov r8, r12
call fcn.14000c660
mov rcx, r13
mov rdx, r15
mov r9, rbx
call fcn.140008d00
mov rcx, rsi
mov rdx, r13
mov r8, r14
call fcn.140012b9c
mov ebp, eax
mov rcx, r13
call fcn.14000a958
test ebp, ebp
jne 0x140008ae4
mov rcx, rbx
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov r14b, 1
jmp 0x140008baf
shr r15, 1
mov rcx, rbx
mov rdx, r15
call fcn.1400149d8
test rax, rax
je 0x140008c84
cmp word [rbx + rax*2 - 2], 0x5c
jne 0x140008c8c
mov rcx, rsi
mov rdx, rbx
mov r8, rax
call fcn.140012b9c
test eax, eax
je 0x140008ce9
mov rcx, rbx
call fcn.14000a958
jmp 0x140008bac
xor r14d, r14d
jmp 0x140008b94
lea rdi, [rax + 1]
mov r14, rax
add r14, 2
lea rax, [rax + rax + 4]
mov r15, 0xffffffffffffffff
cmovns r15, rax
mov rcx, r15
call fcn.14000a950
mov r12, rax
mov rcx, rax
xor edx, edx
mov r8, r15
call fcn.14000c660
mov rcx, r12
mov rdx, r14
mov r9, rbx
call fcn.140008d00
mov rcx, rsi
mov rdx, r12
mov r8, rdi
call fcn.140012b9c
mov edi, eax
mov rcx, r12
call fcn.14000a958
test edi, edi
jne 0x140008c77
mov r14b, 1
jmp 0x140008b94