Function at 0x14018bc00
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x2f]
sub rsp, 0x88
mov rax, qword [0x1403cd210]
xor rax, rsp
mov qword [rbp + 0x1f], rax
mov edi, r9d
mov r14, r8
mov rsi, rdx
xor r15d, r15d
mov ebx, r15d
mov qword [rbp - 0x19], rbx
mov dword [rbp - 0x11], r15d
mov qword [rbp - 9], r15
cmp qword [rcx + 0x18], 8
jb 0x14018bc48
mov rcx, qword [rcx]
mov qword [rbp - 0x21], r15
lea rax, [rbp - 0x21]
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rdx, rcx
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14018bc80
mov eax, r15d
mov rbx, qword [rbp - 0x21]
mov qword [rbp - 0x19], rbx
and edi, 0x300
mov dword [rbp - 0x11], edi
test eax, eax
je 0x14018bc8c
xor dil, dil
jmp 0x14018bda2
mov qword [rbp + 0xf], r15
mov qword [rbp + 0x17], 7
mov word [rbp - 1], r15w
mov edx, 0x108
lea rcx, [rbp - 1]
call fcn.14003302c
mov rdx, rax
mov qword [rbp + 0xf], 0x104
mov qword [rbp + 0x17], 0x107
movzx eax, r15w
mov rdi, rdx
mov ecx, 0x104
rep stosw word [rdi], ax
mov word [rdx + 0x208], r15w
mov qword [rbp - 1], rdx
lea rdi, [rbp - 1]
cmp qword [rbp + 0x17], 8
cmovae rdi, rdx
cmp qword [rsi + 0x18], 8
jb 0x14018bcf0
mov rsi, qword [rsi]
mov eax, dword [rbp + 0xf]
add eax, eax
mov dword [rbp - 0x29], eax
lea rax, [rbp - 0x29]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
lea r9, [rbp - 0x21]
xor r8d, r8d
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14018bd4e
mov eax, dword [rbp - 0x21]
dec eax
cmp eax, 1
ja 0x14018bd4e
test rdi, rdi
je 0x14018bdd4
mov eax, dword [rbp - 0x29]
test eax, eax
je 0x14018bdd0
test al, 1
jne 0x14018bd4e
shr rax, 1
cmp word [rdi + rax*2 - 2], 0
je 0x14018bdd4
xor dil, dil
mov rdx, qword [rbp + 0x17]
cmp rdx, 8
jb 0x14018bd91
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 1]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14018bd8c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14018be74
call fcn.14011a254
mov qword [rbp + 0xf], r15
mov qword [rbp + 0x17], 7
mov word [rbp - 1], r15w
test rbx, rbx
je 0x14018bdb0
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx eax, dil
mov rcx, qword [rbp + 0x1f]
xor rcx, rsp
call fcn.140119fe0
add rsp, 0x88
pop r15
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov word [rdi], r15w
lea rdi, [rbp - 1]
mov r9, qword [rbp - 1]
mov r10, qword [rbp + 0x17]
cmp r10, 8
cmovae rdi, r9
mov r8, qword [rbp + 0xf]
test r8, r8
je 0x14018be22
mov rax, r8
mov rcx, rdi
mov rdx, r15
cmp word [rdi], dx
je 0x14018be12
nop
cmp rax, 1
je 0x14018be15
dec rax
add rcx, 2
cmp word [rcx], dx
jne 0x14018be00
mov rdx, rcx
test rdx, rdx
je 0x14018be22
sub rdx, rdi
sar rdx, 1
jmp 0x14018be29
mov rdx, 0xffffffffffffffff
cmp r8, rdx
jb 0x14018be6e
lea rax, [rbp - 1]
cmp r10, 8
cmovae rax, r9
mov qword [rbp + 0xf], rdx
mov word [rax + rdx*2], r15w
lea rax, [rbp - 1]
cmp r14, rax
je 0x14018be66
lea rdx, [rbp - 1]
cmp qword [rbp + 0x17], 8
cmovae rdx, qword [rbp - 1]
mov r8, qword [rbp + 0xf]
mov rcx, r14
call fcn.14003318c
mov dil, 1
jmp 0x14018bd51
call fcn.140031f50
nop
call fcn.14013d31c
int3