Function at 0x14018e3b0
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 [0x14039bc30]
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 0x14018e3f8
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 0x14018e430
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 0x14018e43c
xor dil, dil
jmp 0x14018e556
mov qword [rbp - 1], r15
mov qword [rbp + 0xf], r15
mov qword [rbp + 0x17], 7
mov word [rbp - 1], r15w
mov edx, 0x108
lea rcx, [rbp - 1]
call fcn.140033890
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 0x14018e4a4
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 0x14018e502
mov eax, dword [rbp - 0x21]
dec eax
cmp eax, 1
ja 0x14018e502
test rdi, rdi
je 0x14018e588
mov eax, dword [rbp - 0x29]
test eax, eax
je 0x14018e584
test al, 1
jne 0x14018e502
shr rax, 1
cmp word [rdi + rax*2 - 2], 0
je 0x14018e588
xor dil, dil
mov rdx, qword [rbp + 0x17]
cmp rdx, 8
jb 0x14018e545
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 1]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14018e540
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14018e627
call fcn.14013afa0
mov qword [rbp + 0xf], r15
mov qword [rbp + 0x17], 7
mov word [rbp - 1], r15w
test rbx, rbx
je 0x14018e564
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx eax, dil
mov rcx, qword [rbp + 0x1f]
xor rcx, rsp
call fcn.14013af80
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 0x14018e5d5
mov rax, r8
mov rcx, rdi
mov rdx, r15
cmp word [rdi], dx
je 0x14018e5c5
cmp rax, 1
je 0x14018e5c8
dec rax
add rcx, 2
cmp word [rcx], dx
jne 0x14018e5b3
mov rdx, rcx
test rdx, rdx
je 0x14018e5d5
sub rdx, rdi
sar rdx, 1
jmp 0x14018e5dc
mov rdx, 0xffffffffffffffff
cmp r8, rdx
jb 0x14018e621
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 0x14018e619
lea rdx, [rbp - 1]
cmp qword [rbp + 0x17], 8
cmovae rdx, qword [rbp - 1]
mov r8, qword [rbp + 0xf]
mov rcx, r14
call fcn.140032810
mov dil, 1
jmp 0x14018e505
call fcn.140032160
nop
call fcn.1401421d8
int3