Function at 0x1400a4480
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 - 0xf0]
sub rsp, 0x1f0
mov rax, qword [0x1401761c0]
xor rax, rsp
mov qword [rbp + 0xe0], rax
mov r14, qword [rbp + 0x130]
mov qword [rsp + 0x38], r14
mov r15, qword [rbp + 0x138]
mov r13, qword [rbp + 0x140]
xor edi, edi
xorps xmm0, xmm0
movups xmmword [rbp - 0x40], xmm0
mov qword [rbp - 0x30], rdi
mov qword [rbp - 0x28], 7
mov word [rbp - 0x40], di
mov dword [rbp - 0x44], edi
mov dword [rbp - 0x48], 0x100
mov r12, qword [r13]
lea rax, [rbp - 0x48]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x20]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x44]
xor r8d, r8d
mov rdx, r12
mov rcx, qword [r15]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400a4581
mov r9d, dword [rbp - 0x48]
shr r9, 1
lea rdx, [rbp - 0x40]
cmp qword [rbp - 0x28], 7
cmova rdx, qword [rbp - 0x40]
lea rcx, [rbp - 0x40]
cmova rcx, qword [rbp - 0x40]
sub rdx, rcx
sar rdx, 1
lea r8, [rbp - 0x20]
lea rcx, [rbp - 0x40]
call fcn.1400104f0
xor eax, eax
movups xmm0, xmmword [rbp - 0x40]
movups xmmword [r14], xmm0
movups xmm1, xmmword [rbp - 0x30]
movups xmmword [r14 + 0x10], xmm1
mov qword [rbp - 0x30], rax
mov word [rbp - 0x40], ax
mov ecx, dword [rbp - 0x44]
mov dword [r14 + 0x20], ecx
jmp 0x1400a46ee
cmp eax, 0xea
je 0x1400a45b8
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.1400a3280
mov eax, dword [rbp - 0x48]
test eax, eax
je 0x1400a46ce
mov esi, edi
movzx ebx, byte [rsp + 0x30]
nop word [rax + rax]
mov ecx, eax
shr rcx, 1
mov r8, qword [rbp - 0x30]
cmp rcx, r8
ja 0x1400a45f6
lea rax, [rbp - 0x40]
cmp qword [rbp - 0x28], 7
cmova rax, qword [rbp - 0x40]
mov qword [rbp - 0x30], rcx
mov word [rax + rcx*2], di
jmp 0x1400a4654
mov rdx, rcx
sub rdx, r8
mov rdi, qword [rbp - 0x28]
mov rax, rdi
sub rax, r8
cmp rdx, rax
ja 0x1400a463d
mov qword [rbp - 0x30], rcx
lea r9, [rbp - 0x40]
cmp rdi, 7
cmova r9, qword [rbp - 0x40]
lea rdi, [r9 + r8*2]
test rdx, rdx
je 0x1400a4630
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 0x1400a4654
xor edi, edi
mov word [rsp + 0x20], di
mov r9, rdx
movzx r8d, bl
lea rcx, [rbp - 0x40]
call fcn.14000e4d0
lea rax, [rbp - 0x40]
cmp qword [rbp - 0x28], 7
cmova rax, qword [rbp - 0x40]
lea rcx, [rbp - 0x48]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x44]
xor r8d, r8d
mov rdx, r12
mov rcx, qword [r15]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 0xea
jne 0x1400a469d
inc esi
cmp esi, 5
jge 0x1400a472c
mov eax, dword [rbp - 0x48]
jmp 0x1400a45d0
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.1400a3280
movups xmm0, xmmword [rbp - 0x40]
movups xmmword [r14], xmm0
movups xmm1, xmmword [rbp - 0x30]
movups xmmword [r14 + 0x10], xmm1
mov eax, dword [rbp - 0x44]
mov dword [r14 + 0x20], eax
mov word [rbp - 0x40], di
mov qword [rbp - 0x30], rdi
mov qword [rbp - 0x28], 7
lea rcx, [rbp - 0x40]
call fcn.14000c080
mov rax, r14
mov rcx, qword [rbp + 0xe0]
xor rcx, rsp
call fcn.1400b89f0
mov rbx, qword [rsp + 0x248]
add rsp, 0x1f0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov rcx, r13
call fcn.14005d1c0
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.1400103b0
nop
mov rdx, rax
lea rcx, [rbp - 0x70]
call fcn.1400a4de0
lea rdx, [0x140172930]
lea rcx, [rbp - 0x70]
call fcn.1400bb9a0
int3