Function at 0x1400089b0
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 [0x140033138]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor ebx, ebx
xor edx, edx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
je 0x140008b55
mov ebp, eax
mov esi, eax
add rsi, rsi
mov rcx, rsi
call fcn.14000a920
mov r13, rax
xor ebx, ebx
mov rcx, rax
xor edx, edx
mov r8, rsi
call fcn.14000cba0
mov rcx, rdi
mov rdx, r13
mov r8d, ebp
call qword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
je 0x140008b4d
mov qword [rsp + 0x38], 0
lea rcx, [0x140025088]
lea r12, [rsp + 0x38]
xor edx, edx
xor r8d, r8d
mov r9, r12
call sub.SHELL32.dll_SHGetKnownFolderPath
test eax, eax
js 0x140008b4b
mov rbx, qword [rsp + 0x38]
mov rcx, rbx
call fcn.14001433c
test rax, rax
je 0x140008b3d
mov rdi, rax
cmp word [rbx + rax*2 - 2], 0x5c
jne 0x140008b75
mov rcx, r13
mov rdx, rbx
mov r8, rdi
call fcn.140012a28
test eax, eax
je 0x140008bd4
mov rcx, rbx
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov dword [rsp + 0x38], 0
mov qword [rsp + 0x30], r12
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 0x140008b4b
mov r15d, dword [rsp + 0x38]
cmp r15, 4
jb 0x140008b4b
shr r15, 1
lea rsi, [r15 + r15]
mov rcx, rsi
call fcn.14000a920
mov r14, rax
xor ebx, ebx
mov rcx, rax
xor edx, edx
mov r8, rsi
call fcn.14000cba0
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r14
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 0x140008be4
mov rcx, r14
call fcn.14000a928
jmp 0x140008b4d
test rbx, rbx
je 0x140008b4b
mov rcx, rbx
call qword [sym.imp.ole32.dll_CoTaskMemFree]
xor ebx, ebx
mov rcx, r13
call fcn.14000a928
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14000acd0
mov eax, ebx
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea r14, [rdi + 1]
add rdi, 2
mov rax, rdi
add rax, rdi
mov rbp, 0xffffffffffffffff
cmovae rbp, rax
mov rcx, rbp
call fcn.14000a920
mov rsi, rax
mov rcx, rax
xor edx, edx
mov r8, rbp
call fcn.14000cba0
mov rcx, rsi
mov rdx, rdi
mov r9, rbx
call fcn.140008c90
mov rcx, r13
mov rdx, rsi
mov r8, r14
call fcn.140012a28
mov edi, eax
mov rcx, rsi
call fcn.14000a928
test edi, edi
jne 0x140008a84
mov rcx, rbx
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov bl, 1
jmp 0x140008b4d
mov rcx, r14
mov rdx, r15
call fcn.140014468
test rax, rax
je 0x140008c1f
mov rdi, rax
cmp word [r14 + rax*2 - 2], 0x5c
jne 0x140008c26
mov rcx, r13
mov rdx, r14
mov r8, rdi
call fcn.140012a28
test eax, eax
je 0x140008c81
mov rcx, r14
call fcn.14000a928
jmp 0x140008b4b
xor ebx, ebx
jmp 0x140008b33
lea rsi, [rdi + 1]
add rdi, 2
mov rax, rdi
add rax, rdi
mov rbx, 0xffffffffffffffff
cmovae rbx, rax
mov rcx, rbx
call fcn.14000a920
mov rbp, rax
mov rcx, rax
xor edx, edx
mov r8, rbx
call fcn.14000cba0
mov rcx, rbp
mov rdx, rdi
mov r9, r14
call fcn.140008c90
mov rcx, r13
mov rdx, rbp
mov r8, rsi
call fcn.140012a28
mov esi, eax
mov rcx, rbp
call fcn.14000a928
test esi, esi
jne 0x140008c12
mov bl, 1
jmp 0x140008b33