Function at 0x1400997bc
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r14
lea rbp, [rsp - 0x80]
sub rsp, 0x180
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 0x20], rbx
mov rax, qword [0x140100070]
xor rax, rsp
mov qword [rbp + 0x70], rax
mov rsi, r8
mov rbx, rdx
mov r14, rcx
xor r12d, r12d
mov dword [rsp + 0x38], r12d
cmp qword [rcx], r12
jne 0x14009980a
xor al, al
jmp 0x140099a69
mov dword [rsp + 0x30], r12d
mov dword [rsp + 0x34], 0x400
mov ecx, 0x802
call fcn.1400a98bc
mov rdi, rax
xor edx, edx
mov r8d, 0x802
mov rcx, rax
call qword [sym.imp.VCRUNTIME140.dll_memset]
mov rdx, rbx
cmp qword [rbx + 0x18], 8
jb 0x140099842
mov rdx, qword [rbx]
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x30]
xor r8d, r8d
mov rcx, qword [r14]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x1400998c9
mov r8, rbx
lea rdx, str.Query_registry_value_with_key:
lea rcx, [rbp + 0x50]
call fcn.1400942a8
mov rdx, qword [rbp + 0x68]
cmp rdx, 8
jb 0x1400998bc
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400998b7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400998b7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400a9870
mov rcx, rdi
call fcn.1400a9870
jmp 0x140099803
cmp dword [rsp + 0x30], 4
jne 0x140099a17
mov ebx, dword [rdi]
lea rax, [0x1400e0f68]
mov qword [rsp + 0x50], rax
lea rax, [0x1400e0eb8]
mov qword [rsp + 0x60], rax
lea rcx, [rbp - 0x18]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::constructor_void____ptr64]
nop
mov dword [rsp + 0x38], 1
xor r8d, r8d
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x50]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_iostream_wchar_t__struct_std::char_traits_wchar_t__::constructor_class_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t______ptr64____ptr64]
nop
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
lea r14, vtable.std::basic_stringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov qword [rsp + rcx + 0x50], r14
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x98]
mov dword [rsp + rcx + 0x4c], edx
lea rax, [rsp + 0x68]
mov qword [rsp + 0x48], rax
lea rcx, [rsp + 0x68]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__::constructor_void____ptr64]
nop
lea rax, vtable.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov qword [rsp + 0x68], rax
mov qword [rbp - 0x30], r12
mov dword [rbp - 0x28], r12d
mov edx, ebx
lea rcx, [rsp + 0x60]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___int____ptr64]
lea rdx, [rbp + 0x50]
lea rcx, [rsp + 0x68]
call fcn.14008082c
lea rdx, [rbp + 0x50]
mov rcx, rsi
call fcn.14007ee6c
mov rdx, qword [rbp + 0x68]
cmp rdx, 8
jb 0x1400999d2
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400999cc
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400999cc
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400a9870
nop
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
mov qword [rsp + rcx + 0x50], r14
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x98]
mov rax, rcx
mov dword [rsp + rcx + 0x4c], edx
lea rcx, [rsp + 0x68]
call fcn.1400801d0
lea rcx, [rsp + 0x70]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_iostream_wchar_t__struct_std::char_traits_wchar_t__::destructor_void____ptr64]
lea rcx, [rbp - 0x18]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::destructor_void____ptr64]
jmp 0x140099a5f
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
cmp rax, qword [rsi + 0x18]
ja 0x140099a51
mov r14, rsi
cmp qword [rsi + 0x18], 8
jb 0x140099a33
mov r14, qword [rsi]
mov qword [rsi + 0x10], rax
lea rbx, [rax + rax]
mov r8, rbx
mov rdx, rdi
mov rcx, r14
call qword [sym.imp.VCRUNTIME140.dll_memmove]
mov word [rbx + r14], r12w
jmp 0x140099a5f
mov r9, rdi
mov rdx, rax
mov rcx, rsi
call fcn.14007c968
mov rcx, rdi
call fcn.1400a9870
mov al, 1
mov rcx, qword [rbp + 0x70]
xor rcx, rsp
call fcn.1400a95a0
mov rbx, qword [rsp + 0x1c8]
add rsp, 0x180
pop r14
pop r12
pop rdi
pop rsi
pop rbp
ret