Function at 0x140012860
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0xd8
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x50], 0xfffffffffffffffe
mov rbx, rdx
mov rsi, rcx
mov rdi, qword [rbp + 0xc0]
add r9, r8
mov qword [rbp + 0x20], r8
mov qword [rbp + 0x28], r9
mov word [rbp + 0x30], 0
mov dword [rbp + 0x38], 1
lea rcx, [rbp - 0x30]
lea rdx, [rbp + 0x20]
call fcn.140011870
mov rax, qword [rbp + 0xc8]
add rax, rdi
mov qword [rbp + 0x20], rdi
mov qword [rbp + 0x28], rax
mov word [rbp + 0x30], 0
mov dword [rbp + 0x38], 1
lea rcx, [rbp - 0x18]
lea r14, [rbp + 0x20]
mov rdx, r14
call fcn.140011870
mov rdi, qword [rbp - 0x30]
mov qword [rbp + 0x20], 0
mov qword [rsp + 0x20], r14
mov rcx, rbx
mov rdx, rdi
xor r8d, r8d
mov r9d, 0x20019
call sub.ADVAPI32.dll_RegOpenKeyExW
test eax, eax
je 0x140012919
mov qword [rsi], 0
jmp 0x140012a4f
mov rax, qword [rbp + 0x20]
mov qword [rbp + 0x40], rax
mov dword [rbp + 0x4c], 0x800
movzx eax, byte [0x140062181]
mov ecx, 0x800
mov edx, 1
call fcn.140001b90
test rax, rax
je 0x140012aea
mov r14, rax
mov qword [rbp + 0x18], rdi
mov qword [rbp], rax
mov qword [rbp + 8], 0x800
mov qword [rbp + 0x10], 0
mov rbx, qword [rbp - 0x18]
lea r12, [rbp + 0x4c]
lea r15, [rbp + 0x20]
mov rdi, qword [rbp + 8]
mov r13, qword [rbp + 0x10]
sub rdi, r13
nop dword [rax]
mov dword [rbp + 0x20], 0
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r14
mov rcx, qword [rbp + 0x40]
mov rdx, rbx
xor r8d, r8d
mov r9, r15
call sub.ADVAPI32.dll_RegQueryValueExW
cmp eax, 0xea
jne 0x1400129c4
mov r8d, dword [rbp + 0x4c]
cmp rdi, r8
jae 0x140012980
mov rcx, rbp
mov rdx, r13
call fcn.140041370
mov r14, qword [rbp]
jmp 0x14001296e
test eax, eax
jne 0x140012a24
mov eax, dword [rbp + 0x4c]
mov qword [rbp + 0x10], rax
and eax, 0xfffffffe
add rax, r14
mov qword [rbp + 0x20], r14
mov qword [rbp + 0x28], rax
mov word [rbp + 0x30], 0
lea rcx, [rbp - 0x48]
lea rdx, [rbp + 0x20]
call fcn.140012560
mov rax, qword [rbp - 0x38]
test rax, rax
je 0x140012a9b
mov rcx, qword [rbp - 0x48]
mov rdi, qword [rbp + 0x18]
nop word cs:[rax + rax]
cmp byte [rcx + rax - 1], 0
jne 0x140012aa1
dec rax
jne 0x140012a10
xor eax, eax
jmp 0x140012aa1
mov qword [rsi], 0
mov rdx, qword [rbp + 8]
test rdx, rdx
mov rdi, qword [rbp + 0x18]
je 0x140012a46
mov r8d, 1
mov rcx, r14
call fcn.140001ba0
mov rcx, qword [rbp + 0x40]
call sub.ADVAPI32.dll_RegCloseKey
mov rdx, qword [rbp - 0x10]
test rdx, rdx
je 0x140012a6a
mov rcx, qword [rbp - 0x18]
add rdx, rdx
mov r8d, 2
call fcn.140001ba0
mov rdx, qword [rbp - 0x28]
test rdx, rdx
je 0x140012a84
add rdx, rdx
mov r8d, 2
mov rcx, rdi
call fcn.140001ba0
mov rax, rsi
add rsp, 0xd8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
xor eax, eax
mov rdi, qword [rbp + 0x18]
mov qword [rbp - 0x38], rax
mov qword [rsi + 0x10], rax
movups xmm0, xmmword [rbp - 0x48]
movups xmmword [rsi], xmm0
mov rdx, qword [rbp + 8]
test rdx, rdx
je 0x140012ac7
mov r8d, 1
mov rcx, r14
call fcn.140001ba0
mov rcx, qword [rbp + 0x40]
call sub.ADVAPI32.dll_RegCloseKey
mov rdx, qword [rbp - 0x10]
test rdx, rdx
je 0x140012a6a
add rdx, rdx
mov r8d, 2
mov rcx, rbx
jmp 0x140012a65
mov ecx, 1
mov edx, 0x800
call fcn.140045e30
ud2