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

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x5c8
mov qword [rsp + 0x610], rcx
lea rcx, [0x2c991e5a0]
call fcn.2c9915bf5
mov r14, rax
lea rax, [rsp + 0x88]
mov qword [rsp + 0x20], rax
mov r9d, 0x108
mov r8d, 0
mov rdx, r14
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, 0
test eax, eax
jne 0x2c99134e4
mov ecx, 0x40000
call fcn.2c9914d40
mov rsi, rax
test rax, rax
je 0x2c99134d6
mov byte [rax], 0
lea rcx, [0x2c991e610]
call fcn.2c9915bf5
mov r15, rax
lea rcx, [0x2c991e630]
call fcn.2c9915bf5
mov qword [rsp + 0x48], rax
lea rcx, [0x2c991e658]
call fcn.2c9915bf5
mov qword [rsp + 0x50], rax
lea rcx, [0x2c991e677]
call fcn.2c9915b70
mov qword [rsp + 0x40], rax
lea rcx, [0x2c991e681]
call fcn.2c9915b70
mov qword [rsp + 0x58], rax
mov ebx, 0
mov rdi, qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov rbp, qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
jmp 0x2c9913290
mov rdx, qword [rsp + 0x40]
mov rcx, rsi
call sub.msvcrt.dll_strcat
jmp 0x2c991339a
mov rdx, qword [rsp + 0x40]
mov rcx, rsi
call sub.msvcrt.dll_strcat
mov rdx, qword [rsp + 0x58]
mov rcx, rsi
call sub.msvcrt.dll_strcat
mov dword [rsp + 0x78], 0x104
lea rax, [rsp + 0x78]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x1a0]
mov qword [rsp + 0x20], rax
mov r9d, 0
mov r8d, 0
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x2c9913265
mov eax, dword [rsp + 0x78]
mov byte [rax + r13], 0
mov eax, dword [rsp + 0x78]
mov rdx, qword [rsp + 0x60]
mov byte [rax + rdx], 0
lea rcx, [rsp + 0x1a0]
call fcn.2c991272d
mov r12, rax
test rax, rax
je 0x2c991327f
mov rdx, qword [rsp + 0x40]
mov rcx, rsi
call sub.msvcrt.dll_strcat
mov rcx, r12
call sub.msvcrt.dll_strlen
lea r13, [rsp + 0x90]
mov r8d, eax
mov rdx, r12
mov rcx, r13
call fcn.2c99114be
mov rdx, r13
mov rcx, rsi
call sub.msvcrt.dll_strcat
mov rcx, r12
call fcn.2c9914d92
jmp 0x2c991327f
mov rdx, qword [rsp + 0x40]
mov rcx, rsi
call sub.msvcrt.dll_strcat
mov rdx, qword [rsp + 0x58]
mov rcx, rsi
call sub.msvcrt.dll_strcat
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
add ebx, 1
mov dword [rsp + 0x7c], 0x104
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x7c]
lea r8, [rsp + 0x3b0]
mov edx, ebx
mov rcx, qword [rsp + 0x88]
call rdi
test eax, eax
jne 0x2c9913491
lea rdx, [rsp + 0x3b0]
lea rax, [rsp + 0x80]
mov qword [rsp + 0x20], rax
mov r9d, 0x101
mov r8d, 0
mov rcx, qword [rsp + 0x88]
call rbp
test eax, eax
jne 0x2c991328d
mov dword [rsp + 0x78], 0x104
lea rax, [rsp + 0x78]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x1a0]
mov qword [rsp + 0x20], rax
mov r9d, 0
mov r8d, 0
mov rdx, r15
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x2c991327f
lea r13, [rsp + 0x1a0]
mov eax, dword [rsp + 0x78]
mov byte [rsp + rax + 0x1a0], 0
lea rax, [rsp + 0x1a1]
mov qword [rsp + 0x60], rax
mov eax, dword [rsp + 0x78]
mov byte [rsp + rax + 0x1a1], 0
mov rcx, r13
call fcn.2c991272d
mov r12, rax
test rax, rax
je 0x2c99133d2
cmp byte [rsi], 0
je 0x2c991339a
test ebx, ebx
jne 0x2c991318c
mov rcx, r12
call sub.msvcrt.dll_strlen
lea rdx, [rsp + 0x90]
mov rcx, rdx
mov r8d, eax
mov rdx, r12
mov qword [rsp + 0x68], rcx
call fcn.2c99114be
mov rdx, qword [rsp + 0x68]
mov rcx, rsi
call sub.msvcrt.dll_strcat
mov rcx, r12
call fcn.2c9914d92
mov dword [rsp + 0x78], 0x104
lea rax, [rsp + 0x78]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x1a0]
mov qword [rsp + 0x20], rax
mov r9d, 0
mov r8d, 0
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x2c991319e
mov eax, dword [rsp + 0x78]
mov byte [rax + r13], 0
mov eax, dword [rsp + 0x78]
mov rdx, qword [rsp + 0x60]
mov byte [rax + rdx], 0
lea rcx, [rsp + 0x1a0]
call fcn.2c991272d
mov r12, rax
test rax, rax
je 0x2c99131b8
mov rdx, qword [rsp + 0x40]
mov rcx, rsi
call sub.msvcrt.dll_strcat
mov rcx, r12
call sub.msvcrt.dll_strlen
lea rdx, [rsp + 0x90]
mov rcx, rdx
mov r8d, eax
mov rdx, r12
mov qword [rsp + 0x68], rcx
call fcn.2c99114be
mov rdx, qword [rsp + 0x68]
mov rcx, rsi
call sub.msvcrt.dll_strcat
mov rcx, r12
call fcn.2c9914d92
jmp 0x2c99131b8
mov rcx, rsi
call sub.msvcrt.dll_strlen
add eax, 1
mov rdi, qword [rsp + 0x610]
mov dword [rdi], eax
mov rcx, qword [rsp + 0x58]
call fcn.2c9915c7c
mov rcx, qword [rsp + 0x40]
call fcn.2c9915c7c
mov rcx, qword [rsp + 0x50]
call fcn.2c9915c7c
mov rcx, qword [rsp + 0x48]
call fcn.2c9915c7c
mov rcx, r15
call fcn.2c9915c7c
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, r14
call fcn.2c9915c7c
mov rax, rsi
add rsp, 0x5c8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret