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

Disassembly:
push ebp
mov eax, 0x132c
mov ebp, esp
push edi
push esi
push ebx
call fcn.660815b0
sub esp, eax
mov esi, dword [0x66090020]
test esi, esi
je 0x66083ad8
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [ebp - 0x12d0]
mov dword [esp + 0xc], 1
lea edi, [ebp - 0x1018]
mov dword [esp + 0x10], eax
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 0x66083e3c
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 0x66083bdc
cmp word [ebp - 0x1018], 0
je 0x66083bdc
mov dword [ebp - 0x12ec], esi
mov ebx, dword [sym.imp.ucrtbase.dll__wcsnicmp]
nop
mov dword [esp + 8], 6
mov dword [esp + 4], 0x6609417c
mov dword [esp], edi
call ebx
test eax, eax
jne 0x66083bb4
mov dword [esp + 4], 0x3d
mov dword [esp], edi
call dword [sym.imp.ucrtbase.dll_wcschr]
mov esi, eax
test eax, eax
je 0x66083bb4
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 sym._MSACM_RegisterDriver
mov edx, 0x3d
mov word [esi], dx
cmp word [edi], 0
je 0x66084070
mov eax, edi
add eax, 2
cmp word [eax], 0
jne 0x66083bc0
sub eax, edi
add eax, 2
add edi, eax
cmp word [edi], 0
jne 0x66083b60
mov esi, dword [ebp - 0x12ec]
mov dword [ebp - 0x12cc], 0
test byte [0x66090080], 8
jne 0x6608401a
mov eax, dword [0x66090020]
xor ebx, ebx
test eax, eax
je 0x66083c0f
nop
mov eax, dword [eax + 0x18]
mov edi, ebx
inc ebx
test eax, eax
jne 0x66083c00
cmp ebx, 1
ja 0x66083c70
mov eax, dword [ebp - 0x12cc]
test eax, eax
je 0x66083c25
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
mov eax, dword [0x66090018]
mov dword [esp + 8], esi
mov dword [esp + 4], 0
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 sym._MSACM_RegisterDriver
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [ebx*4]
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov eax, dword [0x66090018]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
mov esi, eax
test eax, eax
je 0x66084171
lea eax, [ebp - 0x12cc]
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 0x66084112
mov eax, dword [0x66090020]
mov edx, esi
test eax, eax
je 0x66083ce4
lea esi, [esi]
nop
mov dword [edx], eax
mov eax, dword [eax + 0x18]
add edx, 4
test eax, eax
jne 0x66083cd8
mov dword [ebp - 0x12fc], ebx
xor eax, eax
mov dword [ebp - 0x12ec], edi
mov dword [ebp - 0x12f4], esi
mov esi, eax
lea esi, [esi]
mov dword [ebp - 0x12f0], esi
lea eax, [ebp - 0x12ba]
inc esi
mov dword [esp + 0xc], esi
mov dword [esp + 8], str.Priority_ld
mov dword [esp + 4], 0x11
mov dword [esp], eax
call sym._swprintf
lea eax, [ebp - 0x12c8]
mov dword [ebp - 0x12c8], 0x200
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x1218]
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x12ba]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x12cc]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegQueryValueExW]
sub esp, 0x18
test eax, eax
jne 0x66083de0
lea eax, [ebp - 0x1218]
mov dword [esp + 4], str.msacm.
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_wcsstr]
test eax, eax
je 0x66083de0
mov edi, dword [ebp - 0x12f4]
xor ebx, ebx
mov dword [ebp - 0x12f8], esi
mov esi, edi
mov edi, ebx
mov ebx, eax
jmp 0x66083db2
mov edi, eax
mov dword [esp + 4], ebx
mov eax, dword [esi]
mov eax, dword [eax + 8]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll__wcsicmp]
test eax, eax
je 0x6608407a
lea eax, [edi + 1]
add esi, 4
cmp dword [ebp - 0x12ec], edi
jne 0x66083db0
mov esi, dword [ebp - 0x12f8]
mov edx, dword [ebp - 0x12f0]
cmp dword [ebp - 0x12ec], edx
jne 0x66083d00
mov esi, dword [ebp - 0x12f4]
mov edi, dword [ebp - 0x12ec]
xor eax, eax
jmp 0x66083e28
mov ecx, dword [esi + eax*4 - 4]
mov dword [edx + 0x1c], ecx
xor edx, edx
cmp edi, eax
ja 0x66083e36
mov ecx, dword [esi + eax*4]
mov dword [ecx + 0x18], edx
lea edx, [eax + 1]
cmp edi, eax
je 0x660840f8
mov eax, edx
mov edx, dword [esi + eax*4]
test eax, eax
jne 0x66083e08
mov dword [edx + 0x1c], 0
mov edx, dword [esi + eax*4 + 4]
jmp 0x66083e15
lea eax, [ebp - 0x12dc]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x12d0]
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 + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegQueryInfoKeyW]
mov ebx, dword [ebp - 0x12dc]
sub esp, 0x30
test ebx, ebx
je 0x66084160
lea eax, [ebp - 0x12d8]
mov dword [ebp - 0x12f0], esi
xor ebx, ebx
mov dword [ebp - 0x12ec], eax
mov esi, eax
lea esi, [esi]
lea eax, [ebp - 0x12c4]
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], eax
mov eax, dword [ebp - 0x12d0]
mov dword [ebp - 0x12d8], 0x800
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], esi
mov dword [esp + 8], edi
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegEnumKeyExW]
sub esp, 0x20
test eax, eax
jne 0x66083f70
mov dword [esp + 8], 6
mov dword [esp + 4], 0x6609417c
mov dword [esp], edi
call dword [sym.imp.ucrtbase.dll__wcsnicmp]
test eax, eax
jne 0x66083f70
mov dword [esp + 4], 0x3d
mov dword [esp], edi
call dword [sym.imp.ucrtbase.dll_wcschr]
test eax, eax
je 0x66083f70
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 sym._MSACM_RegisterDriver
lea esi, [esi]
inc ebx
cmp dword [ebp - 0x12dc], ebx
ja 0x66083ed0
mov esi, dword [ebp - 0x12f0]
mov dword [ebp - 0x12dc], 0x40
xor ebx, ebx
mov dword [ebp - 0x12d8], 0x1000
mov dword [ebp - 0x12f0], esi
mov esi, dword [ebp - 0x12ec]
lea esi, [esi]
lea eax, [ebp - 0x12d4]
mov dword [esp + 0x1c], esi
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x12dc]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x1298]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x12d0]
mov dword [esp + 0x18], edi
mov dword [esp + 0x10], 0
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegEnumValueW]
sub esp, 0x20
test eax, eax
jne 0x660840db
lea eax, [ebp - 0x1298]
mov dword [esp + 8], 6
mov dword [esp + 4], 0x6609417c
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll__wcsnicmp]
test eax, eax
je 0x66084048
inc ebx
jmp 0x66083fa8
mov dword [esp + 0xc], 0x66092a9e
mov dword [esp + 8], str.MSACM_ReorderDriversByPriority
mov dword [esp + 4], 0x66090080
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_3
jmp 0x66083bf3
lea eax, [ebp - 0x1298]
mov dword [esp + 8], 0
inc ebx
mov dword [esp + 4], edi
mov dword [esp], eax
call sym._MSACM_RegisterDriver
jmp 0x66083fa8
mov eax, 2
jmp 0x66083bce
mov ebx, edi
mov edi, esi
mov esi, dword [ebp - 0x12f8]
cmp dword [ebp - 0x12fc], ebx
jbe 0x66083de0
cmp dword [ebp - 0x12f0], ebx
je 0x66083de0
mov edx, dword [ebp - 0x12f4]
mov ecx, dword [edi]
mov eax, dword [edx + esi*4 - 4]
mov dword [edx + esi*4 - 4], ecx
mov dword [edi], eax
movzx eax, word [ebp - 0x1218]
cmp ax, 0x31
je 0x6608412a
cmp ax, 0x30
jne 0x66083de0
mov eax, dword [ebp - 0x12f4]
mov eax, dword [eax + esi*4 - 4]
or dword [eax + 0x28], 0x80000000
jmp 0x66083de0
mov eax, dword [ebp - 0x12d0]
mov esi, dword [ebp - 0x12f0]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
jmp 0x66083b18
mov eax, dword [esi]
mov dword [0x66090020], eax
mov eax, dword [esi + edi*4]
mov dword [0x6609002c], eax
mov eax, dword [ebp - 0x12cc]
jmp 0x66083c15
test byte [0x66090080], 8
jne 0x6608413a
mov dword [ebp - 0x12cc], 0
jmp 0x66083c25
mov eax, dword [edx + esi*4 - 4]
and dword [eax + 0x28], 0x7fffffff
jmp 0x66083de0
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], 0x66090080
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_3
jmp 0x6608411b
lea eax, [ebp - 0x12d8]
mov dword [ebp - 0x12ec], eax
jmp 0x66083f83
test byte [0x66090080], 2
je 0x66083c0f
mov dword [esp + 0xc], str.out_of_memory_n
mov dword [esp + 8], str.MSACM_ReorderDriversByPriority
mov dword [esp + 4], 0x66090080
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0_3
mov eax, dword [ebp - 0x12cc]
jmp 0x66083c15