Function at 0x8e2824
Capabilities:
Query or enumerate registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x18
push 0
push 0
dec ecx
jne 0x8e282c
xor eax, eax
push ebp
push 0x8e2b8a
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x94]
mov eax, 0x8e2ba0
call fcn.008e0e20
push dword [ebp - 0x94]
push 0x8e2bbc
lea edx, [ebp - 0x98]
mov eax, 0x8e2bc8
call fcn.008e0e20
push dword [ebp - 0x98]
push 0x8e2bbc
lea edx, [ebp - 0x9c]
mov eax, 0x8e68c8
call fcn.008e1cf0
push dword [ebp - 0x9c]
lea eax, [ebp - 4]
mov edx, 5
call fcn.008d4700
push dword [ebp - 4]
push 0x8e2bbc
lea edx, [ebp - 0xa0]
mov eax, 0x8e2bd8
call fcn.008e0e20
push dword [ebp - 0xa0]
lea eax, [ebp - 8]
mov edx, 3
call fcn.008d4700
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.008d47f4
push eax
push 0x80000002
call sub.advapi32.dll_RegCreateKeyA
test eax, eax
jne 0x8e2b5f
cmp byte [0x8e8010], 0
je 0x8e29ce
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
push dword [ebp - 8]
push 0x8e2bbc
mov eax, dword [0x8e76b8]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0xa4]
call fcn.008d79ec
push dword [ebp - 0xa4]
lea eax, [ebp - 8]
mov edx, 3
call fcn.008d4700
lea eax, [ebp - 0xc]
push eax
push 0x20006
push 0
mov eax, dword [ebp - 8]
call fcn.008d47f4
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x8e2acc
cmp byte [0x8e8011], 0
jne 0x8e2988
push 4
push 0x8e76ec
push 4
push 0
lea edx, [ebp - 0xa8]
mov eax, 0x8e2bf8
call fcn.008e0e20
mov eax, dword [ebp - 0xa8]
call fcn.008d47f4
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegSetValueExA
push 4
push 0x8e7a28
push 4
push 0
lea edx, [ebp - 0xac]
mov eax, 0x8e2c08
call fcn.008e0e20
mov eax, dword [ebp - 0xac]
call fcn.008d47f4
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegSetValueExA
mov eax, dword [ebp - 0xc]
call fcn.008e236c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
jmp 0x8e2acc
lea eax, [ebp - 0x28]
mov edx, 0x1c
call fcn.008d6a0c
lea eax, [ebp - 0x14]
push eax
push 0
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x20]
push eax
push 0
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
push 0
push 0
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryInfoKeyA
test eax, eax
jne 0x8e2acc
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
push dword [ebp - 8]
push 0x8e2bbc
lea edx, [ebp - 0xb0]
mov eax, dword [ebp - 0x28]
call fcn.008d79bc
push dword [ebp - 0xb0]
lea eax, [ebp - 8]
mov edx, 3
call fcn.008d4700
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.008d47f4
push eax
push 0x80000002
call sub.advapi32.dll_RegCreateKeyA
test eax, eax
jne 0x8e2acc
push 4
push 0x8e76ec
push 4
push 0
mov eax, 0x8e2bf8
lea edx, [ebp - 0xb4]
call fcn.008e0e20
mov eax, dword [ebp - 0xb4]
call fcn.008d47f4
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegSetValueExA
push 4
push 0x8e7a28
push 4
push 0
mov eax, 0x8e2c08
lea edx, [ebp - 0xb8]
call fcn.008e0e20
mov eax, dword [ebp - 0xb8]
call fcn.008d47f4
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegSetValueExA
mov eax, dword [ebp - 0xc]
call fcn.008e236c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
push dword [ebp - 4]
push 0x8e2bbc
lea edx, [ebp - 0xbc]
mov eax, 0x8e2c18
call fcn.008e0e20
push dword [ebp - 0xbc]
lea eax, [ebp - 8]
mov edx, 3
call fcn.008d4700
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.008d47f4
push eax
push 0x80000002
call sub.advapi32.dll_RegCreateKeyA
test eax, eax
jne 0x8e2b5f
lea edx, [ebp - 0xc0]
mov eax, 0x8e2c30
call fcn.008e0e20
mov edx, dword [ebp - 0xc0]
lea eax, [ebp - 0x8d]
call fcn.008d7f9c
lea eax, [ebp - 0x8d]
call fcn.008d7ed8
inc eax
push eax
lea eax, [ebp - 0x8d]
push eax
push 1
push 0
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegSetValueExA
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x8e2b91
lea eax, [ebp - 0xc0]
mov edx, 0xc
call fcn.008d4408
lea eax, [ebp - 8]
mov edx, 2
call fcn.008d4408
ret