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

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rdx
mov rdi, rcx
mov edx, 2
call fcn.1400508a0
xor r8d, r8d
mov rdx, rbx
mov rcx, rdi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp 0x14004f4e0
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x3a0]
sub rsp, 0x4a0
mov rax, qword [0x1400ce568]
xor rax, rsp
mov qword [rbp + 0x390], rax
mov rsi, r8
mov rdi, rdx
mov r12, rcx
xor r13d, r13d
mov r15d, r13d
mov ebx, r13d
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x70]
call fcn.1400725e0
mov dword [rsp + 0x40], 0x104
mov dword [rsp + 0x44], r13d
lea rcx, [rsp + 0x50]
call fcn.14004f090
nop
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r13
lea rax, [rsp + 0x44]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x70]
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, 0x103
je 0x14004f5f6
inc ebx
lea r8, [rsp + 0x70]
mov rdx, rsi
lea rcx, [rsp + 0x50]
call fcn.1400505a0
lea r8, [rsp + 0x70]
mov rdx, rdi
lea rcx, [rsp + 0x50]
call fcn.140050750
test al, al
je 0x14004f5b9
mov rdx, qword [r12]
lea rcx, [rsp + 0x50]
call fcn.140050420
mov dword [rsp + 0x40], 0x104
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r13
lea rax, [rsp + 0x44]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x70]
mov edx, ebx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, 0x103
jne 0x14004f581
mov r14d, r13d
mov dword [rsp + 0x40], 0x104
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x70]
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
je 0x14004f72c
nop word [rax + rax]
inc r14d
mov qword [rsp + 0x48], r13
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, [rsp + 0x70]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14004f6e7
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x180]
call fcn.1400725e0
mov edx, 0x104
lea rcx, [rbp + 0x180]
test rsi, rsi
je 0x14004f6ad
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9, rsi
lea r8, str._s_s
call fcn.140004d10
jmp 0x14004f6be
lea r9, [rsp + 0x70]
lea r8, [0x14009f600]
call fcn.140004d10
lea r8, [rbp + 0x180]
mov rdx, qword [rsp + 0x48]
mov rcx, r12
call 0x14004f4e0
mov ebx, r13d
test al, al
sete bl
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14004f6ec
mov ebx, 1
or r15d, ebx
mov dword [rsp + 0x40], 0x104
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x70]
mov edx, r14d
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
jne 0x14004f640
test r15d, r15d
sete bl
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x14004f74f
mov rdx, qword [rsp + 0x60]
sub rdx, rcx
sar rdx, 1
add rdx, rdx
call fcn.140006f30
movzx eax, bl
mov rcx, qword [rbp + 0x390]
xor rcx, rsp
call fcn.14006fd90
mov rbx, qword [rsp + 0x4f8]
add rsp, 0x4a0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret