Function at 0x12ea84
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov ecx, 9
push 0
push 0
dec ecx
jne 0x12ea8c
push ebx
push esi
xor eax, eax
push ebp
push 0x12ecc3
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x12ecd4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
mov esi, eax
test esi, esi
je 0x12eafc
lea edx, [ebp - 0x1c]
mov eax, esi
call fcn.00027478
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp - 0x18]
mov edx, 0x12ed18
call fcn.00013ff4
mov edx, dword [ebp - 0x18]
lea eax, [ebp - 0x14]
call fcn.000145ac
mov edx, dword [ebp - 0x14]
mov eax, dword [0x251144]
call fcn.001174d0
test esi, esi
jne 0x12ec4d
mov dword [ebp - 0xc], 4
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0x12ed24
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
mov esi, eax
test esi, esi
jne 0x12eb43
cmp dword [ebp - 0x10], 4
jne 0x12eb43
cmp dword [ebp - 0xc], 4
je 0x12ebad
push 0x12ed48
mov eax, dword [ebp - 0x10]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x28]
call fcn.0003009c
push dword [ebp - 0x28]
push 0x12ed5c
mov eax, dword [ebp - 0xc]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x2c]
call fcn.0003009c
push dword [ebp - 0x2c]
push 0x12ed68
lea edx, [ebp - 0x30]
mov eax, esi
call fcn.00027478
push dword [ebp - 0x30]
lea eax, [ebp - 0x24]
mov edx, 6
call fcn.00014068
mov edx, dword [ebp - 0x24]
lea eax, [ebp - 0x20]
call fcn.000145ac
mov edx, dword [ebp - 0x20]
mov eax, dword [0x251144]
call fcn.001174d0
jmp 0x12ec4d
mov eax, dword [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 0x10]
push eax
push 0
push 0x12ed6c
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegSetValueExA
mov esi, eax
test esi, esi
je 0x12ec03
lea edx, [ebp - 0x3c]
mov eax, esi
call fcn.00027478
mov ecx, dword [ebp - 0x3c]
lea eax, [ebp - 0x38]
mov edx, 0x12ed90
call fcn.00013ff4
mov edx, dword [ebp - 0x38]
lea eax, [ebp - 0x34]
call fcn.000145ac
mov edx, dword [ebp - 0x34]
mov eax, dword [0x251144]
call fcn.001174d0
jmp 0x12ec4d
push 0x12ed24
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegDeleteValueA
mov esi, eax
test esi, esi
je 0x12ec4b
lea edx, [ebp - 0x48]
mov eax, esi
call fcn.00027478
mov ecx, dword [ebp - 0x48]
lea eax, [ebp - 0x44]
mov edx, 0x12eda4
call fcn.00013ff4
mov edx, dword [ebp - 0x44]
lea eax, [ebp - 0x40]
call fcn.000145ac
mov edx, dword [ebp - 0x40]
mov eax, dword [0x251144]
call fcn.001174d0
jmp 0x12ec4d
mov bl, 1
cmp dword [ebp - 8], 0
je 0x12ec5c
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x12ecca
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.00013d3c
lea eax, [ebp - 0x40]
call fcn.000143f0
lea eax, [ebp - 0x3c]
mov edx, 2
call fcn.00013d3c
lea eax, [ebp - 0x34]
call fcn.000143f0
lea eax, [ebp - 0x30]
mov edx, 4
call fcn.00013d3c
lea eax, [ebp - 0x20]
call fcn.000143f0
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.00013d3c
lea eax, [ebp - 0x14]
call fcn.000143f0
ret