Function at 0x140014690
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.140180a60
sub rsp, rax
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x12e8], rbx
mov qword [rsp + 0x12f0], rsi
mov rax, qword [0x14029fa58]
xor rax, rsp
mov qword [rbp + 0x11a0], rax
mov rdi, rcx
cmp dword [rcx + 0xc], 6
jae 0x1400146ea
mov byte [rcx + 0x158], 0
jmp 0x140014727
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 0x140014752
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.14017fdc0
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 0x140014720
cmp eax, 0x20
je 0x140014720
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 0x140014720
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 [0x140273a90]
test ebx, ebx
jne 0x1400149b9
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.140009370
nop
lea rcx, [rsp + 0x70]
call fcn.140012980
lea rcx, [rsp + 0x70]
cmp rcx, rax
je 0x14001484a
mov rdx, rax
cmp qword [rax + 0x18], 8
jb 0x14001483c
mov rdx, qword [rax]
mov r8, qword [rax + 0x10]
lea rcx, [rsp + 0x70]
call fcn.140009550
lea rcx, [rsp + 0x70]
call fcn.140012630
movdqa xmm0, xmmword [0x140273a90]
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 0x140014895
lea rdx, [rbp - 0x70]
lea rcx, [rsp + 0x48]
call fcn.140009370
lea rcx, [rsp + 0x48]
call fcn.140012630
lea rcx, [rsp + 0x48]
call fcn.140012980
lea rcx, [rsp + 0x48]
cmp rcx, rax
je 0x1400148ce
mov rdx, rax
cmp qword [rax + 0x18], 8
jb 0x1400148c0
mov rdx, qword [rax]
mov r8, qword [rax + 0x10]
lea rcx, [rsp + 0x48]
call fcn.140009550
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.14000b9b0
test rax, rax
je 0x14001491d
mov byte [rdi + 0x158], 0
cmp r12, 8
jb 0x140014961
lea rdx, [r12*2 + 2]
mov rax, rsi
cmp rdx, 0x1000
jb 0x140014950
add rdx, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140014ab3
mov rcx, rsi
call fcn.14017fde4
mov r15, qword [rbp - 0x78]
mov rbx, qword [rsp + 0x70]
movdqa xmm0, xmmword [0x140273a90]
movdqu xmmword [rsp + 0x58], xmm0
mov word [rsp + 0x48], r14w
cmp r15, 8
jb 0x140014727
lea rdx, [r15*2 + 2]
mov rax, rbx
cmp rdx, 0x1000
jb 0x1400149ac
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140014aa7
mov rcx, rbx
call fcn.14017fde4
jmp 0x140014727
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 0x1400149f2
lea rdx, [rbp - 0x70]
lea rcx, [rsp + 0x48]
call fcn.140009370
lea rcx, [rsp + 0x48]
call fcn.140012630
lea rcx, [rsp + 0x48]
call fcn.140012980
lea rcx, [rsp + 0x48]
cmp rcx, rax
je 0x140014a2b
mov rdx, rax
cmp qword [rax + 0x18], 8
jb 0x140014a1d
mov rdx, qword [rax]
mov r8, qword [rax + 0x10]
lea rcx, [rsp + 0x48]
call fcn.140009550
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, [0x1402681ac]
xor r8d, r8d
mov rdx, qword [rsp + 0x58]
call fcn.14000b9b0
test rax, rax
je 0x140014a6b
mov byte [rdi + 0x158], 0
cmp rsi, 8
jb 0x140014727
lea rdx, [rsi*2 + 2]
mov rax, rbx
cmp rdx, 0x1000
jb 0x1400149ac
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140014aad
jmp 0x1400149ac
call fcn.14018b33c
int3
call fcn.14018b33c
nop
call fcn.14018b33c
int3