Function at 0x140016a50
Capabilities:
Query or enumerate registry key

Disassembly:
push rbp
push rsi
push r15
lea rbp, [rsp - 0x3d0]
sub rsp, 0x4d0
mov r15, rcx
lea rcx, [0x140073f30]
call fcn.140008e10
mov rsi, rax
test rax, rax
jne 0x140016a87
add rsp, 0x4d0
pop r15
pop rsi
pop rbp
ret
mov qword [rsp + 0x4b8], r12
lea rcx, [rsp + 0x60]
xor r12d, r12d
mov rdx, rsi
mov qword [rsp + 0x60], r12
call fcn.14000c130
mov rdx, qword [rsp + 0x60]
lea rax, [rsp + 0x68]
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rcx, 0xffffffff80000003
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x140016ade
mov rcx, qword [rsp + 0x60]
call fcn.140038520
xor al, al
jmp 0x140016d60
mov qword [rsp + 0x4c8], rbx
lea rcx, [rbp + 0x1a0]
mov qword [rsp + 0x4c0], rdi
xor edx, edx
mov r8d, 0x208
mov qword [rsp + 0x4b0], r14
call fcn.1400376d0
mov rcx, qword [rsp + 0x68]
lea rax, [rbp - 0x70]
mov qword [rsp + 0x58], rax
lea r8, [rbp + 0x400]
lea rax, [rsp + 0x78]
mov dword [rbp + 0x400], 0x104
mov qword [rsp + 0x50], rax
lea rdx, [rbp + 0x1a0]
lea rax, [rsp + 0x7c]
mov dword [rbp + 0x3f8], r12d
mov qword [rsp + 0x48], rax
xor r9d, r9d
lea rax, [rbp - 0x80]
mov qword [rsp + 0x40], rax
lea rax, [rbp - 0x7c]
mov qword [rsp + 0x38], rax
lea rax, [rbp - 0x78]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x74]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x3f8]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov eax, dword [rbp + 0x3f8]
test eax, eax
je 0x140016d29
mov r14d, r12d
nop word [rax + rax]
mov rcx, qword [rsp + 0x68]
lea rax, [rbp - 0x70]
mov qword [rsp + 0x38], rax
lea r9, [rbp + 0x408]
mov qword [rsp + 0x30], r12
lea r8, [rbp - 0x60]
mov qword [rsp + 0x28], r12
mov edx, r14d
mov qword [rsp + 0x20], r12
mov dword [rbp + 0x408], 0xff
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x140016d19
lea rdx, [rbp - 0x60]
mov rcx, r15
call fcn.140037860
test rax, rax
je 0x140016d19
mov rax, 0xffffffffffffffff
nop
inc rax
cmp word [rsi + rax*2], r12w
jne 0x140016c00
lea rdx, [rbp - 0x60]
mov rcx, 0xffffffffffffffff
inc rcx
cmp word [rdx + rcx*2], r12w
jne 0x140016c15
add rax, 2
mov edx, 2
add rcx, rax
call fcn.14003853c
mov rdi, rax
test rax, rax
je 0x140016d29
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 0x140016c50
lea rcx, [rax - 2]
cmp word [rcx + 2], r12w
lea rcx, [rcx + 2]
jne 0x140016c65
mov eax, dword [0x1400729b8]
mov dword [rcx], eax
lea rax, [rdi - 2]
nop dword [rax]
cmp word [rax + 2], r12w
lea rax, [rax + 2]
jne 0x140016c80
lea r8, [rbp - 0x60]
xor edx, edx
nop dword [rax]
nop word [rax + rax]
movzx ecx, word [r8 + rdx*2]
mov word [rax + rdx*2], cx
lea rdx, [rdx + 1]
test cx, cx
jne 0x140016ca0
lea r9, [rsp + 0x70]
mov qword [rsp + 0x70], r12
xor r8d, r8d
lea rdx, [0x140073f80]
mov rcx, rdi
call fcn.14001f240
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x140016d11
mov edx, 1
call fcn.14003853c
lea r9, [rsp + 0x70]
mov r8, rax
lea rdx, [0x140073f80]
mov rcx, rdi
mov rbx, rax
call fcn.14001f240
cmp qword [rsp + 0x70], 4
jne 0x140016d09
cmp dword [rbx], 2
jb 0x140016d74
mov rcx, rbx
call fcn.140038520
mov rcx, rdi
call fcn.140038520
inc r14d
cmp r14d, dword [rbp + 0x3f8]
jb 0x140016ba0
mov rcx, qword [rsp + 0x60]
call fcn.140038520
mov rcx, rsi
call fcn.140038520
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
mov rbx, qword [rsp + 0x4c8]
mov rdi, qword [rsp + 0x4c0]
mov r14, qword [rsp + 0x4b0]
mov r12, qword [rsp + 0x4b8]
add rsp, 0x4d0
pop r15
pop rsi
pop rbp
ret
mov rcx, qword [rsp + 0x60]
call fcn.140038520
mov rcx, rdi
call fcn.140038520
mov rcx, rbx
call fcn.140038520
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
jmp 0x140016d48