Function at 0x40b640
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x11c
push ebx
push ebp
push esi
push edi
mov edi, str.SoftwareSigmaTel
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x28]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x20], vtable.CRegistry.0
mov eax, ecx
mov esi, edi
mov edi, edx
mov byte [esp + 0x28], 0
shr ecx, 2
mov dword [esp + 0x24], SysReAllocStringLen
mov dword [esp + 0x1c], 0
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, str.STSysTray1.0
test ecx, ecx
je 0x40b6f0
mov edi, 0x4135b4
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x28]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x28]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.STSysTray1.0
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [esp + 0x24]
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x28]
push eax
push 0x20019
push 0
push ecx
push edx
mov dword [esp + 0x2c], 4
call edi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x40b76e
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x18]
lea ecx, [esp + 0x14]
push eax
push ecx
push 0
push 0
push str.DDLSupport
push edx
call ebx
mov esi, eax
mov eax, dword [esp + 0x10]
push eax
call ebp
test esi, esi
jne 0x40b76e
mov ecx, dword [esp + 0x130]
mov eax, dword [esp + 0x14]
cmp dword [ecx + 0x174], eax
je 0x40b768
mov dword [esp + 0x1c], 1
mov dword [ecx + 0x174], eax
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x10]
push ecx
push 0x20019
lea edx, [esp + 0x30]
push 0
push edx
push eax
mov dword [esp + 0x2c], 4
call edi
test eax, eax
jne 0x40b7d8
lea ecx, [esp + 0x18]
lea edx, [esp + 0x14]
push ecx
push edx
push eax
push eax
mov eax, dword [esp + 0x20]
push str.SPKSupport
push eax
call ebx
mov ecx, dword [esp + 0x10]
mov esi, eax
push ecx
call ebp
test esi, esi
jne 0x40b7d8
mov ecx, dword [esp + 0x130]
mov eax, dword [esp + 0x14]
cmp dword [ecx + 0x178], eax
je 0x40b7d2
mov dword [esp + 0x1c], 1
mov dword [ecx + 0x178], eax
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x10]
push edx
push 0x20019
lea eax, [esp + 0x30]
push 0
push eax
push ecx
mov dword [esp + 0x2c], 4
call edi
test eax, eax
jne 0x40b854
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x18]
lea eax, [esp + 0x14]
push edx
push eax
push 0
push 0
push str.HPSupport
push ecx
call ebx
mov edx, dword [esp + 0x10]
mov esi, eax
push edx
call ebp
test esi, esi
jne 0x40b854
mov edx, dword [esp + 0x130]
mov eax, dword [esp + 0x14]
mov ecx, dword [edx + 0x17c]
cmp ecx, eax
mov ecx, 1
jne 0x40b841
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
mov dword [edx + 0x17c], eax
pop ebp
mov eax, ecx
pop ebx
add esp, 0x11c
ret
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x11c
ret