Function at 0x14002ef50
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x17b0]
mov eax, 0x18b0
call fcn.1400ae8c0
sub rsp, rax
mov rax, qword [rbp + 0x1808]
mov rsi, rdx
mov rdx, qword [rbp + 0x1818]
mov rdi, rcx
mov qword [rbp - 0x70], rax
lea rcx, [rbp - 0x60]
mov rax, qword [rbp + 0x1810]
xor ebx, ebx
mov r8d, 0x3ff
mov qword [rbp - 0x68], rax
mov dword [rbp + 0xfa0], ebx
mov word [rbp + 0x7a0], bx
call fcn.1400a2664
lea rcx, [rbp - 0x60]
mov word [rbp + 0x79e], bx
or rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [rcx + rax*2], bx
jne 0x14002efd0
test rax, rax
je 0x14002efeb
cmp word [rbp + rax*2 - 0x62], 0x5c
jne 0x14002efeb
mov word [rbp + rax*2 - 0x62], bx
mov rax, qword [0x1400edaa8]
lea rdx, [rbp - 0x60]
mov rcx, qword [rbp - 0x68]
xor r8d, r8d
mov r9d, dword [rax + 0x108]
lea rax, [rsp + 0x68]
or r9d, 9
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14002f43f
mov rcx, qword [rsp + 0x68]
lea rax, [rbp - 0x80]
mov qword [rsp + 0x58], rbx
xor r9d, r9d
mov qword [rsp + 0x50], rbx
xor r8d, r8d
mov qword [rsp + 0x48], rbx
xor edx, edx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x38], rax
lea rax, [rbp - 0x7c]
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x14002f434
mov rbx, qword [0x1400edaa8]
mov eax, dword [rbp - 0x80]
mov ecx, dword [rbp + 0x17f8]
mov qword [rbp - 0x78], rbx
test eax, eax
je 0x14002f200
cmp ecx, 2
je 0x14002f200
xor ecx, ecx
lea esi, [rax - 1]
mov qword [rbp + 0xfa4], rcx
mov qword [rsp + 0x38], rcx
lea rax, [rbp + 0xfa0]
mov qword [rsp + 0x30], rcx
lea r9, [rsp + 0x70]
mov qword [rsp + 0x28], rax
lea r8, [rbp + 0x7a0]
mov qword [rsp + 0x20], rcx
mov edx, esi
mov word [rbp + 0x7a0], cx
mov rcx, qword [rsp + 0x68]
mov dword [rsp + 0x64], esi
mov dword [rsp + 0x70], 0x400
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x14002f1ae
lea rax, [rbp - 0x70]
mov qword [rbx + 0x18], rax
mov rcx, qword [rdi + 0x20]
cmp byte [rcx], 0x73
jne 0x14002f133
mov rsi, qword [rbp + 0x17d8]
mov rcx, qword [rcx + 0x20]
lea r9, [rsp + 0x78]
mov r8, rsi
mov edx, 2
call fcn.140027cd0
mov rcx, qword [rdi + 0x20]
mov ebx, eax
mov dword [rsp + 0x60], eax
mov rax, qword [rsp + 0x78]
cmp rax, rcx
je 0x14002f103
mov esi, dword [rsp + 0x64]
jmp 0x14002f154
mov r8, qword [rbp + 0x17d8]
lea r9, [rsp + 0x78]
mov edx, 3
call fcn.140027cd0
mov ebx, eax
mov dword [rsp + 0x60], eax
mov rax, qword [rsp + 0x78]
test rax, rax
je 0x14002f17f
cmp ebx, 6
jne 0x14002f1bb
cmp rax, rdi
je 0x14002f189
mov rcx, qword [rbp + 0x17e8]
mov qword [rcx], rax
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x14002f444
cmp ebx, 1
je 0x14002f189
cmp ebx, 6
jne 0x14002f1e1
mov rax, qword [rbp + 0x17f0]
test rax, rax
je 0x14002f1a6
lea rdx, [rsp + 0x60]
mov rcx, rax
call fcn.14002e600
test al, al
jne 0x14002f1dd
mov rbx, qword [rbp - 0x78]
inc qword [rbx + 8]
test esi, esi
je 0x14002f1f3
dec esi
xor ecx, ecx
jmp 0x14002f09c
cmp rax, rdi
jne 0x14002f163
mov r8, qword [rbp + 0x17e0]
mov rcx, qword [rsp + 0x68]
mov byte [r8], 1
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x14002f444
mov ebx, dword [rsp + 0x60]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x14002f444
mov rsi, qword [rbp + 0x17d8]
mov ecx, dword [rbp + 0x17f8]
mov eax, dword [rbp - 0x7c]
test eax, eax
je 0x14002f434
cmp ecx, 1
jne 0x14002f21d
cmp byte [rbp + 0x1800], 0
je 0x14002f434
mov dword [rbp + 0xfa0], 0xfffffffe
dec eax
lea rcx, [rbp + 0xfa4]
mov dword [rsp + 0x64], eax
mov qword [rsp + 0x38], rcx
lea r9, [rsp + 0x70]
xor ecx, ecx
mov dword [rsp + 0x70], 0x400
mov qword [rsp + 0x30], rcx
lea r8, [rbp + 0x7a0]
mov qword [rsp + 0x28], rcx
mov edx, eax
mov qword [rsp + 0x20], rcx
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x14002f3ff
cmp dword [rbp + 0x17f8], 1
je 0x14002f32c
lea rax, [rbp - 0x70]
mov qword [rbx + 0x18], rax
mov rcx, qword [rdi + 0x20]
cmp byte [rcx], 0x73
jne 0x14002f2bd
mov rcx, qword [rcx + 0x20]
lea r9, [rsp + 0x78]
mov r8, rsi
mov edx, 2
call fcn.140027cd0
mov rcx, qword [rdi + 0x20]
mov ebx, eax
mov dword [rsp + 0x60], eax
mov rax, qword [rsp + 0x78]
cmp rax, rcx
je 0x14002f291
jmp 0x14002f2da
lea r9, [rsp + 0x78]
mov r8, rsi
mov edx, 3
call fcn.140027cd0
mov ebx, eax
mov dword [rsp + 0x60], eax
mov rax, qword [rsp + 0x78]
test rax, rax
je 0x14002f2f3
cmp ebx, 6
jne 0x14002f412
cmp rax, rdi
jne 0x14002f163
jmp 0x14002f301
cmp ebx, 1
je 0x14002f301
cmp ebx, 6
jne 0x14002f1e1
mov rbx, qword [rbp + 0x17f0]
test rbx, rbx
je 0x14002f322
lea rdx, [rsp + 0x60]
mov rcx, rbx
call fcn.14002e600
test al, al
jne 0x14002f1dd
mov rax, qword [rbp - 0x78]
inc qword [rax + 8]
jmp 0x14002f333
mov rbx, qword [rbp + 0x17f0]
cmp byte [rbp + 0x1800], 0
je 0x14002f3ff
cmp word [rbp - 0x60], 0
lea rcx, [0x1400d1e4c]
lea rax, [0x1400bdf7c]
mov edx, 0x400
cmovne rax, rcx
lea r9, [rbp - 0x60]
lea rcx, [rbp + 0x7a0]
mov qword [rsp + 0x28], rcx
lea r8, [0x1400d5ec0]
lea rcx, [rbp + 0xfb0]
mov qword [rsp + 0x20], rax
call fcn.140079fa0
mov r9, qword [rbp + 0x17e8]
lea rax, [rbp + 0xfb0]
mov r8, qword [rbp + 0x17e0]
mov rdx, rsi
mov qword [rsp + 0x48], rax
mov rcx, rdi
mov rax, qword [rbp + 0x1810]
mov qword [rsp + 0x40], rax
mov rax, qword [rbp + 0x1808]
mov qword [rsp + 0x38], rax
movzx eax, byte [rbp + 0x1800]
mov byte [rsp + 0x30], al
mov eax, dword [rbp + 0x17f8]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
call fcn.14002ef50
mov ebx, eax
cmp eax, 1
jne 0x14002f16d
mov rax, qword [rbp + 0x17e0]
cmp byte [rax], 0
jne 0x14002f434
mov rax, qword [rbp + 0x17e8]
cmp qword [rax], 0
jne 0x14002f434
mov eax, dword [rsp + 0x64]
test eax, eax
je 0x14002f434
mov rbx, qword [rbp - 0x78]
dec eax
jmp 0x14002f229
cmp rax, rdi
jne 0x14002f163
mov rax, qword [rbp + 0x17e0]
mov rcx, qword [rsp + 0x68]
mov byte [rax], 1
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x14002f444
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov rbx, qword [rsp + 0x18d0]
add rsp, 0x18b0
pop rdi
pop rsi
pop rbp
ret