Function at 0x408280
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x40ff2b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x5c0
push ebx
push ebp
push esi
push edi
mov ebp, ecx
mov dword [esp + 0x44], vtable.CRegistry.0
mov byte [esp + 0x4c], 0
mov edi, str.SoftwareSigmaTel
or ecx, 0xffffffff
xor eax, eax
xor ebx, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x4c]
mov eax, ecx
mov esi, edi
mov edi, edx
mov dword [esp + 0x48], SysReAllocStringLen
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov dword [esp + 0x5d8], ebx
and ecx, 3
mov dword [esp + 0x18], ebx
rep movsb byte es:[edi], byte [esi]
mov ecx, str.STSysTray1.0
mov dword [esp + 0x1c], ebx
test ecx, ecx
mov dword [esp + 0x3c], 1
je 0x408358
mov edi, 0x4135b4
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x4c]
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 + 0x4c]
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 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 + 0x48]
lea eax, [esp + 0x14]
push eax
push 0x20019
lea ecx, [esp + 0x54]
push ebx
push ecx
push edx
mov dword [esp + 0x24], 4
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4083a6
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x3c]
push eax
push ecx
push ebx
push ebx
push str.HdmiGateId
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x3c]
lea edx, [esp + 0x14]
push ebx
push edx
push ebx
push 0xf003f
push ebx
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x5c]
push 0x415e2c
lea eax, [esp + 0x64]
push ebx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4083fa
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x10]
push 4
push edx
push 4
push ebx
push str.HdmiGateId
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [esp + 0x3c]
lea eax, [esp + 0x20]
push edx
push eax
mov ecx, ebp
call fcn.004080c0
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
push ecx
push edx
push eax
lea ecx, [esp + 0x15c]
push str.HdmiUpdate_Before:_PcmBitsAndSampleRates__0x_x_Ac3BitsAndSampleRates__0x_x_Formats__0x_x
push ecx
call ebx
lea edx, [esp + 0x164]
push 1
push edx
call fcn.004029d0
mov eax, dword [esp + 0x5fc]
xor edi, edi
add esp, 0x1c
cmp eax, edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x20], edi
je 0x4084c3
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x18]
push eax
lea edx, [esp + 0x44]
push ecx
lea eax, [esp + 0x558]
push edx
push eax
call fcn.00402ca0
mov byte [esp + 0x20], al
mov eax, 0xaaaaaaab
mul dword [esp + 0x50]
mov ecx, dword [esp + 0x2c]
mov edi, edx
mov edx, dword [esp + 0x28]
add esp, 0x10
and ecx, 0xffff
and edx, 0xffff
push ecx
push edx
lea eax, [esp + 0x158]
push str.HdmiUpdate_manufacturer_id__0x_x__product_id__0x_x
push eax
shr edi, 1
call ebx
lea ecx, [esp + 0x160]
push 1
push ecx
call fcn.004029d0
add esp, 0x18
jmp 0x4084cc
mov byte [esp + 0x10], 0
mov dword [esp + 0x40], edi
mov esi, dword [esp + 0x10]
mov al, byte [esp + 0x10]
and esi, 0xff
test al, al
mov dword [esp + 0x14], esi
mov dword [ebp + 0x314], esi
je 0x408604
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov eax, dword [ebp + 0x324]
or edx, 1
or ecx, 0x20040
mov dword [esp + 0x20], edx
test eax, eax
mov dword [esp + 0x24], ecx
je 0x40851a
mov eax, ecx
or eax, 0xc0020
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x40]
test eax, eax
jbe 0x4085d2
test edi, edi
jbe 0x4085d2
lea esi, [esp + 0x551]
mov cl, byte [esi - 1]
mov dl, byte [esi + 1]
mov al, byte [esi]
push edx
shr ecx, 3
and ecx, 0xf
push eax
push ecx
lea edx, [esp + 0x15c]
push str.HdmiUpdate_Format___0x_x_byte2__0x_x_byte3__0x_x
push edx
call ebx
lea eax, [esp + 0x164]
push 1
push eax
call fcn.004029d0
mov al, byte [esi - 1]
add esp, 0x1c
shr eax, 3
and eax, 0xf
dec eax
je 0x40859d
dec eax
jne 0x4085c4
mov cl, byte [esi]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
and ecx, 0x7f
or ch, 0xe0
and edx, 0xfffff80f
shl ecx, 4
or al, 2
or ecx, edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x28], ecx
jmp 0x4085c4
mov eax, dword [esp + 0x20]
mov cl, byte [esi]
or al, 1
and ecx, 0x7f
mov dword [esp + 0x20], eax
mov al, byte [esi + 1]
and eax, 7
shl eax, 0xd
or eax, ecx
mov ecx, dword [esp + 0x24]
shl eax, 4
or ecx, eax
mov dword [esp + 0x24], ecx
add esi, 3
dec edi
jne 0x408535
mov esi, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
push edx
push eax
push ecx
lea edx, [esp + 0x15c]
push str.HdmiUpdate_After:_PcmBitsAndSampleRates__0x_x_Ac3BitsAndSampleRates__0x_x_Formats__0x_x
push edx
call ebx
lea eax, [esp + 0x164]
push 1
push eax
call fcn.004029d0
add esp, 0x1c
jmp 0x408613
or eax, 0xffffffff
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x20], eax
cmp esi, dword [esp + 0x34]
je 0x40865f
mov eax, esi
test eax, eax
mov dword [esp + 0x34], eax
je 0x40863e
lea ecx, [esp + 0x150]
push str.HdmiUpdate:_Enabling_HDMI_output_n
push ecx
call ebx
lea edx, [esp + 0x158]
push 1
push edx
jmp 0x408657
lea eax, [esp + 0x150]
push str.HdmiUpdate:_Disabling_HDMI_output_n
push eax
call ebx
lea ecx, [esp + 0x158]
push 1
push ecx
call fcn.004029d0
add esp, 0x10
lea edx, [esp + 0x20]
mov ecx, ebp
push edx
call fcn.00408200
mov al, byte [esp + 0x10]
test al, al
je 0x4088a2
mov edx, dword [esp + 0x18]
cmp word [ebp + 0x328], dx
jne 0x408696
mov ax, word [ebp + 0x32a]
cmp ax, word [esp + 0x1c]
je 0x4088a2
mov eax, dword [ebp + 0x338]
test eax, eax
je 0x4086eb
mov ecx, dword [eax]
push 0
push 0
push eax
call dword [ecx + 0xc]
test eax, eax
jl 0x4086c2
lea edx, [esp + 0x150]
push str.HdmiUpdate_reset_mode_to_PCM
push edx
call ebx
add esp, 8
jmp 0x4086d5
push eax
lea eax, [esp + 0x154]
push str.HdmiUpdate_reset_mode_failed__hr___x
push eax
call ebx
add esp, 0xc
lea ecx, [esp + 0x150]
push 1
push ecx
call fcn.004029d0
mov edx, dword [esp + 0x20]
add esp, 8
mov eax, dword [ebp + 0x33c]
test eax, eax
je 0x408743
mov edx, dword [eax]
push 0xbb80
push 0
push eax
call dword [edx + 0x14]
test eax, eax
jl 0x40871a
lea eax, [esp + 0x150]
push str.HdmiUpdate_reset_rate_to_48K
push eax
call ebx
add esp, 8
jmp 0x40872d
push eax
lea ecx, [esp + 0x154]
push str.HdmiUpdate_reset_rate_to_48K_failed__hr___x
push ecx
call ebx
add esp, 0xc
lea edx, [esp + 0x150]
push 1
push edx
call fcn.004029d0
mov edx, dword [esp + 0x20]
add esp, 8
mov ax, word [esp + 0x1c]
mov edi, str.SoftwareSigmaTel
mov word [ebp + 0x32a], ax
or ecx, 0xffffffff
xor eax, eax
mov word [ebp + 0x328], dx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea ebp, [esp + 0x4c]
mov eax, ecx
mov esi, edi
mov edi, ebp
mov dword [esp + 0x48], SysReAllocStringLen
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 0x4087e7
mov edi, 0x4135b4
or ecx, 0xffffffff
xor eax, eax
lea ebp, [esp + 0x4c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, ebp
mov ebp, ecx
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 ebp, [esp + 0x4c]
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 edi, ebp
mov ebp, ecx
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]
and edx, 0xffff
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x38], edx
lea edx, [esp + 0x10]
push 0
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push edx
push 0
push 0xf003f
push 0
push 0x415e2c
lea eax, [esp + 0x64]
push 0
push eax
push ecx
call esi
test eax, eax
jne 0x408843
lea edx, [esp + 0x38]
push 4
push edx
push 4
push eax
mov eax, dword [esp + 0x20]
push str.HdmiManfId
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x10]
push 0
push eax
push 0
and edx, 0xffff
push 0xf003f
push 0
mov dword [esp + 0x4c], edx
mov edx, dword [esp + 0x5c]
push 0x415e2c
lea ecx, [esp + 0x64]
push 0
push ecx
push edx
call esi
test eax, eax
jne 0x40889e
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x38]
push 4
push eax
push 4
push 0
push str.HdmiProdId
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [esp + 0x14]
push esi
lea eax, [esp + 0x154]
push str.HdmiUpdate_attached___d
push eax
call ebx
lea ecx, [esp + 0x15c]
push 1
push ecx
call fcn.004029d0
mov ecx, dword [esp + 0x5e4]
add esp, 0x14
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5cc
ret 4