Function at 0x10071e2
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 [0x100a11c]
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 0x100723e
dec eax
je 0x1007236
dec eax
dec eax
jne 0x1007250
cmp dword [ebp + 0xc], ebx
jne 0x1007259
test byte [ecx], 3
je 0x100746c
mov dword [ebp - 0x318], 1
jmp 0x1007259
mov dword [ebp - 0x318], ebx
jmp 0x1007250
mov eax, dword [ecx]
shl eax, 0x1f
sar eax, 0x1f
mov dword [ebp - 0x318], eax
cmp eax, ebx
jne 0x1007259
cmp dword [ebp + 0xc], ebx
je 0x100746c
call fcn.01005736
mov dword [ebp - 0x31c], 0x10027b4
test eax, eax
jne 0x1007276
mov dword [ebp - 0x31c], 0x1002804
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 0x100746c
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 0x100745f
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 0x1007304
sub eax, edi
mov edi, eax
lea eax, [ebp - 0x108]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x1007318
sub eax, ecx
add eax, edi
cmp eax, esi
jae 0x100740f
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 0x10027ac
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 0x100740f
lea eax, [ebp - 0x314]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x334]
push eax
push ebx
push 0x10027fc
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.01006535
mov eax, dword [ebp - 0x32c]
add esp, 0x18
cmp eax, ebx
je 0x1007403
push dword [ebp - 0x328]
call fcn.010066a8
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 0x10072ed
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.010081b4
leave
ret