Function at 0x140098384
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 [0x140120c90]
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 0x1400983ea
mov rax, qword [rdx]
jmp 0x1400983ed
mov rax, rdi
mov ecx, 0x25
cmp word [rax], cx
je 0x140098719
cmp word [rax], 0x5b
je 0x1400984f2
cmp word [rax], 0x7b
jne 0x1400989c6
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.1400063b0
mov r15, rax
or r14, 0xffffffffffffffff
cmp rax, r14
je 0x1400989f7
mov qword [rsp + 0x78], rbx
mov qword [rsp + 0x70], r12
mov word [rsp + 0x60], r12w
lea r9, [rax + 1]
xor r8d, r8d
mov rdx, rdi
lea rcx, [rsp + 0x60]
call fcn.140003ca4
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]
nop dword [rax + rax]
test eax, eax
js 0x140098a26
mov qword [rsp + 0x48], r12
lea r9, [rsp + 0x48]
xor r8d, r8d
xor edx, edx
lea rcx, [rbp - 0x40]
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
nop dword [rax + rax]
test eax, eax
js 0x140098a5a
mov rdx, qword [rsp + 0x48]
test rdx, rdx
je 0x140098a8e
cmp word [rdx], r12w
jne 0x1400984cb
mov r8, r12
jmp 0x1400984d8
mov r8, r14
inc r8
cmp word [rdx + r8*2], r12w
jne 0x1400984ce
lea rcx, [rbp - 0x80]
call fcn.1400064bc
nop
lea rcx, [rsp + 0x48]
call fcn.140098c50
nop
jmp 0x140098793
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.1400063b0
mov r15, rax
or r14, 0xffffffffffffffff
cmp rax, r14
je 0x140098abd
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
mov qword [rbp - 0x28], rbx
mov qword [rbp - 0x30], r12
mov word [rbp - 0x40], r12w
lea r12, [rax - 1]
mov r9, r12
mov r8d, esi
mov rdx, rdi
lea rcx, [rbp - 0x40]
call fcn.140003ca4
nop
lea r8, [rbp - 0x60]
lea rdx, [rsp + 0x60]
lea rcx, [rbp - 0x40]
call fcn.140097bcc
nop
cmp qword [rbp - 0x28], 8
jb 0x14009858d
mov rcx, qword [rbp - 0x40]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
nop dword [rax + rax]
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]
nop dword [rax + rax]
mov ebx, eax
cmp eax, 0xea
jne 0x1400986b0
mov ecx, dword [rsp + 0x48]
shr rcx, 1
mov r13d, 2
mov eax, r13d
mul rcx
cmovo rax, r14
mov rcx, rax
call fcn.1400a1a90
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
and qword [rsp + 0x20], 0
mov r9d, r13d
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
nop dword [rax + rax]
mov r13d, eax
xor eax, eax
cmp word [rbx], ax
jne 0x140098675
mov r8d, eax
jmp 0x140098682
mov r8, r14
inc r8
cmp word [rbx + r8*2], ax
jne 0x140098678
mov rdx, rbx
lea rcx, [rbp - 0x80]
call fcn.1400064bc
test r13d, r13d
jne 0x140098aec
mov rcx, rbx
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_]
nop dword [rax + rax]
mov r13, qword [rsp + 0x50]
xor r12d, r12d
jmp 0x1400986ef
test ebx, ebx
jne 0x140098b49
xor r12d, r12d
cmp word [rbp + 0x130], r12w
jne 0x1400986ca
mov r8d, r12d
jmp 0x1400986de
lea rax, [rbp + 0x130]
mov r8, r14
inc r8
cmp word [rax + r8*2], r12w
jne 0x1400986d4
lea rdx, [rbp + 0x130]
lea rcx, [rbp - 0x80]
call fcn.1400064bc
nop
cmp qword [rbp - 0x48], 8
jb 0x140098706
mov rcx, qword [rbp - 0x60]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
nop dword [rax + rax]
mov qword [rbp - 0x48], 7
mov qword [rbp - 0x50], r12
mov word [rbp - 0x60], r12w
jmp 0x140098793
mov word [rsp + 0x40], cx
mov esi, 1
mov r9d, esi
mov r8d, esi
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.1400063b0
mov r15, rax
or r14, 0xffffffffffffffff
cmp rax, r14
je 0x140098ba6
mov qword [rsp + 0x78], rbx
mov qword [rsp + 0x70], r12
mov word [rsp + 0x60], r12w
lea r9, [rax + 1]
xor r8d, r8d
mov rdx, rdi
lea rcx, [rsp + 0x60]
call fcn.140003ca4
nop
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x60]
call fcn.140028488
lea rax, [rbp - 0x80]
cmp qword [rbp - 0x68], 8
cmovae rax, qword [rbp - 0x80]
lea ecx, [rsi + 0x24]
cmp word [rax], cx
je 0x1400989a7
cmp qword [rsp + 0x78], 8
jb 0x1400987ac
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
nop dword [rax + rax]
mov r8b, sil
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x60]
call fcn.140097df0
mov rbx, rax
lea rax, [rbp - 0x80]
cmp rax, rbx
je 0x1400987fd
cmp qword [rbp - 0x68], 8
jb 0x1400987e0
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
nop dword [rax + rax]
mov qword [rbp - 0x68], 7
mov qword [rbp - 0x70], r12
mov word [rbp - 0x80], r12w
mov rdx, rbx
lea rcx, [rbp - 0x80]
call fcn.140006798
cmp qword [rsp + 0x78], 8
jb 0x140098816
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
nop dword [rax + rax]
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 0x140098848
mov r8d, edx
mov rdx, rsi
lea rcx, [rbp - 0x80]
call fcn.14000ebe0
mov edx, 0x5c
cmp qword [rdi + 0x18], 8
jb 0x140098854
mov rax, qword [rdi]
jmp 0x140098857
mov rax, rdi
movzx eax, word [rax + r15*2 + 2]
mov qword [rbp + 0x18], 7
mov qword [rbp + 0x10], r12
mov word [rbp], r12w
mov r8, r12
cmp ax, dx
sete r8b
add r8, rsi
add r8, r15
mov r9, r14
mov rdx, rdi
lea rcx, [rbp]
call fcn.140003ca4
nop
mov r15d, 7
mov qword [rbp - 8], r15
mov qword [rbp - 0x10], r12
mov word [rbp - 0x20], r12w
lea rdx, [rbp - 0x20]
lea rcx, [rbp]
call fcn.140028488
mov r9, r14
xor r8d, r8d
lea rdx, [rbp - 0x20]
lea rcx, [rbp - 0x80]
call fcn.1400066b4
lea rdx, [rbp - 0x80]
mov rcx, r13
call fcn.140097f34
lea rbx, [r13 + 0x10]
cmp rbx, rdi
je 0x1400988e7
mov r9, r14
xor r8d, r8d
mov rdx, rdi
mov rcx, rbx
call fcn.140003ca4
cmp qword [r13 + 0x80], r12
jne 0x14009891d
mov rax, qword [rdi + 0x10]
cmp qword [rdi + 0x18], 8
jb 0x1400988fe
mov rdi, qword [rdi]
mov ecx, 0x5c
cmp word [rdi + rax*2 - 2], cx
je 0x14009891d
mov r8, rsi
lea rdx, [0x1400de1cc]
mov rcx, rbx
call fcn.1400065a4
nop
cmp qword [rbp - 8], 8
jb 0x140098934
mov rcx, qword [rbp - 0x20]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
nop dword [rax + rax]
mov qword [rbp - 8], r15
mov qword [rbp - 0x10], r12
mov word [rbp - 0x20], r12w
cmp qword [rbp + 0x18], 8
jb 0x140098958
mov rcx, qword [rbp]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
nop dword [rax + rax]
mov qword [rbp + 0x18], r15
mov qword [rbp + 0x10], r12
mov word [rbp], r12w
cmp qword [rbp - 0x68], 8
jb 0x14009897c
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
nop dword [rax + rax]
mov rcx, qword [rbp + 0x340]
xor rcx, rsp
call fcn.1400be470
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, [rsp + 0x60]
lea rcx, [rbp + 0x20]
call fcn.14009796c
lea rdx, [0x140118300]
lea rcx, [rbp + 0x20]
call sub.msvcrt.dll__CxxThrowException
nop
lea rdx, str.Invalid_normalized_file_path_format__no_root_delimiter_found_.
lea rcx, [rsp + 0x60]
call fcn.1400062c8
nop
lea rdx, [rsp + 0x60]
lea rcx, [rbp + 0x20]
call fcn.140050f18
lea rdx, [0x140117de0]
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.1400062c8
nop
lea rdx, [rbp - 0x60]
lea rcx, [rbp + 0x20]
call fcn.140050f18
lea rdx, [0x140117de0]
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.14002442c
nop
lea rdx, [rbp - 0x60]
lea rcx, [rbp + 0x20]
call fcn.1400054f4
lea rdx, [0x140117380]
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.14002442c
nop
lea rdx, [rbp - 0x60]
lea rcx, [rbp + 0x20]
call fcn.1400054f4
lea rdx, [0x140117380]
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.1400062c8
nop
lea rdx, [rbp - 0x60]
lea rcx, [rbp + 0x20]
call fcn.140005ae4
lea rdx, [0x140116d60]
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.1400062c8
nop
lea rdx, [rbp - 0x40]
lea rcx, [rbp + 0x20]
call fcn.140050f18
lea rdx, [0x140117de0]
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.14001c640
nop
mov r8, rax
lea rdx, str.Unable_to_get_registry_value_from
lea rcx, [rbp + 0x20]
call fcn.14001c8f4
nop
lea rcx, [rbp + 0x80]
call fcn.140003b30
mov r8d, r13d
lea rdx, [rbp + 0x20]
lea rcx, [rbp + 0xc0]
call fcn.140005970
lea rdx, [0x140116c80]
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.14001c640
nop
mov r8, rax
lea rdx, str.Unable_to_get_registry_value_from
lea rcx, [rbp + 0x80]
call fcn.14001c8f4
nop
lea rcx, [rbp + 0x20]
call fcn.140003b30
mov r8d, ebx
lea rdx, [rbp + 0x80]
lea rcx, [rbp + 0xc0]
call fcn.140005970
lea rdx, [0x140116c80]
lea rcx, [rbp + 0xc0]
call sub.msvcrt.dll__CxxThrowException
nop
lea rdx, [0x1400e5320]
lea rcx, [rbp + 0x20]
call fcn.1400062c8
nop
lea rdx, [rbp + 0x20]
lea rcx, [rbp + 0x80]
call fcn.140050f18
lea rdx, [0x140117de0]
lea rcx, [rbp + 0x80]
call sub.msvcrt.dll__CxxThrowException
int3