Function at 0x14000bdd0
Capabilities:
Query or enumerate registry key

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x3f0]
sub rsp, 0x4f0
mov qword [rbp - 0x68], 0xfffffffffffffffe
mov qword [rsp + 0x530], rbx
mov rax, qword [0x14004d010]
xor rax, rsp
mov qword [rbp + 0x3e0], rax
mov r14, r8
mov rbx, rdx
mov rdx, qword [r8 + 8]
mov rcx, qword [r8]
call fcn.14000d0c0
mov rax, qword [r14]
mov qword [r14 + 8], rax
xor r13d, r13d
mov qword [rsp + 0x70], r13
mov dword [rsp + 0x64], 0x104
mov dword [rsp + 0x60], r13d
cmp qword [rbx + 0x18], 8
jb 0x14000be44
mov rbx, qword [rbx]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rbx
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000c038
lea rax, [rbp - 0x70]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x7c]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x80]
mov qword [rsp + 0x40], rax
lea rax, [rbp - 0x7c]
mov qword [rsp + 0x38], rax
lea rax, [rbp - 0x78]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x74]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea r8, [rsp + 0x64]
lea rdx, [rbp + 0x1d0]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov eax, dword [rsp + 0x60]
test eax, eax
je 0x14000c038
mov r12d, r13d
mov dword [rsp + 0x68], 0x104
lea rax, [rbp - 0x70]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x68]
lea r8, [rbp - 0x40]
mov edx, r12d
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x14000c038
mov qword [rbp - 0x50], r13
mov qword [rbp - 0x48], 7
mov word [rbp - 0x60], r13w
lea rax, [rbp - 0x40]
mov r8, 0xffffffffffffffff
nop
inc r8
cmp word [rax + r8*2], 0
jne 0x14000bf40
lea rdx, [rbp - 0x40]
lea rcx, [rbp - 0x60]
call fcn.14000c900
nop
lea rsi, [rbp - 0x60]
mov r8, qword [rbp - 0x60]
cmp qword [rbp - 0x48], 8
cmovae rsi, r8
lea rcx, [rbp - 0x60]
cmovae rcx, r8
mov rax, qword [rbp - 0x50]
lea r9, [rcx + rax*2]
lea rbx, [rbp - 0x60]
cmovae rbx, r8
mov rdi, r13
mov r15, r9
sub r15, rbx
inc r15
shr r15, 1
cmp rbx, r9
cmova r15, r13
test r15, r15
je 0x14000bfb8
sub rsi, rbx
movzx ecx, word [rbx]
call fcn.140023130
mov word [rsi + rbx], ax
lea rbx, [rbx + 2]
inc rdi
cmp rdi, r15
jne 0x14000bfa0
lea rcx, [rbp - 0x60]
call fcn.14000b810
mov rax, qword [r14 + 8]
cmp rax, qword [r14 + 0x10]
je 0x14000bfde
lea rdx, [rbp - 0x60]
mov rcx, rax
call fcn.14000d410
add qword [r14 + 8], 0x20
jmp 0x14000bfee
lea r8, [rbp - 0x60]
mov rdx, rax
mov rcx, r14
call fcn.14000ccd0
nop
mov rdx, qword [rbp - 0x48]
cmp rdx, 8
jb 0x14000c02a
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000c025
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000c062
call fcn.140019b64
inc r12d
cmp r12d, dword [rsp + 0x60]
jb 0x14000bee3
mov rcx, qword [rbp + 0x3e0]
xor rcx, rsp
call fcn.140019b40
mov rbx, qword [rsp + 0x530]
add rsp, 0x4f0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.1400219a8
int3