Function at 0x402470
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x508
mov ecx, 0x3f
xor eax, eax
push esi
push edi
lea edi, [esp + 0x11]
push 0x1c
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x40
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
jne 0x4024a6
mov eax, 1
pop edi
pop esi
add esp, 0x508
ret
push ebp
push ebx
push 4
push 0
push 0
push 0
mov dword [esi], 0x1c
call dword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsA]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ebp, dword [esp + 0x14]
mov edi, eax
push esi
push 0
push edi
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
je 0x4026e4
push 0
lea eax, [esp + 0x11c]
push 0x400
push eax
push 0
push 7
push esi
push edi
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyA]
test eax, eax
je 0x4026d7
lea ecx, [esp + 0x118]
push str.Modem
push ecx
call fcn.00405a30
add esp, 8
test eax, eax
je 0x4026d7
mov eax, dword [esp + 0x51c]
test eax, eax
je 0x40255d
push 0
lea edx, [esp + 0x11c]
push 0x400
push edx
push 0
push 1
push esi
push edi
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyA]
test eax, eax
je 0x4026cd
lea eax, [esp + 0x118]
push eax
call fcn.00402180
add esp, 4
jmp 0x4026cd
push 0x20019
push 2
push 0
push 1
push esi
push edi
call dword [sym.imp.SETUPAPI.dll_SetupDiOpenDevRegKey]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x4026d7
lea ecx, [esp + 0x10]
lea edx, [esp + 0x18]
push ecx
push edx
push 0
push 0
push str.Manufacturer
push ebp
mov dword [esp + 0x28], 0x100
call ebx
test eax, eax
jne 0x4026d7
lea eax, [esp + 0x18]
push eax
call fcn.00405ab0
mov ecx, dword [0x40a030]
add esp, 4
lea edx, [esp + 0x18]
push ecx
push edx
call fcn.00405a30
add esp, 8
test eax, eax
jne 0x40264f
mov eax, dword [str.LUCENT]
lea ecx, [esp + 0x18]
push eax
push ecx
call fcn.00405a30
add esp, 8
test eax, eax
jne 0x40264f
mov edx, dword [str.AGERE]
lea eax, [esp + 0x18]
push edx
push eax
call fcn.00405a30
add esp, 8
test eax, eax
jne 0x40264f
mov ecx, dword [str.COMPAQ]
lea edx, [esp + 0x18]
push ecx
push edx
call fcn.00405a30
add esp, 8
test eax, eax
jne 0x40264f
mov eax, dword [str.TOSHIBA]
lea ecx, [esp + 0x18]
push eax
push ecx
call fcn.00405a30
add esp, 8
test eax, eax
jne 0x40264f
mov eax, dword [0x40d7c8]
test eax, eax
je 0x4026d7
lea edx, [esp + 0x18]
push 0x40dfe0
push edx
call fcn.00405a30
add esp, 8
test eax, eax
je 0x4026d7
push 0
lea eax, [esp + 0x11c]
push 0x400
push eax
push 0
push 1
push esi
push edi
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyA]
test eax, eax
je 0x40267e
lea ecx, [esp + 0x118]
push ecx
call fcn.00402180
add esp, 4
mov al, byte [0x40eb80]
mov dword [0x40d7ac], 1
cmp al, 1
jne 0x4026af
lea edx, [esp + 0x10]
mov dword [esp + 0x10], 0x100
push edx
push 0x40e7e0
push 0
push 0
push str.ResponsesKeyName
push ebp
call ebx
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0x100
push eax
push 0x40e020
push 0
push 0
push str.InfPath
push ebp
call ebx
push esi
push edi
push 5
call dword [sym.imp.SETUPAPI.dll_SetupDiCallClassInstaller]
push esi
push edi
call dword [sym.imp.SETUPAPI.dll_SetupDiDeleteDeviceInfo]
jmp 0x4024c8
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp ebp, 0xffffffff
je 0x4026f7
push ebp
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [0x40d7ac]
xor eax, eax
pop ebx
pop ebp
test ecx, ecx
pop edi
pop esi
setne al
add esp, 0x508
ret