Function at 0x10008ec0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov eax, 0x130c
mov ebp, esp
push edi
push esi
push ebx
call fcn.1000f2a0
sub esp, eax
mov eax, dword [section..bss]
mov dword [ebp - 0x12d8], eax
test eax, eax
je 0x10008ef0
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [ebp - 0x12c4]
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], eax
lea edi, [ebp - 0x100c]
mov dword [esp + 8], 0
mov dword [esp + 4], str.SoftwareMicrosoftWindows_NTCurrentVersionDrivers32
mov dword [esp], 0x80000002
call dword [sym.imp.advapi32.dll_RegOpenKeyExW]
sub esp, 0x14
test eax, eax
je 0x100092ba
mov dword [esp + 0xc], str.system.ini
mov dword [esp + 8], 0x800
mov dword [esp + 4], edi
mov dword [esp], str.drivers32
call dword [sym.imp.kernel32.dll_GetPrivateProfileSectionW]
sub esp, 0x10
test eax, eax
je 0x10008fe6
cmp word [ebp - 0x100c], 0
je 0x10008fe6
mov ebx, dword [sym.imp.ucrtbase.dll__wcsnicmp]
mov dword [esp + 8], 6
mov dword [esp + 4], 0x10012e84
mov dword [esp], edi
call ebx
test eax, eax
jne 0x10008fc4
mov dword [esp + 4], 0x3d
mov dword [esp], edi
call dword [sym.imp.ucrtbase.dll_wcschr]
mov esi, eax
test eax, eax
je 0x10008fc4
xor eax, eax
mov word [esi], ax
lea eax, [esi + 2]
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.10008870
mov edx, 0x3d
mov word [esi], dx
cmp word [edi], 0
je 0x100094d0
mov eax, edi
add eax, 2
cmp word [eax], 0
jne 0x10008fd0
sub eax, edi
add eax, 2
add edi, eax
cmp word [edi], 0
jne 0x10008f70
mov dword [ebp - 0x12c0], 0
test byte [0x10010048], 8
jne 0x1000949e
mov eax, dword [section..bss]
test eax, eax
je 0x10009021
xor ebx, ebx
lea esi, [esi]
nop
mov eax, dword [eax + 0x18]
mov edi, ebx
add ebx, 1
test eax, eax
jne 0x10009010
cmp ebx, 1
ja 0x10009080
mov eax, dword [ebp - 0x12c0]
test eax, eax
je 0x10009037
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
mov eax, dword [ebp - 0x12d8]
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov eax, dword [0x10016004]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
mov dword [esp + 8], 0
mov dword [esp + 4], str.msacm32.dll
mov dword [esp], str.msacm32.dll
call fcn.10008870
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea esi, [ebx*4]
mov dword [esp + 4], 0
mov dword [esp + 8], esi
mov eax, dword [0x10016004]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
mov dword [ebp - 0x12d8], eax
test eax, eax
je 0x10009592
lea eax, [ebp - 0x12c0]
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_RegOpenKeyW]
sub esp, 0xc
test eax, eax
jne 0x10009533
mov eax, dword [section..bss]
mov ecx, dword [ebp - 0x12d8]
test eax, eax
je 0x100090fc
lea esi, [esi]
nop
mov dword [ecx], eax
mov eax, dword [eax + 0x18]
add ecx, 4
test eax, eax
jne 0x100090f0
mov dword [ebp - 0x12e8], esi
mov esi, dword [ebp - 0x12d8]
xor eax, eax
mov dword [ebp - 0x12e4], ebx
mov ebx, eax
mov dword [ebp - 0x12d4], edi
lea esi, [esi]
nop
mov dword [ebp - 0x12dc], ebx
lea eax, [ebp - 0x12ae]
add ebx, 1
mov dword [esp + 0xc], ebx
mov dword [esp + 8], str.Priority_ld
mov dword [esp + 4], 0x11
mov dword [esp], eax
call fcn.100071d0
lea eax, [ebp - 0x12bc]
mov dword [ebp - 0x12bc], 0x200
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x120c]
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x12ae]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x12c0]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegQueryValueExW]
sub esp, 0x18
test eax, eax
jne 0x10009240
lea eax, [ebp - 0x120c]
mov dword [esp + 4], str.msacm.
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_wcsstr]
test eax, eax
je 0x10009240
xor edi, edi
mov dword [ebp - 0x12e0], ebx
mov ebx, edi
mov edi, eax
jmp 0x100091e1
lea eax, [ebx + 1]
cmp dword [ebp - 0x12d4], ebx
je 0x100094f1
mov ebx, eax
mov dword [esp + 4], edi
mov eax, dword [esi + ebx*4]
mov eax, dword [eax + 8]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll__wcsicmp]
test eax, eax
jne 0x100091d0
mov eax, dword [ebp - 0x12e4]
mov edi, ebx
mov ebx, dword [ebp - 0x12e0]
cmp edi, eax
jae 0x10009240
cmp dword [ebp - 0x12dc], edi
je 0x10009240
mov ecx, dword [esi + ebx*4 - 4]
lea eax, [esi + edi*4]
mov edx, dword [eax]
mov dword [esi + ebx*4 - 4], edx
mov dword [eax], ecx
movzx eax, word [ebp - 0x120c]
cmp ax, 0x31
je 0x1000954b
cmp ax, 0x30
je 0x10009523
lea esi, [esi]
mov ecx, dword [ebp - 0x12dc]
cmp dword [ebp - 0x12d4], ecx
jne 0x10009120
mov esi, dword [ebp - 0x12e8]
xor ecx, ecx
mov edx, dword [ebp - 0x12d8]
mov edi, dword [ebp - 0x12d4]
mov dword [ebp - 0x12d4], esi
mov eax, edx
mov esi, edx
test ecx, ecx
jne 0x10009290
lea esi, [esi]
mov edx, dword [esi]
add eax, 4
mov dword [edx + 0x1c], 0
mov ecx, dword [eax]
mov edx, dword [esi]
mov dword [edx + 0x18], ecx
mov ecx, 1
mov edx, dword [eax]
mov ebx, dword [eax - 4]
mov dword [edx + 0x1c], ebx
xor edx, edx
cmp ecx, edi
jae 0x100092a1
mov edx, dword [eax + 4]
mov ebx, dword [eax]
mov dword [ebx + 0x18], edx
cmp ecx, edi
je 0x100094fc
add ecx, 1
add eax, 4
test ecx, ecx
jne 0x10009290
jmp 0x10009278
lea eax, [ebp - 0x12d0]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x12c4]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegQueryInfoKeyW]
mov ebx, dword [ebp - 0x12d0]
sub esp, 0x30
test ebx, ebx
je 0x10009581
lea eax, [ebp - 0x12cc]
xor ebx, ebx
lea esi, [ebp - 0x12b8]
mov dword [ebp - 0x12d4], eax
lea esi, [esi]
nop
mov dword [ebp - 0x12cc], 0x800
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov eax, dword [ebp - 0x12d4]
mov dword [esp + 8], edi
mov dword [esp + 4], ebx
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x12c4]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegEnumKeyExW]
sub esp, 0x20
test eax, eax
jne 0x100093f0
mov dword [esp + 8], 6
mov dword [esp + 4], 0x10012e84
mov dword [esp], edi
call dword [sym.imp.ucrtbase.dll__wcsnicmp]
test eax, eax
jne 0x100093f0
mov dword [esp + 4], 0x3d
mov dword [esp], edi
call dword [sym.imp.ucrtbase.dll_wcschr]
test eax, eax
je 0x100093f0
xor ecx, ecx
add eax, 2
mov word [eax - 2], cx
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.10008870
lea esi, [esi]
add ebx, 1
cmp ebx, dword [ebp - 0x12d0]
jb 0x10009350
mov dword [ebp - 0x12d0], 0x40
xor ebx, ebx
mov dword [ebp - 0x12cc], 0x1000
lea esi, [ebp - 0x128c]
jmp 0x10009423
add ebx, 1
mov eax, dword [ebp - 0x12d4]
mov dword [esp + 0x18], edi
mov dword [esp + 0x10], 0
mov dword [esp + 8], esi
mov dword [esp + 4], ebx
mov dword [esp + 0x1c], eax
lea eax, [ebp - 0x12c8]
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x12d0]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x12c4]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegEnumValueW]
sub esp, 0x20
test eax, eax
jne 0x100094da
mov dword [esp + 8], 6
mov dword [esp + 4], 0x10012e84
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll__wcsnicmp]
test eax, eax
jne 0x10009420
mov dword [esp + 8], 0
mov dword [esp + 4], edi
mov dword [esp], esi
call fcn.10008870
jmp 0x10009420
mov dword [esp + 0xc], 0x10012c72
mov dword [esp + 8], str.MSACM_ReorderDriversByPriority
mov dword [esp + 4], 0x10010048
mov dword [esp], 3
call fcn.10007510
jmp 0x10008ffd
mov eax, 2
jmp 0x10008fde
mov eax, dword [ebp - 0x12c4]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
jmp 0x10008f30
mov ebx, dword [ebp - 0x12e0]
jmp 0x10009240
mov edx, dword [ebp - 0x12d8]
mov esi, dword [ebp - 0x12d4]
mov eax, dword [edx]
mov dword [section..bss], eax
mov eax, dword [edx + esi - 4]
mov dword [0x10016020], eax
mov eax, dword [ebp - 0x12c0]
jmp 0x10009027
mov eax, dword [esi + ebx*4 - 4]
or dword [eax + 0x28], 0x80000000
jmp 0x10009240
test byte [0x10010048], 8
jne 0x1000955b
mov dword [ebp - 0x12c0], 0
jmp 0x10009037
mov eax, dword [esi + ebx*4 - 4]
and dword [eax + 0x28], 0x7fffffff
jmp 0x10009240
mov dword [esp + 0xc], str.RegOpenKeyW_failed__possibly_key_does_not_exist_yet_n
mov dword [esp + 8], str.MSACM_ReorderDriversByPriority
mov dword [esp + 4], 0x10010048
mov dword [esp], 3
call fcn.10007510
jmp 0x1000953c
lea eax, [ebp - 0x12cc]
mov dword [ebp - 0x12d4], eax
jmp 0x100093ff
test byte [0x10010048], 2
je 0x10009021
mov dword [esp + 0xc], str.out_of_memory_n
mov dword [esp + 8], str.MSACM_ReorderDriversByPriority
mov dword [esp + 4], 0x10010048
mov dword [esp], 1
call fcn.10007510
mov eax, dword [ebp - 0x12c0]
jmp 0x10009027