Function at 0x1401f0ed0
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.1402c8f60
sub rsp, rax
mov qword [rbp - 0x60], 0xfffffffffffffffe
mov qword [rsp + 0x1910], rbx
mov rax, qword [0x140415a10]
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 0x1401f11b1
lea r13, [0x140346ce0]
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 0x1401f119c
lea r8, [rbp - 0x70]
lea rdx, [rbp + 0x7b0]
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x1401f11a3
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 0x1401f1190
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 0x1401f117f
cmp dword [rsp + 0x68], 8
jb 0x1401f1186
cmp word [rbp - 0x4e], 0x3a
jne 0x1401f1186
lea rax, [rbp - 0x50]
or rbx, 0xffffffffffffffff
nop
inc rbx
cmp word [rax + rbx*2], 0
jne 0x1401f1080
mov qword [rbp - 0x78], r12
test ebx, ebx
jne 0x1401f1098
mov qword [rbp - 0x80], r13
jmp 0x1401f10bb
mov edx, ebx
lea rcx, [rbp - 0x80]
call fcn.1401fcb40
movsxd r9, ebx
mov eax, dword [rbp - 0x78]
inc eax
movsxd rdx, eax
lea r8, [rbp - 0x50]
mov rcx, qword [rbp - 0x80]
call fcn.1402ba94c
mov edx, ebx
lea rcx, [rbp - 0x80]
call fcn.1401fde50
nop
lea rdx, [rbp - 0x80]
mov rcx, qword [rsi + 8]
call fcn.1400f4e80
nop
cmp dword [rbp - 0x78], 0
jle 0x1401f10e4
mov rcx, qword [rbp - 0x80]
call fcn.1402b7350
mov edx, 0x5c
lea rcx, [rbp - 0x50]
call fcn.1402ba31c
test rax, rax
je 0x1401f1186
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 0x1401f1110
mov qword [rsp + 0x78], r12
test ebx, ebx
jne 0x1401f112a
mov qword [rsp + 0x70], r13
jmp 0x1401f1150
mov edx, ebx
lea rcx, [rsp + 0x70]
call fcn.1401fcb40
movsxd r9, ebx
mov eax, dword [rsp + 0x78]
inc eax
movsxd rdx, eax
lea r8, [rbp - 0x50]
mov rcx, qword [rsp + 0x70]
call fcn.1402ba94c
mov edx, ebx
lea rcx, [rsp + 0x70]
call fcn.1401fde50
nop
lea rdx, [rsp + 0x70]
mov rcx, qword [rsi + 8]
call fcn.1400f4e80
nop
cmp dword [rsp + 0x78], 0
jle 0x1401f1186
mov rcx, qword [rsp + 0x70]
call fcn.1402b7350
jmp 0x1401f1186
cmp eax, 0x103
je 0x1401f1190
cmp edi, dword [rsp + 0x60]
jb 0x1401f1010
mov rcx, qword [rbp - 0x70]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1401f11a3
cmp eax, 0x103
je 0x1401f11b1
inc r14d
cmp r14d, dword [rsp + 0x64]
jb 0x1401f0f80
mov rcx, qword [rbp + 0x17b0]
xor rcx, rsp
call fcn.1402b6d40
mov rbx, qword [rsp + 0x1910]
add rsp, 0x18c0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret