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

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x50
mov rbx, rcx
mov rax, qword [0x140037010]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor edi, edi
xor edx, edx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
je 0x14000bd60
mov ebp, eax
mov esi, eax
add rsi, rsi
mov rcx, rsi
call fcn.14000e284
mov r15, rax
xor edi, edi
mov rcx, rax
xor edx, edx
mov r8, rsi
call fcn.14000feb0
mov rcx, rbx
mov rdx, r15
mov r8d, ebp
call qword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
je 0x14000bd58
lea r14, [rsp + 0x40]
mov qword [r14], 0
lea rcx, [0x140028028]
xor edx, edx
xor r8d, r8d
mov r9, r14
call sub.SHELL32.dll_SHGetKnownFolderPath
test eax, eax
js 0x14000bc9a
mov rbx, qword [rsp + 0x40]
mov rcx, rbx
call fcn.14001725c
test rax, rax
je 0x14000bc85
mov rdi, rax
cmp word [rbx + rax*2 - 2], 0x5c
jne 0x14000bca1
mov rcx, r15
mov rdx, rbx
mov r8, rdi
call fcn.140015d38
test eax, eax
jne 0x14000bcfb
mov dil, 1
jmp 0x14000bc8c
test rbx, rbx
je 0x14000bc9a
xor edi, edi
mov rcx, rbx
call qword [sym.imp.ole32.dll_CoTaskMemFree]
jmp 0x14000bd58
xor edi, edi
jmp 0x14000bd58
lea r12, [rdi + 2]
mov rax, r12
add rax, r12
mov rbp, 0xffffffffffffffff
cmovae rbp, rax
mov rcx, rbp
call fcn.14000e284
mov rsi, rax
mov rcx, rax
xor edx, edx
mov r8, rbp
call fcn.14000feb0
inc rdi
mov rcx, rsi
mov rdx, r12
mov r9, rbx
call fcn.14000be90
mov rcx, r15
mov rdx, rsi
mov r8, rdi
call fcn.140015d38
mov edi, eax
mov rcx, rsi
call fcn.14000e28c
test edi, edi
je 0x14000bc80
mov rcx, rbx
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov dword [rsp + 0x40], 0
mov qword [rsp + 0x30], r14
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]
mov esi, 1
test eax, eax
jne 0x14000bd4d
mov edi, dword [rsp + 0x40]
cmp rdi, 4
jae 0x14000bd7e
xor ebp, ebp
test esi, esi
setne dil
and dil, bpl
mov rcx, r15
call fcn.14000e28c
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140019150
mov eax, edi
add rsp, 0x50
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
shr rdi, 1
lea rsi, [rdi + rdi]
mov rcx, rsi
call fcn.14000e284
mov rbx, rax
xor ebp, ebp
mov rcx, rax
xor edx, edx
mov r8, rsi
call fcn.14000feb0
mov qword [rsp + 0x30], r14
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]
mov esi, 1
test eax, eax
je 0x14000bde9
mov rcx, rbx
call fcn.14000e28c
jmp 0x14000bd4f
mov rcx, rbx
mov rdx, rdi
call fcn.140017388
test rax, rax
je 0x14000be1b
mov rdi, rax
cmp word [rbx + rax*2 - 2], 0x5c
jne 0x14000be1f
mov rcx, r15
mov rdx, rbx
mov r8, rdi
call fcn.140015d38
test eax, eax
jne 0x14000be79
mov bpl, 1
jmp 0x14000bddc
xor ebp, ebp
jmp 0x14000bddc
lea r14, [rdi + 2]
mov rax, r14
add rax, r14
mov rbp, 0xffffffffffffffff
cmovae rbp, rax
mov rcx, rbp
call fcn.14000e284
mov r12, rax
mov rcx, rax
xor edx, edx
mov r8, rbp
call fcn.14000feb0
inc rdi
mov rcx, r12
mov rdx, r14
mov r9, rbx
call fcn.14000be90
mov rcx, r15
mov rdx, r12
mov r8, rdi
call fcn.140015d38
mov edi, eax
mov rcx, r12
call fcn.14000e28c
test edi, edi
je 0x14000be16
mov bpl, 1
xor esi, esi
jmp 0x14000bddc