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

Disassembly:
push ebp
mov ebp, esp
mov ecx, 7
push 0
push 0
dec ecx
jne 0x1295b4
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0001415c
xor eax, eax
push ebp
push 0x1298e7
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov edx, dword [0x2514d0]
add eax, dword [edx]
push eax
push 0
mov eax, dword [ebp - 4]
call fcn.0001416c
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
mov ebx, eax
mov eax, dword [ebp + 8]
cmp byte [eax - 9], 0
jne 0x12988b
test ebx, ebx
jne 0x12988b
lea eax, [ebp - 0x10]
mov edx, 0x2800
call fcn.000271f0
mov dword [ebp - 0xc], 0x2800
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0x1298f8
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov ebx, eax
mov eax, dword [ebp + 8]
cmp byte [eax - 9], 0
jne 0x12987e
test ebx, ebx
jne 0x12987e
cmp dword [ebp - 8], 1
jne 0x12987e
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
mov edx, dword [ebp - 0x10]
call fcn.00014548
xor ebx, ebx
mov esi, 1
jmp 0x129868
cmp esi, 0x19
jne 0x129839
lea edx, [ebp - 0x18]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x10]
call fcn.0001c9b0
mov eax, dword [ebp - 0x18]
push eax
lea edx, [ebp - 0x1c]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x14]
call fcn.0001c9b0
mov eax, dword [ebp - 0x1c]
pop edx
call fcn.0001495c
test eax, eax
jle 0x129867
lea edx, [ebp - 0x20]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x10]
call fcn.0001c9b0
mov edx, dword [ebp - 0x20]
mov eax, 0x129908
call fcn.0001495c
mov edi, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x10]
call fcn.00014630
sub eax, 3
cmp edi, eax
jne 0x129867
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x10]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 0x18]
call fcn.00014748
je 0x12981f
mov eax, dword [ebp + 8]
cmp dword [eax - 8], 0xf003f
jne 0x1297f6
lea edx, [ebp - 0x28]
mov eax, dword [ebp + 8]
mov ax, word [eax - 0x7e]
call fcn.00045de4
mov edx, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
call fcn.000145ac
mov ecx, dword [ebp - 0x24]
mov eax, dword [ebp + 8]
mov edx, dword [eax - 0x7c]
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.0001469c
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x10]
call fcn.00014630
inc eax
add eax, eax
mov edx, dword [ebp + 8]
mov dword [edx - 0x84], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x84]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x10]
call fcn.00014620
push eax
push 1
push 0
push 0x1298f8
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegSetValueExW
mov ebx, eax
test ebx, ebx
je 0x1297de
mov eax, dword [ebp + 8]
push eax
push 0x12991c
lea edx, [ebp - 0x34]
mov eax, ebx
call fcn.00027478
push dword [ebp - 0x34]
push 0x12992c
lea eax, [ebp - 0x30]
mov edx, 3
call fcn.00014068
mov edx, dword [ebp - 0x30]
lea eax, [ebp - 0x2c]
call fcn.000145ac
lea eax, [ebp - 0x2c]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 0x10]
call fcn.0001463c
mov eax, dword [ebp - 0x2c]
call fcn.00129510
pop ecx
mov eax, dword [ebp + 8]
mov byte [eax - 9], 1
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 0x18]
mov eax, dword [ebp + 8]
add eax, 0xffffffe8
mov edx, 0x129934
call fcn.0001469c
jmp 0x129835
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 0x18]
lea eax, [ebp - 0x38]
mov edx, 0x12993c
call fcn.0001469c
mov eax, dword [ebp - 0x38]
call fcn.00129474
pop ecx
mov eax, dword [ebp + 8]
mov byte [eax - 9], 1
jmp 0x129835
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 0x18]
mov eax, dword [ebp + 8]
add eax, 0xffffffe8
mov edx, 0x129934
call fcn.0001469c
mov bl, 1
jmp 0x129867
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x10]
mov edx, dword [ebp + 8]
mov edx, dword [edx + esi*4 - 0x7c]
call fcn.00014748
jne 0x129867
mov eax, dword [ebp + 8]
mov ecx, dword [eax + esi*4 - 0x7c]
mov eax, dword [ebp + 8]
lea eax, [eax + esi*4 - 0x7c]
mov edx, 0x129934
call fcn.0001469c
mov bl, 1
inc esi
test bl, bl
jne 0x12987e
cmp esi, 0x19
jg 0x12987e
mov eax, dword [ebp + 8]
cmp byte [eax - 9], 0
je 0x129686
lea eax, [ebp - 0x10]
mov edx, 0x2800
call fcn.00027218
cmp dword [ebp - 0x14], 0
je 0x12989a
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
mov dword [ebp - 0x14], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x1298ee
lea eax, [ebp - 0x38]
call fcn.000143f0
lea eax, [ebp - 0x34]
mov edx, 2
call fcn.00013d3c
lea eax, [ebp - 0x2c]
call fcn.000143f0
lea eax, [ebp - 0x28]
call fcn.00013d18
lea eax, [ebp - 0x24]
mov edx, 4
call fcn.00014408
lea eax, [ebp - 4]
call fcn.00013d18
ret