Function at 0x140090870
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xb8
mov rax, qword [0x1402ba878]
xor rax, rsp
mov qword [rbp + 0xf], rax
mov r14, r9
mov rsi, rdx
mov rbx, rcx
mov qword [rbp - 0x61], rcx
mov rdi, qword [rbp + 0x7f]
xor r15d, r15d
mov qword [rbp - 0x61], r15
mov rdx, r8
lea rcx, [rbp - 0x11]
call fcn.14008ada0
cmp qword [rax + 0x18], 8
jb 0x1400908c1
mov rax, qword [rax]
lea rcx, [rbp - 0x61]
mov qword [rsp + 0x20], rcx
mov r9d, 0x101
xor r8d, r8d
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
mov rdx, qword [rbp + 7]
cmp rdx, 8
jb 0x140090924
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x11]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14009091f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14009091f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400a6c18
test esi, esi
je 0x14009094d
mov rdx, rdi
mov rcx, rbx
call fcn.140002fa0
nop
mov rcx, qword [rbp - 0x61]
test rcx, rcx
je 0x140090be3
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
jmp 0x140090be3
mov rdx, r14
lea rcx, [rbp - 0x51]
call fcn.14008ada0
nop
lea rdx, [rbp - 0x51]
cmp qword [rbp - 0x39], 8
cmovae rdx, qword [rbp - 0x51]
lea rax, [rbp - 0x59]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r15
lea r9, [rbp - 0x55]
xor r8d, r8d
mov rcx, qword [rbp - 0x61]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140090b73
cmp dword [rbp - 0x55], 1
jne 0x140090b73
xor r8d, r8d
mov edx, dword [rbp - 0x59]
shr rdx, 1
lea rcx, [rbp - 0x31]
call fcn.140090260
nop
lea rax, [rbp - 0x31]
cmp qword [rbp - 0x19], 8
cmovae rax, qword [rbp - 0x31]
lea rdx, [rbp - 0x51]
cmp qword [rbp - 0x39], 8
cmovae rdx, qword [rbp - 0x51]
lea rcx, [rbp - 0x59]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x55]
xor r8d, r8d
mov rcx, qword [rbp - 0x61]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, rbx
test eax, eax
je 0x140090ab6
mov rdx, rdi
call fcn.140002fa0
nop
mov rdx, qword [rbp - 0x19]
cmp rdx, 8
jb 0x140090a3b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x31]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140090a36
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140090af7
call fcn.1400a6c18
mov qword [rbp - 0x21], r15
mov qword [rbp - 0x19], 7
mov word [rbp - 0x31], r15w
mov rdx, qword [rbp - 0x39]
cmp rdx, 8
jb 0x140090a8c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x51]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140090a87
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140090bb6
call fcn.1400a6c18
mov qword [rbp - 0x41], r15
mov qword [rbp - 0x39], 7
mov word [rbp - 0x51], r15w
mov rcx, qword [rbp - 0x61]
test rcx, rcx
je 0x140090be3
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
jmp 0x140090be3
lea rdx, [rbp - 0x31]
call fcn.14008af80
nop
mov rdx, qword [rbp - 0x19]
cmp rdx, 8
jb 0x140090b03
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x31]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140090afe
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140090afe
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400a6c18
mov qword [rbp - 0x21], r15
mov qword [rbp - 0x19], 7
mov word [rbp - 0x31], r15w
mov rdx, qword [rbp - 0x39]
cmp rdx, 8
jb 0x140090b50
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x51]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140090b4b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140090bb6
call fcn.1400a6c18
mov qword [rbp - 0x41], r15
mov qword [rbp - 0x39], 7
mov word [rbp - 0x51], r15w
mov rcx, qword [rbp - 0x61]
test rcx, rcx
je 0x140090be3
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
jmp 0x140090be3
mov rdx, rdi
mov rcx, rbx
call fcn.140002fa0
nop
mov rdx, qword [rbp - 0x39]
cmp rdx, 8
jb 0x140090bc2
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x51]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140090bbd
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140090bbd
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400a6c18
mov qword [rbp - 0x41], r15
mov qword [rbp - 0x39], 7
mov word [rbp - 0x51], r15w
mov rcx, qword [rbp - 0x61]
test rcx, rcx
je 0x140090be3
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rax, rbx
mov rcx, qword [rbp + 0xf]
xor rcx, rsp
call fcn.1400a6d30
add rsp, 0xb8
pop r15
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret