Function at 0x4031f0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x544
mov ecx, 0x3f
xor eax, eax
push esi
push edi
lea edi, [esp + 0x44d]
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
je 0x403518
push ebp
push ebx
push 4
push 0
push 0
push 0
mov dword [esi], 0x1c
call dword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsA]
mov ebp, dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyA]
mov ebx, eax
push esi
push 0
push ebx
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
je 0x40350f
push 0
lea eax, [esp + 0x58]
push 0x400
push eax
push 0
push 7
push esi
push ebx
call ebp
test eax, eax
je 0x403502
lea ecx, [esp + 0x54]
push ecx
call fcn.00405ab0
add esp, 4
lea edx, [esp + 0x54]
push str.MODEM
push edx
call fcn.00405a30
add esp, 8
test eax, eax
jne 0x403355
lea eax, [esp + 0x54]
push 0x40aabc
push eax
call fcn.00405a30
add esp, 8
test eax, eax
jne 0x403355
lea ecx, [esp + 0x54]
push str.BIOS
push ecx
call fcn.00405a30
add esp, 8
test eax, eax
jne 0x403355
lea edx, [esp + 0x54]
push str.ISAPNP
push edx
call fcn.00405a30
add esp, 8
test eax, eax
jne 0x403355
lea eax, [esp + 0x54]
push str.PCMCIA
push eax
call fcn.00405a30
add esp, 8
test eax, eax
jne 0x403355
lea ecx, [esp + 0x54]
push str.ACPI
push ecx
call fcn.00405a30
add esp, 8
test eax, eax
jne 0x403355
lea edx, [esp + 0x54]
push str.UNKNOWN
push edx
call fcn.00405a30
add esp, 8
test eax, eax
je 0x403502
push 0
lea eax, [esp + 0x58]
push 0x400
push eax
push 0
push 1
push esi
push ebx
call ebp
test eax, eax
je 0x403347
lea ecx, [esp + 0x54]
push ecx
call fcn.00405ab0
add esp, 4
push str.11C1
lea edx, [esp + 0x58]
jmp 0x40342e
push 0x20019
push 2
push 0
push 1
push esi
push ebx
call dword [sym.imp.SETUPAPI.dll_SetupDiOpenDevRegKey]
mov edi, eax
cmp edi, 0xffffffff
je 0x403502
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push ecx
push 0
push 0
push str.Manufacturer
push edi
mov dword [esp + 0x28], 0x40
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x403444
lea edx, [esp + 0x14]
push edx
call fcn.00405ab0
mov eax, dword [0x40a030]
add esp, 4
lea ecx, [esp + 0x14]
push eax
push ecx
call fcn.00405a30
add esp, 8
test eax, eax
jne 0x4034f8
mov edx, dword [str.LUCENT]
lea eax, [esp + 0x14]
push edx
push eax
call fcn.00405a30
add esp, 8
test eax, eax
jne 0x4034f8
mov ecx, dword [str.AGERE]
lea edx, [esp + 0x14]
push ecx
push edx
call fcn.00405a30
add esp, 8
test eax, eax
jne 0x4034f8
mov eax, dword [str.TOSHIBA]
lea ecx, [esp + 0x14]
push eax
push ecx
call fcn.00405a30
add esp, 8
test eax, eax
jne 0x4034f8
mov eax, dword [0x40d7c8]
test eax, eax
je 0x403502
push 0x40dfe0
lea edx, [esp + 0x18]
push edx
call fcn.00405a30
add esp, 8
test eax, eax
je 0x403502
jmp 0x4034f8
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push ecx
push 0
push 0
push str.ProviderName
push edi
mov dword [esp + 0x28], 0x40
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x403502
lea edx, [esp + 0x14]
push edx
call fcn.00405ab0
mov eax, dword [0x40a030]
add esp, 4
lea ecx, [esp + 0x14]
push eax
push ecx
call fcn.00405a30
add esp, 8
test eax, eax
jne 0x4034f8
mov edx, dword [str.LUCENT]
lea eax, [esp + 0x14]
push edx
push eax
call fcn.00405a30
add esp, 8
test eax, eax
jne 0x4034f8
mov ecx, dword [str.AGERE]
lea edx, [esp + 0x14]
push ecx
push edx
call fcn.00405a30
add esp, 8
test eax, eax
jne 0x4034f8
mov eax, dword [str.TOSHIBA]
lea ecx, [esp + 0x14]
push eax
push ecx
call fcn.00405a30
add esp, 8
test eax, eax
jne 0x4034f8
mov eax, dword [0x40d7c8]
test eax, eax
je 0x403502
lea edx, [esp + 0x14]
push 0x40dfe0
push edx
call fcn.00405a30
add esp, 8
test eax, eax
je 0x403502
push esi
push ebx
push 5
call dword [sym.imp.SETUPAPI.dll_SetupDiCallClassInstaller]
push esi
push ebx
call dword [sym.imp.SETUPAPI.dll_SetupDiDeleteDeviceInfo]
jmp 0x40323d
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop ebx
pop ebp
pop edi
pop esi
add esp, 0x544
ret