Function at 0x140011990
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 rbx, rcx
mov rax, qword [0x140049030]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor edi, edi
xor edx, edx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
je 0x140011add
mov ebp, eax
mov r14d, eax
add r14, r14
mov rcx, r14
call fcn.140013794
mov rsi, rax
xor edi, edi
mov rcx, rax
xor edx, edx
mov r8, r14
call fcn.1400155d0
mov rcx, rbx
mov rdx, rsi
mov r8d, ebp
call qword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
je 0x140011ad5
lea rdi, [rsp + 0x38]
mov qword [rdi], 0
lea rcx, [0x140037010]
xor edx, edx
xor r8d, r8d
mov r9, rdi
call sub.SHELL32.dll_SHGetKnownFolderPath
test eax, eax
js 0x140011ad3
mov rbx, qword [rsp + 0x38]
mov rcx, rbx
call fcn.140013868
test rax, rax
je 0x140011ac5
cmp word [rbx + rax*2 - 2], 0x5c
jne 0x140011afd
mov rcx, rsi
mov rdx, rbx
mov r8, rax
call fcn.14001f140
test eax, eax
je 0x140011b5e
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]
mov ebp, 1
test eax, eax
jne 0x140011ab7
mov r14d, dword [rsp + 0x38]
cmp r14, 4
jae 0x140011b6f
xor r12d, r12d
test ebp, ebp
setne dil
and dil, r12b
jmp 0x140011ad5
test rbx, rbx
je 0x140011ad3
mov rcx, rbx
call qword [sym.imp.ole32.dll_CoTaskMemFree]
xor edi, edi
mov rcx, rsi
call fcn.140013994
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140026460
mov eax, edi
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.140013794
mov r13, rax
mov rcx, rax
xor edx, edx
mov r8, r12
call fcn.1400155d0
mov rcx, r13
mov rdx, r15
mov r9, rbx
call fcn.140011c80
mov rcx, rsi
mov rdx, r13
mov r8, r14
call fcn.14001f140
mov ebp, eax
mov rcx, r13
call fcn.140013994
test ebp, ebp
in eax, dx
jne 0x140011a60
mov rcx, rbx
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov dil, 1
jmp 0x140011ad5
mov r15d, r14d
and r15d, 0xfffffffe
mov rcx, r15
call fcn.140013794
mov rbx, rax
xor r12d, r12d
mov rcx, rax
xor edx, edx
mov r8, r15
call fcn.1400155d0
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]
mov ebp, 1
test eax, eax
je 0x140011bdb
mov rcx, rbx
call fcn.140013994
jmp 0x140011aba
shr r14, 1
mov rcx, rbx
mov rdx, r14
call fcn.140022524
test rax, rax
je 0x140011c0d
cmp word [rbx + rax*2 - 2], 0x5c
jne 0x140011c12
mov rcx, rsi
mov rdx, rbx
mov r8, rax
call fcn.14001f140
test eax, eax
jne 0x140011c6f
mov r12b, 1
jmp 0x140011bce
xor r12d, r12d
jmp 0x140011bce
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.140013794
mov r12, rax
mov rcx, rax
xor edx, edx
mov r8, r15
call fcn.1400155d0
mov rcx, r12
mov rdx, r14
mov r9, rbx
call fcn.140011c80
mov rcx, rsi
mov rdx, r12
mov r8, rdi
call fcn.14001f140
mov edi, eax
mov rcx, r12
call fcn.140013994
test edi, edi
je 0x140011c08
mov r12b, 1
xor ebp, ebp
jmp 0x140011bce