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

Disassembly:
push rbp
push rdi
push r12
push r14
push r15
sub rsp, 0x3b0
lea rbp, [rsp + 0x60]
mov qword [rbp + 0x390], rbx
mov qword [rbp + 0x398], rsi
mov rax, qword [0x180013070]
xor rax, rbp
mov qword [rbp + 0x340], rax
xor r12d, r12d
lea rax, [rbp]
mov qword [rsp + 0x58], r12
mov r15d, edx
mov qword [rsp + 0x50], r12
xor r9d, r9d
mov qword [rsp + 0x48], r12
xor r8d, r8d
mov qword [rsp + 0x40], r12
xor edx, edx
mov qword [rsp + 0x38], r12
mov r14, rcx
mov qword [rsp + 0x30], r12
mov ebx, r12d
mov qword [rsp + 0x28], rax
mov edi, r12d
lea rax, [rbp + 8]
mov qword [rbp + 0x10], r12
mov qword [rsp + 0x20], rax
mov dword [rbp + 8], r12d
mov dword [rbp + 0x18], r12d
mov dword [rbp], r12d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryInfoKeyW]
nop dword [rax + rax]
test eax, eax
jne 0x1800068da
mov eax, dword [rbp]
add eax, 1
mov dword [rbp], eax
je 0x1800068a2
lea rdx, [rax + rax]
cmp rdx, qword [0x180013748]
ja 0x1800068a2
mov rcx, qword [0x180013758]
add rcx, 8
add rcx, rdx
cmp rcx, rdx
jb 0x1800068a2
call fcn.180007d78
test eax, eax
je 0x1800068a2
mov eax, dword [rbp]
lea rax, [rax*2 + 8]
lea rcx, [rax + 0xf]
cmp rcx, rax
ja 0x180006879
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.180009f90
sub rsp, rcx
lea rbx, [rsp + 0x60]
test rbx, rbx
je 0x1800068a2
mov dword [rbx], 0x6b637453
add rbx, 8
jne 0x18000693d
mov eax, dword [rbp]
add rax, rax
lea rcx, [rax + 8]
cmp rcx, rax
jb 0x1800068d0
mov rax, qword [0x180013750]
call qword [0x18000bb10]
mov rbx, rax
test rax, rax
je 0x1800068d5
mov dword [rax], 0x70616548
add rbx, 8
test rbx, rbx
jne 0x18000693d
mov edi, 8
mov rcx, qword [rbp + 0x10]
test rcx, rcx
je 0x1800068ef
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
test rbx, rbx
je 0x18000690d
lea rcx, [rbx - 8]
cmp dword [rcx], 0x70616548
jne 0x18000690d
mov rax, qword [0x180013760]
call qword [0x18000bb10]
mov eax, edi
mov rcx, qword [rbp + 0x340]
xor rcx, rbp
call fcn.180009470
mov rbx, qword [rbp + 0x390]
mov rsi, qword [rbp + 0x398]
lea rsp, [rbp + 0x350]
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
mov esi, r12d
cmp dword [rbp + 8], r12d
jbe 0x1800068da
mov r8d, dword [rbp]
xor edx, edx
add r8, r8
mov rcx, rbx
call sub.api_ms_win_core_crt_l1_1_0.dll_memset
mov eax, dword [rbp]
lea r9, [rbp + 0x18]
mov qword [rsp + 0x38], r12
mov r8, rbx
mov qword [rsp + 0x30], r12
mov edx, esi
mov qword [rsp + 0x28], r12
mov rcx, r14
mov qword [rsp + 0x20], r12
mov dword [rbp + 0x18], eax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegEnumKeyExW]
nop dword [rax + rax]
mov edi, eax
test eax, eax
jne 0x1800068da
lea rax, [rbp + 0x10]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, rbx
mov rcx, r14
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
nop dword [rax + rax]
mov edi, eax
test eax, eax
jne 0x1800068da
xor edx, edx
lea rcx, [rbp + 0x130]
mov r8d, 0x20c
call sub.api_ms_win_core_crt_l1_1_0.dll_memset
mov rcx, qword [rbp + 0x10]
lea rax, [rbp + 4]
mov qword [rsp + 0x30], rax
lea r9d, [rdi + 6]
lea rax, [rbp + 0x130]
mov dword [rbp + 4], 0x20a
mov qword [rsp + 0x28], rax
lea r8, str.Path
xor edx, edx
mov qword [rsp + 0x20], r12
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
nop dword [rax + rax]
mov edi, eax
test eax, eax
jne 0x1800068da
xor edx, edx
lea rcx, [rbp + 0x20]
mov r8d, 0x106
call sub.api_ms_win_core_crt_l1_1_0.dll_memset
mov rcx, qword [rbp + 0x10]
lea rax, [rbp + 4]
mov qword [rsp + 0x30], rax
lea r9d, [rdi + 2]
lea rax, [rbp + 0x20]
mov dword [rbp + 4], 0x105
mov qword [rsp + 0x28], rax
lea r8, str.Initialize
xor edx, edx
mov qword [rsp + 0x20], r12
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueA]
nop dword [rax + rax]
mov edi, eax
test eax, eax
jne 0x1800068da
lea r9, [rbp + 0x20]
mov ecx, r15d
lea r8, [rbp + 0x130]
call fcn.180006ec8
mov edi, eax
test eax, eax
jne 0x1800068da
mov rcx, qword [rbp + 0x10]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
inc esi
mov qword [rbp + 0x10], r12
cmp esi, dword [rbp + 8]
jb 0x180006946
jmp 0x1800068ef