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

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x50
call fcn.1400100f0
sub rsp, rax
mov rsi, rcx
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetLongPathNameW]
mov edi, eax
test eax, eax
je 0x140008149
mov eax, 2
mul rdi
mov rbx, rax
mov r13, 0xffffffffffffffff
cmovo rbx, r13
mov rcx, rbx
call fcn.14000ef7c
mov r14, rax
mov r8, rbx
xor edx, edx
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
mov qword [rsp + 0xa0], r14
mov r8d, edi
mov rdx, r14
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
je 0x14000813a
xor r12d, r12d
mov qword [rsp + 0x98], r12
lea r9, [rsp + 0x98]
xor r8d, r8d
xor edx, edx
lea rcx, [0x140011d00]
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
js 0x14000813a
mov rbx, qword [rsp + 0x98]
mov qword [rsp + 0xa8], rbx
mov rbp, r13
inc rbp
cmp word [rbx + rbp*2], 0
jne 0x140007ef2
test rbp, rbp
jne 0x140007f09
xor dil, dil
jmp 0x140007f92
cmp word [rbx + rbp*2 - 2], 0x5c
jne 0x140007f2d
mov r8, rbp
mov rdx, rbx
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
test eax, eax
jne 0x140007faf
mov dil, 1
jmp 0x140007f92
lea rsi, [rbp + 2]
mov eax, 2
mul rsi
mov rdi, rax
cmovo rdi, r13
mov rcx, rdi
call fcn.14000ef7c
mov r15, rax
mov r8, rdi
xor edx, edx
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
mov qword [rsp + 0x40], r15
mov r9, rbx
lea r8, [0x140015d30]
mov rdx, rsi
mov rcx, r15
call fcn.1400078d0
lea r8, [rbp + 1]
mov rdx, r15
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
test eax, eax
jne 0x140007fa6
mov dil, 1
mov rcx, r15
call fcn.14000ef74
nop
test rbx, rbx
je 0x140007fa1
mov rcx, rbx
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop
jmp 0x14000813d
mov rcx, r15
call fcn.14000ef74
nop
test rbx, rbx
je 0x140007fbe
mov rcx, rbx
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop
mov dword [rsp + 0x98], r12d
lea rax, [rsp + 0x98]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
mov r9d, 0x10002
lea r8, str.ProgramFilesDir
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersion
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x14000813a
mov eax, dword [rsp + 0x98]
shr eax, 1
cmp eax, 1
jbe 0x14000813a
mov edi, eax
mov eax, 2
mul rdi
mov rbx, rax
cmovo rbx, r13
mov rcx, rbx
call fcn.14000ef7c
mov rsi, rax
mov r8, rbx
xor edx, edx
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
mov qword [rsp + 0xa8], rsi
lea rax, [rsp + 0x98]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], r12
mov r9d, 0x10002
lea r8, str.ProgramFilesDir
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersion
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x140008161
mov edx, edi
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsnlen]
mov rbp, rax
test rax, rax
je 0x140008161
cmp word [rsi + rax*2 - 2], 0x5c
jne 0x1400080c3
mov r8, rax
mov rdx, rsi
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
test eax, eax
jne 0x140008132
mov dil, 1
jmp 0x140008164
lea rdi, [rax + 2]
mov eax, 2
mul rdi
mov rbx, rax
cmovo rbx, r13
mov rcx, rbx
call fcn.14000ef7c
mov r15, rax
mov r8, rbx
xor edx, edx
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
mov qword [rsp + 0x40], r15
mov r9, rsi
lea r8, [0x140015d30]
mov rdx, rdi
mov rcx, r15
call fcn.1400078d0
lea r8, [rbp + 1]
mov rdx, r15
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
test eax, eax
jne 0x140008129
mov dil, 1
mov rcx, r15
call fcn.14000ef74
jmp 0x140008164
mov rcx, r15
call fcn.14000ef74
nop
mov rcx, rsi
call fcn.14000ef74
xor dil, dil
mov rcx, r14
call fcn.14000ef74
movzx eax, dil
mov rbx, qword [rsp + 0x90]
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
xor dil, dil
mov rcx, rsi
call fcn.14000ef74
jmp 0x14000813d