Function at 0x1cdd8
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r13
push r15
sub rsp, 0x4b0
mov rax, qword [0x0002c100]
xor rax, rsp
mov qword [rsp + 0x4a0], rax
xor r13d, r13d
mov r12, rdx
lea rcx, [rsp + 0x80]
lea r8d, [r13 + 0x20]
lea rdx, [0x00028eb0]
mov bpl, r13b
mov rbx, r13
mov rsi, r13
mov dword [rsp + 0x30], r13d
call fcn.000283d0
lea rcx, [rsp + 0xa0]
xor edx, edx
mov r8d, 0x1e8
call fcn.00028240
mov qword [rsp + 0x38], r13
cmp r12, r13
je 0x1d08f
cmp word [r12], r13w
je 0x1d08f
or rdx, 0xffffffffffffffff
xor eax, eax
lea r15d, [r13 + 1]
mov rcx, rdx
mov rdi, r12
repne scasw ax, word [rdi]
lea rdi, [rsp + 0x80]
not rcx
sub rcx, r15
mov r8, rcx
mov rcx, rdx
mov rdx, r12
repne scasw ax, word [rdi]
add r8, r8
not rcx
sub rcx, r15
lea rcx, [rsp + rcx*2 + 0x80]
call fcn.000283d0
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x70]
call qword [fcn.004e696c]
lea rax, [rsp + 0x70]
lea r8, [rsp + 0x40]
lea rcx, [rsp + 0x38]
mov edx, 0x1f0000
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x40], 0x30
mov qword [rsp + 0x48], r13
mov dword [rsp + 0x58], 0x240
mov qword [rsp + 0x60], r13
mov qword [rsp + 0x68], r13
call qword [sym.imp.ntoskrnl.exe_ZwOpenKey]
cmp eax, r13d
mov r12d, 0x456e6d52
jl 0x1d05d
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
lea edi, [r13 + 2]
mov edx, edi
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ZwQueryKey]
cmp eax, 0xc0000023
jne 0x1d05d
mov edx, dword [rsp + 0x30]
mov r8d, r12d
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rsi, rax
cmp rax, r13
je 0x1d05d
mov r9d, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov r8, rsi
mov edx, edi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ZwQueryKey]
cmp eax, r13d
jl 0x1d05d
mov edi, r13d
cmp dword [rsi + 0x14], r13d
jbe 0x1d05d
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov r9, rbx
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov edx, edi
mov dword [rsp + 0x20], r13d
call qword [sym.imp.ntoskrnl.exe_ZwEnumerateKey]
cmp eax, 0xc0000023
jne 0x1d038
mov edx, dword [rsp + 0x30]
mov r8d, r12d
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rbx, rax
cmp rax, r13
je 0x1d051
mov ecx, dword [rsp + 0x30]
lea rax, [rsp + 0x30]
mov r9, rbx
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], ecx
mov rcx, qword [rsp + 0x38]
xor r8d, r8d
mov edx, edi
call qword [sym.imp.ntoskrnl.exe_ZwEnumerateKey]
cmp eax, r13d
jl 0x1d038
lea rcx, [rsp + 0x290]
xor edx, edx
mov r8d, 0x208
call fcn.00028240
mov r8d, dword [rbx + 0xc]
lea rdx, [rbx + 0x10]
lea rcx, [rsp + 0x290]
call fcn.000283d0
lea rdx, [0x00028ed0]
lea rcx, [rsp + 0x290]
call qword [sym.imp.ntoskrnl.exe__wcsicmp]
movzx ebp, bpl
cmp eax, r13d
cmove ebp, r15d
cmp rbx, r13
je 0x1d04c
mov edx, r12d
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rbx, r13
cmp bpl, r13b
jne 0x1d05d
add edi, r15d
cmp edi, dword [rsi + 0x14]
jb 0x1cf7c
mov rcx, qword [rsp + 0x38]
cmp rcx, r13
je 0x1d06d
call qword [sym.imp.ntoskrnl.exe_ZwClose]
cmp rsi, r13
je 0x1d07e
mov edx, r12d
mov rcx, rsi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
cmp rbx, r13
je 0x1d08f
mov edx, r12d
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov al, bpl
mov rcx, qword [rsp + 0x4a0]
xor rcx, rsp
call fcn.000281c0
lea r11, [rsp + 0x4b0]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r13
pop r12
pop rdi
pop rsi
ret