Function at 0x1400908c0
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.14008adf0
cmp qword [rax + 0x18], 8
jb 0x140090911
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 0x140090974
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x11]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14009096f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14009096f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400a6c68
test esi, esi
je 0x14009099d
mov rdx, rdi
mov rcx, rbx
call fcn.140002fa0
nop
mov rcx, qword [rbp - 0x61]
test rcx, rcx
je 0x140090c33
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
jmp 0x140090c33
mov rdx, r14
lea rcx, [rbp - 0x51]
call fcn.14008adf0
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 0x140090bc3
cmp dword [rbp - 0x55], 1
jne 0x140090bc3
xor r8d, r8d
mov edx, dword [rbp - 0x59]
shr rdx, 1
lea rcx, [rbp - 0x31]
call fcn.1400902b0
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 0x140090b06
mov rdx, rdi
call fcn.140002fa0
nop
mov rdx, qword [rbp - 0x19]
cmp rdx, 8
jb 0x140090a8b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x31]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140090a86
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140090b47
call fcn.1400a6c68
mov qword [rbp - 0x21], r15
mov qword [rbp - 0x19], 7
mov word [rbp - 0x31], r15w
mov rdx, qword [rbp - 0x39]
cmp rdx, 8
jb 0x140090adc
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x51]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140090ad7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140090c06
call fcn.1400a6c68
mov qword [rbp - 0x41], r15
mov qword [rbp - 0x39], 7
mov word [rbp - 0x51], r15w
mov rcx, qword [rbp - 0x61]
test rcx, rcx
je 0x140090c33
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
jmp 0x140090c33
lea rdx, [rbp - 0x31]
call fcn.14008afd0
nop
mov rdx, qword [rbp - 0x19]
cmp rdx, 8
jb 0x140090b53
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x31]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140090b4e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140090b4e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400a6c68
mov qword [rbp - 0x21], r15
mov qword [rbp - 0x19], 7
mov word [rbp - 0x31], r15w
mov rdx, qword [rbp - 0x39]
cmp rdx, 8
jb 0x140090ba0
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x51]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140090b9b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140090c06
call fcn.1400a6c68
mov qword [rbp - 0x41], r15
mov qword [rbp - 0x39], 7
mov word [rbp - 0x51], r15w
mov rcx, qword [rbp - 0x61]
test rcx, rcx
je 0x140090c33
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
jmp 0x140090c33
mov rdx, rdi
mov rcx, rbx
call fcn.140002fa0
nop
mov rdx, qword [rbp - 0x39]
cmp rdx, 8
jb 0x140090c12
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x51]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140090c0d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140090c0d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400a6c68
mov qword [rbp - 0x41], r15
mov qword [rbp - 0x39], 7
mov word [rbp - 0x51], r15w
mov rcx, qword [rbp - 0x61]
test rcx, rcx
je 0x140090c33
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rax, rbx
mov rcx, qword [rbp + 0xf]
xor rcx, rsp
call fcn.1400a6d80
add rsp, 0xb8
pop r15
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret