Function at 0x140018f10
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x47]
sub rsp, 0xb0
mov rax, qword [0x1400d33c0]
xor rax, rsp
mov qword [rbp + 0x37], rax
cmp qword [rdx + 0x18], 8
mov esi, r8d
mov dword [rbp - 0x29], r8d
mov rdi, rdx
mov qword [rbp - 0x11], rdx
mov rbx, rcx
mov qword [rbp - 0x19], rcx
jb 0x140018f51
mov rdx, qword [rdx]
call fcn.140018ea0
test eax, eax
jne 0x140018f61
xor eax, eax
jmp 0x1400191de
xor eax, eax
cmp qword [rdi + 0x18], 8
mov qword [rbp - 0x21], rax
jb 0x140018f73
mov rdx, qword [rdi]
jmp 0x140018f76
mov rdx, rdi
mov r9d, esi
lea rax, [rbp - 0x21]
xor r8d, r8d
or r9d, 8
mov rcx, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, 2
je 0x140018f5a
test eax, eax
jne 0x1400191de
xor ebx, ebx
lea rcx, [rbp + 0x17]
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rdi
mov qword [rbp + 0x2f], 7
mov qword [rbp + 0x27], rbx
mov word [rbp + 0x17], bx
call fcn.140007850
mov rcx, qword [rdi + 0x10]
test rcx, rcx
je 0x140018ff7
cmp qword [rbp + 0x2f], 8
lea rax, [rbp + 0x17]
cmovae rax, qword [rbp + 0x17]
cmp word [rax + rcx*2 - 2], 0x5c
je 0x140018ff7
lea r8d, [rbx + 1]
lea rdx, [0x1400c4240]
lea rcx, [rbp + 0x17]
call fcn.1400060d0
mov rsi, qword [rbp + 0x27]
mov rdi, qword [rbp - 0x19]
xor eax, eax
mov word [rbp - 9], ax
mov qword [rbp + 0xf], 7
mov qword [rbp + 7], rbx
nop dword [rax]
nop word [rax + rax]
mov dword [rbp - 0x25], 0x104
cmp rbx, 0x104
ja 0x14001906b
cmp qword [rbp + 0xf], 0x104
je 0x14001906b
lea rcx, [rbp - 9]
mov r8b, 1
mov edx, 0x104
call fcn.140007bc0
test al, al
je 0x140019067
cmp qword [rbp + 0xf], 8
lea rax, [rbp - 9]
mov qword [rbp + 7], rbx
cmovae rax, qword [rbp - 9]
xor ecx, ecx
mov word [rax + rbx*2], cx
mov rbx, qword [rbp + 7]
cmp rbx, 0x103
jb 0x140019095
cmp qword [rbp + 0xf], 8
lea rax, [rbp - 9]
mov qword [rbp + 7], 0x103
cmovae rax, qword [rbp - 9]
xor ebx, ebx
mov word [rax + 0x206], bx
jmp 0x1400190ab
mov edx, 0x103
lea rcx, [rbp - 9]
xor r8d, r8d
sub rdx, rbx
call fcn.140006240
xor ebx, ebx
cmp qword [rbp + 0xf], 8
mov rcx, qword [rbp - 0x21]
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
lea r8, [rbp - 9]
lea r9, [rbp - 0x25]
cmovae r8, qword [rbp - 9]
xor edx, edx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x14001917e
mov edx, dword [rbp - 0x25]
mov rax, qword [rbp + 7]
cmp rdx, rax
ja 0x140019109
cmp qword [rbp + 0xf], 8
lea rax, [rbp - 9]
mov qword [rbp + 7], rdx
cmovae rax, qword [rbp - 9]
mov word [rax + rdx*2], bx
jmp 0x140019118
lea rcx, [rbp - 9]
xor r8d, r8d
sub rdx, rax
call fcn.140006240
mov rax, qword [rbp + 0x27]
cmp rsi, rax
ja 0x140019139
cmp qword [rbp + 0x2f], 8
lea rax, [rbp + 0x17]
mov qword [rbp + 0x27], rsi
cmovae rax, qword [rbp + 0x17]
mov word [rax + rsi*2], bx
jmp 0x14001914b
mov rdx, rsi
lea rcx, [rbp + 0x17]
xor r8d, r8d
sub rdx, rax
call fcn.140006240
lea rdx, [rbp - 9]
lea rcx, [rbp + 0x17]
or r9, 0xffffffffffffffff
xor r8d, r8d
call fcn.140007710
mov ebx, dword [rbp - 0x29]
lea rdx, [rbp + 0x17]
mov r8d, ebx
mov rcx, rdi
call fcn.140018f10
test eax, eax
jne 0x140019181
mov rbx, qword [rbp + 7]
jmp 0x140019020
mov ebx, dword [rbp - 0x29]
mov rcx, qword [rbp - 0x21]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdi, qword [rbp - 0x11]
cmp qword [rdi + 0x18], 8
jb 0x140019199
mov rdi, qword [rdi]
mov rcx, qword [rbp - 0x19]
mov r8d, ebx
mov rdx, rdi
call fcn.140018ea0
cmp qword [rbp + 0xf], 8
mov ebx, eax
jb 0x1400191ba
mov rcx, qword [rbp - 9]
call fcn.1400910f4
xor eax, eax
cmp qword [rbp + 0x2f], 8
mov qword [rbp + 0xf], 7
mov qword [rbp + 7], rax
mov word [rbp - 9], ax
jb 0x1400191dc
mov rcx, qword [rbp + 0x17]
call fcn.1400910f4
mov eax, ebx
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.140091a70
mov rbx, qword [rsp + 0xe8]
add rsp, 0xb0
pop rdi
pop rsi
pop rbp
ret