Function at 0x1400d3ea0
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 [0x14035dc30]
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 0x1400d3ee8
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 0x1400d3f20
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 0x1400d3f2c
xor dil, dil
jmp 0x1400d4046
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.140026230
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 0x1400d3f94
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 0x1400d3ff2
mov eax, dword [rbp - 0x21]
dec eax
cmp eax, 1
ja 0x1400d3ff2
test rdi, rdi
je 0x1400d4078
mov eax, dword [rbp - 0x29]
test eax, eax
je 0x1400d4074
test al, 1
jne 0x1400d3ff2
shr rax, 1
cmp word [rdi + rax*2 - 2], 0
je 0x1400d4078
xor dil, dil
mov rdx, qword [rbp + 0x17]
cmp rdx, 8
jb 0x1400d4035
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 1]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400d4030
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400d4117
call fcn.140269844
mov qword [rbp + 0xf], r15
mov qword [rbp + 0x17], 7
mov word [rbp - 1], r15w
test rbx, rbx
je 0x1400d4054
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx eax, dil
mov rcx, qword [rbp + 0x1f]
xor rcx, rsp
call fcn.140269300
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 0x1400d40c5
mov rax, r8
mov rcx, rdi
mov rdx, r15
cmp word [rdi], dx
je 0x1400d40b5
cmp rax, 1
je 0x1400d40b8
dec rax
add rcx, 2
cmp word [rcx], dx
jne 0x1400d40a3
mov rdx, rcx
test rdx, rdx
je 0x1400d40c5
sub rdx, rdi
sar rdx, 1
jmp 0x1400d40cc
mov rdx, 0xffffffffffffffff
cmp r8, rdx
jb 0x1400d4111
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 0x1400d4109
lea rdx, [rbp - 1]
cmp qword [rbp + 0x17], 8
cmovae rdx, qword [rbp - 1]
mov r8, qword [rbp + 0xf]
mov rcx, r14
call fcn.140025e70
mov dil, 1
jmp 0x1400d3ff5
call fcn.14003a640
nop
call fcn.140277ff8
int3