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

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x17c0]
mov eax, 0x18c0
call fcn.1402cec90
sub rsp, rax
mov qword [rbp - 0x60], 0xfffffffffffffffe
mov qword [rsp + 0x1910], rbx
mov rax, qword [0x14041da10]
xor rax, rsp
mov qword [rbp + 0x17b0], rax
mov rsi, rcx
xor r12d, r12d
mov dword [rsp + 0x64], r12d
mov r15, qword [rdx]
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r12
lea rax, [rsp + 0x64]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov r14d, r12d
cmp dword [rsp + 0x64], r12d
jbe 0x1401f6f01
lea r13, [0x14034d1a0]
nop dword [rax]
nop word [rax + rax]
mov r9d, 0x400
lea r8, [rbp + 0x7b0]
mov edx, r14d
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x1401f6eec
lea r8, [rbp - 0x70]
lea rdx, [rbp + 0x7b0]
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x1401f6ef3
mov dword [rsp + 0x60], r12d
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x40], r12
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbp - 0x70]
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov edi, r12d
cmp dword [rsp + 0x60], r12d
jbe 0x1401f6ee0
nop
mov dword [rbp - 0x68], 0x800
mov dword [rsp + 0x68], 0x800
lea rax, [rsp + 0x68]
mov qword [rsp + 0x38], rax
lea rax, [rbp - 0x50]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x64]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r12
lea r9, [rbp - 0x68]
lea r8, [rbp + 0xfb0]
mov edx, edi
mov rcx, qword [rbp - 0x70]
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
inc edi
test eax, eax
jne 0x1401f6ecf
cmp dword [rsp + 0x68], 8
jb 0x1401f6ed6
cmp word [rbp - 0x4e], 0x3a
jne 0x1401f6ed6
lea rax, [rbp - 0x50]
or rbx, 0xffffffffffffffff
nop
inc rbx
cmp word [rax + rbx*2], 0
jne 0x1401f6dd0
mov qword [rbp - 0x78], r12
test ebx, ebx
jne 0x1401f6de8
mov qword [rbp - 0x80], r13
jmp 0x1401f6e0b
mov edx, ebx
lea rcx, [rbp - 0x80]
call fcn.1402028a0
movsxd r9, ebx
mov eax, dword [rbp - 0x78]
inc eax
movsxd rdx, eax
lea r8, [rbp - 0x50]
mov rcx, qword [rbp - 0x80]
call fcn.1402c06dc
mov edx, ebx
lea rcx, [rbp - 0x80]
call fcn.140203bb0
nop
lea rdx, [rbp - 0x80]
mov rcx, qword [rsi + 8]
call fcn.1400f7410
nop
cmp dword [rbp - 0x78], 0
jle 0x1401f6e34
mov rcx, qword [rbp - 0x80]
call fcn.1402bd0e0
mov edx, 0x5c
lea rcx, [rbp - 0x50]
call fcn.1402c00ac
test rax, rax
je 0x1401f6ed6
mov word [rax + 2], r12w
lea rax, [rbp - 0x50]
or rbx, 0xffffffffffffffff
nop dword [rax + rax]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x1401f6e60
mov qword [rsp + 0x78], r12
test ebx, ebx
jne 0x1401f6e7a
mov qword [rsp + 0x70], r13
jmp 0x1401f6ea0
mov edx, ebx
lea rcx, [rsp + 0x70]
call fcn.1402028a0
movsxd r9, ebx
mov eax, dword [rsp + 0x78]
inc eax
movsxd rdx, eax
lea r8, [rbp - 0x50]
mov rcx, qword [rsp + 0x70]
call fcn.1402c06dc
mov edx, ebx
lea rcx, [rsp + 0x70]
call fcn.140203bb0
nop
lea rdx, [rsp + 0x70]
mov rcx, qword [rsi + 8]
call fcn.1400f7410
nop
cmp dword [rsp + 0x78], 0
jle 0x1401f6ed6
mov rcx, qword [rsp + 0x70]
call fcn.1402bd0e0
jmp 0x1401f6ed6
cmp eax, 0x103
je 0x1401f6ee0
cmp edi, dword [rsp + 0x60]
jb 0x1401f6d60
mov rcx, qword [rbp - 0x70]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1401f6ef3
cmp eax, 0x103
je 0x1401f6f01
inc r14d
cmp r14d, dword [rsp + 0x64]
jb 0x1401f6cd0
mov rcx, qword [rbp + 0x17b0]
xor rcx, rsp
call fcn.1402bcad0
mov rbx, qword [rsp + 0x1910]
add rsp, 0x18c0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret