Function at 0x14008dc94
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 [0x140122f00]
xor rax, rsp
mov qword [rbp + 0x340], rax
mov rdi, rdx
mov r13, rcx
mov qword [rsp + 0x50], rcx
mov ebx, 7
mov qword [rbp - 0x68], rbx
xor r12d, r12d
mov qword [rbp - 0x70], r12
mov word [rbp - 0x80], r12w
cmp qword [rdx + 0x18], 8
jb 0x14008dcfa
mov rax, qword [rdx]
jmp 0x14008dcfd
mov rax, rdx
movzx eax, word [rax]
mov ecx, 0x25
cmp eax, ecx
je 0x14008e1ab
cmp eax, 0x5b
je 0x14008decc
cmp eax, 0x7b
je 0x14008dd4c
lea rdx, str.Invalid_normalized_file_path_format__no_root_delimiter_found_.
lea rcx, [rsp + 0x60]
call fcn.140005a2c
nop
lea rdx, [rsp + 0x60]
lea rcx, [rbp + 0x20]
call fcn.1400498a0
lea rdx, [0x140119720]
lea rcx, [rbp + 0x20]
call sub.msvcrt.dll__CxxThrowException
nop
mov eax, 0x7d
mov word [rsp + 0x40], ax
lea r14d, [rax - 0x7c]
mov r9d, r14d
xor r8d, r8d
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.140005b14
mov rsi, rax
or r15, 0xffffffffffffffff
cmp rax, r15
jne 0x14008dda8
lea rdx, str.Invalid_normalized_file_path_format__no_closing__character_found_.
lea rcx, [rbp - 0x60]
call fcn.140005a2c
nop
lea rdx, [rbp - 0x60]
lea rcx, [rbp + 0x20]
call fcn.1400498a0
lea rdx, [0x140119720]
lea rcx, [rbp + 0x20]
call sub.msvcrt.dll__CxxThrowException
nop
lea r9, [rax + 1]
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, rdi
call fcn.14001ceb4
nop
lea rcx, [rsp + 0x60]
cmp qword [rsp + 0x78], 8
cmovae rcx, qword [rsp + 0x60]
lea rdx, [rbp - 0x20]
call qword [sym.imp.ole32.dll_CLSIDFromString]
test eax, eax
jns 0x14008de10
lea r8, [rsp + 0x60]
lea rdx, str.Invalid_known_folder_GUID:
lea rcx, [rbp - 0x60]
call fcn.14001eec4
nop
lea rdx, [rbp - 0x60]
lea rcx, [rbp + 0x20]
call fcn.140004cdc
lea rdx, [0x140118c50]
lea rcx, [rbp + 0x20]
call sub.msvcrt.dll__CxxThrowException
nop
mov qword [rsp + 0x48], r12
lea r9, [rsp + 0x48]
xor r8d, r8d
xor edx, edx
lea rcx, [rbp - 0x20]
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
jns 0x14008de61
lea r8, [rsp + 0x60]
lea rdx, str.Unable_to_get_known_folder_path_for_GUID:
lea rcx, [rbp - 0x60]
call fcn.14001eec4
nop
lea rdx, [rbp - 0x60]
lea rcx, [rbp + 0x20]
call fcn.140004cdc
lea rdx, [0x140118c50]
lea rcx, [rbp + 0x20]
call sub.msvcrt.dll__CxxThrowException
nop
mov rdx, qword [rsp + 0x48]
test rdx, rdx
jne 0x14008de9a
lea rdx, str.Attempting_to_use_an_invalid_handle.
lea rcx, [rbp - 0x60]
call fcn.140005a2c
nop
lea rdx, [rbp - 0x60]
lea rcx, [rbp + 0x20]
call fcn.140005278
lea rdx, [0x140118428]
lea rcx, [rbp + 0x20]
call sub.msvcrt.dll__CxxThrowException
nop
cmp word [rdx], r12w
jne 0x14008dea5
mov r8, r12
jmp 0x14008deb2
mov r8, r15
inc r8
cmp word [rdx + r8*2], r12w
jne 0x14008dea8
lea rcx, [rbp - 0x80]
call fcn.140005c18
nop
lea rcx, [rsp + 0x48]
call fcn.14008e4a8
nop
jmp 0x14008e264
mov eax, 0x5d
mov word [rsp + 0x40], ax
lea r14d, [rax - 0x5c]
mov r9d, r14d
xor r8d, r8d
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.140005b14
mov rsi, rax
or r15, 0xffffffffffffffff
cmp rax, r15
jne 0x14008df28
lea rdx, str.Invalid_normalized_file_path_format__no_closing___character_found_.
lea rcx, [rbp - 0x20]
call fcn.140005a2c
nop
lea rdx, [rbp - 0x20]
lea rcx, [rbp + 0x20]
call fcn.1400498a0
lea rdx, [0x140119720]
lea rcx, [rbp + 0x20]
call sub.msvcrt.dll__CxxThrowException
nop
mov qword [rsp + 0x78], rbx
mov qword [rsp + 0x70], r12
mov word [rsp + 0x60], r12w
mov qword [rbp - 0x48], rbx
mov qword [rbp - 0x50], r12
mov word [rbp - 0x60], r12w
lea r12, [rax - 1]
mov r9, r12
mov r8, r14
lea rdx, [rbp - 0x20]
mov rcx, rdi
call fcn.14001ceb4
nop
lea r8, [rbp - 0x60]
lea rdx, [rsp + 0x60]
mov rcx, rax
call fcn.14008d554
nop
cmp qword [rbp - 8], 8
jb 0x14008df7f
mov rcx, qword [rbp - 0x20]
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
and qword [rsp + 0x20], 0
mov rcx, 0xffffffff80000001
mov r9d, 2
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
mov ebx, eax
cmp eax, 0xea
jne 0x14008e0ec
mov ecx, dword [rsp + 0x48]
shr rcx, 1
mov r13d, 2
mov eax, r13d
mul rcx
cmovo rax, r15
mov rcx, rax
call fcn.140097b58
mov rbx, rax
mov qword [rbp - 0x20], 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
and qword [rsp + 0x20], 0
mov r9d, r13d
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
mov r13d, eax
xor eax, eax
cmp word [rbx], ax
jne 0x14008e05b
mov r8d, eax
jmp 0x14008e068
mov r8, r15
inc r8
cmp word [rbx + r8*2], ax
jne 0x14008e05e
mov rdx, rbx
lea rcx, [rbp - 0x80]
call fcn.140005c18
test r13d, r13d
je 0x14008e0d6
mov r9, r12
mov r8, r14
lea rdx, [rbp + 0x80]
mov rcx, rdi
call fcn.14001ceb4
nop
mov r8, rax
lea rdx, str.Unable_to_get_registry_value_from
lea rcx, [rbp + 0x20]
call fcn.14001d148
nop
lea rcx, [rbp + 0x80]
call fcn.140003360
mov r8d, r13d
lea rdx, [rbp + 0x20]
lea rcx, [rbp + 0xc0]
call fcn.140005114
lea rdx, [0x1401183e8]
lea rcx, [rbp + 0xc0]
call sub.msvcrt.dll__CxxThrowException
nop
mov rcx, rbx
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_]
mov r13, qword [rsp + 0x50]
xor r12d, r12d
jmp 0x14008e184
test ebx, ebx
je 0x14008e14d
mov r9, r12
mov r8, r14
lea rdx, [rbp + 0x20]
mov rcx, rdi
call fcn.14001ceb4
nop
mov r8, rax
lea rdx, str.Unable_to_get_registry_value_from
lea rcx, [rbp + 0x80]
call fcn.14001d148
nop
lea rcx, [rbp + 0x20]
call fcn.140003360
mov r8d, ebx
lea rdx, [rbp + 0x80]
lea rcx, [rbp + 0xc0]
call fcn.140005114
lea rdx, [0x1401183e8]
lea rcx, [rbp + 0xc0]
call sub.msvcrt.dll__CxxThrowException
nop
xor r12d, r12d
cmp word [rbp + 0x130], r12w
jne 0x14008e15f
mov r8d, r12d
jmp 0x14008e173
lea rax, [rbp + 0x130]
mov r8, r15
inc r8
cmp word [rax + r8*2], r12w
jne 0x14008e169
lea rdx, [rbp + 0x130]
lea rcx, [rbp - 0x80]
call fcn.140005c18
nop
cmp qword [rbp - 0x48], 8
jb 0x14008e195
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], r12
mov word [rbp - 0x60], r12w
jmp 0x14008e264
mov word [rsp + 0x40], cx
mov r14d, 1
mov r9d, r14d
mov r8d, r14d
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.140005b14
mov rsi, rax
or r15, 0xffffffffffffffff
cmp rax, r15
jne 0x14008e20a
lea rdx, [0x1400e07c0]
lea rcx, [rbp + 0x20]
call fcn.140005a2c
nop
lea rdx, [rbp + 0x20]
lea rcx, [rbp + 0x80]
call fcn.1400498a0
lea rdx, [0x140119720]
lea rcx, [rbp + 0x80]
call sub.msvcrt.dll__CxxThrowException
nop
lea r9, [rax + 1]
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, rdi
call fcn.14001ceb4
nop
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x60]
call fcn.140025bb8
lea rax, [rbp - 0x80]
cmp qword [rbp - 0x68], 8
cmovae rax, qword [rbp - 0x80]
mov ecx, 0x25
cmp word [rax], cx
jne 0x14008e264
lea rdx, [rsp + 0x60]
lea rcx, [rbp + 0x20]
call fcn.14008d31c
lea rdx, [0x140119bd0]
lea rcx, [rbp + 0x20]
call sub.msvcrt.dll__CxxThrowException
nop
cmp qword [rsp + 0x78], 8
jb 0x14008e277
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
mov r8b, r14b
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x60]
call fcn.14008d740
mov rbx, rax
lea rax, [rbp - 0x80]
cmp rax, rbx
je 0x14008e2c2
cmp qword [rbp - 0x68], 8
jb 0x14008e2a5
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
mov qword [rbp - 0x68], 7
mov qword [rbp - 0x70], r12
mov word [rbp - 0x80], r12w
mov rdx, rbx
lea rcx, [rbp - 0x80]
call fcn.140005fbc
cmp qword [rsp + 0x78], 8
jb 0x14008e2d5
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
add rsi, r14
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 0x14008e30a
mov r8d, edx
mov rdx, r14
lea rcx, [rbp - 0x80]
call fcn.14000e2ec
mov edx, 0x5c
cmp qword [rdi + 0x18], 8
jb 0x14008e316
mov rax, qword [rdi]
jmp 0x14008e319
mov rax, rdi
cmp word [rax + rsi*2], dx
jne 0x14008e322
add rsi, r14
mov r9, r15
mov r8, rsi
lea rdx, [rbp]
mov rcx, rdi
call fcn.14001ceb4
nop
mov esi, 7
mov qword [rbp - 0x28], rsi
mov qword [rbp - 0x30], r12
mov word [rbp - 0x40], r12w
lea rdx, [rbp - 0x40]
lea rcx, [rbp]
call fcn.140025bb8
mov r9, r15
xor r8d, r8d
lea rdx, [rbp - 0x40]
lea rcx, [rbp - 0x80]
call fcn.140005e98
lea rdx, [rbp - 0x80]
mov rcx, r13
call fcn.14008d890
lea rbx, [r13 + 0x10]
cmp rbx, rdi
je 0x14008e38d
mov r9, r15
xor r8d, r8d
mov rdx, rdi
mov rcx, rbx
call fcn.1400034bc
cmp qword [r13 + 0x80], r12
jne 0x14008e3c3
mov rax, qword [rdi + 0x10]
cmp qword [rdi + 0x18], 8
jb 0x14008e3a4
mov rdi, qword [rdi]
mov ecx, 0x5c
cmp word [rdi + rax*2 - 2], cx
je 0x14008e3c3
mov r8, r14
lea rdx, [0x1400d995c]
mov rcx, rbx
call fcn.140005d3c
nop
cmp qword [rbp - 0x28], 8
jb 0x14008e3d4
mov rcx, qword [rbp - 0x40]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
mov qword [rbp - 0x28], rsi
mov qword [rbp - 0x30], r12
mov word [rbp - 0x40], r12w
cmp qword [rbp + 0x18], 8
jb 0x14008e3f2
mov rcx, qword [rbp]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
mov qword [rbp + 0x18], rsi
mov qword [rbp + 0x10], r12
mov word [rbp], r12w
cmp qword [rbp - 0x68], 8
jb 0x14008e410
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.1400b3bf0
mov rbx, qword [rsp + 0x4a0]
add rsp, 0x450
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret