Function at 0xa1edc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xa
push 0
push 0
dec ecx
jne 0xa1ee4
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0xa21b9
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov edx, 0xa21d0
call fcn.00013d6c
xor eax, eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
mov eax, dword [0x2514d0]
mov eax, dword [eax]
add eax, case.0x1ffea.3
push eax
push 0
lea eax, [ebp - 0x20]
call fcn.00026f34
mov eax, dword [ebp - 0x20]
call fcn.0001416c
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
mov esi, eax
cmp dword [ebp - 0x18], 0
je 0xa210f
mov dword [ebp - 0xc], 6
xor eax, eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 8]
mov edx, 6
call fcn.000271f0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0
push 0xa21d8
mov eax, dword [ebp - 0x18]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
mov esi, eax
test esi, esi
jne 0xa20a9
cmp dword [ebp - 0x1c], 3
jne 0xa20a9
cmp dword [ebp - 0xc], 6
jne 0xa20a9
xor esi, esi
xor edi, edi
mov eax, 1
jmp 0xa1fc1
mov edx, dword [ebp - 8]
movzx edi, byte [edx + eax - 1]
cmp edi, 1
jl 0xa1fbe
cmp edi, 6
jle 0xa1fc0
mov esi, eax
inc eax
cmp eax, 6
jg 0xa1fca
test esi, esi
je 0xa1fac
test esi, esi
jne 0xa206c
mov eax, 1
lea edx, [ebp - 0x12]
mov byte [edx], al
inc eax
inc edx
cmp eax, 7
jne 0xa1fda
mov eax, 1
mov esi, 6
lea edx, [ebp - 0x12]
mov ecx, dword [ebp - 8]
mov cl, byte [ecx + eax - 1]
cmp cl, byte [edx]
jne 0xa1ffe
mov byte [edx], 0
inc edx
dec esi
jne 0xa1ff0
inc eax
cmp eax, 7
jne 0xa1fe8
xor esi, esi
xor edi, edi
mov eax, 1
jmp 0xa201f
movzx edi, byte [ebp + eax - 0x13]
test edi, edi
je 0xa201e
mov esi, eax
inc eax
cmp eax, 6
jg 0xa2028
test esi, esi
je 0xa2013
test esi, esi
jne 0xa2043
mov edx, 0x16d2b4
mov eax, dword [ebp - 8]
mov ecx, 6
call fcn.0001291c
jmp 0xa2100
push ebp
lea edx, [ebp - 0x28]
mov eax, edi
call fcn.0003006c
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
mov edx, 0xa21f4
call fcn.00013ff4
mov eax, dword [ebp - 0x24]
call fcn.000a1dbc
pop ecx
jmp 0xa2100
push ebp
push 0xa220c
lea edx, [ebp - 0x30]
mov eax, esi
call fcn.0003006c
push dword [ebp - 0x30]
push 0xa2224
lea edx, [ebp - 0x34]
mov eax, edi
call fcn.0003006c
push dword [ebp - 0x34]
lea eax, [ebp - 0x2c]
mov edx, 4
call fcn.00014068
mov eax, dword [ebp - 0x2c]
call fcn.000a1dbc
pop ecx
jmp 0xa2100
push ebp
push 0xa2230
mov eax, dword [ebp - 0x1c]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x3c]
call fcn.0003009c
push dword [ebp - 0x3c]
push 0xa2248
mov eax, dword [ebp - 0xc]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x40]
call fcn.0003009c
push dword [ebp - 0x40]
push 0xa2224
lea edx, [ebp - 0x44]
mov eax, esi
call fcn.00027478
push dword [ebp - 0x44]
lea eax, [ebp - 0x38]
mov edx, 6
call fcn.00014068
mov eax, dword [ebp - 0x38]
call fcn.000a1dbc
pop ecx
lea eax, [ebp - 8]
mov edx, 6
call fcn.00027218
jmp 0xa2133
push ebp
lea edx, [ebp - 0x4c]
mov eax, esi
call fcn.00027478
mov ecx, dword [ebp - 0x4c]
lea eax, [ebp - 0x48]
mov edx, 0xa2254
call fcn.00013ff4
mov eax, dword [ebp - 0x48]
call fcn.000a1e4c
pop ecx
cmp dword [ebp - 0x18], 0
je 0xa2142
mov eax, dword [ebp - 0x18]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
mov dword [ebp - 0x18], eax
mov byte [0x16d2bc], 1
xor eax, eax
mov al, byte [0x16d2b4]
mov dword [ebx], eax
cmp dword [ebx], 1
jl 0xa2161
cmp dword [ebx], 6
jle 0xa219e
push ebp
lea edx, [ebp - 0x54]
mov eax, dword [ebx]
call fcn.0003006c
mov ecx, dword [ebp - 0x54]
lea eax, [ebp - 0x50]
mov edx, 0xa226c
call fcn.00013ff4
mov eax, dword [ebp - 0x50]
call fcn.000a1e4c
pop ecx
mov dword [ebx], 1
mov eax, 1
mov edx, 0x16d2b4
mov byte [edx], al
inc eax
inc edx
cmp eax, 7
jne 0xa2195
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0xa21c0
lea eax, [ebp - 0x54]
mov edx, 0xe
call fcn.00013d3c
ret