Function at 0x4150fd
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x14], ecx
mov dword [ebp - 8], 4
mov dword [ebp - 0xc], 4
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x168], 0x94
mov ecx, dword [ebp - 0x14]
add ecx, 0x168
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [ebp - 0x14]
call fcn.00419550
lea edx, [ebp - 0x10]
push edx
push 1
push 0
push 0x45b8ac
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x415168
jmp 0x4153d3
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x14]
add ecx, 0x288
push ecx
lea edx, [ebp - 8]
push edx
push 0
push 0x45b8d0
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x41519c
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0x288], 7
mov dword [ebp - 0xc], 4
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x14]
add eax, 0x28c
push eax
lea ecx, [ebp - 8]
push ecx
push 0
push str.DriverType
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x4151d6
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x28c], 1
mov dword [ebp - 0xc], 4
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x14]
add edx, 0x290
push edx
lea eax, [ebp - 8]
push eax
push 0
push str.DeviceId
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x415211
mov edx, dword [ebp - 0x14]
mov dword [edx + 0x290], 0
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
push ecx
push 1
push 0
push str.SoftwareMotorolaSMSERIALHelperCallProgress
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x415277
mov dword [ebp - 0xc], 4
lea edx, [ebp - 0xc]
push edx
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 8]
push ecx
push 0
push 0x45b920
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x41526d
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
and ecx, 1
test ecx, ecx
je 0x415295
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x294]
or al, 1
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0x294], eax
mov dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
push 1
push 0
push str.SoftwareMotorolaSMSERIALHelperSpeakerPhone
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4152f1
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 8]
push edx
push 0
push 0x45b958
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x4152e7
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 4]
and edx, 1
test edx, edx
je 0x415310
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x294]
or ecx, 2
mov edx, dword [ebp - 0x14]
mov dword [edx + 0x294], ecx
mov dword [ebp - 4], 0
lea eax, [ebp - 0x10]
push eax
push 1
push 0
push str.SoftwareMotorolaSMSERIALHelperModemOnHold
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4153d3
mov dword [ebp - 0xc], 4
lea ecx, [ebp - 0xc]
push ecx
lea edx, [ebp - 4]
push edx
lea eax, [ebp - 8]
push eax
push 0
push str.Enabled
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x415366
mov dword [ebp - 4], 0
cmp dword [ebp - 4], 0
je 0x41537b
mov edx, dword [ebp - 0x14]
mov dword [edx + 0xc0], 1
jmp 0x415388
mov eax, dword [ebp - 0x14]
mov dword [eax + 0xc0], 0
lea ecx, [ebp - 0xc]
push ecx
lea edx, [ebp - 4]
push edx
lea eax, [ebp - 8]
push eax
push 0
push str.State
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x4153b0
mov dword [ebp - 4], 0
cmp dword [ebp - 4], 2
jbe 0x4153bd
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
mov dword [edx + 0xc4], eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret