Function at 0x140046a90
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.140047e30
xor r8d, r8d
mov rdx, rbx
mov rcx, rdi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp 0x140046ad0
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 [0x1400c24b8]
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.140067170
mov dword [rsp + 0x40], 0x208
mov dword [rsp + 0x44], r13d
lea rcx, [rsp + 0x50]
call fcn.140046680
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 0x140046be5
inc ebx
lea r8, [rsp + 0x70]
mov rdx, rsi
lea rcx, [rsp + 0x50]
call fcn.140047b30
lea r8, [rsp + 0x70]
mov rdx, rdi
lea rcx, [rsp + 0x50]
call fcn.140047ce0
test al, al
je 0x140046ba8
mov rdx, qword [r15]
lea rcx, [rsp + 0x50]
call fcn.1400479b0
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 0x140046b71
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 0x140046d1c
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 0x140046cd7
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x180]
call fcn.140067170
mov edx, 0x104
lea rcx, [rbp + 0x180]
test rsi, rsi
je 0x140046c9d
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9, rsi
lea r8, str._s_s
call fcn.140004d50
jmp 0x140046cae
lea r9, [rsp + 0x70]
lea r8, [0x1400944f0]
call fcn.140004d50
lea r8, [rbp + 0x180]
mov rdx, qword [rsp + 0x48]
mov rcx, r15
call 0x140046ad0
mov ebx, r13d
test al, al
sete bl
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140046cdc
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 0x140046c30
test r12d, r12d
sete bl
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140046d3f
mov rdx, qword [rsp + 0x60]
sub rdx, rcx
sar rdx, 1
add rdx, rdx
call fcn.14000c080
movzx eax, bl
mov rcx, qword [rbp + 0x390]
xor rcx, rsp
call fcn.140064920
mov rbx, qword [rsp + 0x4f8]
add rsp, 0x4a0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret