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

Disassembly:
push ebp
mov eax, 0x1308
mov ebp, esp
push edi
push esi
push ebx
call fcn.10001590
sub esp, eax
mov esi, dword [0x10010020]
test esi, esi
je 0x100039a8
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [ebp - 0x12c4]
mov dword [esp + 0xc], 1
lea edi, [ebp - 0x100c]
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 0x10003d0c
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 0x10003aac
cmp word [ebp - 0x100c], 0
je 0x10003aac
mov dword [ebp - 0x12d4], esi
mov ebx, dword [sym.imp.ucrtbase.dll__wcsnicmp]
nop
mov dword [esp + 8], 6
mov dword [esp + 4], 0x1001417c
mov dword [esp], edi
call ebx
test eax, eax
jne 0x10003a84
mov dword [esp + 4], 0x3d
mov dword [esp], edi
call dword [sym.imp.ucrtbase.dll_wcschr]
mov esi, eax
test eax, eax
je 0x10003a84
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 0x10003f40
mov eax, edi
add eax, 2
cmp word [eax], 0
jne 0x10003a90
sub eax, edi
add eax, 2
add edi, eax
cmp word [edi], 0
jne 0x10003a30
mov esi, dword [ebp - 0x12d4]
mov dword [ebp - 0x12c0], 0
test byte [0x10010080], 8
jne 0x10003eea
mov eax, dword [0x10010020]
xor ebx, ebx
test eax, eax
je 0x10003adf
nop
mov eax, dword [eax + 0x18]
mov edi, ebx
inc ebx
test eax, eax
jne 0x10003ad0
cmp ebx, 1
ja 0x10003b40
mov eax, dword [ebp - 0x12c0]
test eax, eax
je 0x10003af5
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
mov eax, dword [0x10010018]
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 [0x10010018]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
mov esi, eax
test eax, eax
je 0x10004041
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 0x10003fe2
mov eax, dword [0x10010020]
mov edx, esi
test eax, eax
je 0x10003bb4
lea esi, cs:[esi]
mov dword [edx], eax
mov eax, dword [eax + 0x18]
add edx, 4
test eax, eax
jne 0x10003ba8
mov dword [ebp - 0x12e4], ebx
xor eax, eax
mov dword [ebp - 0x12d4], edi
mov dword [ebp - 0x12dc], esi
mov esi, eax
lea esi, [esi]
mov dword [ebp - 0x12d8], esi
lea eax, [ebp - 0x12ae]
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 - 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 + 4], eax
mov eax, dword [ebp - 0x12c0]
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 0x10003cb0
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 0x10003cb0
mov edi, dword [ebp - 0x12dc]
xor ebx, ebx
mov dword [ebp - 0x12e0], esi
mov esi, edi
mov edi, ebx
mov ebx, eax
jmp 0x10003c82
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 0x10003f4a
lea eax, [edi + 1]
add esi, 4
cmp dword [ebp - 0x12d4], edi
jne 0x10003c80
mov esi, dword [ebp - 0x12e0]
mov edx, dword [ebp - 0x12d8]
cmp dword [ebp - 0x12d4], edx
jne 0x10003bd0
mov esi, dword [ebp - 0x12dc]
mov edi, dword [ebp - 0x12d4]
xor eax, eax
jmp 0x10003cf8
mov ecx, dword [esi + eax*4 - 4]
mov dword [edx + 0x1c], ecx
xor edx, edx
cmp edi, eax
ja 0x10003d06
mov ecx, dword [esi + eax*4]
mov dword [ecx + 0x18], edx
lea edx, [eax + 1]
cmp edi, eax
je 0x10003fc8
mov eax, edx
mov edx, dword [esi + eax*4]
test eax, eax
jne 0x10003cd8
mov dword [edx + 0x1c], 0
mov edx, dword [esi + eax*4 + 4]
jmp 0x10003ce5
lea eax, [ebp - 0x12d0]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x12c4]
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 - 0x12d0]
sub esp, 0x30
test ebx, ebx
je 0x10004030
lea eax, [ebp - 0x12cc]
mov dword [ebp - 0x12d8], esi
xor ebx, ebx
mov dword [ebp - 0x12d4], eax
mov esi, eax
lea esi, [esi]
lea eax, [ebp - 0x12b8]
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], eax
mov eax, dword [ebp - 0x12c4]
mov dword [ebp - 0x12cc], 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 0x10003e40
mov dword [esp + 8], 6
mov dword [esp + 4], 0x1001417c
mov dword [esp], edi
call dword [sym.imp.ucrtbase.dll__wcsnicmp]
test eax, eax
jne 0x10003e40
mov dword [esp + 4], 0x3d
mov dword [esp], edi
call dword [sym.imp.ucrtbase.dll_wcschr]
test eax, eax
je 0x10003e40
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 - 0x12d0], ebx
ja 0x10003da0
mov esi, dword [ebp - 0x12d8]
mov dword [ebp - 0x12d0], 0x40
xor ebx, ebx
mov dword [ebp - 0x12cc], 0x1000
mov dword [ebp - 0x12d8], esi
mov esi, dword [ebp - 0x12d4]
lea esi, [esi]
lea eax, [ebp - 0x12c8]
mov dword [esp + 0x1c], esi
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x12d0]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x128c]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x12c4]
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 0x10003fab
lea eax, [ebp - 0x128c]
mov dword [esp + 8], 6
mov dword [esp + 4], 0x1001417c
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll__wcsnicmp]
test eax, eax
je 0x10003f18
inc ebx
jmp 0x10003e78
mov dword [esp + 0xc], 0x10012a9e
mov dword [esp + 8], str.MSACM_ReorderDriversByPriority
mov dword [esp + 4], 0x10010080
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_3
jmp 0x10003ac3
lea eax, [ebp - 0x128c]
mov dword [esp + 8], 0
inc ebx
mov dword [esp + 4], edi
mov dword [esp], eax
call sym._MSACM_RegisterDriver
jmp 0x10003e78
mov eax, 2
jmp 0x10003a9e
mov ebx, edi
mov edi, esi
mov esi, dword [ebp - 0x12e0]
cmp dword [ebp - 0x12e4], ebx
jbe 0x10003cb0
cmp dword [ebp - 0x12d8], ebx
je 0x10003cb0
mov edx, dword [ebp - 0x12dc]
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 - 0x120c]
cmp ax, 0x31
je 0x10003ffa
cmp ax, 0x30
jne 0x10003cb0
mov eax, dword [ebp - 0x12dc]
mov eax, dword [eax + esi*4 - 4]
or dword [eax + 0x28], 0x80000000
jmp 0x10003cb0
mov eax, dword [ebp - 0x12c4]
mov esi, dword [ebp - 0x12d8]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
jmp 0x100039e8
mov eax, dword [esi]
mov dword [0x10010020], eax
mov eax, dword [esi + edi*4]
mov dword [0x1001002c], eax
mov eax, dword [ebp - 0x12c0]
jmp 0x10003ae5
test byte [0x10010080], 8
jne 0x1000400a
mov dword [ebp - 0x12c0], 0
jmp 0x10003af5
mov eax, dword [edx + esi*4 - 4]
and dword [eax + 0x28], 0x7fffffff
jmp 0x10003cb0
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], 0x10010080
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_3
jmp 0x10003feb
lea eax, [ebp - 0x12cc]
mov dword [ebp - 0x12d4], eax
jmp 0x10003e53
test byte [0x10010080], 2
je 0x10003adf
mov dword [esp + 0xc], str.out_of_memory_n
mov dword [esp + 8], str.MSACM_ReorderDriversByPriority
mov dword [esp + 4], 0x10010080
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0_3
mov eax, dword [ebp - 0x12c0]
jmp 0x10003ae5