Function at 0x10006565c
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rdi
push r12
push r13
push r14
sub rsp, 0x120
mov rax, qword [0x100165138]
xor rax, rsp
mov qword [rsp + 0x110], rax
mov r13, rdx
lea rax, [r11 - 0xb8]
xor r14d, r14d
lea rdx, [0x1000074a0]
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
mov ebx, r14d
mov rbp, r14
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, r14d
je 0x10006571a
movzx ebx, ax
or ebx, 0x80070000
cmp eax, r14d
cmovle ebx, eax
mov rcx, qword [0x1001653b8]
lea rdi, [0x1001653b8]
cmp rcx, rdi
je 0x100065b52
test byte [rcx + 0x1c], 1
je 0x100065b52
cmp byte [rcx + 0x19], 3
jb 0x100065b52
mov rcx, qword [rcx + 0x10]
lea edx, [r14 + 0x17]
lea r8, [0x100003c28]
mov r9d, ebx
call fcn.10001c878
jmp 0x100065b52
mov rcx, qword [rsp + 0x80]
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x50], r14
lea rax, [rsp + 0x78]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x64]
xor edx, edx
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x60]
mov dword [rsp + 0x60], r14d
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r14
mov dword [rsp + 0x64], r14d
mov dword [rsp + 0x78], r14d
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
cmp eax, r14d
je 0x1000657d2
movzx ebx, ax
or ebx, 0x80070000
cmp eax, r14d
cmovle ebx, eax
mov rcx, qword [0x1001653b8]
lea rdi, [0x1001653b8]
cmp rcx, rdi
je 0x100065b44
test byte [rcx + 0x1c], 1
je 0x100065b44
cmp byte [rcx + 0x19], 3
jb 0x100065b44
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003c28]
mov edx, 0x18
mov r9d, ebx
call fcn.10001c878
jmp 0x100065b44
mov rcx, qword [0x1001653b8]
lea rdi, [0x1001653b8]
cmp rcx, rdi
je 0x10006580b
test byte [rcx + 0x1c], 1
je 0x10006580b
cmp byte [rcx + 0x19], 4
jb 0x10006580b
mov r9d, dword [rsp + 0x60]
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003c28]
mov edx, 0x19
call fcn.10001c878
mov r12d, r14d
cmp dword [rsp + 0x60], r14d
jbe 0x100065b44
lea rax, [0x100007b78]
lea rcx, [0x100165100]
mov byte [rsp + 0xdc], r14b
mov qword [rsp + 0x90], rax
mov rax, qword [0x100165100]
mov dword [rsp + 0xe0], 7
call qword [rax + 0x18]
lea rcx, [0x100165100]
add rax, 0x18
mov qword [rsp + 0xe8], rax
mov rax, qword [0x100165100]
call qword [rax + 0x18]
lea rcx, [0x100165100]
add rax, 0x18
mov qword [rsp + 0xf0], rax
mov rax, qword [0x100165100]
call qword [rax + 0x18]
lea rcx, [0x100165100]
add rax, 0x18
mov qword [rsp + 0xf8], rax
mov rax, qword [0x100165100]
call qword [rax + 0x18]
mov dword [rsp + 0x70], r14d
mov dword [rsp + 0x6c], r14d
add rax, 0x18
mov dword [rsp + 0x74], r14d
mov dword [rsp + 0x68], r14d
mov qword [rsp + 0x100], rax
cmp rbp, r14
je 0x1000658d1
mov rcx, rbp
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov ecx, dword [rsp + 0x64]
inc ecx
add rcx, rcx
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov rbp, rax
cmp rax, r14
je 0x100065b24
mov eax, dword [rsp + 0x64]
mov rcx, qword [rsp + 0x80]
lea r9, [rsp + 0x70]
inc eax
mov r8, rbp
mov edx, r12d
mov dword [rsp + 0x70], eax
lea rax, [rsp + 0x68]
mov dword [rsp + 0x68], 4
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x74]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x6c]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, r14d
je 0x100065985
mov rcx, qword [0x1001653b8]
cmp rcx, rdi
je 0x100065b07
test byte [rcx + 0x1c], 1
je 0x100065b07
cmp byte [rcx + 0x19], 2
jb 0x100065b07
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003c28]
mov edx, 0x1a
mov r9d, r12d
mov dword [rsp + 0x20], r14d
call fcn.10001d914
jmp 0x100065b07
mov r9d, dword [rsp + 0x6c]
mov eax, dword [rsp + 0x68]
cmp r9d, 4
jne 0x100065ad6
cmp eax, r9d
jne 0x100065ad6
cmp dword [rsp + 0x74], 1
je 0x1000659ed
mov rcx, qword [0x1001653b8]
cmp rcx, rdi
je 0x100065b07
test byte [rcx + 0x1c], 1
je 0x100065b07
cmp byte [rcx + 0x19], r9b
jb 0x100065b07
lea edx, [r9 + 0x18]
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003c28]
mov r9d, r12d
mov qword [rsp + 0x20], rbp
call fcn.10001d9dc
jmp 0x100065b07
lea rcx, [rsp + 0x90]
xor r8d, r8d
mov rdx, rbp
call fcn.100069238
cmp al, r14b
jne 0x100065a69
mov rax, qword [0x1001653b8]
cmp rax, rdi
je 0x100065b07
test byte [rax + 0x1c], 1
je 0x100065b07
cmp byte [rax + 0x19], 2
jb 0x100065b07
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x1001653b8]
lea r8, [0x100003c28]
mov rcx, qword [rcx + 0x10]
mov r11d, eax
movzx eax, ax
or eax, 0x80070000
cmp r11d, r14d
mov edx, 0x1d
cmovle eax, r11d
mov r9, rbp
mov dword [rsp + 0x20], eax
call fcn.10001ddb0
jmp 0x100065b07
xor r9d, r9d
lea rdx, [rsp + 0x90]
mov rcx, r13
lea r8d, [r9 + 1]
call fcn.10006a768
cmp al, r14b
jne 0x100065ab4
mov rcx, qword [0x1001653b8]
cmp rcx, rdi
je 0x100065b07
test byte [rcx + 0x1c], 1
je 0x100065b07
cmp byte [rcx + 0x19], 2
jb 0x100065b07
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003c28]
mov edx, 0x1e
call fcn.10001c854
jmp 0x100065b07
mov rcx, qword [0x1001653b8]
cmp rcx, rdi
je 0x100065b07
test byte [rcx + 0x1c], 1
je 0x100065b07
cmp byte [rcx + 0x19], 4
jb 0x100065b07
mov edx, 0x1f
jmp 0x1000659d0
mov rcx, qword [0x1001653b8]
cmp rcx, rdi
je 0x100065b07
test byte [rcx + 0x1c], 1
je 0x100065b07
cmp byte [rcx + 0x19], 3
jb 0x100065b07
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003c28]
mov edx, 0x1b
mov dword [rsp + 0x20], eax
call fcn.10001d914
lea rcx, [rsp + 0x90]
call fcn.10006a2d0
inc r12d
cmp r12d, dword [rsp + 0x60]
jb 0x100065819
jmp 0x100065b36
lea rcx, [rsp + 0x90]
mov ebx, 0x8007000e
call fcn.10006a2d0
cmp rbp, r14
je 0x100065b44
mov rcx, rbp
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x110]
xor rcx, rsp
call fcn.10014e600
lea r11, [rsp + 0x120]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r13
pop r12
ret