Function at 0x1000ebca8
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r15
sub rsp, 0x60
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov r12, r8
mov rdi, rdx
mov rbp, rcx
lea r15, [0x100153eb8]
mov rcx, qword [0x100153eb8]
cmp rcx, r15
je 0x1000ebd0a
test byte [rcx + 0x1c], 1
je 0x1000ebd0a
cmp byte [rcx + 0x19], 5
jb 0x1000ebd0a
mov edx, 0x42
mov eax, dword [r8]
mov dword [rsp + 0x20], eax
mov r9, rdi
lea r8, [0x10001dc18]
mov rcx, qword [rcx + 0x10]
call fcn.10003b678
mov rdx, rdi
mov rcx, rbp
call fcn.1000ea248
mov esi, eax
mov rcx, qword [0x100153eb8]
cmp rcx, r15
je 0x1000ebd4b
test byte [rcx + 0x1c], 2
je 0x1000ebd4b
cmp byte [rcx + 0x19], 5
jb 0x1000ebd4b
mov edx, 0x43
mov dword [rsp + 0x20], eax
mov r9, rdi
lea r8, [0x10001dc18]
mov rcx, qword [rcx + 0x10]
call fcn.10003b678
xor ebx, ebx
mov eax, 0x490
test esi, esi
cmove ebx, eax
mov rdx, rdi
lea rcx, [rsp + 0x38]
call fcn.100035db8
nop
lea rcx, [rsp + 0x38]
call fcn.1000699ec
xor edi, edi
mov qword [rsp + 0x48], rdi
and qword [rsp + 0x50], rdi
and qword [rsp + 0x58], rdi
lea esi, [rdi + 4]
test ebx, ebx
jne 0x1000ebdd3
xor r8d, r8d
lea rdx, [rsp + 0x48]
mov rcx, rbp
call fcn.1000eec38
mov ebx, eax
mov rcx, qword [0x100153eb8]
cmp rcx, r15
je 0x1000ebdce
test byte [rcx + 0x1c], 2
je 0x1000ebdce
cmp byte [rcx + 0x19], sil
jb 0x1000ebdce
lea edx, [rdi + 0x44]
mov r9d, eax
lea r8, [0x10001dc18]
mov rcx, qword [rcx + 0x10]
call fcn.100036510
mov rdi, qword [rsp + 0x48]
jmp 0x1000ebdd3
mov rdi, qword [rsp + 0x48]
and dword [r12], 0
and dword [rsp + 0xa0], 0
test ebx, ebx
jne 0x1000ebefb
mov dword [rsp + 0xa8], esi
lea rax, [rsp + 0xa8]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x30]
xor r8d, r8d
mov rdx, qword [rsp + 0x38]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
test eax, eax
jne 0x1000ebe32
mov eax, dword [rsp + 0x30]
sub eax, esi
neg eax
sbb ebx, ebx
and ebx, 0xd
mov rcx, qword [0x100153eb8]
cmp rcx, r15
je 0x1000ebe7a
test byte [rcx + 0x1c], 2
je 0x1000ebe7a
cmp byte [rcx + 0x19], sil
jb 0x1000ebe7a
mov edx, 0x45
mov dword [rsp + 0x28], ebx
mov eax, dword [rsp + 0xa0]
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0x38]
lea r8, [0x10001dc18]
mov rcx, qword [rcx + 0x10]
call fcn.1000e9e18
mov rcx, qword [0x100153eb8]
cmp ebx, 2
jne 0x1000ebeb2
xor ebx, ebx
cmp rcx, r15
je 0x1000ebf3c
test byte [rcx + 0x1c], 2
je 0x1000ebf02
cmp byte [rcx + 0x19], sil
jb 0x1000ebf02
lea edx, [rbx + 0x46]
lea r8, [0x10001dc18]
mov rcx, qword [rcx + 0x10]
call fcn.100034784
mov rcx, qword [0x100153eb8]
jmp 0x1000ebf02
test ebx, ebx
jne 0x1000ebf02
cmp dword [rsp + 0xa0], ebx
je 0x1000ebf02
mov dword [r12], 1
mov rcx, qword [0x100153eb8]
cmp rcx, r15
je 0x1000ebf3c
test byte [rcx + 0x1c], 2
je 0x1000ebf02
cmp byte [rcx + 0x19], sil
jb 0x1000ebf02
lea edx, [rbx + 0x47]
lea r8, [0x10001dc18]
mov rcx, qword [rcx + 0x10]
call fcn.100034784
mov rcx, qword [0x100153eb8]
jmp 0x1000ebf02
mov rcx, qword [0x100153eb8]
cmp rcx, r15
je 0x1000ebf3c
test byte [rcx + 0x1c], 1
je 0x1000ebf3c
movzx r9d, byte [rcx + 0x19]
mov eax, ebx
neg eax
sbb edx, edx
and edx, 0xfffffffd
add edx, 5
cmp r9d, edx
jl 0x1000ebf3c
mov edx, 0x48
mov r9d, ebx
lea r8, [0x10001dc18]
mov rcx, qword [rcx + 0x10]
call fcn.100036510
nop
test rdi, rdi
je 0x1000ebf4b
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rdx, qword [rsp + 0x38]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1000ebf6b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov eax, ebx
mov rbx, qword [rsp + 0x90]
add rsp, 0x60
pop r15
pop r12
pop rdi
pop rsi
pop rbp
ret