Function at 0x4060a8
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.004031d8
xor eax, eax
push ebp
push 0x40630d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, edi
call fcn.00402ea8
lea eax, [ebp - 8]
call fcn.00402ea8
lea eax, [ebp - 0xc]
call fcn.00402ea8
lea eax, [ebp - 0x10]
call fcn.00402ea8
mov edx, dword [ebp - 4]
mov eax, 0x406324
call fcn.004032b4
mov ebx, eax
test ebx, ebx
jle 0x4062e5
lea eax, [ebp - 8]
push eax
mov ecx, ebx
dec ecx
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.0040322c
lea eax, [ebp - 4]
mov ecx, ebx
mov edx, 1
call fcn.0040326c
mov edx, dword [ebp - 4]
mov eax, 0x406330
call fcn.004032b4
mov ebx, eax
test ebx, ebx
jle 0x40616f
lea eax, [ebp - 0x10]
push eax
lea edx, [ebx + 1]
mov ecx, 0x7fffffff
mov eax, dword [ebp - 4]
call fcn.0040322c
lea eax, [ebp - 4]
mov ecx, 0x7fffffff
mov edx, ebx
call fcn.0040326c
mov eax, dword [ebp - 4]
call fcn.00403024
mov ebx, eax
jmp 0x40617c
dec ebx
test ebx, ebx
jle 0x40618a
mov eax, dword [ebp - 4]
cmp byte [eax + ebx - 1], 0x5c
jne 0x40617b
test ebx, ebx
jle 0x4061bd
mov eax, dword [ebp - 4]
call fcn.00403024
cmp ebx, eax
jge 0x4061bd
lea eax, [ebp - 0xc]
push eax
lea edx, [ebx + 1]
mov ecx, 0x7fffffff
mov eax, dword [ebp - 4]
call fcn.0040322c
lea eax, [ebp - 4]
mov ecx, 0x7fffffff
mov edx, ebx
call fcn.0040326c
mov eax, 0x40633c
mov dword [ebp - 0x34], eax
mov eax, 0x406358
mov dword [ebp - 0x30], eax
mov eax, 0x406368
mov dword [ebp - 0x2c], eax
mov eax, 0x406384
mov dword [ebp - 0x28], eax
mov eax, 0x406394
mov dword [ebp - 0x24], eax
mov eax, 0x4063a8
mov dword [ebp - 0x20], eax
lea edx, [ebp - 0x34]
mov ecx, 5
mov eax, dword [ebp - 8]
call fcn.0040600c
sub eax, 2
jb 0x40620e
sub eax, 2
jb 0x406215
sub eax, 2
jb 0x40621c
jmp 0x406223
mov esi, 0x80000001
jmp 0x406225
mov esi, 0x80000002
jmp 0x406225
mov esi, 0x80000003
jmp 0x406225
xor esi, esi
test esi, esi
je 0x4062e5
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 4]
call fcn.004031e8
push eax
push esi
call sub.advapi32.dll_RegOpenKeyA
test eax, eax
jne 0x4062e5
lea eax, [ebp - 0x14]
mov edx, 0x208
call fcn.004032fc
mov eax, dword [ebp - 0x14]
call fcn.00403024
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x14]
call fcn.004031e8
push eax
push 0
push 0
mov eax, dword [ebp - 0xc]
call fcn.004031e8
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x4062df
mov edx, dword [ebp - 0x18]
dec edx
lea eax, [ebp - 0x14]
call fcn.004032fc
mov edx, dword [ebp - 0x14]
mov eax, 0x4063b4
call fcn.004032b4
mov ebx, eax
test ebx, ebx
jle 0x4062b5
lea eax, [ebp - 0x14]
mov ecx, 0x7fffffff
mov edx, ebx
call fcn.0040326c
mov eax, dword [ebp - 0x14]
call fcn.004031e8
mov edx, eax
lea eax, [ebp - 0x3c]
call fcn.00402fd0
mov eax, dword [ebp - 0x3c]
lea edx, [ebp - 0x38]
call fcn.00405d14
mov edx, dword [ebp - 0x38]
mov eax, edi
mov ecx, dword [ebp - 0x10]
call fcn.00403070
push esi
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406314
lea eax, [ebp - 0x3c]
mov edx, 2
call fcn.00402ecc
lea eax, [ebp - 0x14]
mov edx, 5
call fcn.00402ecc
ret