Function at 0x1400aa5f0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
lea rbp, [rsp - 0x37]
sub rsp, 0xb0
mov qword [rbp + 0x27], 0xfffffffffffffffe
mov qword [rsp + 0xe8], rbx
mov rbx, r8
mov rdi, rdx
mov rsi, rcx
xor r13d, r13d
mov dword [rbp + 0x7f], r13d
lea r12, [0x140dd80a8]
mov qword [rbp - 0x31], r12
lock inc dword [0x140dd80a8]
mov rdx, r8
lea rcx, [rbp - 0x41]
call fcn.1400aa4f0
nop
mov rdx, rbx
lea rcx, [rbp - 0x39]
call fcn.140097700
nop
mov qword [rbp - 0x21], r13
lea rcx, [rbp - 0x39]
call fcn.14000b320
mov rdx, rax
lea rax, [rbp - 0x21]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1400aa6cf
mov qword [rsi], r12
lock inc dword [0x140dd80a8]
mov dword [rbp + 0x7f], 1
mov rcx, qword [rbp - 0x39]
lock dec dword [rcx]
jne 0x1400aa6a7
mov rcx, qword [rbp - 0x39]
call fcn.14000ade0
nop
mov rax, qword [rbp - 0x41]
lock dec dword [rax]
jne 0x1400aa6ba
mov rcx, qword [rbp - 0x41]
call fcn.14000ade0
nop
lock dec dword [0x140dd80a8]
jne 0x1400aaa7b
mov rcx, r12
jmp 0x1400aaa76
lea rcx, [rbp - 0x41]
call fcn.14000b320
mov rdx, rax
lea rax, [rbp - 0x19]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r13
lea r9, [rbp - 9]
xor r8d, r8d
mov rcx, qword [rbp - 0x21]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x1400aa744
mov rcx, qword [rbp - 0x21]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsi], r12
lock inc dword [0x140dd80a8]
mov dword [rbp + 0x7f], 1
mov rcx, qword [rbp - 0x39]
lock dec dword [rcx]
jne 0x1400aa72c
mov rcx, qword [rbp - 0x39]
call fcn.14000ade0
nop
mov rax, qword [rbp - 0x41]
lock dec dword [rax]
jne 0x1400aa73f
mov rcx, qword [rbp - 0x41]
call fcn.14000ade0
nop
jmp 0x1400aa6ba
xor r8d, r8d
mov edx, dword [rbp - 0x19]
lea rcx, [rbp - 0x49]
call fcn.1400052f0
nop
mov rax, qword [rbp - 0x49]
mov ecx, dword [rax]
mov rax, qword [rbp - 0x49]
cmp ecx, 1
jne 0x1400aa76d
lea rcx, [rax + 0x18]
cmp qword [rax + 0x10], rcx
je 0x1400aa77d
mov edx, dword [rax + 8]
lea rcx, [rbp - 0x49]
call fcn.140005410
mov rax, qword [rbp - 0x49]
mov rbx, qword [rax + 0x10]
lea rcx, [rbp - 0x41]
call fcn.14000b320
mov rdx, rax
lea rax, [rbp - 0x19]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
xor r9d, r9d
xor r8d, r8d
mov rcx, qword [rbp - 0x21]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x1400aa808
mov rcx, qword [rbp - 0x21]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsi], r12
lock inc dword [0x140dd80a8]
mov dword [rbp + 0x7f], 1
mov rcx, qword [rbp - 0x49]
lock dec dword [rcx]
jne 0x1400aa7dd
mov rcx, qword [rbp - 0x49]
call fcn.140004d80
nop
mov rax, qword [rbp - 0x39]
lock dec dword [rax]
jne 0x1400aa7f0
mov rcx, qword [rbp - 0x39]
call fcn.14000ade0
nop
mov rax, qword [rbp - 0x41]
lock dec dword [rax]
jne 0x1400aa803
mov rcx, qword [rbp - 0x41]
call fcn.14000ade0
nop
jmp 0x1400aa6ba
or ebx, 0xffffffff
mov edx, dword [rbp - 9]
cmp edx, 7
ja case.0x1400aa829.6
lea r8, [0x140000000]
mov ecx, dword [r8 + rdx*4 + 0xaaa98]
add rcx, r8
jmp rcx
mov rax, qword [rbp - 0x49]
mov r8d, ebx
mov rdx, qword [rax + 0x10]
lea rcx, [rbp + 7]
call fcn.14000ed80
mov rcx, qword [rax]
mov qword [rbp - 0x31], rcx
mov qword [rax], r12
mov rax, qword [rbp + 7]
lock dec dword [rax]
jne 0x1400aaa14
mov rcx, qword [rbp + 7]
call fcn.14000ade0
jmp 0x1400aaa14
lea rax, [0x140dd81d8]
mov qword [rbp - 0x11], rax
lock inc dword [0x140dd81d8]
mov rax, qword [rbp - 0x49]
mov r8d, ebx
mov rdx, qword [rax + 0x10]
lea rcx, [rbp - 0x29]
call fcn.14000ed80
nop
mov rax, qword [rbp - 0x29]
mov ecx, dword [rax + 8]
lea edi, [rcx + 1]
test ecx, ecx
je 0x1400aa8eb
nop dword [rax]
lea rdx, [rbp - 0x29]
lea rcx, [rbp - 0x11]
call fcn.140003d80
nop
mov rax, qword [rbp - 0x29]
lock dec dword [rax]
jne 0x1400aa8c0
mov rcx, qword [rbp - 0x29]
call fcn.14000ade0
mov rax, qword [rbp - 0x49]
mov rcx, qword [rax + 0x10]
movsxd rax, edi
lea rdx, [rcx + rax*2]
mov r8d, ebx
lea rcx, [rbp - 0x29]
call fcn.14000ed80
nop
mov rax, qword [rbp - 0x29]
mov ecx, dword [rax + 8]
lea edi, [rdi + rcx + 1]
test ecx, ecx
jne 0x1400aa8a0
lock dec dword [rax]
jne 0x1400aa8f9
mov rcx, qword [rbp - 0x29]
call fcn.14000ade0
mov edx, ebx
lea rcx, [0x140d859d8]
call fcn.140008270
mov qword [rbp - 1], rax
lea r8, [rbp - 1]
lea rdx, [rbp + 0x1f]
lea rcx, [rbp - 0x11]
call fcn.140011430
mov rcx, qword [rax]
mov qword [rbp - 0x31], rcx
mov qword [rax], r12
mov rax, qword [rbp + 0x1f]
lock dec dword [rax]
jne 0x1400aa939
mov rcx, qword [rbp + 0x1f]
call fcn.14000ade0
nop
mov rax, qword [rbp - 1]
lock dec dword [rax]
jne 0x1400aa94c
mov rcx, qword [rbp - 1]
call fcn.14000ade0
nop
mov rax, qword [rbp - 0x11]
lock dec dword [rax]
jne 0x1400aaa14
mov r13, qword [rbp - 0x11]
movsxd rax, dword [r13 + 0xc]
lea rdi, [r13 + rax*8 + 0x18]
movsxd rax, dword [r13 + 8]
lea r12, [r13 + rax*8 + 0x18]
cmp r12, rdi
je 0x1400aa98d
sub rdi, 8
mov rdx, qword [rdi]
lock dec dword [rdx]
jne 0x1400aa988
mov rcx, qword [rdi]
call fcn.14000ade0
cmp rdi, r12
jne 0x1400aa974
mov rcx, r13
call fcn.140004d80
jmp 0x1400aaa14
mov rcx, qword [rbp - 0x49]
mov eax, dword [rcx + 8]
cdq
sub eax, edx
sar eax, 1
mov r8d, eax
mov rdx, qword [rcx + 0x10]
lea rcx, [rbp + 0xf]
call fcn.14000ed80
mov rcx, qword [rax]
mov qword [rbp - 0x31], rcx
mov qword [rax], r12
mov rax, qword [rbp + 0xf]
lock dec dword [rax]
jne 0x1400aaa14
mov rcx, qword [rbp + 0xf]
call fcn.14000ade0
jmp 0x1400aaa14
mov rax, qword [rbp - 0x49]
mov rcx, qword [rax + 0x10]
mov r8d, 0xa
mov edx, dword [rcx]
lea rcx, [rbp + 0x17]
call fcn.140010130
mov rcx, qword [rax]
mov qword [rbp - 0x31], rcx
mov qword [rax], r12
mov rax, qword [rbp + 0x17]
lock dec dword [rax]
jne 0x1400aaa14
mov rcx, qword [rbp + 0x17]
call fcn.14000ade0
jmp 0x1400aaa14
lea rcx, [0x140da1158]
call fcn.140015780
mov rcx, qword [rbp - 0x21]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r11, qword [rbp - 0x31]
mov qword [rsi], r11
lock inc dword [r11]
mov dword [rbp + 0x7f], 1
mov rax, qword [rbp - 0x49]
lock dec dword [rax]
jne 0x1400aaa43
mov rcx, qword [rbp - 0x49]
call fcn.140004d80
nop
mov rax, qword [rbp - 0x39]
lock dec dword [rax]
jne 0x1400aaa56
mov rcx, qword [rbp - 0x39]
call fcn.14000ade0
nop
mov rax, qword [rbp - 0x41]
lock dec dword [rax]
jne 0x1400aaa69
mov rcx, qword [rbp - 0x41]
call fcn.14000ade0
nop
mov rax, qword [rbp - 0x31]
lock dec dword [rax]
jne 0x1400aaa7b
mov rcx, qword [rbp - 0x31]
call fcn.14000ade0
mov rax, rsi
mov rbx, qword [rsp + 0xe8]
add rsp, 0xb0
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret