Function at 0x40c4d0
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x41000b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x51c
push ebx
push ebp
push esi
push edi
xor edi, edi
mov dword [esp + 0x20], vtable.CRegistry.0
mov dword [esp + 0x24], edi
mov byte [esp + 0x28], 0
mov ebx, dword [esp + 0x53c]
mov ebp, dword [esp + 0x540]
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
push ebx
push ebp
lea eax, [esp + 0x134]
push str.STacSV:_SVMutePin____d_refs_on_port__04x
push eax
mov dword [esp + 0x544], edi
call esi
lea ecx, [esp + 0x13c]
push 1
push ecx
call fcn.004029d0
add esp, 0x18
cmp ebp, edi
lea eax, [esp + 0x18]
lea ecx, [esp + 0x10]
setne dl
push eax
mov byte [esp + 0x16], dl
mov edx, dword [esp + 0x548]
push edi
push edi
push 3
push ecx
push 0x2f2838
lea ecx, [edx + 0xa98]
mov dword [esp + 0x30], edi
mov byte [esp + 0x28], 1
mov byte [esp + 0x29], bl
call fcn.0040f002
test eax, eax
push ebx
je 0x40c5a9
push ebp
lea eax, [esp + 0x134]
push str.STacSV:_SVMutePin_failed_to_set_mute__d_on_port__04x
push eax
call esi
lea ecx, [esp + 0x13c]
push 1
push ecx
call fcn.004029d0
add esp, 0x18
xor al, al
jmp 0x40c6d6
lea edx, [esp + 0x130]
push str.JackMuteState_x
push edx
call esi
mov edi, str.SoftwareSigmaTel
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x28]
mov eax, ecx
mov esi, edi
mov edi, edx
mov dword [esp + 0x24], 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 0x40c64c
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 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 + 0x28]
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, 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 + 0x24]
lea eax, [esp + 0x14]
push 0
push eax
push 0
push 0xf003f
push 0
push 0x415e2c
lea ecx, [esp + 0x40]
push 0
push ecx
push edx
mov dword [esp + 0x40], ebp
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x40c6aa
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x1c]
push 4
push eax
push 4
lea ecx, [esp + 0x138]
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x40c6d4
push ebx
lea ecx, [esp + 0x130]
push str.STacSV:_SVMutePin_failed_to_write_registry_value__port__04x
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
lea edx, [esp + 0x138]
push 1
push edx
call fcn.004029d0
add esp, 0x14
xor al, al
jmp 0x40c6d6
mov al, 1
mov ecx, dword [esp + 0x52c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x528
ret