Function at 0x14006a870
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x20], rbx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xd0]
sub rsp, 0x1d0
mov rax, qword [0x140117240]
xor rax, rsp
mov qword [rbp + 0xc0], rax
mov r14, qword [rbp + 0x110]
mov qword [rsp + 0x38], r14
mov r15, qword [rbp + 0x118]
mov r13, qword [rbp + 0x120]
xor edi, edi
xorps xmm0, xmm0
movups xmmword [rbp - 0x68], xmm0
mov qword [rbp - 0x58], rdi
mov qword [rbp - 0x50], 7
mov word [rbp - 0x68], di
mov dword [rbp - 0x6c], edi
mov dword [rbp - 0x70], 0x100
mov r12, qword [r13]
lea rax, [rbp - 0x70]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x40]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x6c]
xor r8d, r8d
mov rdx, r12
mov rcx, qword [r15]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14006a971
mov r9d, dword [rbp - 0x70]
shr r9, 1
lea rdx, [rbp - 0x68]
cmp qword [rbp - 0x50], 7
cmova rdx, qword [rbp - 0x68]
lea rcx, [rbp - 0x68]
cmova rcx, qword [rbp - 0x68]
sub rdx, rcx
sar rdx, 1
lea r8, [rbp - 0x40]
lea rcx, [rbp - 0x68]
call fcn.140018690
xor eax, eax
movups xmm0, xmmword [rbp - 0x68]
movups xmmword [r14], xmm0
movups xmm1, xmmword [rbp - 0x58]
movups xmmword [r14 + 0x10], xmm1
mov qword [rbp - 0x58], rax
mov word [rbp - 0x68], ax
mov ecx, dword [rbp - 0x6c]
mov dword [r14 + 0x20], ecx
jmp 0x14006aade
cmp eax, 0xea
je 0x14006a9a8
lea rcx, str.Cannot_query_registry_value_size
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x48], rdi
movups xmm1, xmmword [r13]
movups xmm0, xmmword [rsp + 0x40]
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rbp - 0x80], xmm1
lea rdx, [rsp + 0x70]
mov ecx, eax
call fcn.140069590
mov eax, dword [rbp - 0x70]
test eax, eax
je 0x14006aabe
mov esi, edi
movzx ebx, byte [rsp + 0x30]
nop word [rax + rax]
mov ecx, eax
shr rcx, 1
mov r8, qword [rbp - 0x58]
cmp rcx, r8
ja 0x14006a9e6
lea rax, [rbp - 0x68]
cmp qword [rbp - 0x50], 7
cmova rax, qword [rbp - 0x68]
mov qword [rbp - 0x58], rcx
mov word [rax + rcx*2], di
jmp 0x14006aa44
mov rdx, rcx
sub rdx, r8
mov rdi, qword [rbp - 0x50]
mov rax, rdi
sub rax, r8
cmp rdx, rax
ja 0x14006aa2d
mov qword [rbp - 0x58], rcx
lea r9, [rbp - 0x68]
cmp rdi, 7
cmova r9, qword [rbp - 0x68]
lea rdi, [r9 + r8*2]
test rdx, rdx
je 0x14006aa20
xor eax, eax
movzx eax, ax
mov rcx, rdx
rep stosw word [rdi], ax
lea rax, [r8 + rdx]
xor edi, edi
mov word [r9 + rax*2], di
jmp 0x14006aa44
xor edi, edi
mov word [rsp + 0x20], di
mov r9, rdx
movzx r8d, bl
lea rcx, [rbp - 0x68]
call fcn.140028d90
lea rax, [rbp - 0x68]
cmp qword [rbp - 0x50], 7
cmova rax, qword [rbp - 0x68]
lea rcx, [rbp - 0x70]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x6c]
xor r8d, r8d
mov rdx, r12
mov rcx, qword [r15]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 0xea
jne 0x14006aa8d
inc esi
cmp esi, 5
jge 0x14006ab1c
mov eax, dword [rbp - 0x70]
jmp 0x14006a9c0
lea rcx, str.Cannot_query_registry_value_data
mov qword [rsp + 0x70], rcx
mov qword [rsp + 0x78], rdi
movups xmm1, xmmword [r13]
movups xmm0, xmmword [rsp + 0x70]
movaps xmmword [rsp + 0x40], xmm0
movaps xmmword [rsp + 0x50], xmm1
lea rdx, [rsp + 0x40]
mov ecx, eax
call fcn.140069590
movups xmm0, xmmword [rbp - 0x68]
movups xmmword [r14], xmm0
movups xmm1, xmmword [rbp - 0x58]
movups xmmword [r14 + 0x10], xmm1
mov eax, dword [rbp - 0x6c]
mov dword [r14 + 0x20], eax
mov word [rbp - 0x68], di
mov qword [rbp - 0x58], rdi
mov qword [rbp - 0x50], 7
lea rcx, [rbp - 0x68]
call fcn.140008760
mov rax, r14
mov rcx, qword [rbp + 0xc0]
xor rcx, rsp
call fcn.1400827b0
mov rbx, qword [rsp + 0x228]
add rsp, 0x1d0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov rcx, r13
call fcn.14003aa50
mov qword [rsp + 0x38], rax
lea rax, str.Cannot_query_registry_data_due_to__value_changed_too_often
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], 0x3e
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x70]
call fcn.14006ae00
lea rdx, [0x140114e30]
lea rcx, [rsp + 0x70]
call fcn.1400850a4
int3