Function at 0x406910
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 [0x410060]
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.00403650
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 0x406998
jmp 0x406b9d
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 0x406b93
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 0x406a04
jmp 0x406b9d
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 0x40b05c
mov edx, dword [ebp - 0x678]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x406b5e
lea eax, [ebp - 0x890]
push eax
call sub.MSVCR71.dll_wcslen
add esp, 4
test eax, eax
jbe 0x406b5e
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 0x40b074
mov ecx, dword [ebp - 0x678]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x406b21
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.00408290
add esp, 0xc
jmp 0x406b5e
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.004071e0
add esp, 0xc
cmp dword [ebp - 0x678], 0
je 0x406b7e
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 0x406998
mov dword [ebp - 0x674], 0
cmp dword [ebp - 0x678], 0
je 0x406bb3
mov eax, dword [ebp - 0x678]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0xc], 0
je 0x406bc3
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.00409559
mov esp, ebp
pop ebp
ret