Function at 0x40a2e4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], ecx
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403ee0
xor eax, eax
push ebp
push 0x40a549
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, edi
call fcn.00403a70
lea eax, [ebp - 8]
call fcn.00403a70
lea eax, [ebp - 0xc]
call fcn.00403a70
lea eax, [ebp - 0x10]
call fcn.00403a70
mov edx, dword [ebp - 4]
mov eax, 0x40a560
call fcn.00403fd8
mov ebx, eax
test ebx, ebx
jle 0x40a521
lea eax, [ebp - 8]
push eax
mov ecx, ebx
dec ecx
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.00403f50
lea eax, [ebp - 4]
mov ecx, ebx
mov edx, 1
call fcn.00403f90
mov edx, dword [ebp - 4]
mov eax, 0x40a56c
call fcn.00403fd8
mov ebx, eax
test ebx, ebx
jle 0x40a3ab
lea eax, [ebp - 0x10]
push eax
lea edx, [ebx + 1]
mov ecx, 0x7fffffff
mov eax, dword [ebp - 4]
call fcn.00403f50
lea eax, [ebp - 4]
mov ecx, 0x7fffffff
mov edx, ebx
call fcn.00403f90
mov eax, dword [ebp - 4]
call fcn.00403cf0
mov ebx, eax
jmp 0x40a3b8
dec ebx
test ebx, ebx
jle 0x40a3c6
mov eax, dword [ebp - 4]
cmp byte [eax + ebx - 1], 0x5c
jne 0x40a3b7
test ebx, ebx
jle 0x40a3f9
mov eax, dword [ebp - 4]
call fcn.00403cf0
cmp ebx, eax
jge 0x40a3f9
lea eax, [ebp - 0xc]
push eax
lea edx, [ebx + 1]
mov ecx, 0x7fffffff
mov eax, dword [ebp - 4]
call fcn.00403f50
lea eax, [ebp - 4]
mov ecx, 0x7fffffff
mov edx, ebx
call fcn.00403f90
mov eax, 0x40a578
mov dword [ebp - 0x34], eax
mov eax, 0x40a594
mov dword [ebp - 0x30], eax
mov eax, 0x40a5a4
mov dword [ebp - 0x2c], eax
mov eax, 0x40a5c0
mov dword [ebp - 0x28], eax
mov eax, 0x40a5d0
mov dword [ebp - 0x24], eax
mov eax, 0x40a5e4
mov dword [ebp - 0x20], eax
lea edx, [ebp - 0x34]
mov ecx, 5
mov eax, dword [ebp - 8]
call fcn.0040a248
sub eax, 2
jb 0x40a44a
sub eax, 2
jb 0x40a451
sub eax, 2
jb 0x40a458
jmp 0x40a45f
mov esi, 0x80000001
jmp 0x40a461
mov esi, 0x80000002
jmp 0x40a461
mov esi, 0x80000003
jmp 0x40a461
xor esi, esi
test esi, esi
je 0x40a521
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 4]
call fcn.00403ef0
push eax
push esi
call sub.advapi32.dll_RegOpenKeyA
test eax, eax
jne 0x40a521
lea eax, [ebp - 0x14]
mov edx, 0x208
call fcn.00404020
mov eax, dword [ebp - 0x14]
call fcn.00403cf0
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x14]
call fcn.00403ef0
push eax
push 0
push 0
mov eax, dword [ebp - 0xc]
call fcn.00403ef0
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x40a51b
mov edx, dword [ebp - 0x18]
dec edx
lea eax, [ebp - 0x14]
call fcn.00404020
mov edx, dword [ebp - 0x14]
mov eax, 0x40a5f0
call fcn.00403fd8
mov ebx, eax
test ebx, ebx
jle 0x40a4f1
lea eax, [ebp - 0x14]
mov ecx, 0x7fffffff
mov edx, ebx
call fcn.00403f90
mov eax, dword [ebp - 0x14]
call fcn.00403ef0
mov edx, eax
lea eax, [ebp - 0x3c]
call fcn.00403c4c
mov eax, dword [ebp - 0x3c]
lea edx, [ebp - 0x38]
call fcn.00409f70
mov edx, dword [ebp - 0x38]
mov eax, edi
mov ecx, dword [ebp - 0x10]
call fcn.00403d3c
push esi
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a550
lea eax, [ebp - 0x3c]
mov edx, 2
call fcn.00403a94
lea eax, [ebp - 0x14]
mov edx, 5
call fcn.00403a94
ret