Function at 0x1007197
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 0x10071f3
dec eax
je 0x10071eb
dec eax
dec eax
jne 0x1007203
cmp dword [ebp + 0xc], ebx
jne 0x100720c
test byte [ecx], 3
je 0x100741f
mov dword [ebp - 0x318], 1
jmp 0x100720c
mov dword [ebp - 0x318], ebx
jmp 0x1007203
mov ecx, dword [ecx]
shl ecx, 0x1f
sar ecx, 0x1f
mov dword [ebp - 0x318], ecx
jne 0x100720c
cmp dword [ebp + 0xc], ebx
je 0x100741f
call fcn.010056eb
test eax, eax
mov dword [ebp - 0x31c], 0x10027b4
jne 0x1007229
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 0x100741f
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 0x1007412
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 0x10072b7
sub eax, edi
mov edi, eax
lea eax, [ebp - 0x108]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x10072cb
sub eax, ecx
add eax, edi
cmp eax, esi
jae 0x10073c2
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 0x10073c2
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.010064ea
mov eax, dword [ebp - 0x32c]
add esp, 0x18
cmp eax, ebx
je 0x10073b6
push dword [ebp - 0x328]
call fcn.0100665d
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 0x10072a0
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.0100816f
leave
ret