Function at 0x140014b20
Capabilities:
Query or enumerate registry key

Disassembly:
push rbp
push rsi
push r15
lea rbp, [rsp - 0x3c0]
sub rsp, 0x4c0
mov r15, rcx
lea rcx, [0x140068d20]
call fcn.140008330
mov rsi, rax
test rax, rax
je 0x140014b7a
lea rax, [rsp + 0x60]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, rsi
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x140014b88
mov rcx, rsi
call fcn.14002fc28
xor al, al
add rsp, 0x4c0
pop r15
pop rsi
pop rbp
ret
mov qword [rsp + 0x4b8], rbx
lea rcx, [rbp + 0x190]
mov qword [rsp + 0x4b0], rdi
xor edx, edx
mov qword [rsp + 0x4a8], r12
mov r8d, 0x208
mov qword [rsp + 0x4a0], r14
call fcn.14002ec20
mov rcx, qword [rsp + 0x60]
lea rax, [rbp - 0x78]
mov qword [rsp + 0x58], rax
lea r8, [rbp + 0x3f0]
lea rax, [rsp + 0x70]
mov dword [rbp + 0x3f0], 0x104
mov qword [rsp + 0x50], rax
lea rdx, [rbp + 0x190]
lea rax, [rsp + 0x74]
xor r12d, r12d
mov qword [rsp + 0x48], rax
xor r9d, r9d
lea rax, [rsp + 0x78]
mov dword [rbp + 0x3e8], r12d
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x7c]
mov qword [rsp + 0x38], rax
lea rax, [rbp - 0x80]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x7c]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x3e8]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov eax, dword [rbp + 0x3e8]
test eax, eax
je 0x140014dc9
mov r14d, r12d
nop dword [rax]
mov rcx, qword [rsp + 0x60]
lea rax, [rbp - 0x78]
mov qword [rsp + 0x38], rax
lea r9, [rbp + 0x3f8]
mov qword [rsp + 0x30], r12
lea r8, [rbp - 0x70]
mov qword [rsp + 0x28], r12
mov edx, r14d
mov qword [rsp + 0x20], r12
mov dword [rbp + 0x3f8], 0xff
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x140014db9
lea rdx, [rbp - 0x70]
mov rcx, r15
call fcn.14002e9c8
test rax, rax
je 0x140014db9
mov rax, 0xffffffffffffffff
nop
inc rax
cmp word [rsi + rax*2], r12w
jne 0x140014cb0
lea rdx, [rbp - 0x70]
mov rcx, 0xffffffffffffffff
inc rcx
cmp word [rdx + rcx*2], r12w
jne 0x140014cc5
add rax, 2
mov edx, 2
add rcx, rax
call fcn.14002f9e8
mov rdi, rax
test rax, rax
je 0x140014dc9
mov r8, rax
mov rdx, rsi
sub r8, rsi
nop word [rax + rax]
movzx ecx, word [rdx]
mov word [r8 + rdx], cx
lea rdx, [rdx + 2]
test cx, cx
jne 0x140014d00
lea rcx, [rax - 2]
cmp word [rcx + 2], r12w
lea rcx, [rcx + 2]
jne 0x140014d15
mov eax, dword [0x140068d70]
mov dword [rcx], eax
lea rax, [rdi - 2]
nop dword [rax]
add rax, 2
cmp word [rax], r12w
jne 0x140014d30
lea r8, [rbp - 0x70]
xor edx, edx
movzx ecx, word [r8 + rdx*2]
mov word [rax + rdx*2], cx
lea rdx, [rdx + 1]
test cx, cx
jne 0x140014d40
lea r9, [rsp + 0x68]
mov qword [rsp + 0x68], r12
xor r8d, r8d
lea rdx, [0x140068d74]
mov rcx, rdi
call fcn.14001d600
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140014db1
mov edx, 1
call fcn.14002f9e8
lea r9, [rsp + 0x68]
mov r8, rax
lea rdx, [0x140068d74]
mov rcx, rdi
mov rbx, rax
call fcn.14001d600
cmp qword [rsp + 0x68], 4
jne 0x140014da9
cmp dword [rbx], 2
jb 0x140014e0a
mov rcx, rbx
call fcn.14002fc28
mov rcx, rdi
call fcn.14002fc28
inc r14d
cmp r14d, dword [rbp + 0x3e8]
jb 0x140014c50
mov rcx, rsi
call fcn.14002fc28
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
mov r12, qword [rsp + 0x4a8]
mov rdi, qword [rsp + 0x4b0]
mov rbx, qword [rsp + 0x4b8]
mov r14, qword [rsp + 0x4a0]
add rsp, 0x4c0
pop r15
pop rsi
pop rbp
ret
mov rcx, rsi
call fcn.14002fc28
mov rcx, rdi
call fcn.14002fc28
mov rcx, rbx
call fcn.14002fc28
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
jmp 0x140014dde