Function at 0x40a4e0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x40ff8b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x588
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x8c], vtable.CRegistry.0
mov byte [esp + 0x94], 0
mov edi, str.SoftwareSigmaTel
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x94]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov ebp, SysReAllocStringLen
mov eax, ecx
mov esi, edi
mov edi, edx
mov dword [esp + 0x90], ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov bl, 1
and ecx, 3
mov dword [esp + 0x5a0], 0
rep movsb byte es:[edi], byte [esi]
mov ecx, str.STacGUI
mov byte [esp + 0x13], bl
test ecx, ecx
je 0x40a5c1
mov edi, 0x4135b4
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x94]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x94]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.STacGUI
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [esp + 0x90]
lea eax, [esp + 0x14]
push eax
push 0x20019
lea ecx, [esp + 0x9c]
push 0
push ecx
push edx
mov dword [esp + 0x2c], 4
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40a62f
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x18]
lea ecx, [esp + 0x38]
push eax
push ecx
push 0
push 0
push str.HPSlaveNid
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x40a62f
mov edx, dword [esp + 0x5a8]
mov ecx, dword [esp + 0x38]
mov dword [edx + 0x8e0], ecx
mov edi, str.SoftwareSigmaTel
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x94]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x90], ebp
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, str.GlobalStateSTSysTray1.0
test ecx, ecx
je 0x40a6c8
mov edi, 0x4135b4
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x94]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea edx, [esp + 0x94]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.GlobalStateSTSysTray1.0
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [esp + 0x90]
lea eax, [esp + 0x14]
push eax
push 0x20019
lea ecx, [esp + 0x9c]
push 0
push ecx
push edx
mov dword [esp + 0x2c], 4
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40a738
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x18]
lea ecx, [esp + 0x34]
push eax
push ecx
push 0
push 0
push str.HPSlave
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x40a738
mov esi, dword [esp + 0x5a8]
mov ecx, dword [esp + 0x34]
mov dword [esi + 0x8dc], ecx
jmp 0x40a73f
mov esi, dword [esp + 0x5a8]
mov edx, dword [esi + 0x8dc]
mov eax, dword [esi + 0x8e0]
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
push edx
push eax
lea ecx, [esp + 0x1a0]
push str.Redirected_HP_Port__04x:_State___02d
push ecx
call edi
lea edx, [esp + 0x1a8]
push 1
push edx
call fcn.004029d0
mov ecx, dword [esi + 0x1e4]
xor eax, eax
add esp, 0x18
xor ebp, ebp
cmp ecx, eax
jbe 0x40a97c
add esi, 0x2d8
mov dword [esp + 0x14], esi
jmp 0x40a794
xor eax, eax
mov esi, dword [esi - 0xf0]
mov dword [esp + 0x28], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
push esi
lea eax, [esp + 0x40]
push str.JackDeviceType_x
push eax
call edi
mov eax, dword [esp + 0x9c]
add esp, 0xc
lea ecx, [esp + 0x30]
lea edx, [esp + 0x94]
push ecx
push 0x20019
push 0
push edx
push eax
mov dword [esp + 0x30], 4
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40a81d
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x34]
push edx
push eax
push eax
lea eax, [esp + 0x4c]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 0x30]
mov ebx, eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x40a81d
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x28]
mov dword [ecx], eax
jmp 0x40a822
mov byte [esp + 0x13], 0
push esi
lea edx, [esp + 0x40]
push str.JackDeviceSeq_x
push edx
call edi
mov edx, dword [esp + 0x9c]
add esp, 0xc
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x94]
push eax
push 0x20019
push 0
push ecx
push edx
mov dword [esp + 0x30], 4
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40a8a3
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x20]
push eax
mov eax, dword [esp + 0x30]
push ecx
push 0
lea edx, [esp + 0x48]
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp + 0x2c]
mov ebx, eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x40a8a3
mov eax, dword [esp + 0x5a8]
mov dl, byte [esp + 0x20]
mov byte [eax + ebp + 0x358], dl
jmp 0x40a8a8
mov byte [esp + 0x13], 0
push esi
lea ecx, [esp + 0x40]
push str.JackMuteState_x
push ecx
call edi
mov ecx, dword [esp + 0x9c]
add esp, 0xc
lea edx, [esp + 0x18]
lea eax, [esp + 0x94]
push edx
push 0x20019
push 0
push eax
push ecx
mov dword [esp + 0x30], 4
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40a923
lea edx, [esp + 0x1c]
lea eax, [esp + 0x24]
push edx
mov edx, dword [esp + 0x1c]
push eax
push 0
lea ecx, [esp + 0x48]
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ebx, eax
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x40a923
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x24]
mov dword [ecx + 0x584], edx
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x28]
push ebp
push eax
push ecx
push edx
push esi
lea eax, [esp + 0x1ac]
push str.Port__04x:_Devicetype___02d__Sequence___02d__Mute___02d__Index____02d
push eax
call edi
lea ecx, [esp + 0x1b4]
push 1
push ecx
call fcn.004029d0
mov edx, dword [esp + 0x5cc]
mov esi, dword [esp + 0x38]
add esp, 0x24
inc ebp
mov eax, dword [edx + 0x1e4]
add esi, 4
cmp ebp, eax
mov dword [esp + 0x14], esi
jb 0x40a792
mov al, byte [esp + 0x13]
jmp 0x40a97e
mov al, bl
mov ecx, dword [esp + 0x598]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x594
ret