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

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
movabs rax, 0xb0
call sub.KERNEL32.dll___chkstk
sub rsp, rax
mov r12, rdx
mov rsi, rcx
mov qword [rsp + 0xa0], 0
mov qword [rsp + 0x98], 0
mov qword [rsp + 0x78], 0
xor ebx, ebx
cmp byte [rsi], bl
je 0x30010f0a
lea r8, [rsp + 0x98]
lea rdx, [rsp + 0xa0]
call fcn.3000c728
test eax, eax
je 0x30010f0a
lea rax, [rsp + 0x88]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, qword [rsp + 0x98]
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x30010f11
xor eax, eax
jmp 0x30011169
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x50], 0
lea rax, [rsp + 0x68]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x6c]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
je 0x30010f7d
xor ebx, ebx
jmp 0x30011159
mov ecx, 0xa
mov eax, dword [rsp + 0x60]
cmp eax, ecx
cmova ecx, eax
add ecx, 1
mov dword [rsp + 0x60], ecx
mov edx, 0x106
mov ecx, dword [rsp + 0x68]
call fcn.30021110
mov r13, rax
test r13, r13
je 0x3001114a
mov edx, 0x106
mov ecx, dword [rsp + 0x60]
call fcn.30021110
mov rdi, rax
test rdi, rdi
je 0x30011131
mov edx, 0x106
mov ecx, 0x8000
call fcn.30021110
mov qword [rsp + 0x78], rax
test rax, rax
je 0x30011131
mov dword [rsp + 0x80], 0x8000
mov r9, rsi
lea r8, str._s_r_n_r_n
movabs rdx, 0x8000
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_wnsprintfA]
mov rcx, qword [rsp + 0x78]
call fcn.300219f0
mov dword [rsp + 0x94], eax
xor esi, esi
cmp dword [rsp + 0x6c], esi
jbe 0x300110ed
mov eax, dword [rsp + 0x60]
mov dword [rsp + 0x64], eax
mov eax, dword [rsp + 0x68]
mov dword [rsp + 0x70], eax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r13
lea rax, [rsp + 0x90]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x64]
mov r8, rdi
mov edx, esi
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x300110e0
mov eax, dword [rsp + 0x64]
test eax, eax
jne 0x300110a1
mov r8d, dword [rsp + 0x60]
mov rdx, rdi
lea rcx, str._default_
call fcn.300258f0
mov rcx, rdi
call fcn.300219f0
mov dword [rsp + 0x64], eax
lea rcx, [rsp + 0x78]
mov qword [rsp + 0x38], rcx
lea rcx, [rsp + 0x80]
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x94]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], r13
mov r9d, dword [rsp + 0x70]
mov r8, rdi
mov edx, eax
mov ecx, dword [rsp + 0x90]
call fcn.30010900
add esi, 1
cmp esi, dword [rsp + 0x6c]
jb 0x30011028
cmp qword [r12], 0
jne 0x30011119
mov dword [rsp + 0x20], 0x106
mov r9d, 0x400
mov r8d, 0xa
mov edx, 8
mov rcx, r12
call fcn.3002e0ac
test eax, eax
je 0x30011131
lea rdx, [rsp + 0x78]
mov rcx, qword [r12]
call fcn.3002d7e8
cmp eax, 0xffffffff
je 0x30011131
mov ebx, 1
mov rcx, r13
call fcn.30021150
test rdi, rdi
je 0x30011146
mov rcx, rdi
call fcn.30021150
test ebx, ebx
jne 0x30011159
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x30011159
call fcn.30021150
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
add rsp, 0xb0
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret