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

Disassembly:
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x11b0]
mov eax, 0x12b0
call fcn.14018ef70
sub rsp, rax
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x12e8], rbx
mov qword [rsp + 0x12f0], rsi
mov rax, qword [0x1402b9ae8]
xor rax, rsp
mov qword [rbp + 0x11a0], rax
mov rdi, rcx
cmp dword [rcx + 0xc], 6
jae 0x14001f69a
mov byte [rcx + 0x158], 0
jmp 0x14001f6d7
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, str.BCD00000000
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14001f702
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [rdi + 0x158], 0
mov rcx, qword [rbp + 0x11a0]
xor rcx, rsp
call fcn.14018e2d0
lea r11, [rsp + 0x12b0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
cmp eax, 5
je 0x14001f6d0
cmp eax, 0x20
je 0x14001f6d0
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 0x101
xor r8d, r8d
lea rdx, str.SOFTWAREMicrosoftWindows_NTCurrentVersionWinPE
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14001f6d0
mov byte [rdi + 0x158], 1
mov dword [rsp + 0x38], 0x1000
mov dword [rsp + 0x68], 1
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x1a0]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x68]
xor r8d, r8d
lea rdx, str.InstRoot
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor r14d, r14d
movdqa xmm0, xmmword [0x140288fb0]
test ebx, ebx
jne 0x14001f969
mov eax, dword [rsp + 0x38]
shr rax, 1
mov word [rbp + rax*2 + 0x19e], r14w
movdqu xmmword [rbp - 0x80], xmm0
mov word [rsp + 0x70], r14w
lea rdx, [rbp + 0x1a0]
lea rcx, [rsp + 0x70]
call fcn.140003570
nop
lea rcx, [rsp + 0x70]
call fcn.140019ba0
lea rcx, [rsp + 0x70]
cmp rcx, rax
je 0x14001f7fa
mov rdx, rax
cmp qword [rax + 0x18], 8
jb 0x14001f7ec
mov rdx, qword [rax]
mov r8, qword [rax + 0x10]
lea rcx, [rsp + 0x70]
call fcn.140003500
lea rcx, [rsp + 0x70]
call fcn.140019850
movdqa xmm0, xmmword [0x140288fb0]
movdqu xmmword [rsp + 0x58], xmm0
mov word [rsp + 0x48], r14w
lea rax, [rbp - 0x70]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x24]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x14001f845
lea rdx, [rbp - 0x70]
lea rcx, [rsp + 0x48]
call fcn.140003570
lea rcx, [rsp + 0x48]
call fcn.140019850
lea rcx, [rsp + 0x48]
call fcn.140019ba0
lea rcx, [rsp + 0x48]
cmp rcx, rax
je 0x14001f87e
mov rdx, rax
cmp qword [rax + 0x18], 8
jb 0x14001f870
mov rdx, qword [rax]
mov r8, qword [rax + 0x10]
lea rcx, [rsp + 0x48]
call fcn.140003500
lea r9, [rsp + 0x70]
mov rbx, qword [rsp + 0x70]
mov r15, qword [rbp - 0x78]
cmp r15, 8
cmovae r9, rbx
lea rcx, [rsp + 0x48]
mov rsi, qword [rsp + 0x48]
mov r12, qword [rsp + 0x60]
cmp r12, 8
cmovae rcx, rsi
mov rax, qword [rbp - 0x80]
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rdx, qword [rsp + 0x58]
call fcn.14000f720
test rax, rax
je 0x14001f8cd
mov byte [rdi + 0x158], 0
cmp r12, 8
jb 0x14001f911
lea rdx, [r12*2 + 2]
mov rax, rsi
cmp rdx, 0x1000
jb 0x14001f900
add rdx, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001fa63
mov rcx, rsi
call fcn.14018e2f4
mov r15, qword [rbp - 0x78]
mov rbx, qword [rsp + 0x70]
movdqa xmm0, xmmword [0x140288fb0]
movdqu xmmword [rsp + 0x58], xmm0
mov word [rsp + 0x48], r14w
cmp r15, 8
jb 0x14001f6d7
lea rdx, [r15*2 + 2]
mov rax, rbx
cmp rdx, 0x1000
jb 0x14001f95c
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001fa57
mov rcx, rbx
call fcn.14018e2f4
jmp 0x14001f6d7
movdqu xmmword [rsp + 0x58], xmm0
mov word [rsp + 0x48], r14w
lea rax, [rbp - 0x70]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x24]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x14001f9a2
lea rdx, [rbp - 0x70]
lea rcx, [rsp + 0x48]
call fcn.140003570
lea rcx, [rsp + 0x48]
call fcn.140019850
lea rcx, [rsp + 0x48]
call fcn.140019ba0
lea rcx, [rsp + 0x48]
cmp rcx, rax
je 0x14001f9db
mov rdx, rax
cmp qword [rax + 0x18], 8
jb 0x14001f9cd
mov rdx, qword [rax]
mov r8, qword [rax + 0x10]
lea rcx, [rsp + 0x48]
call fcn.140003500
lea rcx, [rsp + 0x48]
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x60]
cmp rsi, 8
cmovae rcx, rbx
mov qword [rsp + 0x20], 2
lea r9, [0x14027c28c]
xor r8d, r8d
mov rdx, qword [rsp + 0x58]
call fcn.14000f720
test rax, rax
je 0x14001fa1b
mov byte [rdi + 0x158], 0
cmp rsi, 8
jb 0x14001f6d7
lea rdx, [rsi*2 + 2]
mov rax, rbx
cmp rdx, 0x1000
jb 0x14001f95c
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001fa5d
jmp 0x14001f95c
call fcn.1401997dc
int3
call fcn.1401997dc
nop
call fcn.1401997dc
int3