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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeb8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x148], ecx
mov dword [ebp - 0x144], ecx
mov dword [ebp - 0x140], ecx
mov dword [ebp - 0x13c], ecx
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0xa143b
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x18]
call fcn.00013d18
lea eax, [ebp - 0x24]
call fcn.00013d18
lea eax, [ebp - 0x20]
mov edx, 0x2800
call fcn.000271f0
mov dword [ebp - 0xc], 4
xor eax, eax
push ebp
push 0xa1136
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [0x2514d0]
mov eax, dword [eax]
add eax, 0xf003f
push eax
push 0
lea eax, [ebp - 0x30]
call fcn.00026f34
mov eax, dword [ebp - 0x30]
call fcn.0001416c
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
cmp dword [ebp - 0x2c], 0
je 0xa112c
mov dword [ebp - 0x10], 0x27ff
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x20]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0
push 0xa144c
mov eax, dword [ebp - 0x2c]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0xa112c
cmp dword [ebp - 0x1c], 1
jne 0xa112c
cmp dword [ebp - 0x10], 0xa
jb 0xa112c
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 0x20]
call fcn.00013ee0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0xa1140
mov eax, dword [ebp - 0x18]
call fcn.00013fa8
test eax, eax
jle 0xa13da
lea eax, [ebp - 0x24]
push eax
mov ecx, 0xa145c
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x18]
call fcn.000a004c
mov eax, dword [ebp - 0x24]
call fcn.00013fa8
cmp eax, 0x33
jne 0xa1254
lea eax, [ebp - 0x34]
push eax
mov ecx, 2
mov edx, 1
mov eax, dword [ebp - 0x24]
call fcn.000141b0
mov eax, dword [ebp - 0x34]
mov edx, dword [0x16d268]
call fcn.000140b8
jne 0xa124c
lea eax, [ebp - 0x24]
mov ecx, 8
mov edx, 0x24
call fcn.000141f0
lea edx, [ebp - 0x138]
xor eax, eax
call fcn.00029850
lea edx, [ebp - 0x138]
lea eax, [ebp - 0x38]
call fcn.00013f4c
mov eax, dword [ebp - 0x38]
lea edx, [ebp - 0x24]
mov ecx, 0x24
call fcn.00014238
lea eax, [ebp - 0x24]
mov ecx, 8
mov edx, 0x2c
call fcn.000141f0
lea edx, [ebp - 0x138]
xor eax, eax
call fcn.00029850
lea edx, [ebp - 0x138]
lea eax, [ebp - 0x13c]
call fcn.00013f4c
mov eax, dword [ebp - 0x13c]
lea edx, [ebp - 0x24]
mov ecx, 0x2c
call fcn.00014238
lea eax, [ebp - 0x24]
mov edx, 0xa1468
call fcn.00013fb0
lea eax, [ebp - 0x24]
call fcn.00014178
push eax
mov eax, 0x16d26c
call fcn.00014178
mov ecx, 2
pop edx
call fcn.0001291c
jmp 0xa1254
lea eax, [ebp - 0x24]
call fcn.000a0628
mov eax, dword [ebp - 0x24]
call fcn.00013fa8
cmp eax, 0x37
jne 0xa13d3
lea eax, [ebp - 0x140]
push eax
mov ecx, 2
mov edx, 1
mov eax, dword [ebp - 0x24]
call fcn.000141b0
mov eax, dword [ebp - 0x140]
mov edx, dword [0x16d26c]
call fcn.000140b8
jne 0xa13ca
lea eax, [ebp - 0x14]
push eax
mov ecx, 8
mov edx, 0x24
mov eax, dword [ebp - 0x24]
call fcn.000141b0
lea eax, [ebp - 0x144]
mov ecx, dword [ebp - 0x14]
mov edx, 0xa1478
call fcn.00013ff4
mov eax, dword [ebp - 0x144]
lea edx, [ebp - 0x28]
call fcn.00015578
mov ebx, eax
cmp dword [ebp - 0x28], 0
jne 0xa13c1
add ebx, dword [ebp - 4]
lea eax, [ebp - 0x24]
mov ecx, 8
mov edx, 0x24
call fcn.000141f0
lea edx, [ebp - 0x138]
mov eax, ebx
call fcn.00029850
lea edx, [ebp - 0x138]
lea eax, [ebp - 0x148]
call fcn.00013f4c
mov eax, dword [ebp - 0x148]
lea edx, [ebp - 0x24]
mov ecx, 0x24
call fcn.00014238
lea eax, [ebp - 0x24]
call fcn.00014178
push eax
mov eax, 0x16d26c
call fcn.00014178
mov ecx, 2
pop edx
call fcn.0001291c
push 0xa1484
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 8]
mov edx, 5
mov eax, dword [ebp - 0x24]
call fcn.0009fc70
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
mov eax, dword [ebp - 0x18]
call fcn.00013fa8
test eax, eax
jle 0xa13da
xor eax, eax
push ebp
push 0xa13b5
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 0x2c], 0
je 0xa13a8
mov eax, dword [ebp - 0x18]
call fcn.00013fa8
inc eax
push eax
mov eax, dword [ebp - 0x18]
call fcn.0001416c
push eax
push 1
push 0
push 0xa144c
mov eax, dword [ebp - 0x2c]
push eax
call sub.advapi32.dll_RegSetValueExA
xor eax, eax
mov dword [ebp - 0xc], eax
jmp 0xa13ab
mov dword [ebp - 0xc], ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0xa13da
mov dword [ebp - 0xc], 3
jmp 0xa13da
mov dword [ebp - 0xc], 2
jmp 0xa13da
mov dword [ebp - 0xc], 1
lea eax, [ebp - 0x20]
mov edx, 0x2800
call fcn.00027218
cmp dword [ebp - 0x2c], 0
je 0xa13f6
mov eax, dword [ebp - 0x2c]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
mov dword [ebp - 0x2c], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0xa1442
lea eax, [ebp - 0x148]
mov edx, 4
call fcn.00013d3c
lea eax, [ebp - 0x38]
mov edx, 3
call fcn.00013d3c
lea eax, [ebp - 0x24]
call fcn.00013d18
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.00013d3c
ret