Function at 0x12e744
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov ecx, 9
push 0
push 0
dec ecx
jne 0x12e74c
push ebx
push esi
xor eax, eax
push ebp
push 0x12e996
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push 0xf003f
push 0
push 0x12e9a8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
mov esi, eax
test esi, esi
je 0x12e7bc
lea edx, [ebp - 0x1c]
mov eax, esi
call fcn.00027478
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp - 0x18]
mov edx, 0x12e9ec
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 0x12e920
mov dword [ebp - 8], 4
xor eax, eax
mov dword [ebp - 0xc], eax
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0x12e9f8
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
mov esi, eax
test esi, esi
jne 0x12e803
cmp dword [ebp - 0x10], 4
jne 0x12e803
cmp dword [ebp - 8], 4
je 0x12e86d
push 0x12ea1c
mov eax, dword [ebp - 0x10]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x28]
call fcn.0003009c
push dword [ebp - 0x28]
push 0x12ea30
mov eax, dword [ebp - 8]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x2c]
call fcn.0003009c
push dword [ebp - 0x2c]
push 0x12ea3c
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 0x12e920
mov eax, dword [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x10]
push eax
push 0
push 0x12ea40
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegSetValueExA
mov esi, eax
test esi, esi
je 0x12e8c3
lea edx, [ebp - 0x3c]
mov eax, esi
call fcn.00027478
mov ecx, dword [ebp - 0x3c]
lea eax, [ebp - 0x38]
mov edx, 0x12ea64
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 0x12e920
xor eax, eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x10]
push eax
push 0
push 0x12e9f8
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegSetValueExA
mov esi, eax
test esi, esi
je 0x12e91e
lea edx, [ebp - 0x48]
mov eax, esi
call fcn.00027478
mov ecx, dword [ebp - 0x48]
lea eax, [ebp - 0x44]
mov edx, 0x12ea78
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 0x12e920
mov bl, 1
cmp dword [ebp - 4], 0
je 0x12e92f
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x12e99d
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