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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x33c
mov eax, dword [0x100b15c]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 4]
push ebx
xor ebx, ebx
dec eax
mov dword [ebp - 0x330], ecx
mov dword [ebp - 0x32c], ebx
mov dword [ebp - 0x318], ebx
je 0x1008678
dec eax
je 0x1008670
dec eax
dec eax
jne 0x1008688
cmp dword [ebp + 0xc], ebx
jne 0x1008691
test byte [ecx], 3
je 0x10088a4
mov dword [ebp - 0x318], 1
jmp 0x1008691
mov dword [ebp - 0x318], ebx
jmp 0x1008688
mov ecx, dword [ecx]
shl ecx, 0x1f
sar ecx, 0x1f
mov dword [ebp - 0x318], ecx
jne 0x1008691
cmp dword [ebp + 0xc], ebx
je 0x10088a4
call fcn.01006b70
test eax, eax
mov dword [ebp - 0x31c], 0x1002f08
jne 0x10086ae
mov dword [ebp - 0x31c], 0x1002f58
lea eax, [ebp - 0x324]
push eax
push 0xf003f
push ebx
push dword [ebp - 0x31c]
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10088a4
push esi
mov esi, 0x104
push esi
lea eax, [ebp - 0x108]
push ebx
push eax
mov dword [ebp - 0x320], ebx
mov dword [ebp - 0x314], esi
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x33c]
push eax
push ebx
push ebx
push ebx
lea eax, [ebp - 0x314]
push eax
lea eax, [ebp - 0x108]
push eax
push ebx
push dword [ebp - 0x324]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x1008897
push edi
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.msvcrt.dll__strlwr]
mov eax, dword [ebp - 0x31c]
pop ecx
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x100873c
sub eax, edi
mov edi, eax
lea eax, [ebp - 0x108]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x1008750
sub eax, ecx
add eax, edi
cmp eax, esi
jae 0x1008847
push esi
lea eax, [ebp - 0x20c]
push ebx
push eax
call sub.msvcrt.dll_memset
lea eax, [ebp - 0x108]
push eax
push dword [ebp - 0x31c]
lea eax, [ebp - 0x310]
push 0x1002f00
push eax
call dword [sym.imp.msvcrt.dll_sprintf]
add esp, 0x1c
lea eax, [ebp - 0x328]
push eax
push 0xf003f
push ebx
lea eax, [ebp - 0x310]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1008847
lea eax, [ebp - 0x314]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x334]
push eax
push ebx
push 0x1002f50
push dword [ebp - 0x328]
mov dword [ebp - 0x314], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [ebp - 0x318]
neg eax
sbb eax, eax
not eax
and eax, dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x32c]
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x310]
push eax
mov eax, dword [ebp - 0x330]
add eax, 8
push eax
call fcn.0100796f
mov eax, dword [ebp - 0x32c]
add esp, 0x18
cmp eax, ebx
je 0x100883b
push dword [ebp - 0x328]
call fcn.01007ae2
pop ecx
push dword [ebp - 0x328]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
lea eax, [ebp - 0x108]
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
inc dword [ebp - 0x320]
lea eax, [ebp - 0x33c]
push eax
push ebx
push ebx
push ebx
lea eax, [ebp - 0x314]
push eax
lea eax, [ebp - 0x108]
push eax
push dword [ebp - 0x320]
mov dword [ebp - 0x314], esi
push dword [ebp - 0x324]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x1008725
pop edi
push dword [ebp - 0x324]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
inc eax
pop ebx
call fcn.010096ce
leave
ret