Function at 0x14000d8f4
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xe0
mov qword [rbp + 0x27], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov rdi, rdx
mov dword [rbp - 0x39], 1
lea r15, fcn.14000b480
mov qword [rbp - 0x41], r15
xor r14d, r14d
mov qword [rbp - 0x31], r14
mov byte [rbp - 0x29], 1
lea r8, [rbp - 0x31]
xor edx, edx
call fcn.14000d748
test eax, eax
je 0x14000d965
mov qword [rbp - 0x41], r15
cmp byte [rbp - 0x29], r14b
je 0x14000d95e
mov rcx, qword [rbp - 0x31]
test rcx, rcx
je 0x14000d95e
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
xor al, al
jmp 0x14000db50
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x48], r14
lea rax, [rbp + 0x7f]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r14
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbp - 0x31]
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x14000d944
mov edx, dword [rbp + 0x7f]
inc edx
lea rcx, [rbp - 0x11]
call fcn.14000dcc0
mov esi, r14d
mov rbx, qword [rbp - 0x11]
xor edx, edx
jmp 0x14000d9f8
test eax, eax
jne 0x14000da98
mov eax, dword [rbp + 0x77]
mov dword [rbp - 0x21], eax
mov qword [rbp - 0x19], rbx
mov rcx, qword [rdi + 0x38]
test rcx, rcx
je 0x14000da91
mov rax, qword [rcx]
lea r8, [rbp - 0x21]
lea rdx, [rbp - 0x19]
mov rax, qword [rax + 0x10]
call qword [case.0x1400ee2b6.0]
inc esi
mov edx, esi
mov eax, dword [rbp + 0x7f]
inc eax
mov qword [rsp + 0x38], r14
mov dword [rbp - 0x49], eax
mov qword [rsp + 0x30], r14
lea rax, [rbp + 0x77]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
mov dword [rbp + 0x77], r14d
lea r9, [rbp - 0x49]
mov r8, rbx
mov rcx, qword [rbp - 0x31]
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, 0x103
jne 0x14000d9c0
lea r9, str.Successfully_got_the_registry_values
mov edx, 0x3a7
mov ecx, 0x23ca345
mov r8d, 0x32
call fcn.140122aa8
test rbx, rbx
je 0x14000db34
mov rcx, rbx
mov rax, qword [rbp - 1]
sub rax, rbx
sar rax, 1
add rax, rax
cmp rax, 0x1000
jb 0x14000db2a
mov rbx, qword [rbx - 8]
sub rcx, rbx
lea rax, [rcx - 8]
cmp rax, 0x1f
jbe 0x14000db2a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xbad_function_call_void_]
nop
lea rcx, [0x14013c2b0]
mov qword [rbp + 7], rcx
lea rcx, [0x140145870]
mov qword [rbp + 0xf], rcx
cdqe
mov qword [rbp + 0x17], rax
mov word [rbp + 0x1f], r14w
lea rax, [rbp + 7]
mov qword [rsp + 0x28], rax
lea rax, str.RegEnumValue_did_not_return_an_expected_result
mov qword [rsp + 0x20], rax
mov edx, 0x3a7
mov ecx, 0x23ca344
mov r8d, 0xf
call fcn.14000b6e4
test rbx, rbx
je 0x14000d944
mov rcx, rbx
mov rax, qword [rbp - 1]
sub rax, rbx
sar rax, 1
add rax, rax
cmp rax, 0x1000
jb 0x14000db1c
mov rbx, qword [rbx - 8]
sub rcx, rbx
lea rax, [rcx - 8]
cmp rax, 0x1f
jbe 0x14000db1c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x14000d944
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
mov qword [rbp - 0x41], r15
cmp byte [rbp - 0x29], r14b
je 0x14000db4e
mov rcx, qword [rbp - 0x31]
test rcx, rcx
je 0x14000db4e
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov al, 1
mov rbx, qword [rsp + 0x110]
add rsp, 0xe0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret