Function at 0x4062b0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xa98
mov eax, dword [0x40feb8]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 8], 0x104
mov dword [ebp - 0x678], 0
mov dword [ebp - 0x684], 0
mov dword [ebp - 0x674], 0
mov eax, dword [ebp + 0x10]
push eax
push 1
call fcn.00402ff0
add esp, 8
lea ecx, [ebp - 0xc]
push ecx
push 0x20019
push 0
mov edx, dword [ebp + 0x10]
add edx, 0x618
push edx
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x674], eax
cmp dword [ebp - 0x674], 0
je 0x406338
jmp 0x40653d
lea eax, [ebp - 0x680]
push eax
push 0
push 0
push 0
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0xa98]
push edx
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov dword [ebp - 0x674], eax
cmp dword [ebp - 0x674], 0
jne 0x406533
lea edx, [ebp - 0x678]
push edx
push 0x20019
push 0
lea eax, [ebp - 0xa98]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x674], eax
cmp dword [ebp - 0x674], 0
je 0x4063a4
jmp 0x40653d
mov dword [ebp - 0x684], 0x208
mov word [ebp - 0x890], 0
lea edx, [ebp - 0x684]
push edx
lea eax, [ebp - 0x890]
push eax
lea ecx, [ebp - 4]
push ecx
push 0
push 0x40ae64
mov edx, dword [ebp - 0x678]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4064fe
lea eax, [ebp - 0x890]
push eax
call sub.MSVCR71.dll_wcslen
add esp, 4
test eax, eax
jbe 0x4064fe
mov dword [ebp - 0x684], 0x654
lea ecx, [ebp - 0x684]
push ecx
lea edx, [ebp - 0x670]
push edx
lea eax, [ebp - 4]
push eax
push 0
push 0x40ae7c
mov ecx, dword [ebp - 0x678]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4064c1
push 0x103
lea edx, [ebp - 0x66c]
push edx
mov eax, dword [ebp + 0x10]
add eax, 0xa28
push eax
call sub.MSVCR71.dll_wcsncpy
add esp, 0xc
mov ecx, dword [ebp + 0x10]
mov word [ecx + 0xc2e], 0
push 0x103
lea edx, [ebp - 0x564]
push edx
mov eax, dword [ebp + 0x10]
add eax, 0xe9c
push eax
call sub.MSVCR71.dll_wcsncpy
add esp, 0xc
mov ecx, dword [ebp + 0x10]
mov word [ecx + 0x10a2], 0
push 0x27
lea edx, [ebp - 0x890]
push edx
mov eax, dword [ebp + 0x10]
add eax, 0x10a4
push eax
call sub.MSVCR71.dll_wcsncpy
add esp, 0xc
mov ecx, dword [ebp + 0x10]
mov word [ecx + 0x10f2], 0
mov edx, dword [ebp + 0x10]
push edx
push 1
push SysStringLen
call fcn.00407c70
add esp, 0xc
jmp 0x4064fe
push 0x103
lea eax, [ebp - 0xa98]
push eax
mov ecx, dword [ebp + 0x10]
add ecx, 0xa28
push ecx
call sub.MSVCR71.dll_wcsncpy
add esp, 0xc
mov edx, dword [ebp + 0x10]
mov word [edx + 0xc2e], 0
mov eax, dword [ebp + 0x10]
push eax
push 1
push SysStringLen
call fcn.00406bc0
add esp, 0xc
cmp dword [ebp - 0x678], 0
je 0x40651e
mov ecx, dword [ebp - 0x678]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x678], 0
mov dword [ebp - 8], 0x104
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
jmp 0x406338
mov dword [ebp - 0x674], 0
cmp dword [ebp - 0x678], 0
je 0x406553
mov eax, dword [ebp - 0x678]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0xc], 0
je 0x406563
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x674]
mov ecx, dword [ebp - 0x14]
call fcn.00408ef1
mov esp, ebp
pop ebp
ret