Function at 0x408740
Capabilities:
Query or enumerate registry key

Disassembly:
push 0xffffffffffffffff
push 0x425c49
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x244
push ebx
push ebp
push esi
mov dword [esp + 0x38], ecx
mov esi, 0x100
push edi
lea ecx, [esp + 0x48]
mov dword [esp + 0x2c], esi
mov dword [esp + 0x24], esi
call fcn.0041969c
xor edi, edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x25c], edi
call fcn.0041969c
lea ecx, [esp + 0x18]
mov byte [esp + 0x25c], 1
call fcn.0041969c
lea ecx, [esp + 0x20]
mov byte [esp + 0x25c], 2
call fcn.0041969c
push 0x4e20
lea ecx, [esp + 0x14]
mov byte [esp + 0x260], 3
call fcn.0041a5fa
test eax, eax
jne 0x4087f8
push str.VEN_115DDEV_0103_VEN_8086DEV_1229_VEN_8086DEV_1002_VEN_1011DEV_0019
lea ecx, [esp + 0x18]
call fcn.00419855
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x260], 4
call fcn.004198e0
lea ecx, [esp + 0x14]
mov byte [esp + 0x25c], 3
call fcn.004197e7
lea eax, [esp + 0x28]
push eax
push 0x20019
push edi
push str.EnumPCI
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x408a4b
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov bl, 9
push 0
push 0
push 0
lea ecx, [esp + 0x38]
push 0
lea edx, [esp + 0x64]
mov eax, edi
push ecx
push edx
push eax
mov eax, dword [esp + 0x44]
inc edi
push eax
mov dword [esp + 0x60], edi
call ebp
neg eax
sbb eax, eax
inc eax
mov dword [esp + 0x14], eax
je 0x408a40
lea ecx, [esp + 0x54]
push ecx
lea ecx, [esp + 0x54]
call fcn.00419855
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x260], 5
call fcn.004198e0
lea ecx, [esp + 0x50]
mov byte [esp + 0x25c], 3
call fcn.004197e7
mov edx, dword [esp + 0x18]
mov eax, dword [edx - 8]
cmp eax, 0x11
jl 0x408895
mov eax, 0x11
push eax
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x20]
call fcn.00417a58
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x260], 6
call fcn.004198e0
lea ecx, [esp + 0x30]
mov byte [esp + 0x25c], 3
call fcn.004197e7
mov ecx, dword [esp + 0x20]
push ecx
lea ecx, [esp + 0x14]
call fcn.00417af0
cmp eax, 0xffffffff
je 0x408a33
mov ecx, dword [esp + 0x28]
lea edx, [esp + 0x1c]
push edx
push 0x20019
lea eax, [esp + 0x5c]
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x408a33
mov ecx, dword [esp + 0x1c]
push eax
push eax
push eax
push eax
lea edx, [esp + 0x34]
lea eax, [esp + 0x164]
push edx
push eax
push 0
push ecx
mov esi, 1
call ebp
neg eax
sbb eax, eax
inc eax
mov dword [esp + 0x14], eax
je 0x408a23
mov edx, dword [esp + 0x3c]
lea edi, [edx + 4]
push str.PCI_
lea ecx, [esp + 0x3c]
call fcn.00419855
lea ecx, [esp + 0x54]
lea edx, [esp + 0x34]
push ecx
push eax
push edx
mov byte [esp + 0x268], 7
call fcn.00419a3e
push 0x42e650
push eax
lea eax, [esp + 0x4c]
mov byte [esp + 0x264], 8
push eax
call fcn.00419a3e
lea ecx, [esp + 0x154]
lea edx, [esp + 0x4c]
push ecx
push eax
push edx
mov byte [esp + 0x268], bl
call fcn.00419a3e
mov eax, dword [eax]
mov ecx, dword [edi + 8]
push eax
push ecx
mov ecx, edi
mov byte [esp + 0x264], 0xa
call fcn.00418056
lea ecx, [esp + 0x4c]
mov byte [esp + 0x25c], bl
call fcn.004197e7
lea ecx, [esp + 0x44]
mov byte [esp + 0x25c], 8
call fcn.004197e7
lea ecx, [esp + 0x34]
mov byte [esp + 0x25c], 7
call fcn.004197e7
lea ecx, [esp + 0x38]
mov byte [esp + 0x25c], 3
call fcn.004197e7
push 0
push 0
push 0
lea edx, [esp + 0x30]
push 0
lea ecx, [esp + 0x164]
mov eax, esi
push edx
mov edx, dword [esp + 0x30]
push ecx
push eax
push edx
mov dword [esp + 0x44], 0x100
inc esi
call ebp
neg eax
sbb eax, eax
inc eax
mov dword [esp + 0x14], eax
jne 0x408937
mov edi, dword [esp + 0x40]
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, 0x100
cmp edi, 0x14
mov dword [esp + 0x2c], esi
jb 0x408823
mov ecx, dword [esp + 0x28]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x20]
mov byte [esp + 0x25c], 2
call fcn.004197e7
lea ecx, [esp + 0x18]
mov byte [esp + 0x25c], 1
call fcn.004197e7
lea ecx, [esp + 0x10]
mov byte [esp + 0x25c], 0
call fcn.004197e7
lea ecx, [esp + 0x48]
mov dword [esp + 0x25c], 0xffffffff
call fcn.004197e7
mov ecx, dword [esp + 0x254]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x250
ret