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

Disassembly:
sub esp, 0x468
mov eax, dword [0x469b70]
xor eax, esp
mov dword [esp + 0x464], eax
mov eax, dword [esp + 0x46c]
mov ecx, dword [esp + 0x470]
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea edx, [esp + 0x1c]
push edx
push 0x20019
xor ebx, ebx
push ebx
push str.SYSTEMCurrentControlSetServices
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x28], eax
mov dword [esp + 0x38], ecx
call esi
test eax, eax
jne 0x40f9c3
lea eax, [esp + 0x28]
push eax
push 0x20019
push ebx
push str.SYSTEMCurrentControlSetEnum
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
jne 0x40f9c3
push ebp
push edi
push 5
xor edi, edi
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x24], ebx
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x1ff
lea ecx, [esp + 0x79]
push ebx
mov ebp, 0x200
push ecx
mov dword [esp + 0x1c], ebp
mov byte [esp + 0x80], bl
call fcn.00437670
mov ecx, dword [esp + 0x30]
add esp, 0xc
push ebx
push ebx
push ebx
push ebx
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x88]
push eax
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
cmp eax, 0x103
je 0x40f9c1
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
jmp 0x40f770
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x14]
push edx
push 0x20019
push ebx
lea eax, [esp + 0x80]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40f837
lea edx, [esp + 0x10]
push edx
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x78]
push eax
lea ecx, [esp + 0x28]
push ecx
push ebx
push str.Group
push edx
mov dword [esp + 0x28], ebp
call esi
cmp eax, 2
jne 0x40f7c2
mov eax, dword [esp + 0x14]
push eax
jmp 0x40f7dd
lea ecx, [esp + 0x74]
push ecx
push str.Video
call fcn.00437ca7
add esp, 8
test eax, eax
je 0x40f840
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 5
inc edi
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x1ff
lea eax, [esp + 0x79]
push ebx
push eax
mov dword [esp + 0x1c], ebp
mov byte [esp + 0x80], bl
call fcn.00437670
mov eax, dword [esp + 0x30]
add esp, 0xc
push ebx
push ebx
push ebx
push ebx
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x88]
push edx
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
cmp eax, 0x103
jne 0x40f770
jmp 0x40f9c1
mov ecx, dword [esp + 0x24]
jmp 0x40f9ba
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x18]
push edx
push 0x20019
push ebx
push str.Enum
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x10]
push edx
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x28]
push edx
push ebx
push str.Count
push eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], 4
call esi
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x1c]
xor edi, edi
cmp eax, ebx
mov dword [ecx], eax
jle 0x40f9b6
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x1c], edx
lea ebx, [ebx]
push 0x1ff
lea eax, [esp + 0x279]
push ebx
push eax
mov byte [esp + 0x280], bl
call fcn.00437670
push 0x3f
lea ecx, [esp + 0x45]
push ebx
push ecx
mov byte [esp + 0x4c], bl
call fcn.00437670
push edi
lea edx, [esp + 0x50]
push 0x456110
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x24
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x278]
push ecx
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x28]
push edx
push ebx
lea eax, [esp + 0x44]
push eax
push ecx
mov dword [esp + 0x28], ebp
call esi
mov ecx, dword [esp + 0x30]
lea edx, [esp + 0x18]
push edx
push 0x20019
push ebx
lea eax, [esp + 0x280]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea edx, [esp + 0x10]
push edx
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x278]
push eax
lea ecx, [esp + 0x28]
push ecx
push ebx
push str.FriendlyName
push edx
mov dword [esp + 0x28], ebp
call esi
cmp eax, 2
jne 0x40f997
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x278]
push ecx
lea edx, [esp + 0x28]
push edx
push ebx
push str.DeviceDesc
push eax
mov dword [esp + 0x28], ebp
call esi
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x274]
mov byte [esp + ecx + 0x274], bl
mov ecx, dword [esp + 0x1c]
push edx
call fcn.004016d0
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add dword [esp + 0x1c], 4
inc edi
cmp edi, dword [esp + 0x28]
mov dword [esp + 0x18], ebx
jl 0x40f8b0
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop ebp
mov ecx, dword [esp + 0x46c]
pop esi
pop ebx
xor ecx, esp
call fcn.00437657
add esp, 0x468
ret