Function at 0x10028811
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push edi
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
xor edi, edi
mov dword [ebp - 4], edi
call fcn.10028692
mov dword [ebp - 0xc], eax
cmp eax, edi
je 0x10028846
cmp dword [ebp - 4], edi
je 0x1002883e
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0xc]
jmp 0x10028a40
push esi
mov esi, 0x400
push esi
mov dword [ebp - 8], edi
mov dword [ebp + 8], esi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], edi
call fcn.1004dde9
pop ecx
mov dword [ebp - 0x18], eax
cmp eax, edi
je 0x1002886c
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [ebp + 8]
push ecx
push eax
lea eax, [ebp - 8]
push eax
push edi
push dword [ebp + 0xc]
mov dword [ebp - 0x24], edi
push dword [ebp - 4]
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
call ebx
mov edi, eax
test edi, edi
je 0x1002892a
cmp edi, 0xea
jne 0x100288dd
mov edi, dword [ebp + 8]
cmp edi, dword [ebp - 0x10]
jbe 0x100288b2
lea esi, [ebp - 0x18]
call fcn.1002844a
jmp 0x100288b8
xor eax, eax
mov dword [ebp - 0x14], edi
inc eax
test eax, eax
je 0x10028903
cmp dword [ebp - 0x18], 0
je 0x10028903
lea eax, [ebp + 8]
push eax
push dword [ebp - 0x18]
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp - 4]
call ebx
mov edi, eax
test edi, edi
je 0x1002892a
lea esi, [ebp - 0x24]
call fcn.10028416
lea esi, [ebp - 0x18]
call fcn.10028416
cmp dword [ebp - 4], 0
je 0x100288fc
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x10028a3e
lea esi, [ebp - 0x24]
call fcn.10028416
lea esi, [ebp - 0x18]
call fcn.10028416
cmp dword [ebp - 4], 0
je 0x10028922
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 8
pop eax
jmp 0x10028a3e
mov eax, dword [ebp - 8]
dec eax
je 0x10028982
push 2
pop ecx
sub eax, ecx
je 0x1002897d
dec eax
je 0x10028972
sub eax, 7
mov eax, dword [ebp + 0x18]
je 0x10028959
mov dword [eax], ecx
mov eax, dword [ebp + 8]
inc eax
mov dword [ebp + 0x18], eax
je 0x100289a6
mov edi, eax
lea esi, [ebp - 0x24]
call fcn.1002844a
jmp 0x100289ac
mov dword [eax], 4
mov esi, dword [ebp + 0x14]
mov eax, dword [esi]
cmp eax, dword [ebp + 8]
jge 0x1002898d
mov dword [ebp - 0xc], 0xea
jmp 0x1002899f
mov eax, dword [ebp + 0x18]
mov dword [eax], 3
jmp 0x1002895f
mov eax, dword [ebp + 0x18]
jmp 0x10028942
mov eax, dword [ebp + 0x18]
mov dword [eax], 1
jmp 0x10028944
push dword [ebp + 8]
push dword [ebp - 0x18]
push eax
push dword [ebp + 0x10]
call fcn.1004ccab
add esp, 0x10
mov eax, dword [ebp + 8]
mov dword [esi], eax
jmp 0x10028a1c
mov dword [ebp - 0x20], eax
xor eax, eax
inc eax
test eax, eax
je 0x10028a1c
mov esi, dword [ebp - 0x24]
lea eax, [ebp + 0x18]
push eax
push dword [ebp + 8]
mov eax, dword [ebp - 0x18]
call fcn.1002fb5e
pop ecx
pop ecx
test eax, eax
jne 0x10028a1c
mov esi, dword [ebp + 0x18]
push 4
pop eax
cmp esi, eax
jle 0x10028a1c
mov edi, dword [ebp - 0x24]
and dword [ebp + 0x18], 0
sub esi, eax
push eax
lea ecx, [edi + esi]
push ecx
push eax
lea eax, [ebp + 0x18]
push eax
call fcn.1004ccab
add esp, 0x10
cmp dword [ebp + 0x18], esi
jne 0x10028a1c
cmp dword [ebp - 8], 1
mov ebx, dword [ebp + 0x14]
jne 0x100289fd
shl dword [ebx], 1
mov eax, dword [ebx]
cmp eax, esi
jge 0x10028a0c
mov dword [ebp - 0xc], 0xea
jmp 0x10028a1a
push esi
push edi
push eax
push dword [ebp + 0x10]
call fcn.1004ccab
add esp, 0x10
mov dword [ebx], esi
lea esi, [ebp - 0x24]
call fcn.10028416
lea esi, [ebp - 0x18]
call fcn.10028416
cmp dword [ebp - 4], 0
je 0x10028a3b
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0xc]
pop ebx
pop esi
pop edi
leave
ret 0x14