Function at 0x140190540
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x310]
mov eax, 0x410
call fcn.14024eae0
sub rsp, rax
mov rax, qword [0x14035d028]
xor rax, rsp
mov qword [rbp + 0x300], rax
mov rbx, rdx
mov r14, rcx
xor r12d, r12d
cmp qword [rcx + 0x30], r12
je 0x140190781
call fcn.14018ff50
mov esi, eax
mov dword [rsp + 0x40], r12d
mov qword [rsp + 0x48], r12
mov r9d, r12d
mov qword [rsp + 0x58], r12
lea ecx, [r12 + 7]
mov qword [rsp + 0x60], rcx
mov word [rsp + 0x48], r12w
mov rdi, qword [rbx]
mov r15, qword [rbx + 8]
cmp rdi, r15
je 0x1401905e2
mov rcx, rdi
call fcn.14000ac30
add rdi, 0x20
cmp rdi, r15
jne 0x1401905c0
mov rax, qword [rbx]
mov qword [rbx + 8], rax
mov rcx, qword [rsp + 0x60]
mov r9, qword [rsp + 0x58]
test esi, esi
je 0x1401906eb
mov edi, 0x3fff
dec esi
mov dword [rsp + 0x40], 0x4000
cmp r9, rdi
jb 0x14019061c
lea rax, [rsp + 0x48]
cmp rcx, 8
cmovae rax, qword [rsp + 0x48]
mov qword [rsp + 0x58], rdi
mov word [rax + 0x7ffe], r12w
jmp 0x14019062f
xor r8d, r8d
mov rdx, rdi
sub rdx, r9
lea rcx, [rsp + 0x48]
call fcn.14000aabc
lea r8, [rsp + 0x48]
cmp qword [rsp + 0x60], 8
cmovae r8, qword [rsp + 0x48]
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x40]
mov edx, esi
mov rcx, qword [r14 + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov r8d, eax
test eax, eax
jne 0x140190755
mov edx, dword [rsp + 0x40]
cmp rdx, qword [rsp + 0x58]
ja 0x140190698
lea rax, [rsp + 0x48]
cmp qword [rsp + 0x60], 8
cmovae rax, qword [rsp + 0x48]
mov qword [rsp + 0x58], rdx
mov word [rax + rdx*2], r12w
jmp 0x1401906aa
xor r8d, r8d
sub rdx, qword [rsp + 0x58]
lea rcx, [rsp + 0x48]
call fcn.14000aabc
mov rax, qword [rbx + 8]
cmp rax, qword [rbx + 0x10]
je 0x1401906c8
lea rdx, [rsp + 0x48]
mov rcx, rax
call fcn.14000ad78
add qword [rbx + 8], 0x20
jmp 0x1401906d8
lea r8, [rsp + 0x48]
mov rdx, rax
mov rcx, rbx
call fcn.140023f3c
mov rcx, qword [rsp + 0x60]
test esi, esi
je 0x1401906eb
mov r9, qword [rsp + 0x58]
jmp 0x1401905ef
cmp rcx, 8
jb 0x14019072a
mov rdx, qword [rsp + 0x48]
mov r8, rdx
lea rax, [rcx*2 + 2]
cmp rax, 0x1000
jb 0x140190721
mov rdx, qword [rdx - 8]
sub r8, rdx
lea rax, [r8 - 8]
cmp rax, 0x1f
jbe 0x140190721
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rdx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rbp + 0x300]
xor rcx, rsp
call fcn.14024c6d0
lea r11, [rsp + 0x410]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
lea rax, [r14 + 0x10]
mov qword [rsp + 0x20], rax
lea r9, str.ORegistryKey.GetValueNames_failure:_Cannot_get_all_value_names_for_registry__s
lea rcx, [rsp + 0x70]
call fcn.140190b68
lea rdx, [0x140325060]
lea rcx, [rsp + 0x70]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
lea r8, str.ORegistryKey.GetValueNames_failure:_Cannot_get_all_value_names._The_registry_is_closed_or_not_set
lea rcx, [rsp + 0x70]
call fcn.140190acc
lea rdx, [0x140325060]
lea rcx, [rsp + 0x70]
call sub.VCRUNTIME140.dll__CxxThrowException
int3