Function at 0x140016960
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x60
mov rbx, rdx
xor r15d, r15d
lea rdx, [rbp - 0x10]
mov qword [rbp - 0x10], r15
mov ecx, 0x20019
mov r14, r8
xor dil, dil
call fcn.140017bb0
test eax, eax
jne 0x140016c15
mov rcx, qword [rbp - 0x10]
lea rax, [rbp - 0x18]
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov qword [rbp - 0x18], r15
mov rdx, rbx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140016c0b
mov rcx, qword [rbp - 0x18]
lea rax, [rbp - 0x1c]
mov qword [rsp + 0x30], rax
lea r9d, [r15 + 0x10]
lea rax, [rbp - 0x20]
mov dword [rbp - 0x20], r15d
mov qword [rsp + 0x28], rax
lea r8, str.DisableLoad
xor edx, edx
mov qword [rsp + 0x20], r15
mov dword [rbp - 0x1c], 4
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x140016a12
cmp dword [rbp - 0x20], r15d
je 0x140016a12
mov dil, 1
jmp 0x140016c01
cmp word [r14], r15w
je 0x140016c01
mov rbx, qword [rbp - 0x18]
lea rax, [rbp + 0x38]
mov qword [rsp + 0x30], rax
lea r8, str.RestrictLoadForUsers
mov qword [rsp + 0x28], r15
mov r9d, 0x20
mov qword [rsp + 0x80], rsi
xor edx, edx
mov rcx, rbx
mov qword [rsp + 0x20], r15
xor sil, sil
mov dword [rbp + 0x38], r15d
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x140016b1b
mov eax, dword [rbp + 0x38]
test eax, eax
je 0x140016b1b
mov ecx, eax
lea rdx, [0x140095504]
call fcn.140019494
mov rsi, rax
mov dil, 1
test rax, rax
je 0x140016bf9
lea rax, [rbp + 0x38]
mov r9d, 0x20
mov qword [rsp + 0x30], rax
lea r8, str.RestrictLoadForUsers
mov qword [rsp + 0x28], rsi
xor edx, edx
mov rcx, rbx
mov qword [rsp + 0x20], r15
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x140016b0e
cmp dword [rbp + 0x38], r15d
jbe 0x140016b0e
mov rbx, rsi
cmp word [rsi], r15w
je 0x140016b0e
nop dword [rax + rax]
mov rdx, r14
mov rcx, rbx
call fcn.140050b78
test eax, eax
je 0x140016b0b
or rax, 0xffffffffffffffff
inc rax
cmp word [rbx + rax*2], r15w
jne 0x140016ae3
lea rbx, [rbx + rax*2]
add rbx, 2
cmp word [rbx], r15w
jne 0x140016ad0
mov rcx, rsi
mov dil, 1
call fcn.1400180f0
jmp 0x140016bf9
xor dil, dil
mov rcx, rsi
call fcn.1400180f0
jmp 0x140016bf9
mov rbx, qword [rbp - 0x18]
lea rax, [rbp + 0x38]
mov qword [rsp + 0x30], rax
lea r8, str.DisableLoadForUsers
mov qword [rsp + 0x28], r15
mov r9d, 0x20
xor edx, edx
mov qword [rsp + 0x20], r15
mov rcx, rbx
mov dword [rbp + 0x38], r15d
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x140016bf9
mov eax, dword [rbp + 0x38]
test eax, eax
je 0x140016bf9
mov ecx, eax
lea rdx, [0x140095504]
call fcn.140019494
mov rdi, rax
test rax, rax
je 0x140016bf5
lea rax, [rbp + 0x38]
mov r9d, 0x20
mov qword [rsp + 0x30], rax
lea r8, str.DisableLoadForUsers
mov qword [rsp + 0x28], rdi
xor edx, edx
mov rcx, rbx
mov qword [rsp + 0x20], r15
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x140016bed
cmp dword [rbp + 0x38], r15d
jbe 0x140016bed
mov rbx, rdi
cmp word [rdi], r15w
je 0x140016bed
mov rdx, r14
mov rcx, rbx
call fcn.140050b78
test eax, eax
je 0x140016bea
or rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp word [rbx + rax*2], r15w
jne 0x140016bd0
lea rbx, [rbx + rax*2]
add rbx, 2
cmp word [rbx], r15w
jne 0x140016bb5
jmp 0x140016bed
mov sil, 1
mov rcx, rdi
call fcn.1400180f0
movzx edi, sil
mov rsi, qword [rsp + 0x80]
mov rcx, qword [rbp - 0x18]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rbp - 0x10]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea r11, [rsp + 0x60]
movzx eax, dil
mov rbx, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret