Function at 0x10006539c
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, [0x100007510]
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 0x10006545a
movzx ebx, ax
or ebx, 0x80070000
cmp eax, r14d
cmovle ebx, eax
mov rcx, qword [0x1001653b8]
lea rdi, [0x1001653b8]
cmp rcx, rdi
je 0x100065892
test byte [rcx + 0x1c], 1
je 0x100065892
cmp byte [rcx + 0x19], 3
jb 0x100065892
mov rcx, qword [rcx + 0x10]
lea edx, [r14 + 0x17]
lea r8, [0x100003c68]
mov r9d, ebx
call fcn.10001c7dc
jmp 0x100065892
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 0x100065512
movzx ebx, ax
or ebx, 0x80070000
cmp eax, r14d
cmovle ebx, eax
mov rcx, qword [0x1001653b8]
lea rdi, [0x1001653b8]
cmp rcx, rdi
je 0x100065884
test byte [rcx + 0x1c], 1
je 0x100065884
cmp byte [rcx + 0x19], 3
jb 0x100065884
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003c68]
mov edx, 0x18
mov r9d, ebx
call fcn.10001c7dc
jmp 0x100065884
mov rcx, qword [0x1001653b8]
lea rdi, [0x1001653b8]
cmp rcx, rdi
je 0x10006554b
test byte [rcx + 0x1c], 1
je 0x10006554b
cmp byte [rcx + 0x19], 4
jb 0x10006554b
mov r9d, dword [rsp + 0x60]
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003c68]
mov edx, 0x19
call fcn.10001c7dc
mov r12d, r14d
cmp dword [rsp + 0x60], r14d
jbe 0x100065884
lea rax, [0x100007bf8]
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 0x100065611
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 0x100065864
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 0x1000656c5
mov rcx, qword [0x1001653b8]
cmp rcx, rdi
je 0x100065847
test byte [rcx + 0x1c], 1
je 0x100065847
cmp byte [rcx + 0x19], 2
jb 0x100065847
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003c68]
mov edx, 0x1a
mov r9d, r12d
mov dword [rsp + 0x20], r14d
call 0x10001e8b4
jmp 0x100065847
mov r9d, dword [rsp + 0x6c]
mov eax, dword [rsp + 0x68]
cmp r9d, 4
jne 0x100065816
cmp eax, r9d
jne 0x100065816
cmp dword [rsp + 0x74], 1
je 0x10006572d
mov rcx, qword [0x1001653b8]
cmp rcx, rdi
je 0x100065847
test byte [rcx + 0x1c], 1
je 0x100065847
cmp byte [rcx + 0x19], r9b
jb 0x100065847
lea edx, [r9 + 0x18]
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003c68]
mov r9d, r12d
mov qword [rsp + 0x20], rbp
call 0x10001d8f8
jmp 0x100065847
lea rcx, [rsp + 0x90]
xor r8d, r8d
mov rdx, rbp
call fcn.100068f44
cmp al, r14b
jne 0x1000657a9
mov rax, qword [0x1001653b8]
cmp rax, rdi
je 0x100065847
test byte [rax + 0x1c], 1
je 0x100065847
cmp byte [rax + 0x19], 2
jb 0x100065847
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x1001653b8]
lea r8, [0x100003c68]
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.10001daa4
jmp 0x100065847
xor r9d, r9d
lea rdx, [rsp + 0x90]
mov rcx, r13
lea r8d, [r9 + 1]
call fcn.10006a474
cmp al, r14b
jne 0x1000657f4
mov rcx, qword [0x1001653b8]
cmp rcx, rdi
je 0x100065847
test byte [rcx + 0x1c], 1
je 0x100065847
cmp byte [rcx + 0x19], 2
jb 0x100065847
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003c68]
mov edx, 0x1e
call fcn.10001c7b8
jmp 0x100065847
mov rcx, qword [0x1001653b8]
cmp rcx, rdi
je 0x100065847
test byte [rcx + 0x1c], 1
je 0x100065847
cmp byte [rcx + 0x19], 4
jb 0x100065847
mov edx, 0x1f
jmp 0x100065710
mov rcx, qword [0x1001653b8]
cmp rcx, rdi
je 0x100065847
test byte [rcx + 0x1c], 1
je 0x100065847
cmp byte [rcx + 0x19], 3
jb 0x100065847
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003c68]
mov edx, 0x1b
mov dword [rsp + 0x20], eax
call 0x10001e8b4
lea rcx, [rsp + 0x90]
call fcn.100069f8c
inc r12d
cmp r12d, dword [rsp + 0x60]
jb 0x100065559
jmp 0x100065876
lea rcx, [rsp + 0x90]
mov ebx, 0x8007000e
call fcn.100069f8c
cmp rbp, r14
je 0x100065884
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.10014e480
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