Function at 0x164fafc30
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 [0x16514b200]
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 0x164fafd31
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.164e609a0
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 0x164fafe9e
cmp eax, 0xea
je 0x164fafd68
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.164fad870
mov eax, dword [rbp - 0x70]
test eax, eax
je 0x164fafe7e
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 0x164fafda6
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 0x164fafe04
mov rdx, rcx
sub rdx, r8
mov rdi, qword [rbp - 0x50]
mov rax, rdi
sub rax, r8
cmp rdx, rax
ja 0x164fafded
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 0x164fafde0
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 0x164fafe04
xor edi, edi
mov word [rsp + 0x20], di
mov r9, rdx
movzx r8d, bl
lea rcx, [rbp - 0x68]
call fcn.164e58410
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 0x164fafe4d
inc esi
cmp esi, 5
jge 0x164fafedc
mov eax, dword [rbp - 0x70]
jmp 0x164fafd80
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.164fad870
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.164e54bf0
mov rax, r14
mov rcx, qword [rbp + 0xc0]
xor rcx, rsp
call fcn.165001080
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.164e57600
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.164fb0650
lea rdx, [0x1651482b8]
lea rcx, [rsp + 0x70]
call fcn.165003be0
int3