Function at 0x4066fc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x406942
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
push ebp
push 0x40691a
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 0xc]
push eax
push 1
push 0
push 0x406954
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x406908
lea eax, [ebp - 0x10]
mov edx, 0xff
call fcn.0040440c
mov dword [ebp - 0x14], 0xff
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x10]
call fcn.004042dc
push eax
push 0
push 0
push 0x40697c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x40683d
mov edx, dword [ebp - 0x14]
dec edx
lea eax, [ebp - 0x10]
call fcn.0040440c
mov edx, dword [ebp - 0x10]
mov eax, 0x40698c
call fcn.004043c4
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jle 0x4067d7
mov ebx, dword [ebp - 0x18]
inc ebx
mov eax, dword [ebp - 0x10]
call fcn.004040e4
sub eax, ebx
jl 0x4067d7
inc eax
mov edx, dword [ebp - 0x10]
cmp byte [edx + ebx - 1], 0x2e
jne 0x4067d3
mov eax, dword [ebp - 0x10]
call fcn.004040e4
mov ecx, eax
lea eax, [ebp - 0x10]
mov edx, ebx
call fcn.0040437c
jmp 0x4067d7
inc ebx
dec eax
jne 0x4067b3
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 0x10]
call fcn.00403004
fstp qword [ebp - 8]
wait
cmp dword [ebp - 0x18], 0
je 0x4067f9
xor eax, eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
jmp 0x4068fd
fld xword [0x406990]
fcomp qword [ebp - 8]
fnstsw ax
sahf
jne 0x40681a
mov dword [ebp - 8], 0x70a3d70a
mov dword [ebp - 4], 0x40100a3d
jmp 0x4068fd
fld xword [0x40699c]
fcomp qword [ebp - 8]
fnstsw ax
sahf
jne 0x4068fd
xor eax, eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0x40100000
jmp 0x4068fd
mov dword [ebp - 0x14], 0xff
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x10]
call fcn.004042dc
push eax
push 0
push 0
push 0x4069a8
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x4068f5
mov edx, dword [ebp - 0x14]
dec edx
lea eax, [ebp - 0x10]
call fcn.0040440c
mov eax, dword [ebp - 0x10]
mov edx, 0x4069b8
call fcn.00404228
jne 0x406894
xor eax, eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0x40080000
jmp 0x4068fd
mov eax, dword [ebp - 0x10]
mov edx, 0x4069c4
call fcn.00404228
jne 0x4068b1
xor eax, eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0x40040000
jmp 0x4068fd
mov eax, dword [ebp - 0x10]
mov edx, 0x4069d0
call fcn.00404228
jne 0x4068ce
xor eax, eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0x40000000
jmp 0x4068fd
mov eax, dword [ebp - 0x10]
mov edx, 0x4069dc
call fcn.00404228
jne 0x4068eb
xor eax, eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0x3ff00000
jmp 0x4068fd
xor eax, eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
jmp 0x4068fd
xor eax, eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
jmp 0x406910
xor eax, eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x40692c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406949
lea eax, [ebp - 0x10]
call fcn.00403f70
ret