Function at 0x66084f50
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x26c
mov dword [esp + 4], str.SoftwareMicrosoftMultimediaAudio_Compression_ManagerPriority_v4.00
mov dword [esp], 0x80000001
call dword [sym.imp.advapi32.dll_RegDeleteKeyW]
sub esp, 8
test eax, 0xfffffffd
je 0x66084f90
test byte [0x66090080], 2
jne 0x66085248
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [ebp - 0x240]
mov dword [esp + 4], str.SoftwareMicrosoftMultimediaAudio_Compression_ManagerPriority_v4.00
mov dword [esp + 8], eax
mov dword [esp], 0x80000001
call dword [sym.imp.advapi32.dll_RegCreateKeyW]
sub esp, 0xc
mov ebx, eax
test eax, eax
jne 0x66085290
mov edi, dword [0x66090020]
test edi, edi
je 0x660852ea
lea eax, [ebp - 0x23a]
xor esi, esi
lea ebx, [ebp - 0x218]
mov dword [ebp - 0x24c], eax
mov eax, dword [sym.imp.advapi32.dll_RegSetValueExW]
mov dword [ebp - 0x250], eax
jmp 0x66084ffb
mov edi, dword [edi + 0x18]
test edi, edi
je 0x66085140
test byte [edi + 0x2b], 0x40
jne 0x66084ff0
mov eax, dword [edi + 8]
test eax, eax
je 0x66084ff0
mov eax, dword [ebp - 0x24c]
inc esi
mov dword [esp + 8], str.Priority_ld
mov dword [esp + 0xc], esi
mov dword [esp + 4], 0x11
mov dword [esp], eax
call sym._swprintf
mov eax, dword [edi + 0x28]
mov ecx, dword [edi + 8]
mov dword [esp], ebx
mov dword [esp + 8], str._c___s
not eax
mov dword [esp + 0x10], ecx
shr eax, 0x1f
mov dword [esp + 4], 0x100
add eax, 0x30
mov dword [esp + 0xc], eax
call sym._swprintf
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll__wcslwr]
cmp word [ebp - 0x218], 0
je 0x660852e0
mov eax, ebx
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x66085078
sub eax, ebx
add eax, 2
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x24c]
mov dword [esp + 0x10], ebx
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x240]
mov dword [esp + 0xc], 1
mov dword [esp], eax
mov eax, dword [ebp - 0x250]
mov dword [esp + 8], 0
call eax
sub esp, 0x18
test eax, eax
je 0x66084ff0
test byte [0x66090080], 2
je 0x66084ff0
mov dword [ebp - 0x258], eax
mov eax, str.SoftwareMicrosoftMultimediaAudio_Compression_ManagerPriority_v4.00
call sym._wine_dbgstr_wn.constprop.0
mov dword [ebp - 0x254], eax
mov eax, dword [edi + 8]
call sym._wine_dbgstr_wn.constprop.0
mov ecx, dword [ebp - 0x258]
mov edx, dword [ebp - 0x254]
mov dword [esp + 0xc], str.unable_to_write_value_for__s_under_key__s__0x_08lx__n
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], edx
mov dword [esp + 8], str.MSACM_WriteCurrentPriorities
mov dword [esp + 4], 0x66090080
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0_3
mov edi, dword [edi + 0x18]
test edi, edi
jne 0x66084ffb
lea esi, [esi]
lea esi, [esi]
inc esi
mov eax, dword [ebp - 0x24c]
mov dword [esp + 0xc], esi
mov dword [esp + 8], str.Priority_ld
mov dword [esp + 4], 0x11
mov dword [esp], eax
call sym._swprintf
mov dword [esp + 0x10], str.Internal_PCM_Converter
mov dword [esp + 0xc], 0x31
mov dword [esp + 8], str._c___s
mov dword [esp + 4], 0x100
mov dword [esp], ebx
call sym._swprintf
cmp word [ebp - 0x218], 0
je 0x66085311
mov eax, ebx
lea esi, [esi]
nop
add eax, 2
cmp word [eax], 0
jne 0x660851a0
sub eax, ebx
add eax, 2
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x24c]
mov dword [esp + 0x10], ebx
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x240]
mov dword [esp + 0xc], 1
mov dword [esp], eax
mov eax, dword [ebp - 0x250]
mov dword [esp + 8], 0
call eax
sub esp, 0x18
mov ebx, eax
test eax, eax
je 0x66085229
test byte [0x66090080], 2
je 0x66085229
mov eax, str.SoftwareMicrosoftMultimediaAudio_Compression_ManagerPriority_v4.00
call sym._wine_dbgstr_wn.constprop.0
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.unable_to_write_value_for_Internal_PCM_Converter_under_key__s__0x_08lx__n
mov dword [esp + 8], str.MSACM_WriteCurrentPriorities
mov dword [esp + 4], 0x66090080
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0_3
mov eax, dword [ebp - 0x240]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov ebx, eax
mov eax, str.SoftwareMicrosoftMultimediaAudio_Compression_ManagerPriority_v4.00
call sym._wine_dbgstr_wn.constprop.0
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.unable_to_remove_current_key__s__0x_08lx____priority_changes_wont_persist_past_application_end._n
mov dword [esp + 8], str.MSACM_WriteCurrentPriorities
mov dword [esp + 4], 0x66090080
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0_3
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
test byte [0x66090080], 2
je 0x66084f88
mov eax, str.SoftwareMicrosoftMultimediaAudio_Compression_ManagerPriority_v4.00
call sym._wine_dbgstr_wn.constprop.0
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.unable_to_create_key__s__0x_08lx____priority_changes_wont_persist_past_application_end._n
mov dword [esp + 8], str.MSACM_WriteCurrentPriorities
mov dword [esp + 4], 0x66090080
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0_3
jmp 0x66084f88
mov eax, 2
jmp 0x66085086
lea eax, [ebp - 0x23a]
mov esi, 1
lea ebx, [ebp - 0x218]
mov dword [ebp - 0x24c], eax
mov eax, dword [sym.imp.advapi32.dll_RegSetValueExW]
mov dword [ebp - 0x250], eax
jmp 0x66085141
mov eax, 2
jmp 0x660851ae