Function at 0x1800102a0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x44b0]
mov eax, 0x45b0
call fcn.180025d20
sub rsp, rax
call fcn.18000c174
mov rdi, rax
lea rdx, [0x180002218]
lea rax, [rsp + 0x68]
xor ebx, ebx
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov qword [rsp + 0x68], rbx
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x180010509
mov esi, 0x104
lea rcx, [rbp - 0x60]
mov r8d, esi
xor edx, edx
call fcn.180025ca4
mov rcx, qword [rsp + 0x68]
lea rax, [rbp - 0x68]
mov qword [rsp + 0x58], rax
lea r8, [rsp + 0x74]
lea rax, [rsp + 0x78]
mov dword [rsp + 0x74], esi
mov qword [rsp + 0x50], rax
lea rdx, [rbp - 0x60]
lea rax, [rsp + 0x7c]
mov dword [rsp + 0x70], ebx
mov qword [rsp + 0x48], rax
xor r9d, r9d
lea rax, [rbp - 0x80]
mov dword [rbp + 0x44f8], 0x3fff
mov qword [rsp + 0x40], rax
lea rax, [rbp + 0x4500]
mov qword [rsp + 0x38], rax
lea rax, [rbp - 0x7c]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x78]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
cmp dword [rbp + 0x4500], ebx
je 0x1800104fe
mov r14d, ebx
jbe 0x1800104fe
mov rcx, qword [rsp + 0x68]
lea rax, [rbp + 0x44f0]
mov qword [rsp + 0x38], rax
lea rsi, [rbp + 0xb0]
lea rax, [rbp + 0xb0]
mov dword [rbp + 0x44f8], 0x3fff
mov qword [rsp + 0x30], rax
lea r9, [rbp + 0x44f8]
lea rax, [rbp + 0x4508]
mov byte [rbp + 0x4b0], bl
mov qword [rsp + 0x28], rax
lea r8, [rbp + 0x4b0]
mov edx, r14d
mov qword [rsp + 0x20], rbx
mov dword [rbp + 0x44f0], 0x400
mov r12b, bl
mov byte [rbp + 0xb0], bl
mov qword [rbp - 0x70], rsi
call qword [sym.imp.ADVAPI32.dll_RegEnumValueA]
lea r15, [rbp + 0xb0]
cmp eax, 0xea
jne 0x180010481
mov edx, dword [rbp + 0x44f0]
test rdx, rdx
jne 0x18001042e
mov rsi, rbx
jmp 0x180010439
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rsi, rax
mov rcx, qword [rsp + 0x68]
lea rax, [rbp + 0x44f0]
mov qword [rsp + 0x38], rax
lea r9, [rbp + 0x44f8]
lea rax, [rbp + 0x4508]
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rax
lea r8, [rbp + 0x4b0]
mov edx, r14d
mov qword [rsp + 0x20], rbx
mov qword [rbp - 0x70], rsi
mov r12b, 1
call qword [sym.imp.ADVAPI32.dll_RegEnumValueA]
mov r15, rsi
test eax, eax
jne 0x1800104db
mov eax, dword [rbp + 0x4508]
sub eax, 1
je 0x1800104c9
sub eax, 2
je 0x1800104ae
cmp eax, 1
jne 0x1800104db
mov r8d, dword [rsi]
lea rdx, [rbp + 0x4b0]
mov rcx, rdi
call fcn.18000c448
jmp 0x1800104db
mov r9d, dword [rbp + 0x44f0]
lea rdx, [rbp + 0x4b0]
mov r8, rsi
mov rcx, rdi
call fcn.18000c5e8
jmp 0x1800104db
mov r8, rsi
lea rdx, [rbp + 0x4b0]
mov rcx, rdi
call fcn.18000c5b0
test r12b, r12b
je 0x1800104ee
test r15, r15
je 0x1800104ee
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_LocalFree]
inc r14d
cmp r14d, dword [rbp + 0x4500]
jb 0x18001039d
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [0x1800281a8]
add rcx, 5
call fcn.180005a44
test rdi, rdi
jne 0x180010523
mov r8d, ebx
jmp 0x180010539
mov rdx, rdi
mov dword [rsp + 0x60], ebx
lea rcx, [rsp + 0x60]
call fcn.18000b948
mov r8d, dword [rsp + 0x60]
mov rdx, qword [0x1800281a8]
mov dword [rdx + 0xc], r8d
cmp r8d, 0x1000
jbe 0x180010597
lea rcx, [0x180001fb0]
call fcn.180004a90
test rax, rax
je 0x180010567
call fcn.180004a90
lea rcx, [rax + 1]
lea r8, [0x1800022d0]
mov edx, 0x579
call qword [0x180029278]
mov rcx, rdi
call fcn.18000c1bc
mov rax, qword [0x1800281a8]
add rax, 5
je 0x180010590
xchg byte [rax], bl
mov eax, 0xffffffea
jmp 0x1800105cf
add rdx, 0x10
mov rcx, rdi
call fcn.18000c9e8
test rdi, rdi
je 0x1800105b6
mov rax, qword [0x1800281a8]
mov ecx, dword [rax + 0xc]
mov qword [rdi + 8], rcx
mov rcx, rdi
call fcn.18000c1bc
mov rax, qword [0x1800281a8]
add rax, 5
je 0x1800105cd
xchg byte [rax], bl
xor eax, eax
add rsp, 0x45b0
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret