Function at 0x164fb01d0
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 - 0x40]
sub rsp, 0x140
mov rax, qword [0x16514b200]
xor rax, rsp
mov qword [rbp + 0x30], rax
mov rsi, qword [rbp + 0x80]
mov qword [rsp + 0x30], rsi
mov r14, qword [rbp + 0x88]
mov r12, qword [rbp + 0x90]
xor r13d, r13d
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x68], xmm1
mov qword [rbp - 0x58], r13
mov dword [rbp - 0x6c], r13d
mov dword [rbp - 0x70], 0x80
mov r15, qword [r12]
lea rax, [rbp - 0x70]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x50]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x6c]
xor r8d, r8d
mov rdx, r15
mov rcx, qword [r14]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x164fb02a1
mov r9d, dword [rbp - 0x70]
lea r8, [rbp - 0x50]
mov rdx, qword [rbp - 0x68]
lea rcx, [rbp - 0x68]
call fcn.164e9da40
mov r8, qword [rbp - 0x58]
mov rdx, qword [rbp - 0x60]
mov rcx, qword [rbp - 0x68]
mov qword [rsi], rcx
mov qword [rsi + 8], rdx
mov qword [rsi + 0x10], r8
mov ecx, dword [rbp - 0x6c]
mov dword [rsi + 0x18], ecx
jmp 0x164fb03ce
cmp eax, 0xea
je 0x164fb02d8
lea rcx, str.Cannot_query_registry_value_size
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x48], r13
movups xmm1, xmmword [r12]
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 0x164fb03b1
mov edi, r13d
nop word [rax + rax]
mov r8d, eax
mov r9, qword [rbp - 0x60]
mov rdx, r9
mov rcx, qword [rbp - 0x68]
sub rdx, rcx
cmp r8, rdx
jae 0x164fb0310
lea rax, [rcx + r8]
mov qword [rbp - 0x60], rax
jmp 0x164fb0345
jbe 0x164fb0345
mov rax, qword [rbp - 0x58]
sub rax, rcx
cmp r8, rax
jbe 0x164fb032c
mov rdx, r8
lea rcx, [rbp - 0x68]
call fcn.164e723b0
jmp 0x164fb0341
sub r8, rdx
lea rbx, [r9 + r8]
xor edx, edx
mov rcx, r9
call fcn.165040130
mov qword [rbp - 0x60], rbx
mov rcx, qword [rbp - 0x68]
lea rax, [rbp - 0x70]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
lea r9, [rbp - 0x6c]
xor r8d, r8d
mov rdx, r15
mov rcx, qword [r14]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 0xea
jne 0x164fb0380
inc edi
cmp edi, 5
jge 0x164fb040d
mov eax, dword [rbp - 0x70]
jmp 0x164fb02f0
lea rcx, str.Cannot_query_registry_value_data
mov qword [rsp + 0x70], rcx
mov qword [rsp + 0x78], r13
movups xmm1, xmmword [r12]
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
mov rax, qword [rbp - 0x68]
mov rcx, qword [rbp - 0x60]
mov rdx, qword [rbp - 0x58]
mov qword [rsi], rax
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
mov eax, dword [rbp - 0x6c]
mov dword [rsi + 0x18], eax
mov qword [rbp - 0x58], r13
mov qword [rbp - 0x60], r13
mov qword [rbp - 0x68], r13
lea rcx, [rbp - 0x68]
call fcn.164e70120
mov rax, rsi
mov rcx, qword [rbp + 0x30]
xor rcx, rsp
call fcn.165001080
mov rbx, qword [rsp + 0x198]
add rsp, 0x140
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov rcx, r12
call fcn.164e57600
mov qword [rsp + 0x30], 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 + 0x30]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x70]
call fcn.164fb0650
lea rdx, [0x1651482b8]
lea rcx, [rsp + 0x70]
call fcn.165003be0
int3