Function at 0x140109010
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 [0x140467300]
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.1400ff560
cmp qword [rax + 0x18], 8
jb 0x140109061
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 0x1401090c4
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x11]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1401090bf
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1401090bf
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14010e9f4
test esi, esi
je 0x1401090ed
mov rdx, rdi
mov rcx, rbx
call fcn.1400166a0
nop
mov rcx, qword [rbp - 0x61]
test rcx, rcx
je 0x140109383
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
jmp 0x140109383
mov rdx, r14
lea rcx, [rbp - 0x51]
call fcn.1400ff560
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 0x140109313
cmp dword [rbp - 0x55], 1
jne 0x140109313
xor r8d, r8d
mov edx, dword [rbp - 0x59]
shr rdx, 1
lea rcx, [rbp - 0x31]
call fcn.140108a00
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 0x140109256
mov rdx, rdi
call fcn.1400166a0
nop
mov rdx, qword [rbp - 0x19]
cmp rdx, 8
jb 0x1401091db
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x31]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1401091d6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140109297
call fcn.14010e9f4
mov qword [rbp - 0x21], r15
mov qword [rbp - 0x19], 7
mov word [rbp - 0x31], r15w
mov rdx, qword [rbp - 0x39]
cmp rdx, 8
jb 0x14010922c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x51]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140109227
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140109356
call fcn.14010e9f4
mov qword [rbp - 0x41], r15
mov qword [rbp - 0x39], 7
mov word [rbp - 0x51], r15w
mov rcx, qword [rbp - 0x61]
test rcx, rcx
je 0x140109383
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
jmp 0x140109383
lea rdx, [rbp - 0x31]
call fcn.1400ff740
nop
mov rdx, qword [rbp - 0x19]
cmp rdx, 8
jb 0x1401092a3
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x31]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14010929e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14010929e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14010e9f4
mov qword [rbp - 0x21], r15
mov qword [rbp - 0x19], 7
mov word [rbp - 0x31], r15w
mov rdx, qword [rbp - 0x39]
cmp rdx, 8
jb 0x1401092f0
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x51]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1401092eb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140109356
call fcn.14010e9f4
mov qword [rbp - 0x41], r15
mov qword [rbp - 0x39], 7
mov word [rbp - 0x51], r15w
mov rcx, qword [rbp - 0x61]
test rcx, rcx
je 0x140109383
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
jmp 0x140109383
mov rdx, rdi
mov rcx, rbx
call fcn.1400166a0
nop
mov rdx, qword [rbp - 0x39]
cmp rdx, 8
jb 0x140109362
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x51]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14010935d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14010935d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14010e9f4
mov qword [rbp - 0x41], r15
mov qword [rbp - 0x39], 7
mov word [rbp - 0x51], r15w
mov rcx, qword [rbp - 0x61]
test rcx, rcx
je 0x140109383
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rax, rbx
mov rcx, qword [rbp + 0xf]
xor rcx, rsp
call fcn.14010eb10
add rsp, 0xb8
pop r15
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret