Function at 0x402a40
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x830
mov eax, dword [0x40d7b0]
push ebx
push ebp
push esi
mov esi, 1
push edi
cmp eax, esi
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0x4d36e96d
mov word [esp + 0x20], 0xe325
mov word [esp + 0x22], 0x11ce
mov byte [esp + 0x24], 0xbf
mov byte [esp + 0x25], 0xc1
mov byte [esp + 0x26], 8
mov byte [esp + 0x27], 0
mov byte [esp + 0x28], 0x2b
mov byte [esp + 0x29], 0xe1
mov byte [esp + 0x2a], 3
mov byte [esp + 0x2b], 0x18
jne 0x402aae
mov eax, dword [str.SystemCurrentControlSetServicesLtmodem5]
lea ecx, [esp + 0x130]
push eax
push ecx
jmp 0x402abd
mov edx, dword [str.SystemCurrentControlSetServicesLtmodem]
lea eax, [esp + 0x130]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x1c
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
jne 0x402ae0
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x830
ret
lea ecx, [esp + 0x2c]
lea edx, [esp + 0x130]
push ecx
push 0x20019
push 0
push edx
push 0x80000002
mov dword [ebx], 0x1c
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x402b47
mov edx, dword [esp + 0x2c]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x340]
push eax
push ecx
push 0
push 0
push str.ModemName
push edx
mov dword [esp + 0x28], 0x280
call edi
test eax, eax
jne 0x402b3c
mov dword [esp + 0x18], esi
mov eax, dword [esp + 0x2c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 2
push 0
lea ecx, [esp + 0x24]
push 0
push ecx
call dword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsA]
mov esi, dword [esp + 0x18]
mov ebp, eax
push ebx
push 0
push ebp
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
je 0x402d4a
push 0x20019
push 2
push 0
push 1
push ebx
push ebp
call dword [sym.imp.SETUPAPI.dll_SetupDiOpenDevRegKey]
mov esi, eax
cmp esi, 0xffffffff
je 0x402d3d
lea edx, [esp + 0x10]
lea eax, [esp + 0x30]
push edx
push eax
push 0
push 0
push str.Manufacturer
push esi
mov dword [esp + 0x28], 0x100
call edi
test eax, eax
jne 0x402d3d
lea ecx, [esp + 0x30]
push ecx
call fcn.00405ab0
mov edx, dword [0x40a030]
add esp, 4
lea eax, [esp + 0x30]
push edx
push eax
call fcn.00405a30
add esp, 8
test eax, eax
jne 0x402cf7
mov ecx, dword [str.LUCENT]
lea edx, [esp + 0x30]
push ecx
push edx
call fcn.00405a30
add esp, 8
test eax, eax
jne 0x402cf7
mov eax, dword [str.AGERE]
lea ecx, [esp + 0x30]
push eax
push ecx
call fcn.00405a30
add esp, 8
test eax, eax
jne 0x402cf7
mov edx, dword [str.COMPAQ]
lea eax, [esp + 0x30]
push edx
push eax
call fcn.00405a30
add esp, 8
test eax, eax
jne 0x402cf7
mov ecx, dword [str.TOSHIBA]
lea edx, [esp + 0x30]
push ecx
push edx
call fcn.00405a30
add esp, 8
test eax, eax
jne 0x402cf7
mov eax, dword [0x40d7c8]
test eax, eax
je 0x402c6f
lea eax, [esp + 0x30]
push 0x40dfe0
push eax
call fcn.00405a30
add esp, 8
test eax, eax
jne 0x402cf7
mov eax, dword [esp + 0x18]
test eax, eax
je 0x402d3d
lea ecx, [esp + 0x10]
lea edx, [esp + 0x5c0]
push ecx
push edx
push 0
push 0
push 0x40a070
push esi
mov dword [esp + 0x28], 0x280
call edi
test eax, eax
jne 0x402d3d
lea eax, [esp + 0x340]
lea ecx, [esp + 0x5c0]
push eax
push ecx
call fcn.00405a30
add esp, 8
test eax, eax
je 0x402d3d
lea edx, [esp + 0x10]
mov dword [esp + 0x10], 0x100
push edx
push 0x40e7e0
push 0
push 0
push str.ResponsesKeyName
push esi
call edi
push ebx
push ebp
push 5
call dword [sym.imp.SETUPAPI.dll_SetupDiCallClassInstaller]
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0x100
push eax
jmp 0x402d2c
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], 0x100
push ecx
push 0x40e7e0
push 0
push 0
push str.ResponsesKeyName
push esi
call edi
push ebx
push ebp
push 5
call dword [sym.imp.SETUPAPI.dll_SetupDiCallClassInstaller]
lea edx, [esp + 0x14]
mov dword [esp + 0x14], 0x100
push edx
push 0x40e020
push 0
push 0
push str.InfPath
push esi
call edi
push ebx
push ebp
call dword [sym.imp.SETUPAPI.dll_SetupDiDeleteDeviceInfo]
jmp 0x402b5e
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp esi, 0xffffffff
je 0x402d5d
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x830
ret