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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb0
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x8e279c
push dword fs:[eax]
mov dword fs:[eax], esp
mov bl, 1
mov byte [0x8e8010], 0
lea edx, [ebp - 0x38]
mov eax, 0x8e27b4
call fcn.008e0e20
push dword [ebp - 0x38]
push 0x8e27d0
lea edx, [ebp - 0x3c]
mov eax, 0x8e27dc
call fcn.008e0e20
push dword [ebp - 0x3c]
push 0x8e27d0
lea edx, [ebp - 0x40]
mov eax, 0x8e68c8
call fcn.008e1cf0
push dword [ebp - 0x40]
lea eax, [ebp - 4]
mov edx, 5
call fcn.008d4700
push dword [ebp - 4]
push 0x8e27d0
lea edx, [ebp - 0x44]
mov eax, 0x8e27ec
call fcn.008e0e20
push dword [ebp - 0x44]
lea eax, [ebp - 8]
mov edx, 3
call fcn.008d4700
lea eax, [ebp - 0x10]
push eax
push 1
push 0
mov eax, dword [ebp - 8]
call fcn.008d47f4
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x8e276b
lea eax, [ebp - 0x34]
mov edx, 0x1c
call fcn.008d6a0c
lea eax, [ebp - 0x20]
push eax
push 0
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
push 0
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
push 0
push 0
push 0
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryInfoKeyA
test eax, eax
jne 0x8e276b
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegCloseKey_1
mov esi, dword [ebp - 0x34]
dec esi
test esi, esi
jl 0x8e276b
inc esi
xor edi, edi
push dword [ebp - 8]
push 0x8e27d0
lea edx, [ebp - 0x48]
mov eax, edi
call fcn.008d79bc
push dword [ebp - 0x48]
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.008d4700
lea eax, [ebp - 0x10]
push eax
push 1
push 0
mov eax, dword [ebp - 0xc]
call fcn.008d47f4
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x8e2763
mov dword [ebp - 0x18], 4
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0
lea edx, [ebp - 0x4c]
mov eax, 0x8e280c
call fcn.008e0e20
mov eax, dword [ebp - 0x4c]
call fcn.008d47f4
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x8e275a
mov eax, dword [ebp - 0x14]
cmp eax, dword [0x8e7a28]
jne 0x8e275a
mov byte [0x8e8010], 1
mov dword [0x8e76b8], edi
mov dword [ebp - 0x18], 4
xor eax, eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0
lea edx, [ebp - 0x50]
mov eax, 0x8e281c
call fcn.008e0e20
mov eax, dword [ebp - 0x50]
call fcn.008d47f4
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
mov eax, dword [ebp - 0x14]
cmp eax, dword [0x8e76ec]
sete bl
mov eax, ebx
xor al, 1
mov byte [0x8e8011], al
cmp byte [0x8e8011], 0
jne 0x8e274f
mov eax, dword [ebp - 0x10]
call fcn.008e219c
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegCloseKey_1
jmp 0x8e276b
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegCloseKey_1
inc edi
dec esi
jne 0x8e265b
test bl, bl
je 0x8e2774
call fcn.008e2004
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x8e27a3
lea eax, [ebp - 0x50]
mov edx, 7
call fcn.008d4408
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.008d4408
ret