Function at 0x14004f370
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.140050710
xor r8d, r8d
mov rdx, rbx
mov rcx, rdi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp 0x14004f3b0
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 [0x1400cd548]
xor rax, rsp
mov qword [rbp + 0x390], rax
mov rsi, r8
mov rdi, rdx
mov r15, rcx
xor r13d, r13d
mov r12d, r13d
mov ebx, r13d
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x70]
call fcn.140070390
mov dword [rsp + 0x40], 0x208
mov dword [rsp + 0x44], r13d
lea rcx, [rsp + 0x50]
call fcn.14004ef60
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 0x14004f4c5
inc ebx
lea r8, [rsp + 0x70]
mov rdx, rsi
lea rcx, [rsp + 0x50]
call fcn.140050410
lea r8, [rsp + 0x70]
mov rdx, rdi
lea rcx, [rsp + 0x50]
call fcn.1400505c0
test al, al
je 0x14004f488
mov rdx, qword [r15]
lea rcx, [rsp + 0x50]
call fcn.140050290
mov dword [rsp + 0x40], 0x208
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 0x14004f451
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 0x14004f5fc
nop dword [rax]
nop dword [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 0x14004f5b7
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x180]
call fcn.140070390
mov edx, 0x104
lea rcx, [rbp + 0x180]
test rsi, rsi
je 0x14004f57d
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9, rsi
lea r8, str._s_s
call fcn.140004b70
jmp 0x14004f58e
lea r9, [rsp + 0x70]
lea r8, [0x14009e670]
call fcn.140004b70
lea r8, [rbp + 0x180]
mov rdx, qword [rsp + 0x48]
mov rcx, r15
call 0x14004f3b0
mov ebx, r13d
test al, al
sete bl
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14004f5bc
mov ebx, 1
or r12d, ebx
mov dword [rsp + 0x40], 0x208
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 0x14004f510
test r12d, r12d
sete bl
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x14004f61f
mov rdx, qword [rsp + 0x60]
sub rdx, rcx
sar rdx, 1
add rdx, rdx
call fcn.140006ee0
movzx eax, bl
mov rcx, qword [rbp + 0x390]
xor rcx, rsp
call fcn.14006ed70
mov rbx, qword [rsp + 0x4f8]
add rsp, 0x4a0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret