Function at 0x14005c040
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 - 0xc0]
sub rsp, 0x1c0
mov rax, qword [0x1402bf200]
xor rax, rsp
mov qword [rbp + 0xb0], rax
mov rsi, qword [rbp + 0x100]
mov qword [rsp + 0x30], rsi
mov r14, qword [rbp + 0x108]
mov r12, qword [rbp + 0x110]
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], 0x100
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 0x14005c11a
mov r9d, dword [rbp - 0x70]
shr r9, 1
lea r8, [rbp - 0x50]
mov rdx, qword [rbp - 0x68]
lea rcx, [rbp - 0x68]
call fcn.14005d1a0
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 0x14005c24a
cmp eax, 0xea
je 0x14005c151
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.140059ec0
mov eax, dword [rbp - 0x70]
test eax, eax
je 0x14005c22d
mov edi, r13d
nop
mov r8d, eax
shr r8, 1
mov r9, qword [rbp - 0x60]
mov rcx, r9
mov rdx, qword [rbp - 0x68]
sub rcx, rdx
sar rcx, 1
cmp r8, rcx
jae 0x14005c186
lea rax, [rdx + r8*2]
mov qword [rbp - 0x60], rax
jmp 0x14005c1c1
jbe 0x14005c1c1
mov rax, qword [rbp - 0x58]
sub rax, rdx
sar rax, 1
cmp r8, rax
jbe 0x14005c1a5
mov rdx, r8
lea rcx, [rbp - 0x68]
call fcn.14005d570
jmp 0x14005c1bd
sub r8, rcx
add r8, r8
lea rbx, [r8 + r9]
xor edx, edx
mov rcx, r9
call fcn.1401d80e0
mov qword [rbp - 0x60], rbx
mov rdx, qword [rbp - 0x68]
lea rax, [rbp - 0x70]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdx
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 0x14005c1fc
inc edi
cmp edi, 5
jge 0x14005c28c
mov eax, dword [rbp - 0x70]
jmp 0x14005c160
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.140059ec0
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.140049570
mov rax, rsi
mov rcx, qword [rbp + 0xb0]
xor rcx, rsp
call fcn.14019acb0
mov rbx, qword [rsp + 0x218]
add rsp, 0x1c0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov rcx, r12
call fcn.140008910
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.14005ca40
lea rdx, [0x1402bada8]
lea rcx, [rsp + 0x70]
call fcn.14019cd80
int3