Function at 0x401b70
Capabilities:
Delete registry key
Delete registry value
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x218
mov ecx, dword [str.SystemCurrentControlSetServicesClassModem]
lea eax, [esp]
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push eax
push 0x20019
push 0
push ecx
push 0x80000002
call edi
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x401d68
xor edi, edi
lea edx, [esp + 0x20]
lea ecx, [esp + 0x14]
push edx
push 0
push 0
push 0
lea edx, [esp + 0xb8]
mov eax, edi
push ecx
push edx
push eax
mov eax, dword [esp + 0x2c]
push eax
mov dword [esp + 0x3c], 0x100
mov dword [esp + 0x34], pe_nt_image_headers32
inc edi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x401d57
mov ecx, dword [str.SystemCurrentControlSetServicesClassModem]
lea edx, [esp + 0x28]
push ecx
push edx
call ebp
lea eax, [esp + 0x28]
push 0x40aa58
push eax
call esi
lea ecx, [esp + 0xa8]
lea edx, [esp + 0x28]
push ecx
push edx
call esi
lea eax, [esp + 0x18]
lea ecx, [esp + 0x28]
push eax
push 0x20019
push 0
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401d47
mov eax, dword [0x40d7ac]
test eax, eax
je 0x401d3a
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x1c]
lea eax, [esp + 0x128]
push edx
push eax
push 0
push 0
push str.Manufacturer
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x401d47
lea edx, [esp + 0x128]
push edx
call fcn.00405ab0
mov eax, dword [0x40a030]
add esp, 4
lea ecx, [esp + 0x128]
push eax
push ecx
call fcn.00405a30
add esp, 8
test eax, eax
jne 0x401d33
mov edx, dword [str.LUCENT]
lea eax, [esp + 0x128]
push edx
push eax
call fcn.00405a30
add esp, 8
test eax, eax
jne 0x401d33
mov ecx, dword [str.AGERE]
lea edx, [esp + 0x128]
push ecx
push edx
call fcn.00405a30
add esp, 8
test eax, eax
jne 0x401d33
mov eax, dword [str.COMPAQ]
lea ecx, [esp + 0x128]
push eax
push ecx
call fcn.00405a30
add esp, 8
test eax, eax
jne 0x401d33
mov edx, dword [str.TOSHIBA]
lea eax, [esp + 0x128]
push edx
push eax
call fcn.00405a30
add esp, 8
test eax, eax
jne 0x401d33
mov eax, dword [0x40d7c8]
test eax, eax
je 0x401d47
lea ecx, [esp + 0x128]
push 0x40dfe0
push ecx
call fcn.00405a30
add esp, 8
test eax, eax
je 0x401d47
lea edx, [esp + 0x28]
push edx
jmp 0x401d3f
lea eax, [esp + 0x28]
push eax
push 0x80000002
call ebx
dec edi
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x401bb6
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ecx, dword [str.EnumMODEMWAVE]
lea eax, [esp + 0x10]
push eax
push 0x20019
push 0
push ecx
push 0x80000002
call edi
test eax, eax
jne 0x401df8
lea edx, [esp + 0x20]
lea eax, [esp + 0x14]
push edx
mov edx, dword [esp + 0x14]
push 0
push 0
push 0
lea ecx, [esp + 0xb8]
push eax
push ecx
push 0
push edx
mov dword [esp + 0x34], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x401ded
mov eax, dword [str.EnumMODEMWAVE]
lea ecx, [esp + 0x28]
push eax
push ecx
call ebp
lea edx, [esp + 0x28]
push 0x40aa58
push edx
call esi
lea eax, [esp + 0xa8]
lea ecx, [esp + 0x28]
push eax
push ecx
call esi
lea edx, [esp + 0x28]
push edx
push 0x80000002
call ebx
jmp 0x401d86
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [str.EnumMODEMWAVE]
push ecx
push 0x80000002
call ebx
mov eax, dword [0x40a21c]
test eax, eax
je 0x401e7f
mov edx, dword [str.SoftwareLucent]
push edx
push 0x80000002
call ebx
mov eax, dword [str.SoftwareAgere]
push eax
push 0x80000002
call ebx
mov ecx, dword [str.SoftwareToshibaSoftModem]
push ecx
push 0x80000002
call ebx
mov eax, dword [str.SoftwareToshiba]
lea edx, [esp + 0x10]
push edx
push 0xf003f
push 0
push eax
push 0x80000002
call edi
test eax, eax
jne 0x401e7f
mov ecx, dword [esp + 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push str.CleanUpRegistry
push ecx
call esi
mov edx, dword [esp + 0x10]
push str.CabsFlag
push edx
call esi
mov eax, dword [esp + 0x10]
push str.ModemType
push eax
call esi
mov ecx, dword [str.SoftwareLucent_Technologies]
push ecx
push 0x80000002
call ebx
mov edx, dword [str.SoftwareGenericSoftModemUninstallInfo]
push edx
push 0x80000002
call ebx
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x218
ret