Function at 0x1400709d4
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x1f]
sub rsp, 0xd0
mov qword [rbp - 0x61], 0xfffffffffffffffe
mov rax, qword [0x140120c80]
xor rax, rsp
mov qword [rbp + 0xf], rax
mov rdi, r8
mov r15d, edx
mov rsi, rcx
mov r14, qword [rbp + 0x7f]
xor r12d, r12d
mov qword [rbp - 0x71], r12
mov rcx, r14
call fcn.140050824
mov ecx, 0x8000
call fcn.1400a1a90
mov rbx, rax
mov qword [rbp - 0x59], rax
test rax, rax
jne 0x140070a70
lea edi, [rax + 0xe]
mov rcx, rbx
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_]
nop dword [rax + rax]
nop
lea rcx, [rbp - 0x71]
call fcn.140006264
mov eax, edi
mov rcx, qword [rbp + 0xf]
xor rcx, rsp
call fcn.1400be470
add rsp, 0xd0
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
cmp qword [rbp - 0x71], r12
jne 0x140070c1a
cmp qword [rdi + 0x18], 8
jb 0x140070a84
mov rdi, qword [rdi]
mov edx, r15d
mov rcx, rsi
call fcn.1400706dc
mov rcx, rax
lea rax, [rbp - 0x71]
mov qword [rsp + 0x20], rax
mov r9d, 0x20119
xor r8d, r8d
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop dword [rax + rax]
mov edi, eax
test eax, eax
jne 0x140070a36
mov esi, r12d
mov dword [rbp - 0x69], 0x4000
mov rcx, qword [rbp - 0x71]
test rcx, rcx
setne al
test al, al
je 0x140070beb
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
lea rax, [rbp - 0x65]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r12
lea r9, [rbp - 0x69]
mov r8, rbx
mov edx, esi
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
nop dword [rax + rax]
mov edi, eax
test eax, eax
jne 0x140070bb8
cmp dword [rbp - 0x65], 1
jne 0x140070ba5
mov qword [rbp + 7], 7
mov qword [rbp - 1], r12
mov word [rbp - 0x11], r12w
cmp word [rbx], r12w
jne 0x140070b36
mov r8, r12
jmp 0x140070b44
or r8, 0xffffffffffffffff
inc r8
cmp word [rbx + r8*2], r12w
jne 0x140070b3a
mov rdx, rbx
lea rcx, [rbp - 0x11]
call fcn.1400064bc
nop
mov r15, qword [r14]
lea r9, [rbp - 0x11]
mov r8, qword [r15 + 8]
mov rdx, r15
call fcn.140077258
mov rdx, qword [r14 + 8]
movabs rcx, 0x555555555555554
sub rcx, rdx
cmp rcx, 1
jb 0x140070bde
lea rcx, [rdx + 1]
mov qword [r14 + 8], rcx
mov qword [r15 + 8], rax
mov rcx, qword [rax + 8]
mov qword [rcx], rax
cmp qword [rbp + 7], 8
jb 0x140070ba5
mov rcx, qword [rbp - 0x11]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
nop dword [rax + rax]
inc esi
cmp esi, 0x1000
jae 0x140070a36
jmp 0x140070ac0
cmp eax, 0x103
jne 0x140070bd1
mov edi, 2
cmp qword [r14 + 8], r12
cmova edi, r12d
jmp 0x140070a36
mov rcx, r14
call fcn.140050824
jmp 0x140070a36
lea rcx, str.list_T__too_long
call fcn.1400a0c2c
nop
lea rdx, str.Attempting_to_use_an_invalid_handle.
lea rcx, [rbp - 0x11]
call fcn.1400062c8
nop
lea rdx, [rbp - 0x11]
lea rcx, [rbp - 0x51]
call fcn.140005ae4
lea rdx, [0x140116d30]
lea rcx, [rbp - 0x51]
call sub.msvcrt.dll__CxxThrowException
nop
lea rdx, str.Attempting_to_assign_an_already_valid_handle.
lea rcx, [rbp - 0x11]
call fcn.1400062c8
nop
lea rdx, [rbp - 0x11]
lea rcx, [rbp - 0x51]
call fcn.140005ae4
lea rdx, [0x140116d30]
lea rcx, [rbp - 0x51]
call sub.msvcrt.dll__CxxThrowException
int3