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

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x388]
sub rsp, 0x450
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x14011aa00]
xor rax, rsp
mov qword [rbp + 0x340], rax
mov rdi, rdx
mov r13, rcx
mov qword [rsp + 0x50], rcx
mov r12d, 7
mov qword [rbp - 0x68], r12
xor ebx, ebx
mov qword [rbp - 0x70], rbx
mov word [rbp - 0x80], bx
cmp qword [rdx + 0x18], 8
jb 0x14008a4e5
mov rax, qword [rdx]
jmp 0x14008a4e8
mov rax, rdi
movzx eax, word [rax]
mov ecx, 0x25
cmp eax, ecx
je 0x14008a7e2
cmp eax, 0x5b
je 0x14008a5df
cmp eax, 0x7b
jne 0x14008aa51
lea eax, [rcx + 0x58]
mov word [rsp + 0x40], ax
lea esi, [rcx - 0x24]
mov r9d, esi
xor r8d, r8d
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.140005aec
mov r14, rax
or r15, 0xffffffffffffffff
cmp rax, r15
je 0x14008aa82
mov qword [rsp + 0x78], r12
mov qword [rsp + 0x70], rbx
mov word [rsp + 0x60], bx
lea r9, [rax + 1]
xor r8d, r8d
mov rdx, rdi
lea rcx, [rsp + 0x60]
call fcn.140003678
nop
lea rcx, [rsp + 0x60]
cmp qword [rsp + 0x78], 8
cmovae rcx, qword [rsp + 0x60]
lea rdx, [rbp - 0x40]
call qword [sym.imp.ole32.dll_CLSIDFromString]
test eax, eax
js 0x14008aab1
mov qword [rsp + 0x48], rbx
lea r9, [rsp + 0x48]
xor r8d, r8d
xor edx, edx
lea rcx, [rbp - 0x40]
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
js 0x14008aae5
mov rdx, qword [rsp + 0x48]
test rdx, rdx
je 0x14008ab19
cmp word [rdx], bx
jne 0x14008a5b8
mov r8, rbx
jmp 0x14008a5c5
mov r8, r15
inc r8
cmp word [rdx + r8*2], bx
jne 0x14008a5bb
lea rcx, [rbp - 0x80]
call fcn.140005bf4
nop
lea rcx, [rsp + 0x48]
call fcn.14008acec
nop
jmp 0x14008a85b
mov eax, 0x5d
mov word [rsp + 0x40], ax
lea esi, [rax - 0x5c]
mov r9d, esi
xor r8d, r8d
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.140005aec
mov r14, rax
or r15, 0xffffffffffffffff
cmp rax, r15
je 0x14008ab48
mov qword [rsp + 0x78], r12
mov qword [rsp + 0x70], rbx
mov word [rsp + 0x60], bx
mov qword [rbp - 0x48], r12
mov qword [rbp - 0x50], rbx
mov word [rbp - 0x60], bx
mov qword [rbp - 0x28], r12
mov qword [rbp - 0x30], rbx
mov word [rbp - 0x40], bx
lea r12, [rax - 1]
mov r9, r12
mov r8d, esi
mov rdx, rdi
lea rcx, [rbp - 0x40]
call fcn.140003678
nop
lea r8, [rbp - 0x60]
lea rdx, [rsp + 0x60]
lea rcx, [rbp - 0x40]
call fcn.140089d00
nop
cmp qword [rbp - 0x28], 8
jb 0x14008a671
mov rcx, qword [rbp - 0x40]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
mov dword [rsp + 0x48], 0x208
lea r8, [rbp - 0x60]
cmp qword [rbp - 0x48], 8
cmovae r8, qword [rbp - 0x60]
lea rdx, [rsp + 0x60]
cmp qword [rsp + 0x78], 8
cmovae rdx, qword [rsp + 0x60]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x130]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
mov rcx, 0xffffffff80000001
mov r9d, 2
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
mov ebx, eax
cmp eax, 0xea
jne 0x14008a782
mov ecx, dword [rsp + 0x48]
shr rcx, 1
mov r13d, 2
mov eax, r13d
mul rcx
cmovo rax, r15
mov rcx, rax
call fcn.140093f2c
mov rbx, rax
mov qword [rbp - 0x40], rax
lea r8, [rbp - 0x60]
cmp qword [rbp - 0x48], 8
cmovae r8, qword [rbp - 0x60]
lea rdx, [rsp + 0x60]
cmp qword [rsp + 0x78], 8
cmovae rdx, qword [rsp + 0x60]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rbx
xor r9d, r9d
mov qword [rsp + 0x20], r9
mov r9d, r13d
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
mov r13d, eax
xor eax, eax
cmp word [rbx], ax
jne 0x14008a74e
mov r8d, eax
jmp 0x14008a75b
mov r8, r15
inc r8
cmp word [rbx + r8*2], ax
jne 0x14008a751
mov rdx, rbx
lea rcx, [rbp - 0x80]
call fcn.140005bf4
test r13d, r13d
jne 0x14008ab77
mov rcx, rbx
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_]
mov r13, qword [rsp + 0x50]
xor ebx, ebx
jmp 0x14008a7bf
test ebx, ebx
jne 0x14008abd4
xor ebx, ebx
cmp word [rbp + 0x130], bx
jne 0x14008a79a
mov r8d, ebx
jmp 0x14008a7ae
lea rax, [rbp + 0x130]
mov r8, r15
inc r8
cmp word [rax + r8*2], bx
jne 0x14008a7a4
lea rdx, [rbp + 0x130]
lea rcx, [rbp - 0x80]
call fcn.140005bf4
nop
cmp qword [rbp - 0x48], 8
jb 0x14008a7d0
mov rcx, qword [rbp - 0x60]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
mov qword [rbp - 0x48], 7
mov qword [rbp - 0x50], rbx
mov word [rbp - 0x60], bx
jmp 0x14008a85b
mov word [rsp + 0x40], cx
mov esi, 1
mov r9d, esi
mov r8d, esi
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.140005aec
mov r14, rax
or r15, 0xffffffffffffffff
cmp rax, r15
je 0x14008ac31
mov qword [rsp + 0x78], r12
mov qword [rsp + 0x70], rbx
mov word [rsp + 0x60], bx
lea r9, [rax + 1]
xor r8d, r8d
mov rdx, rdi
lea rcx, [rsp + 0x60]
call fcn.140003678
nop
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x60]
call fcn.140022d04
lea rax, [rbp - 0x80]
cmp qword [rbp - 0x68], 8
cmovae rax, qword [rbp - 0x80]
lea ecx, [rsi + 0x24]
cmp word [rax], cx
je 0x14008ac66
cmp qword [rsp + 0x78], 8
jb 0x14008a86e
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
mov r12, r14
mov r8b, sil
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x60]
call fcn.140089ef8
mov rbx, rax
lea rax, [rbp - 0x80]
cmp rax, rbx
je 0x14008a8bd
cmp qword [rbp - 0x68], 8
jb 0x14008a89f
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
mov qword [rbp - 0x68], 7
xor eax, eax
mov qword [rbp - 0x70], rax
mov word [rbp - 0x80], ax
mov rdx, rbx
lea rcx, [rbp - 0x80]
call fcn.140005f98
cmp qword [rsp + 0x78], 8
jb 0x14008a8d0
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
add r14, rsi
lea rcx, [rbp - 0x80]
cmp qword [rbp - 0x68], 8
cmovae rcx, qword [rbp - 0x80]
mov edx, 0x5c
mov rax, qword [rbp - 0x70]
cmp word [rcx + rax*2 - 2], dx
je 0x14008a905
mov r8d, edx
mov rdx, rsi
lea rcx, [rbp - 0x80]
call fcn.14000d9a8
mov edx, 0x5c
cmp qword [rdi + 0x18], 8
jb 0x14008a911
mov rax, qword [rdi]
jmp 0x14008a914
mov rax, rdi
movzx eax, word [rax + r14*2]
mov qword [rbp + 0x18], 7
xor r9d, r9d
mov qword [rbp + 0x10], r9
mov word [rbp], r9w
cmp ax, dx
cmovne r14, r12
lea r8, [rsi + r14]
mov r9, r15
mov rdx, rdi
lea rcx, [rbp]
call fcn.140003678
nop
mov r12d, 7
mov qword [rbp - 8], r12
xor r14d, r14d
mov qword [rbp - 0x10], r14
mov word [rbp - 0x20], r14w
lea rdx, [rbp - 0x20]
lea rcx, [rbp]
call fcn.140022d04
mov r9, r15
xor r8d, r8d
lea rdx, [rbp - 0x20]
lea rcx, [rbp - 0x80]
call fcn.140005e74
lea rdx, [rbp - 0x80]
mov rcx, r13
call fcn.14008a044
lea rbx, [r13 + 0x10]
cmp rbx, rdi
je 0x14008a9a4
mov r9, r15
xor r8d, r8d
mov rdx, rdi
mov rcx, rbx
call fcn.140003678
cmp qword [r13 + 0x80], r14
jne 0x14008a9da
mov rax, qword [rdi + 0x10]
cmp qword [rdi + 0x18], 8
jb 0x14008a9bb
mov rdi, qword [rdi]
mov ecx, 0x5c
cmp word [rdi + rax*2 - 2], cx
je 0x14008a9da
mov r8, rsi
lea rdx, [0x1400d1b48]
mov rcx, rbx
call fcn.140005d18
nop
cmp qword [rbp - 8], 8
jb 0x14008a9eb
mov rcx, qword [rbp - 0x20]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
mov qword [rbp - 8], r12
mov qword [rbp - 0x10], r14
mov word [rbp - 0x20], r14w
cmp qword [rbp + 0x18], 8
jb 0x14008aa09
mov rcx, qword [rbp]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
mov qword [rbp + 0x18], r12
mov qword [rbp + 0x10], r14
mov word [rbp], r14w
cmp qword [rbp - 0x68], 8
jb 0x14008aa27
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
mov rcx, qword [rbp + 0x340]
xor rcx, rsp
call fcn.1400afd50
mov rbx, qword [rsp + 0x4a0]
add rsp, 0x450
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea rdx, str.Invalid_normalized_file_path_format__no_root_delimiter_found_.
lea rcx, [rsp + 0x60]
call fcn.140005a10
nop
lea rdx, [rsp + 0x60]
lea rcx, [rbp + 0x20]
call fcn.1400461ac
lea rdx, [0x140111180]
lea rcx, [rbp + 0x20]
call sub.msvcrt.dll__CxxThrowException
nop
lea rdx, str.Invalid_normalized_file_path_format__no_closing__character_found_.
lea rcx, [rbp - 0x60]
call fcn.140005a10
nop
lea rdx, [rbp - 0x60]
lea rcx, [rbp + 0x20]
call fcn.1400461ac
lea rdx, [0x140111180]
lea rcx, [rbp + 0x20]
call sub.msvcrt.dll__CxxThrowException
nop
lea r8, [rsp + 0x60]
lea rdx, str.Invalid_known_folder_GUID:
lea rcx, [rbp - 0x60]
call fcn.14001c520
nop
lea rdx, [rbp - 0x60]
lea rcx, [rbp + 0x20]
call fcn.140004d20
lea rdx, [0x1401106a8]
lea rcx, [rbp + 0x20]
call sub.msvcrt.dll__CxxThrowException
nop
lea r8, [rsp + 0x60]
lea rdx, str.Unable_to_get_known_folder_path_for_GUID:
lea rcx, [rbp - 0x60]
call fcn.14001c520
nop
lea rdx, [rbp - 0x60]
lea rcx, [rbp + 0x20]
call fcn.140004d20
lea rdx, [0x1401106a8]
lea rcx, [rbp + 0x20]
call sub.msvcrt.dll__CxxThrowException
nop
lea rdx, str.Attempting_to_use_an_invalid_handle.
lea rcx, [rbp - 0x60]
call fcn.140005a10
nop
lea rdx, [rbp - 0x60]
lea rcx, [rbp + 0x20]
call fcn.140005274
lea rdx, [0x140110088]
lea rcx, [rbp + 0x20]
call sub.msvcrt.dll__CxxThrowException
nop
lea rdx, str.Invalid_normalized_file_path_format__no_closing___character_found_.
lea rcx, [rbp - 0x40]
call fcn.140005a10
nop
lea rdx, [rbp - 0x40]
lea rcx, [rbp + 0x20]
call fcn.1400461ac
lea rdx, [0x140111180]
lea rcx, [rbp + 0x20]
call sub.msvcrt.dll__CxxThrowException
nop
mov r9, r12
mov r8, rsi
lea rdx, [rbp + 0x80]
mov rcx, rdi
call fcn.14001a68c
nop
mov r8, rax
lea rdx, str.Unable_to_get_registry_value_from
lea rcx, [rbp + 0x20]
call fcn.14001a930
nop
lea rcx, [rbp + 0x80]
call fcn.140003530
mov r8d, r13d
lea rdx, [rbp + 0x20]
lea rcx, [rbp + 0xc0]
call fcn.140005128
lea rdx, [0x140110048]
lea rcx, [rbp + 0xc0]
call sub.msvcrt.dll__CxxThrowException
nop
mov r9, r12
mov r8, rsi
lea rdx, [rbp + 0x20]
mov rcx, rdi
call fcn.14001a68c
nop
mov r8, rax
lea rdx, str.Unable_to_get_registry_value_from
lea rcx, [rbp + 0x80]
call fcn.14001a930
nop
lea rcx, [rbp + 0x20]
call fcn.140003530
mov r8d, ebx
lea rdx, [rbp + 0x80]
lea rcx, [rbp + 0xc0]
call fcn.140005128
lea rdx, [0x140110048]
lea rcx, [rbp + 0xc0]
call sub.msvcrt.dll__CxxThrowException
nop
lea rdx, [0x1400d8bc0]
lea rcx, [rbp + 0x20]
call fcn.140005a10
nop
lea rdx, [rbp + 0x20]
lea rcx, [rbp + 0x80]
call fcn.1400461ac
lea rdx, [0x140111180]
lea rcx, [rbp + 0x80]
call sub.msvcrt.dll__CxxThrowException
nop
lea rdx, [rsp + 0x60]
lea rcx, [rbp + 0x20]
call fcn.140089ad4
lea rdx, [0x140111608]
lea rcx, [rbp + 0x20]
call sub.msvcrt.dll__CxxThrowException
int3