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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffec4
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x13c], edx
mov dword [ebp - 0x138], edx
mov dword [ebp - 0x134], edx
mov dword [ebp - 0x130], edx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], edx
mov dword [ebp - 4], edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x18], edx
mov esi, eax
xor eax, eax
push ebp
push 0xa0b25
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
call fcn.00013d18
lea eax, [ebp - 0x10]
call fcn.00013d18
lea eax, [ebp - 0x14]
mov edx, 0x2800
call fcn.000271f0
mov ebx, 4
xor eax, eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [0x2514d0]
mov eax, dword [eax]
add eax, 0xf003f
push eax
push 0
lea eax, [ebp - 0x24]
call fcn.00026f34
mov eax, dword [ebp - 0x24]
call fcn.0001416c
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0xa0854
cmp dword [ebp - 0x1c], 0
je 0xa0854
mov dword [ebp - 0xc], 0x27ff
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x14]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0xa0b34
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0xa0854
cmp dword [ebp - 8], 1
jne 0xa0854
cmp dword [ebp - 0xc], 0xa
jb 0xa0854
lea eax, [ebp - 4]
mov edx, dword [ebp - 0x14]
call fcn.00013ee0
mov eax, dword [ebp - 4]
call fcn.00013fa8
test eax, eax
jle 0xa0ac1
lea eax, [ebp - 0x10]
push eax
mov ecx, 0xa0b44
mov edx, esi
mov eax, dword [ebp - 4]
call fcn.000a004c
mov eax, dword [ebp - 0x10]
call fcn.00013fa8
cmp eax, 0x33
jne 0xa0967
lea eax, [ebp - 0x28]
push eax
mov ecx, 2
mov edx, 1
mov eax, dword [ebp - 0x10]
call fcn.000141b0
mov eax, dword [ebp - 0x28]
mov edx, dword [0x16d268]
call fcn.000140b8
jne 0xa095f
lea eax, [ebp - 0x10]
mov ecx, 8
mov edx, 0x24
call fcn.000141f0
lea edx, [ebp - 0x12c]
xor eax, eax
call fcn.00029850
lea edx, [ebp - 0x12c]
lea eax, [ebp - 0x2c]
call fcn.00013f4c
mov eax, dword [ebp - 0x2c]
lea edx, [ebp - 0x10]
mov ecx, 0x24
call fcn.00014238
lea eax, [ebp - 0x10]
mov ecx, 8
mov edx, 0x2c
call fcn.000141f0
lea edx, [ebp - 0x12c]
xor eax, eax
call fcn.00029850
lea edx, [ebp - 0x12c]
lea eax, [ebp - 0x130]
call fcn.00013f4c
mov eax, dword [ebp - 0x130]
lea edx, [ebp - 0x10]
mov ecx, 0x2c
call fcn.00014238
lea eax, [ebp - 0x10]
mov edx, 0xa0b50
call fcn.00013fb0
lea eax, [ebp - 0x10]
call fcn.00014178
push eax
mov eax, 0x16d26c
call fcn.00014178
mov ecx, 2
pop edx
call fcn.0001291c
jmp 0xa0967
lea eax, [ebp - 0x10]
call fcn.000a0628
mov eax, dword [ebp - 0x10]
call fcn.00013fa8
cmp eax, 0x37
jne 0xa0abc
lea eax, [ebp - 0x134]
push eax
mov ecx, 2
mov edx, 1
mov eax, dword [ebp - 0x10]
call fcn.000141b0
mov eax, dword [ebp - 0x134]
mov edx, dword [0x16d26c]
call fcn.000140b8
jne 0xa0ab5
lea eax, [ebp - 0x18]
push eax
mov ecx, 8
mov edx, 0x1c
mov eax, dword [ebp - 0x10]
call fcn.000141b0
lea eax, [ebp - 0x138]
mov ecx, dword [ebp - 0x18]
mov edx, 0xa0b60
call fcn.00013ff4
mov eax, dword [ebp - 0x138]
lea edx, [ebp - 0x20]
call fcn.00015578
mov ebx, eax
cmp dword [ebp - 0x20], 0
jne 0xa0aae
inc ebx
lea eax, [ebp - 0x10]
mov ecx, 8
mov edx, 0x1c
call fcn.000141f0
lea edx, [ebp - 0x12c]
mov eax, ebx
call fcn.00029850
lea edx, [ebp - 0x12c]
lea eax, [ebp - 0x13c]
call fcn.00013f4c
mov eax, dword [ebp - 0x13c]
lea edx, [ebp - 0x10]
mov ecx, 0x1c
call fcn.00014238
lea eax, [ebp - 0x10]
call fcn.00014178
push eax
mov eax, 0x16d26c
call fcn.00014178
mov ecx, 2
pop edx
call fcn.0001291c
push 0xa0b6c
lea eax, [ebp - 4]
push eax
mov ecx, esi
mov edx, 5
mov eax, dword [ebp - 0x10]
call fcn.0009fc70
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00013fa8
test eax, eax
jle 0xa0ac1
cmp dword [ebp - 0x1c], 0
je 0xa0aa7
mov eax, dword [ebp - 4]
call fcn.00013fa8
inc eax
push eax
mov eax, dword [ebp - 4]
call fcn.0001416c
push eax
push 1
push 0
push 0xa0b34
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegSetValueExA
mov ebx, eax
jmp 0xa0ac1
mov ebx, 5
jmp 0xa0ac1
mov ebx, 3
jmp 0xa0ac1
mov ebx, 2
jmp 0xa0ac1
mov ebx, 1
lea eax, [ebp - 0x14]
mov edx, 0x2800
call fcn.00027218
cmp dword [ebp - 0x1c], 0
je 0xa0add
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
mov dword [ebp - 0x1c], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0xa0b2c
lea eax, [ebp - 0x13c]
mov edx, 4
call fcn.00013d3c
lea eax, [ebp - 0x2c]
mov edx, 3
call fcn.00013d3c
lea eax, [ebp - 0x18]
call fcn.00013d18
lea eax, [ebp - 0x10]
call fcn.00013d18
lea eax, [ebp - 4]
call fcn.00013d18
ret