Function at 0x1400090c0
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 [0x140036030]
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 0x14000920d
mov ebp, eax
mov r14d, eax
add r14, r14
mov rcx, r14
call fcn.14000af24
mov rsi, rax
xor edi, edi
mov rcx, rax
xor edx, edx
mov r8, r14
call fcn.14000c620
mov rcx, rbx
mov rdx, rsi
mov r8d, ebp
call qword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
je 0x140009205
lea rdi, [rsp + 0x38]
mov qword [rdi], 0
lea rcx, [0x140027010]
xor edx, edx
xor r8d, r8d
mov r9, rdi
call sub.SHELL32.dll_SHGetKnownFolderPath
test eax, eax
js 0x140009203
mov rbx, qword [rsp + 0x38]
mov rcx, rbx
call fcn.14000aff8
test rax, rax
je 0x1400091f5
cmp word [rbx + rax*2 - 2], 0x5c
jne 0x14000922d
mov rcx, rsi
mov rdx, rbx
mov r8, rax
call fcn.140012a64
test eax, eax
je 0x14000928e
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, [0x14002f584]
mov rcx, 0xffffffff80000002
mov r9d, 0x10002
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
mov ebp, 1
test eax, eax
jne 0x1400091e7
mov r14d, dword [rsp + 0x38]
cmp r14, 4
jae 0x14000929f
xor r12d, r12d
test ebp, ebp
setne dil
and dil, r12b
jmp 0x140009205
test rbx, rbx
je 0x140009203
mov rcx, rbx
call qword [sym.imp.ole32.dll_CoTaskMemFree]
xor edi, edi
mov rcx, rsi
call fcn.14000b12c
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140018ef0
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.14000af24
mov r13, rax
mov rcx, rax
xor edx, edx
mov r8, r12
call fcn.14000c620
mov rcx, r13
mov rdx, r15
mov r9, rbx
call fcn.1400093b0
mov rcx, rsi
mov rdx, r13
mov r8, r14
call fcn.140012a64
mov ebp, eax
mov rcx, r13
call fcn.14000b12c
test ebp, ebp
jne 0x140009190
mov rcx, rbx
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov dil, 1
jmp 0x140009205
mov r15d, r14d
and r15d, 0xfffffffe
mov rcx, r15
call fcn.14000af24
mov rbx, rax
xor r12d, r12d
mov rcx, rax
xor edx, edx
mov r8, r15
call fcn.14000c620
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], 0
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersion
lea r8, [0x14002f584]
mov rcx, 0xffffffff80000002
mov r9d, 0x10002
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
mov ebp, 1
test eax, eax
je 0x14000930b
mov rcx, rbx
call fcn.14000b12c
jmp 0x1400091ea
shr r14, 1
mov rcx, rbx
mov rdx, r14
call fcn.140014750
test rax, rax
je 0x14000933d
cmp word [rbx + rax*2 - 2], 0x5c
jne 0x140009342
mov rcx, rsi
mov rdx, rbx
mov r8, rax
call fcn.140012a64
test eax, eax
jne 0x14000939f
mov r12b, 1
jmp 0x1400092fe
xor r12d, r12d
jmp 0x1400092fe
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.14000af24
mov r12, rax
mov rcx, rax
xor edx, edx
mov r8, r15
call fcn.14000c620
mov rcx, r12
mov rdx, r14
mov r9, rbx
call fcn.1400093b0
mov rcx, rsi
mov rdx, r12
mov r8, rdi
call fcn.140012a64
mov edi, eax
mov rcx, r12
call fcn.14000b12c
test edi, edi
je 0x140009338
mov r12b, 1
xor ebp, ebp
jmp 0x1400092fe