Function at 0x140041700
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x140085140]
xor rax, rsp
mov qword [rbp - 8], rax
mov rbx, r8
mov rsi, rdx
mov r14, rcx
mov qword [rbp - 0x38], rdx
mov dword [rbp - 0x40], 1
mov byte [rdx], 0
xor r15d, r15d
mov dword [rdx + 4], r15d
xorps xmm0, xmm0
movups xmmword [rdx + 8], xmm0
mov qword [rdx + 0x18], r15
mov qword [rdx + 0x20], 7
mov word [rdx + 8], r15w
mov dword [rbp - 0x40], 1
mov dword [rbp - 0x30], r15d
cmp qword [r8 + 0x18], 7
jbe 0x14004176f
mov r8, qword [r8]
lea rdx, [rcx + 8]
cmp qword [rdx + 0x18], 7
jbe 0x14004177d
mov rdx, qword [rdx]
lea rax, [rbp - 0x30]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r15
mov r9d, 0x10000006
mov rcx, qword [rcx]
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x140041969
xorps xmm0, xmm0
movups xmmword [rbp - 0x28], xmm0
mov qword [rbp - 0x18], r15
mov qword [rbp - 0x10], 7
mov word [rbp - 0x28], r15w
mov edx, dword [rbp - 0x30]
shr rdx, 1
jne 0x1400417d3
mov qword [rbp - 0x18], rdx
mov word [rbp + rdx*2 - 0x28], r15w
jmp 0x1400417ff
cmp rdx, 7
ja 0x1400417f3
mov qword [rbp - 0x18], rdx
movzx eax, r15w
lea rdi, [rbp - 0x28]
mov rcx, rdx
rep stosw word [rdi], ax
mov word [rbp + rdx*2 - 0x28], r15w
jmp 0x1400417ff
mov r9, rdx
lea rcx, [rbp - 0x28]
call fcn.1400403d0
lea rax, [rbp - 0x28]
cmp qword [rbp - 0x10], 7
cmova rax, qword [rbp - 0x28]
cmp qword [rbx + 0x18], 7
jbe 0x140041817
mov rbx, qword [rbx]
lea rdx, [r14 + 8]
cmp qword [rdx + 0x18], 7
jbe 0x140041825
mov rdx, qword [rdx]
lea rcx, [rbp - 0x30]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r15
mov r9d, 0x10000006
mov r8, rbx
mov rcx, qword [r14]
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x140041925
mov ecx, dword [rbp - 0x30]
shr ecx, 1
dec ecx
mov r8, qword [rbp - 0x18]
cmp rcx, r8
ja 0x14004187b
mov qword [rbp - 0x18], rcx
lea rax, [rbp - 0x28]
cmp qword [rbp - 0x10], 7
cmova rax, qword [rbp - 0x28]
mov word [rax + rcx*2], r15w
jmp 0x1400418cb
mov rdx, rcx
sub rdx, r8
mov rdi, qword [rbp - 0x10]
mov rax, rdi
sub rax, r8
cmp rdx, rax
ja 0x1400418bf
mov qword [rbp - 0x18], rcx
lea r9, [rbp - 0x28]
cmp rdi, 7
cmova r9, qword [rbp - 0x28]
lea rdi, [r9 + r8*2]
test rdx, rdx
je 0x1400418b4
movzx eax, r15w
mov rcx, rdx
rep stosw word [rdi], ax
lea rax, [r8 + rdx]
mov word [r9 + rax*2], r15w
jmp 0x1400418cb
mov r9, rdx
lea rcx, [rbp - 0x28]
call fcn.1400403d0
mov byte [rsi], 1
lea rcx, [rsi + 8]
lea rax, [rbp - 0x28]
cmp rcx, rax
je 0x140041925
lea r9, [rbp - 0x28]
cmp qword [rbp - 0x10], 7
cmova r9, qword [rbp - 0x28]
mov rdi, qword [rbp - 0x18]
mov rax, qword [rcx + 0x18]
cmp rdi, rax
ja 0x14004191c
mov rbx, rcx
cmp rax, 7
jbe 0x140041902
mov rbx, qword [rcx]
mov qword [rcx + 0x10], rdi
lea r8, [rdi + rdi]
mov rdx, r9
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
mov word [rbx + rdi*2], r15w
jmp 0x140041925
mov rdx, rdi
call fcn.140040260
nop
mov rdx, qword [rbp - 0x10]
cmp rdx, 7
jbe 0x140041969
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140041963
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140041963
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140052cf0
nop
mov rax, rsi
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1400529c0
mov rbx, qword [rsp + 0xc8]
add rsp, 0x80
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret