Function at 0x140187a50
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x230]
sub rsp, 0x330
mov qword [rbp - 0x40], 0xfffffffffffffffe
mov qword [rsp + 0x380], rbx
mov r13, r9
mov r14, r8
mov rbx, rdx
mov rsi, rcx
xor r15d, r15d
mov dword [rsp + 0x40], r15d
mov byte [r9], r15b
cmp byte [rcx + 0x10], r15b
jne 0x140187ac5
mov qword [rdx + 0x18], 7
mov qword [rdx + 0x10], r15
mov word [rdx], r15w
lea r8d, [r15 + 0x31]
lea rdx, str.CRegistryIterator::GetItem:_not_a_valid_iterator_
mov rcx, rbx
call fcn.140002220
nop
jmp 0x140187f39
lea rdi, [rcx + 0x18]
mov rcx, rdi
call fcn.14019df70
test al, al
je 0x140187b6d
xor r8d, r8d
lea rdx, [rsp + 0x48]
mov rcx, qword [rsi + 8]
call fcn.140186c10
nop
xor r8d, r8d
mov rdx, rax
lea rcx, [rbp - 0x38]
call fcn.14019e410
nop
mov rdx, rax
mov rcx, rdi
call fcn.14019e310
nop
lea rcx, [rbp - 0x38]
call fcn.14019e110
nop
cmp qword [rsp + 0x60], 8
jb 0x140187b23
mov rcx, qword [rsp + 0x48]
call fcn.140224608
mov qword [rsp + 0x60], 7
mov qword [rsp + 0x58], r15
mov word [rsp + 0x48], r15w
mov rcx, rdi
call fcn.14019f0c0
test al, al
jne 0x140187b6d
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], r15
mov word [rbx], r15w
mov r8d, 0x2e
lea rdx, str.CRegistryIterator::GetItem:_failed_to_get_key_
mov rcx, rbx
call fcn.140002220
jmp 0x140187f39
mov dword [rbp + 0x270], 0x200
mov rcx, rdi
call fcn.14005c830
mov rcx, rax
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r15
lea r9, [rbp + 0x270]
lea r8, [rbp + 0x30]
mov edx, dword [rsi + 0x14]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov r12d, eax
test eax, eax
jne 0x140187d28
xor r8d, r8d
lea rdx, [rsp + 0x48]
mov rcx, qword [rsi + 8]
call fcn.140186c10
nop
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x58]
sub rax, rcx
cmp rax, 1
ja 0x140187be6
lea rcx, str.string_too_long
call fcn.140383db8
int3
lea rdi, [rcx + 1]
movabs rax, 0x7ffffffffffffffe
cmp rdi, rax
jbe 0x140187c06
lea rcx, str.string_too_long
call fcn.140383db8
int3
mov rdx, qword [rsp + 0x60]
cmp rdx, rdi
jae 0x140187c22
mov r8, rcx
mov rdx, rdi
lea rcx, [rsp + 0x48]
call fcn.1400028b0
jmp 0x140187c3f
test rdi, rdi
jne 0x140187c4c
mov qword [rsp + 0x58], r15
lea rax, [rsp + 0x48]
cmp rdx, 8
cmovae rax, qword [rsp + 0x48]
mov word [rax], r15w
mov rcx, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
test rdi, rdi
setne al
test al, al
je 0x140187c86
lea rax, [rsp + 0x48]
cmp rdx, 8
cmovae rax, qword [rsp + 0x48]
mov edx, 0x5c
mov word [rax + rcx*2], dx
mov qword [rsp + 0x58], rdi
lea rax, [rsp + 0x48]
cmp qword [rsp + 0x60], 8
cmovae rax, qword [rsp + 0x48]
mov word [rax + rdi*2], r15w
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rbp + 0x30]
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rdx, [rbp + 0x30]
lea rcx, [rsp + 0x48]
call fcn.1400091f0
mov rcx, qword [rsi + 8]
call fcn.140186280
movzx r8d, al
lea rdx, [rsp + 0x48]
mov rcx, r14
call fcn.140187810
mov byte [r13], 1
cmp byte [rbp + 0x290], 0
je 0x140187cd3
inc dword [rsi + 0x14]
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], r15
mov word [rbx], r15w
xor r8d, r8d
lea rdx, [0x1405369f8]
mov rcx, rbx
call fcn.140002220
mov dword [rsp + 0x40], 1
cmp qword [rsp + 0x60], 8
jb 0x140187d0f
mov rcx, qword [rsp + 0x48]
call fcn.140224608
mov qword [rsp + 0x60], 7
mov qword [rsp + 0x58], r15
mov word [rsp + 0x48], r15w
jmp 0x140187f41
cmp eax, 0x103
je 0x140187e0a
xor r8d, r8d
lea rdx, [rsp + 0x70]
mov rcx, qword [rsi + 8]
call fcn.140186c10
mov rdi, rax
mov qword [rsp + 0x60], 7
mov qword [rsp + 0x58], r15
mov word [rsp + 0x48], r15w
mov r8d, 0x44
lea rdx, str.CRegistryW::CRegistryIterator:_Failed_to_call_RegEnumKeyExW_for_key
lea rcx, [rsp + 0x48]
call fcn.140002220
nop
mov r8, rdi
lea rdx, [rsp + 0x48]
lea rcx, [rbp - 0x68]
call fcn.14005afd0
nop
mov r8d, r12d
mov rdx, rax
mov rcx, rbx
call fcn.14019e810
mov dword [rsp + 0x40], 1
cmp qword [rbp - 0x50], 8
jb 0x140187dab
mov rcx, qword [rbp - 0x68]
call fcn.140224608
mov qword [rbp - 0x50], 7
mov qword [rbp - 0x58], r15
mov word [rbp - 0x68], r15w
cmp qword [rsp + 0x60], 8
jb 0x140187dce
mov rcx, qword [rsp + 0x48]
call fcn.140224608
mov qword [rsp + 0x60], 7
mov qword [rsp + 0x58], r15
mov word [rsp + 0x48], r15w
cmp qword [rbp - 0x78], 8
jb 0x140187df3
mov rcx, qword [rsp + 0x70]
call fcn.140224608
mov qword [rbp - 0x78], 7
mov qword [rbp - 0x80], r15
mov word [rsp + 0x70], r15w
jmp 0x140187f41
cmp byte [rsi + 0x80], 0
je 0x140187f17
call fcn.1401955b0
mov rcx, rax
call fcn.1401955c0
test al, al
je 0x140187f17
mov rcx, qword [rsi + 8]
call fcn.140186290
test al, al
je 0x140187f17
xor r8d, r8d
lea rdx, [rsp + 0x70]
call fcn.140186c10
nop
cmp qword [rax + 0x18], 8
jb 0x140187e55
mov rax, qword [rax]
lea rdx, str.HKEY_LOCAL_MACHINESystem
mov rcx, rax
call fcn.140361494
test eax, eax
sete dil
cmp qword [rbp - 0x78], 8
jb 0x140187e7b
mov rcx, qword [rsp + 0x70]
call fcn.140224608
mov qword [rbp - 0x78], 7
mov qword [rbp - 0x80], r15
mov word [rsp + 0x70], r15w
test dil, dil
je 0x140187f17
mov qword [rsp + 0x60], 7
mov qword [rsp + 0x58], r15
mov word [rsp + 0x48], r15w
mov r8d, 0x2c
lea rdx, str.HKEY_LOCAL_MACHINESystemCurrentControlSet_
lea rcx, [rsp + 0x48]
call fcn.140002220
nop
mov rcx, qword [rsi + 8]
call fcn.140186280
movzx r8d, al
lea rdx, [rsp + 0x48]
mov rcx, r14
call fcn.140187810
mov byte [r13], 1
mov byte [rsi + 0x80], 0
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], r15
mov word [rbx], r15w
xor r8d, r8d
lea rdx, [0x1405369f8]
mov rcx, rbx
call fcn.140002220
mov dword [rsp + 0x40], 1
jmp 0x140187cfd
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], r15
mov word [rbx], r15w
xor r8d, r8d
lea rdx, [0x1405369f8]
mov rcx, rbx
call fcn.140002220
mov dword [rsp + 0x40], 1
mov rax, rbx
mov rbx, qword [rsp + 0x380]
add rsp, 0x330
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret