Function at 0x10007d40
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x254
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 0x10007d80
test byte [0x10010048], 2
jne 0x10008038
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [ebp - 0x234]
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 0x10008080
mov edi, dword [section..bss]
test edi, edi
je 0x100080da
lea eax, [ebp - 0x22e]
xor esi, esi
mov dword [ebp - 0x238], eax
mov eax, dword [sym.imp.advapi32.dll_RegSetValueExW]
lea ebx, [ebp - 0x20c]
mov dword [ebp - 0x23c], eax
jmp 0x10007deb
mov edi, dword [edi + 0x18]
test edi, edi
je 0x10007f30
test byte [edi + 0x2b], 0x40
jne 0x10007de0
mov eax, dword [edi + 8]
test eax, eax
je 0x10007de0
add esi, 1
mov dword [esp + 8], str.Priority_ld
mov dword [esp + 0xc], esi
mov dword [esp + 4], 0x11
mov eax, dword [ebp - 0x238]
mov dword [esp], eax
call fcn.100071d0
mov eax, dword [edi + 0x28]
mov ecx, dword [edi + 8]
mov dword [esp + 8], str._c___s
mov dword [esp + 4], 0x100
mov dword [esp], ebx
not eax
shr eax, 0x1f
mov dword [esp + 0x10], ecx
add eax, 0x30
mov dword [esp + 0xc], eax
call fcn.100071d0
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll__wcslwr]
cmp word [ebp - 0x20c], 0
je 0x100080d0
mov eax, ebx
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x10007e68
sub eax, ebx
add eax, 2
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov eax, dword [ebp - 0x238]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x234]
mov dword [esp], eax
mov eax, dword [ebp - 0x23c]
call eax
sub esp, 0x18
test eax, eax
je 0x10007de0
test byte [0x10010048], 2
je 0x10007de0
mov dword [ebp - 0x244], eax
mov eax, str.SoftwareMicrosoftMultimediaAudio_Compression_ManagerPriority_v4.00
call fcn.10007280
mov dword [ebp - 0x240], eax
mov eax, dword [edi + 8]
call fcn.10007280
mov ecx, dword [ebp - 0x244]
mov dword [esp + 0x18], ecx
mov edx, dword [ebp - 0x240]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.unable_to_write_value_for__s_under_key__s__0x_08lx__n
mov dword [esp + 8], str.MSACM_WriteCurrentPriorities
mov dword [esp + 0x14], edx
mov dword [esp + 4], 0x10010048
mov dword [esp], 1
call fcn.10007510
mov edi, dword [edi + 0x18]
test edi, edi
jne 0x10007deb
lea esi, [esi]
lea esi, [esi]
add esi, 1
mov dword [esp + 0xc], esi
mov dword [esp + 8], str.Priority_ld
mov dword [esp + 4], 0x11
mov eax, dword [ebp - 0x238]
mov dword [esp], eax
call fcn.100071d0
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 fcn.100071d0
cmp word [ebp - 0x20c], 0
je 0x10008101
mov eax, ebx
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x10007f90
sub eax, ebx
add eax, 2
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov eax, dword [ebp - 0x238]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x234]
mov dword [esp], eax
mov eax, dword [ebp - 0x23c]
call eax
sub esp, 0x18
mov ebx, eax
test eax, eax
je 0x10008019
test byte [0x10010048], 2
je 0x10008019
mov eax, str.SoftwareMicrosoftMultimediaAudio_Compression_ManagerPriority_v4.00
call fcn.10007280
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], 0x10010048
mov dword [esp], 1
call fcn.10007510
mov eax, dword [ebp - 0x234]
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 fcn.10007280
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], 0x10010048
mov dword [esp], 1
call fcn.10007510
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
test byte [0x10010048], 2
je 0x10007d78
mov eax, str.SoftwareMicrosoftMultimediaAudio_Compression_ManagerPriority_v4.00
call fcn.10007280
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], 0x10010048
mov dword [esp], 1
call fcn.10007510
jmp 0x10007d78
mov eax, 2
jmp 0x10007e76
lea eax, [ebp - 0x22e]
mov esi, 1
mov dword [ebp - 0x238], eax
mov eax, dword [sym.imp.advapi32.dll_RegSetValueExW]
lea ebx, [ebp - 0x20c]
mov dword [ebp - 0x23c], eax
jmp 0x10007f33
mov eax, 2
jmp 0x10007f9e