Function at 0x40a000
Capabilities:
Query or enumerate registry key
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x417f25
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x414
push ebx
mov al, byte [esp + 7]
push ebp
push esi
push edi
xor ebp, ebp
sub esp, 0x10
mov esi, esp
mov dword [esp + 0x54], esp
push ebp
mov ecx, esi
mov byte [esi], al
call fcn.00401d10
mov edi, str.EnumerateRegistryForPCIDevices___n
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.EnumerateRegistryForPCIDevices___n
mov ecx, esi
call fcn.00402330
call fcn.004051f0
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x331]
mov byte [esp + 0x330], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x131]
mov byte [esp + 0x130], 0
rep stosd dword es:[edi], eax
mov esi, dword [esp + 0x444]
push str.Windows_Millenium
stosw word es:[edi], ax
push esi
mov dword [esp + 0x54], ebp
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x2c], ebp
stosb byte es:[edi], al
mov dword [esp + 0x70], 0x100
call fcn.004104a7
add esp, 0x18
test eax, eax
jne 0x40a0d3
lea ecx, [esp + 0x3c]
mov dword [esp + 0x5c], 1
push ecx
push 8
push ebp
push str.EnumPCI
jmp 0x40a139
push str.Windows_Whistler
push esi
call fcn.004104a7
add esp, 8
test eax, eax
je 0x40a124
push str.Windows_2000
push esi
call fcn.004104a7
add esp, 8
test eax, eax
je 0x40a124
push str.Windows_98
push esi
call fcn.004104a7
add esp, 8
test eax, eax
jne 0x40b0b7
lea edx, [esp + 0x3c]
mov dword [esp + 0x5c], 3
push edx
push 8
push ebp
push str.EnumPCI_
jmp 0x40a139
lea eax, [esp + 0x3c]
mov dword [esp + 0x5c], 2
push eax
push 8
push ebp
push str.SYSTEMCurrentControlSetEnumPCI
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebp
jne 0x40b0b7
mov cl, byte [esp + 0x13]
sub esp, 0x10
mov esi, esp
mov dword [esp + 0x48], esp
push ebp
mov byte [esi], cl
mov ecx, esi
call fcn.00401d10
mov edi, str._enumerating_registry_for_devices..._n
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str._enumerating_registry_for_devices..._n
mov ecx, esi
call fcn.00402330
call fcn.004051f0
add esp, 0x10
mov ecx, dword [esp + 0x3c]
lea edx, [esp + 0x58]
lea eax, [esp + 0x120]
push ebp
push ebp
push ebp
push ebp
push edx
push eax
push ebp
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
cmp eax, 0x103
je 0x40b049
lea edx, [esp + 0x120]
push str.VEN_8086
push edx
call fcn.00410431
add esp, 8
test eax, eax
je 0x40a7d3
mov al, byte [esp + 0x13]
push ebp
lea ecx, [esp + 0x64]
mov byte [esp + 0x64], al
call fcn.00401d10
lea edi, [esp + 0x120]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0x124]
push ecx
lea ecx, [esp + 0x68]
call fcn.00402330
mov dl, byte [esp + 0x13]
push ebp
lea ecx, [esp + 0xa4]
mov dword [esp + 0x430], ebp
mov byte [esp + 0xa4], dl
call fcn.00401d10
mov edi, str.device:
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.device:
lea ecx, [esp + 0xa8]
call fcn.00402330
mov eax, dword [0x419218]
lea ecx, [esp + 0x60]
push eax
push ebp
push ecx
lea ecx, [esp + 0xac]
mov byte [esp + 0x438], 1
call fcn.0040f2f0
mov edi, 0x41c2dc
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x41c2dc
lea ecx, [esp + 0xa8]
call fcn.0040f3d0
mov dl, byte [esp + 0xa0]
sub esp, 0x10
mov esi, esp
mov dword [esp + 0x48], esp
push ebp
mov ecx, esi
mov byte [esi], dl
call fcn.00401d10
mov eax, dword [0x419218]
lea ecx, [esp + 0xb0]
push eax
push ebp
push ecx
mov ecx, esi
call fcn.00401b10
call fcn.004051f0
add esp, 0x10
mov esi, 1
lea ecx, [esp + 0xa0]
mov byte [esp + 0x42c], 0
push esi
call fcn.00401d10
mov dl, byte [esp + 0x60]
push ebp
lea ecx, [esp + 0xb4]
mov byte [esp + 0xb4], dl
call fcn.00401d10
mov eax, dword [0x419218]
push eax
lea ecx, [esp + 0x64]
push ebp
push ecx
lea ecx, [esp + 0xbc]
call fcn.00401b10
mov dl, byte [esp + 0x13]
mov dword [esp + 0x40], esi
mov dword [esp + 0x38], esi
mov byte [esp + 0x70], dl
mov dword [esp + 0x74], ebp
mov dword [esp + 0x78], ebp
mov dword [esp + 0x7c], ebp
mov al, byte [esp + 0x13]
mov dword [esp + 0x84], ebp
mov byte [esp + 0x80], al
mov dword [esp + 0x88], ebp
mov dword [esp + 0x8c], ebp
lea ecx, [esp + 0x80]
lea edx, [esp + 0x70]
push ecx
push edx
mov byte [esp + 0x434], 4
call fcn.0040cb70
add esp, 8
mov ebx, dword [esp + 0x74]
mov eax, dword [esp + 0x78]
cmp ebx, eax
jae 0x40a4f2
cmp dword [esp + 0x40], ebp
je 0x40a71a
mov al, byte [ebx]
push ebp
lea ecx, [esp + 0xc4]
mov byte [esp + 0xc4], al
call fcn.00401d10
mov ecx, dword [0x419218]
push ecx
push ebp
push ebx
lea ecx, [esp + 0xcc]
call fcn.00401b10
mov eax, dword [esp + 0xc4]
mov byte [esp + 0x42c], 5
cmp eax, ebp
mov ecx, 0x41921c
je 0x40a3bc
mov ecx, eax
mov eax, dword [esp + 0xb4]
cmp eax, ebp
jne 0x40a3cc
mov eax, 0x41921c
lea edx, [esp + 0x80]
push edx
lea edx, [esp + 0x324]
push edx
mov edx, dword [esp + 0x43c]
push edx
push ecx
push eax
call fcn.00408040
add esp, 0x14
test eax, eax
je 0x40a4cd
mov al, byte [esp + 0x13]
sub esp, 0x10
mov esi, esp
mov dword [esp + 0x24], esp
push ebp
mov ecx, esi
mov byte [esi], al
call fcn.00401d10
mov edi, str.__FOUND_INF_MATCH_n
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.__FOUND_INF_MATCH_n
mov ecx, esi
call fcn.00402330
call fcn.004051f0
mov ecx, dword [esp + 0x444]
mov edi, str.PCI_
xor eax, eax
add esp, 0x10
lea edx, [ecx + 0x2cc]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x40], ebp
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x120]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
mov edx, eax
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 0x14], 1
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov eax, dword [esp + 0x434]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edx, [eax + 0xcc]
lea edi, [esp + 0x320]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 1
lea ecx, [esp + 0xc4]
mov byte [esp + 0x430], 4
call fcn.00401d10
mov eax, dword [esp + 0x78]
add ebx, 0x10
cmp ebx, eax
jb 0x40a36d
cmp dword [esp + 0x40], ebp
je 0x40a71a
mov eax, dword [esp + 0x38]
dec eax
je 0x40a696
dec eax
je 0x40a589
dec eax
je 0x40a516
mov dword [esp + 0x40], ebp
jmp 0x40a705
mov edi, str.SUBSYS
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [0x419218]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push str.SUBSYS
lea ecx, [esp + 0x6c]
call fcn.0040f0d0
cmp eax, ebp
je 0x40a705
push eax
lea ecx, [esp + 0xe4]
push ebp
push ecx
lea ecx, [esp + 0x6c]
call fcn.0040ee90
mov edx, dword [0x419218]
lea ecx, [esp + 0xb0]
push edx
push ebp
push eax
mov byte [esp + 0x438], 0xa
call fcn.00401b10
mov byte [esp + 0x42c], 4
push 1
lea ecx, [esp + 0xe4]
jmp 0x40a700
mov edi, str.SUBSYS
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [0x419218]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push str.SUBSYS
lea ecx, [esp + 0x6c]
call fcn.0040f0d0
mov esi, eax
mov edi, str.REV
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [0x419218]
not ecx
dec ecx
push ecx
push edx
push str.REV
lea ecx, [esp + 0x6c]
call fcn.0040f0d0
cmp esi, ebp
je 0x40a705
cmp eax, ebp
je 0x40a705
mov ecx, dword [esp + 0x68]
lea edx, [esp + 0xd0]
sub ecx, esi
push ecx
push eax
push edx
lea ecx, [esp + 0x6c]
call fcn.0040ee90
push esi
lea eax, [esp + 0x104]
push ebp
push eax
lea ecx, [esp + 0x6c]
mov byte [esp + 0x438], 7
call fcn.0040ee90
lea ecx, [esp + 0xd0]
lea edx, [esp + 0x110]
push ecx
push eax
push edx
mov byte [esp + 0x438], 8
call fcn.0040f660
add esp, 0xc
mov ecx, dword [0x419218]
mov byte [esp + 0x42c], 9
push ecx
push ebp
push eax
lea ecx, [esp + 0xbc]
call fcn.00401b10
push 1
lea ecx, [esp + 0x114]
mov byte [esp + 0x430], 8
call fcn.00401d10
push 1
lea ecx, [esp + 0x104]
mov byte [esp + 0x430], 7
call fcn.00401d10
mov byte [esp + 0x42c], 4
push 1
lea ecx, [esp + 0xd4]
jmp 0x40a700
mov edi, str.REV
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [0x419218]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push str.REV
lea ecx, [esp + 0x6c]
call fcn.0040f0d0
cmp eax, ebp
je 0x40a705
push eax
lea edx, [esp + 0xf4]
push ebp
push edx
lea ecx, [esp + 0x6c]
call fcn.0040ee90
mov ecx, dword [0x419218]
mov byte [esp + 0x42c], 6
push ecx
push ebp
push eax
lea ecx, [esp + 0xbc]
call fcn.00401b10
mov byte [esp + 0x42c], 4
push 1
lea ecx, [esp + 0xf4]
call fcn.00401d10
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x40]
inc ecx
cmp eax, ebp
mov dword [esp + 0x38], ecx
jne 0x40a35d
mov edi, dword [esp + 0x88]
mov esi, dword [esp + 0x84]
cmp esi, edi
mov byte [esp + 0x42c], 3
je 0x40a74a
push ebp
mov ecx, esi
call fcn.0040f790
add esi, 0x10
cmp esi, edi
jne 0x40a734
mov esi, dword [esp + 0x84]
push esi
call fcn.0040f86e
mov edi, dword [esp + 0x7c]
mov esi, dword [esp + 0x78]
add esp, 4
cmp esi, edi
mov dword [esp + 0x84], ebp
mov dword [esp + 0x88], ebp
mov dword [esp + 0x8c], ebp
mov byte [esp + 0x42c], 2
je 0x40a78f
push ebp
mov ecx, esi
call fcn.0040f790
add esi, 0x10
cmp esi, edi
jne 0x40a77c
mov esi, dword [esp + 0x74]
push esi
call fcn.0040f86e
add esp, 4
lea ecx, [esp + 0xb0]
mov dword [esp + 0x74], ebp
mov dword [esp + 0x78], ebp
push 1
mov dword [esp + 0x80], ebp
mov byte [esp + 0x430], 0
call fcn.00401d10
push 1
lea ecx, [esp + 0x64]
mov dword [esp + 0x430], 0xffffffff
call fcn.00401d10
cmp dword [esp + 0x14], ebp
je 0x40aff2
mov dl, byte [esp + 0x13]
sub esp, 0x10
mov ebp, esp
mov dword [esp + 0x24], esp
push 0
mov ecx, ebp
mov byte [ebp], dl
call fcn.00401d10
mov edi, str._installing_driver_s__n
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
mov ecx, ebp
push ebx
call fcn.00402510
test al, al
je 0x40a835
mov edi, dword [ebp + 4]
mov ecx, ebx
mov eax, ecx
mov esi, str._installing_driver_s__n
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, ebp
call fcn.004024f0
call fcn.004051f0
mov eax, dword [esp + 0x6c]
add esp, 0x10
cmp eax, 1
jne 0x40a9d4
mov cl, byte [esp + 0x13]
push 0
mov byte [esp + 0x4c], cl
lea ecx, [esp + 0x4c]
call fcn.00401d10
mov edi, str.ME_install:
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
lea ecx, [esp + 0x4c]
push ebx
call fcn.00402510
test al, al
je 0x40a8a1
mov edi, dword [esp + 0x4c]
mov ecx, ebx
mov edx, ecx
mov esi, str.ME_install:
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x4c]
call fcn.004024f0
mov ebx, dword [esp + 0x434]
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 0x42c], 0xb
lea ebp, [ebx + 0x2cc]
mov edi, ebp
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push ebp
lea ecx, [esp + 0x50]
call fcn.0040f3d0
mov edi, 0x41c794
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x41c794
lea ecx, [esp + 0x50]
call fcn.0040f3d0
add ebx, 0xcc
or ecx, 0xffffffff
mov edi, ebx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push ebx
lea ecx, [esp + 0x50]
call fcn.0040f3d0
mov edi, 0x41c2dc
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x50]
repne scasb al, byte es:[edi]
mov eax, dword [0x419218]
not ecx
dec ecx
sub eax, edx
mov esi, ecx
cmp eax, esi
ja 0x40a930
call fcn.0040f879
test esi, esi
jbe 0x40a97d
mov ecx, dword [esp + 0x50]
push 0
lea eax, [ecx + esi]
lea ecx, [esp + 0x4c]
push eax
mov dword [esp + 0x1c], eax
call fcn.00402510
test al, al
je 0x40a97d
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x50]
mov ecx, esi
mov esi, 0x41c2dc
lea edi, [eax + edx]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x14]
mov ecx, edx
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x4c]
call fcn.004024f0
mov cl, byte [esp + 0x48]
sub esp, 0x10
mov esi, esp
mov dword [esp + 0x24], esp
push 0
mov byte [esi], cl
mov ecx, esi
call fcn.00401d10
mov edx, dword [0x419218]
lea eax, [esp + 0x58]
push edx
push 0
push eax
mov ecx, esi
call fcn.00401b10
call fcn.004051f0
add esp, 0x10
lea ecx, [esp + 0x48]
mov dword [esp + 0x42c], 0xffffffff
push 1
call fcn.00401d10
push ebp
push ebx
call fcn.00408a00
jmp 0x40afe5
cmp eax, 2
jne 0x40ad60
mov cl, byte [esp + 0x13]
push 0
mov byte [esp + 0x2c], cl
lea ecx, [esp + 0x2c]
call fcn.00401d10
mov edi, str.2K_XP_install:
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x2c]
push ebp
call fcn.00402510
test al, al
je 0x40aa36
mov edi, dword [esp + 0x2c]
mov ecx, ebp
mov edx, ecx
mov esi, str.2K_XP_install:
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x30], ebp
mov byte [eax + ebp], 0
mov ecx, dword [esp + 0x434]
xor eax, eax
mov edx, dword [0x419218]
mov dword [esp + 0x42c], 0xc
lea esi, [ecx + 0x2cc]
or ecx, 0xffffffff
mov edi, esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
mov ecx, dword [esp + 0x30]
sub edx, ecx
cmp edx, ebp
ja 0x40aa71
call fcn.0040f879
test ebp, ebp
jbe 0x40aab1
mov eax, dword [esp + 0x30]
push 0
lea ecx, [esp + 0x2c]
lea ebx, [eax + ebp]
push ebx
call fcn.00402510
test al, al
je 0x40aab1
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
push ebx
lea edi, [edx + ecx]
mov ecx, ebp
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x2c]
call fcn.004024f0
mov edi, 0x41c794
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x30]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
mov ecx, dword [0x419218]
sub ecx, edx
cmp ecx, esi
ja 0x40aad7
call fcn.0040f879
test esi, esi
jbe 0x40ab1c
mov edx, dword [esp + 0x30]
push 0
lea ecx, [esp + 0x2c]
lea ebx, [edx + esi]
push ebx
call fcn.00402510
test al, al
je 0x40ab1c
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
push ebx
lea edi, [ecx + eax]
mov ecx, esi
mov edx, ecx
mov esi, 0x41c794
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x2c]
call fcn.004024f0
mov eax, dword [esp + 0x434]
or ecx, 0xffffffff
mov edx, dword [esp + 0x30]
lea esi, [eax + 0xcc]
xor eax, eax
mov edi, esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
mov ecx, dword [0x419218]
sub ecx, edx
cmp ecx, ebp
ja 0x40ab4c
call fcn.0040f879
test ebp, ebp
jbe 0x40ab8c
mov edx, dword [esp + 0x30]
push 0
lea ecx, [esp + 0x2c]
lea ebx, [edx + ebp]
push ebx
call fcn.00402510
test al, al
je 0x40ab8c
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
push ebx
lea edi, [ecx + eax]
mov ecx, ebp
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x2c]
call fcn.004024f0
mov edi, 0x41c2dc
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x30]
repne scasb al, byte es:[edi]
mov eax, dword [0x419218]
not ecx
dec ecx
sub eax, edx
mov esi, ecx
cmp eax, esi
ja 0x40abb1
call fcn.0040f879
test esi, esi
jbe 0x40abf6
mov eax, dword [esp + 0x30]
push 0
lea ecx, [esp + 0x2c]
lea ebx, [eax + esi]
push ebx
call fcn.00402510
test al, al
je 0x40abf6
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
push ebx
lea edi, [edx + ecx]
mov ecx, esi
mov eax, ecx
mov esi, 0x41c2dc
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x2c]
call fcn.004024f0
mov cl, byte [esp + 0x28]
sub esp, 0x10
mov esi, esp
mov dword [esp + 0x24], esp
push 0
mov byte [esi], cl
mov ecx, esi
call fcn.00401d10
mov edx, dword [0x419218]
lea eax, [esp + 0x38]
push edx
push 0
push eax
mov ecx, esi
call fcn.00401b10
call fcn.004051f0
add esp, 0x10
or ebx, 0xffffffff
lea ecx, [esp + 0x28]
mov dword [esp + 0x42c], ebx
push 1
call fcn.00401d10
mov ecx, dword [esp + 0x438]
mov eax, dword [esp + 0x434]
push 0
push eax
mov edx, dword [ecx]
call dword [edx + 8]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x221]
mov byte [esp + 0x220], 0
push edx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push esi
lea ecx, [esp + 0x228]
push str._2K_XP_UpdateDriver___returned:__x______GetLastError___x_n
push ecx
stosb byte es:[edi], al
call dword [sym.imp.USER32.dll_wsprintfA]
mov dl, byte [esp + 0x23]
add esp, 0x10
lea ecx, [esp + 0x90]
mov byte [esp + 0x90], dl
push 0
call fcn.00401d10
lea edi, [esp + 0x220]
mov ecx, ebx
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x94]
push ebp
call fcn.00402510
test al, al
je 0x40ad01
mov edi, dword [esp + 0x94]
mov ecx, ebp
mov eax, ecx
lea esi, [esp + 0x220]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x94]
mov dword [esp + 0x98], ebp
mov byte [ecx + ebp], 0
mov dl, byte [esp + 0x90]
sub esp, 0x10
mov esi, esp
mov dword [esp + 0x24], esp
push 0
mov ecx, esi
mov dword [esp + 0x440], 0xd
mov byte [esi], dl
call fcn.00401d10
mov eax, dword [0x419218]
lea ecx, [esp + 0xa0]
push eax
push 0
push ecx
mov ecx, esi
call fcn.00401b10
call fcn.004051f0
add esp, 0x10
lea ecx, [esp + 0x90]
mov dword [esp + 0x42c], ebx
push 1
call fcn.00401d10
jmp 0x40afe8
cmp eax, 3
jne 0x40afe8
mov edi, str.98_install:
or ecx, 0xffffffff
xor eax, eax
xor ebp, ebp
repne scasb al, byte es:[edi]
mov dl, byte [esp + 0x13]
mov dword [esp + 0x1c], ebp
not ecx
dec ecx
mov byte [esp + 0x18], dl
push ecx
push str.98_install:
lea ecx, [esp + 0x20]
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebp
call fcn.00402330
mov eax, dword [esp + 0x434]
or ecx, 0xffffffff
mov edx, dword [esp + 0x20]
mov dword [esp + 0x42c], 0xe
lea ebx, [eax + 0x2cc]
xor eax, eax
mov edi, ebx
mov dword [esp + 0x14], ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
mov ecx, dword [0x419218]
sub ecx, edx
cmp ecx, esi
ja 0x40addc
call fcn.0040f879
cmp esi, ebp
jbe 0x40ae1e
mov edx, dword [esp + 0x20]
push 0
lea ecx, [esp + 0x1c]
lea ebp, [edx + esi]
push ebp
call fcn.00402510
test al, al
je 0x40ae1e
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
push ebp
lea edi, [ecx + eax]
mov ecx, esi
mov edx, ecx
mov esi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x1c]
call fcn.004024f0
mov edi, 0x41c794
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x20]
repne scasb al, byte es:[edi]
mov eax, dword [0x419218]
not ecx
dec ecx
sub eax, edx
mov esi, ecx
cmp eax, esi
ja 0x40ae43
call fcn.0040f879
test esi, esi
jbe 0x40ae8a
mov ecx, dword [esp + 0x20]
push 0
lea ebp, [ecx + esi]
lea ecx, [esp + 0x1c]
push ebp
call fcn.00402510
test al, al
je 0x40ae8a
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
mov ecx, esi
mov esi, 0x41c794
lea edi, [eax + edx]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x20], ebp
mov byte [eax + ebp], 0
mov ecx, dword [esp + 0x434]
xor eax, eax
mov edx, dword [0x419218]
lea ebx, [ecx + 0xcc]
or ecx, 0xffffffff
mov edi, ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
mov ecx, dword [esp + 0x20]
sub edx, ecx
cmp edx, esi
ja 0x40aeba
call fcn.0040f879
test esi, esi
jbe 0x40aefe
mov eax, dword [esp + 0x20]
push 0
lea ecx, [esp + 0x1c]
lea ebp, [eax + esi]
push ebp
call fcn.00402510
test al, al
je 0x40aefe
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
lea edi, [edx + ecx]
mov ecx, esi
mov eax, ecx
mov esi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x20], ebp
mov byte [ecx + ebp], 0
mov edi, 0x41c2dc
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x20]
repne scasb al, byte es:[edi]
mov eax, dword [0x419218]
not ecx
dec ecx
sub eax, edx
mov esi, ecx
cmp eax, esi
ja 0x40af23
call fcn.0040f879
test esi, esi
jbe 0x40af6a
mov edx, dword [esp + 0x20]
push 0
lea ecx, [esp + 0x1c]
lea ebp, [edx + esi]
push ebp
call fcn.00402510
test al, al
je 0x40af6a
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
lea edi, [ecx + eax]
mov ecx, esi
mov edx, ecx
mov esi, 0x41c2dc
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x20], ebp
mov byte [eax + ebp], 0
mov cl, byte [esp + 0x18]
sub esp, 0x10
mov esi, esp
xor edi, edi
mov dword [esp + 0x48], esp
push edi
mov byte [esi], cl
mov ecx, esi
call fcn.00401d10
mov edx, dword [0x419218]
lea eax, [esp + 0x28]
push edx
push edi
push eax
mov ecx, esi
call fcn.00401b10
call fcn.004051f0
mov ecx, dword [esp + 0x2c]
add esp, 0x10
cmp ecx, edi
mov dword [esp + 0x42c], 0xffffffff
je 0x40afce
mov al, byte [ecx - 1]
test al, al
je 0x40afc4
cmp al, 0xff
je 0x40afc4
dec al
mov byte [ecx - 1], al
jmp 0x40afce
dec ecx
push ecx
call fcn.0040f86e
add esp, 4
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x1c], edi
push ecx
push ebx
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
call fcn.004090a0
add esp, 8
mov dword [esp + 0x14], 0
xor ebp, ebp
mov edx, dword [esp + 0x44]
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x120]
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [esp + 0x320]
push ebp
push ebp
rep stosd dword es:[edi], eax
push ebp
lea eax, [esp + 0x64]
push ebp
lea ecx, [esp + 0x130]
inc edx
push eax
push ecx
mov dword [esp + 0x5c], edx
push edx
mov edx, dword [esp + 0x58]
push edx
mov dword [esp + 0x78], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
cmp eax, 0x103
jne 0x40a1af
mov al, byte [esp + 0x13]
sub esp, 0x10
mov ebx, esp
mov edi, str._finished_enumerating_registry_for_devices_n
or ecx, 0xffffffff
mov dword [esp + 0x54], esp
mov byte [ebx], al
xor eax, eax
mov dword [ebx + 4], ebp
mov dword [ebx + 8], ebp
mov dword [ebx + 0xc], ebp
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
mov ecx, ebx
push ebp
call fcn.00402510
test al, al
je 0x40b0a0
mov edi, dword [ebx + 4]
mov ecx, ebp
mov edx, ecx
mov esi, str._finished_enumerating_registry_for_devices_n
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, ebx
call fcn.004024f0
call fcn.004051f0
mov eax, dword [esp + 0x4c]
add esp, 0x10
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x40b0ba
or eax, 0xffffffff
mov ecx, dword [esp + 0x424]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x420
ret