Function at 0x140012538
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x430
mov rax, qword [0x140023250]
xor rax, rsp
mov qword [rsp + 0x420], rax
mov rsi, r8
mov qword [rsp + 0xa0], r8
mov rbx, rdx
mov qword [rsp + 0xa8], rdx
mov rdi, rcx
mov qword [rsp + 0x80], rcx
mov qword [rsp + 0xb8], rdx
xor r14d, r14d
mov r13d, r14d
mov dword [rsp + 0x60], r14d
call fcn.140012b7c
mov r8, qword [rsi]
test r8, r8
je 0x1400125a4
mov r8, qword [r8]
jmp 0x1400125a7
mov r8, r14
mov rdx, rbx
mov rcx, rdi
call fcn.140012de4
mov rbx, rax
mov qword [rsp + 0x78], rax
test rax, rax
jne 0x140012608
lea r12, [0x140023008]
mov rcx, qword [0x140023008]
cmp rcx, r12
je 0x140012b42
test byte [rcx + 0x1c], 1
je 0x140012b42
mov rax, qword [rsi]
test rax, rax
je 0x1400125eb
mov r14, qword [rax]
mov edx, SafeArrayDestroy
mov r9, r14
lea r8, [0x14001dbe0]
mov rcx, qword [rcx + 0x10]
call fcn.140005e08
jmp 0x140012b42
mov dword [rsp + 0x1f0], r14d
lea rax, str.AttachedRules
mov qword [rsp + 0x1f8], rax
mov qword [rsp + 0x200], r14
mov dword [rsp + 0x208], r14d
mov qword [rsp + 0x210], rbx
mov edx, 0x20019
lea rcx, [rsp + 0x1f0]
call fcn.14000fcd4
mov rsi, rax
mov qword [rsp + 0x90], rax
test rax, rax
je 0x140012b34
mov byte [rsp + 0x40], r14b
lea rcx, [rsp + 0x100]
call fcn.140011680
nop
call fcn.140013380
mov qword [rsp + 0x50], rax
mov byte [rax + 0x29], 1
mov rax, qword [rsp + 0x50]
mov qword [rax + 8], rax
mov rax, qword [rsp + 0x50]
mov qword [rax], rax
mov rax, qword [rsp + 0x50]
mov qword [rax + 0x10], rax
mov qword [rsp + 0x58], r14
mov eax, r14d
lea r12, [0x140023008]
mov dword [rsp + 0x68], eax
mov dword [rsp + 0x60], 0x100
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x60]
lea r8, [rsp + 0x220]
mov edx, eax
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
nop dword [rax + rax]
mov r9d, eax
cmp eax, 0x103
jne 0x14001282c
mov r8, qword [rsp + 0x50]
mov rbx, qword [r8]
cmp rbx, r8
jne 0x1400127f6
cmp byte [rsp + 0x40], r14b
je 0x1400127c5
mov rax, qword [0x140023008]
cmp rax, r12
je 0x140012797
test byte [rax + 0x1c], 2
je 0x140012797
mov r8, qword [rsp + 0xa0]
mov rax, qword [r8]
test rax, rax
je 0x140012736
mov rbx, qword [rax]
jmp 0x140012739
mov rbx, r14
lea rdx, [rsp + 0x1f0]
lea rcx, [rsp + 0x108]
call fcn.140016a68
or r13d, 2
or r13d, 1
mov dword [rsp + 0x60], r13d
lea r9, [rsp + 0x1f8]
cmp qword [rsp + 0x210], 8
cmovae r9, qword [rsp + 0x1f8]
mov rax, qword [0x140023008]
mov edx, reloc.OLEAUT32.dll_SafeArrayDestroy
mov qword [rsp + 0x20], rbx
lea r8, [0x14001dbe0]
mov rcx, qword [rax + 0x10]
call fcn.14000afb0
nop
test r13b, 1
je 0x1400127b0
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x1f0]
call fcn.1400051c4
nop
lea rdx, [rsp + 0xb8]
mov rcx, rdi
call fcn.140012bd8
mov r8, qword [rsp + 0x50]
mov r9, r8
mov r8, qword [r8]
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x48]
call fcn.1400159bc
mov rcx, qword [rsp + 0x50]
call fcn.140002cfc
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x58], r14
jmp 0x140012b26
lea rcx, [rdi + 0x840]
lea r8, [rbx + 0x20]
mov rdx, qword [rcx + 8]
call fcn.14000d760
mov r8, rbx
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x48]
call fcn.140015aa0
mov rbx, qword [rax]
mov r8, qword [rsp + 0x50]
jmp 0x1400126fb
add eax, 0xfffffc06
test eax, 0xfffffffb
je 0x140012aa2
test r9d, r9d
je 0x1400128ae
mov rcx, qword [0x140023008]
cmp rcx, r12
je 0x140012869
test byte [rcx + 0x1c], 1
je 0x140012869
mov edx, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
lea r8, [0x14001dbe0]
mov rcx, qword [rcx + 0x10]
call fcn.1400079a0
nop
mov r8d, 1
lea rdx, section..data
lea rcx, [rsp + 0xe8]
call qword [sym.imp.msvcrt.dll_public:_void___cdecl_exception::constructor_char_const__const___ptr64_const____ptr64__int____ptr64]
nop dword [rax + rax]
lea rax, [0x14001c050]
mov qword [rsp + 0xe8], rax
lea rdx, [0x1400213e0]
lea rcx, [rsp + 0xe8]
call sub.msvcrt.dll__CxxThrowException
int3
mov qword [rsp + 0x98], r14
mov dword [rsp + 0x1f0], 1
lea rax, str.AttachedRules
mov qword [rsp + 0x1f8], rax
lea rax, [rsp + 0x220]
mov qword [rsp + 0x200], rax
mov dword [rsp + 0x208], r14d
mov qword [rsp + 0x210], rbx
lea rdx, [rsp + 0x98]
lea rcx, [rsp + 0x1f0]
call fcn.14000fd3c
mov ecx, 0x468
call fcn.14000fa50
mov qword [rsp + 0xd8], rax
test rax, rax
je 0x14001292d
lea rdx, [rdi + 0x418]
mov rcx, rax
call fcn.140016f70
jmp 0x140012930
mov rax, r14
mov qword [rsp + 0x88], rax
mov qword [rsp + 0x70], rax
mov rdi, qword [rsp + 0x98]
mov rdx, rdi
lea rcx, [rsp + 0xc0]
call fcn.140002fb4
mov r8, rax
mov rdx, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0x88]
call fcn.140017354
test al, al
je 0x140012a50
lea r9, [rsp + 0x64]
lea r8, str.Rule_d
mov edx, 0x100
lea rcx, [rsp + 0x220]
call qword [sym.imp.msvcrt.dll__snwscanf_s]
nop dword [rax + rax]
cmp eax, 1
je 0x1400129db
mov rcx, qword [0x140023008]
cmp rcx, r12
je 0x140012a7c
test byte [rcx + 0x1c], 1
je 0x140012a7c
mov edx, SafeArrayDestroy
lea r9, [rsp + 0x220]
lea r8, [0x14001dbe0]
mov rcx, qword [rcx + 0x10]
call fcn.140005e08
jmp 0x140012a7c
mov r8, qword [rsp + 0x50]
mov rcx, qword [r8 + 8]
mov rax, r8
mov edx, dword [rsp + 0x64]
cmp byte [rcx + 0x29], r14b
jne 0x140012a04
cmp dword [rcx + 0x18], edx
jae 0x1400129fc
mov rcx, qword [rcx + 0x10]
jmp 0x1400129eb
mov rax, rcx
mov rcx, qword [rcx]
jmp 0x1400129eb
cmp rax, r8
je 0x140012a0e
cmp edx, dword [rax + 0x18]
jae 0x140012a3d
mov dword [rsp + 0xc8], edx
mov qword [rsp + 0xd0], r14
lea r9, [rsp + 0xc8]
mov r8, rax
lea rdx, [rsp + 0xb0]
lea rcx, [rsp + 0x48]
call fcn.14001605c
mov rax, qword [rax]
mov rcx, qword [rsp + 0x88]
mov qword [rax + 0x20], rcx
mov qword [rsp + 0x70], r14
jmp 0x140012a7c
cmp byte [rsp + 0x40], r14b
je 0x140012a66
lea rcx, [rsp + 0x100]
call fcn.1400111f0
jmp 0x140012a6b
mov byte [rsp + 0x40], 1
mov rdx, rdi
lea rcx, [rsp + 0x100]
call fcn.14001207c
nop
lea rcx, [rsp + 0x70]
call fcn.14000b5c8
nop
mov rcx, rdi
call fcn.140002cfc
mov eax, dword [rsp + 0x68]
inc eax
mov rdi, qword [rsp + 0x80]
jmp 0x1400126a7
mov rax, qword [rsp + 0x50]
mov rbx, qword [rax]
cmp rbx, rax
je 0x140012adc
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x140012abd
call fcn.14000b918
mov r8, rbx
lea rdx, [rsp + 0xb0]
lea rcx, [rsp + 0x48]
call fcn.140015aa0
mov rbx, qword [rax]
mov rax, qword [rsp + 0x50]
jmp 0x140012aaa
mov r8, qword [rsp + 0xa0]
mov rdx, qword [rsp + 0xa8]
mov rcx, rdi
call fcn.140012538
nop
mov r8, qword [rsp + 0x50]
mov r9, r8
mov r8, qword [r8]
lea rdx, [rsp + 0xb0]
lea rcx, [rsp + 0x48]
call fcn.1400159bc
mov rcx, qword [rsp + 0x50]
call fcn.140002cfc
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x58], r14
lea rcx, [rsp + 0x100]
call fcn.1400121e8
nop
lea rcx, [rsp + 0x90]
call fcn.14000dbcc
nop
lea rcx, [rsp + 0x78]
call fcn.14000dbcc
mov rcx, qword [rsp + 0x420]
xor rcx, rsp
call fcn.140001700
mov rbx, qword [rsp + 0x478]
add rsp, 0x430
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret