Function at 0x66649c20
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.6664fe28
sub esp, eax
mov edi, dword [section..bss]
test edi, edi
je 0x66649c48
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [ebp - 0x12d0]
mov dword [esp + 0xc], 1
lea ebx, [ebp - 0x1018]
mov dword [esp + 0x10], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0x66652f20
mov dword [esp], 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
sub esp, 0x14
test eax, eax
je 0x66649fac
mov dword [esp + 0xc], str.system.ini
mov dword [esp + 8], 0x800
mov dword [esp + 4], ebx
mov dword [esp], str.drivers32
call sub.kernel32.dll_GetPrivateProfileSectionW
sub esp, 0x10
test eax, eax
je 0x66649d4c
cmp word [ebp - 0x1018], 0
je 0x66649d4c
mov dword [ebp - 0x12ec], edi
mov esi, dword [sym.imp.ucrtbase.dll__wcsnicmp]
lea esi, [esi]
mov dword [esp + 8], 6
mov dword [esp + 4], str.MSACM.SoftwareMicrosoftWindows_NTCurrentVersionDrivers32
mov dword [esp], ebx
call esi
test eax, eax
jne 0x66649d24
mov dword [esp + 4], 0x3d
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_wcschr]
mov edi, eax
test eax, eax
je 0x66649d24
xor eax, eax
mov word [edi], ax
lea eax, [edi + 2]
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov dword [esp], ebx
call fcn.666493e0
mov edx, 0x3d
mov word [edi], dx
cmp word [ebx], 0
je 0x6664a1d8
mov eax, ebx
add eax, 2
cmp word [eax], 0
jne 0x66649d30
sub eax, ebx
add eax, 2
add ebx, eax
cmp word [ebx], 0
jne 0x66649cd0
mov edi, dword [ebp - 0x12ec]
mov dword [ebp - 0x12cc], 0
test byte [0x66650048], 8
jne 0x6664a1ac
mov eax, dword [section..bss]
xor ebx, ebx
test eax, eax
je 0x66649d81
nop
mov eax, dword [eax + 0x18]
mov esi, ebx
add ebx, 1
test eax, eax
jne 0x66649d70
cmp ebx, 1
ja 0x66649de0
mov eax, dword [ebp - 0x12cc]
test eax, eax
je 0x66649d96
mov dword [esp], eax
call sub.advapi32.dll_RegCloseKey
sub esp, 4
mov eax, dword [0x66657004]
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov dword [esp], eax
call sub.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.666493e0
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 [0x66657004]
mov dword [esp], eax
call sub.kernel32.dll_HeapAlloc
sub esp, 0xc
mov edi, eax
test eax, eax
je 0x6664a285
lea eax, [ebp - 0x12cc]
mov dword [esp + 4], str.SoftwareMicrosoftMultimediaAudio_Compression_ManagerPriority_v4.00
mov dword [esp + 8], eax
mov dword [esp], 0x80000001
call sub.advapi32.dll_RegOpenKeyW
sub esp, 0xc
test eax, eax
jne 0x6664a2c7
mov eax, dword [section..bss]
mov edx, edi
test eax, eax
je 0x66649e54
lea esi, [esi]
mov dword [edx], eax
mov eax, dword [eax + 0x18]
add edx, 4
test eax, eax
jne 0x66649e48
mov dword [ebp - 0x12f0], 0
mov dword [ebp - 0x12fc], ebx
mov dword [ebp - 0x12f8], edi
mov dword [ebp - 0x12ec], esi
mov eax, dword [ebp - 0x12f0]
mov dword [esp + 8], str.Priority_ld
mov dword [esp + 4], 0x11
mov dword [ebp - 0x12f4], eax
add eax, 1
mov dword [esp + 0xc], eax
mov dword [ebp - 0x12f0], eax
lea eax, [ebp - 0x12ba]
mov dword [esp], eax
call fcn.66647090
lea eax, [ebp - 0x12c8]
mov dword [esp + 0xc], 0
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 + 8], 0
mov dword [esp], eax
mov dword [ebp - 0x12c8], 0x200
call sub.advapi32.dll_RegQueryValueExW
sub esp, 0x18
test eax, eax
jne 0x66649f50
lea eax, [ebp - 0x1218]
mov dword [esp + 4], str.msacm.
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_wcsstr]
mov ebx, eax
test eax, eax
je 0x66649f50
mov esi, dword [ebp - 0x12f8]
xor edi, edi
jmp 0x66649f22
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 0x6664a1fe
lea eax, [edi + 1]
add esi, 4
cmp dword [ebp - 0x12ec], edi
jne 0x66649f20
lea esi, [esi]
mov edx, dword [ebp - 0x12f4]
cmp dword [ebp - 0x12ec], edx
jne 0x66649e70
mov edi, dword [ebp - 0x12f8]
mov esi, dword [ebp - 0x12ec]
xor eax, eax
jmp 0x66649f98
mov ecx, dword [edi + eax*4 - 4]
mov dword [edx + 0x1c], ecx
xor edx, edx
cmp esi, eax
ja 0x66649fa6
mov ecx, dword [edi + eax*4]
mov dword [ecx + 0x18], edx
lea edx, [eax + 1]
cmp esi, eax
je 0x6664a261
mov eax, edx
mov edx, dword [edi + eax*4]
test eax, eax
jne 0x66649f78
mov dword [edx + 0x1c], 0
mov edx, dword [edi + eax*4 + 4]
jmp 0x66649f85
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 sub.advapi32.dll_RegQueryInfoKeyW
mov esi, dword [ebp - 0x12dc]
sub esp, 0x30
test esi, esi
je 0x6664a2df
lea eax, [ebp - 0x12d8]
mov dword [ebp - 0x12f0], edi
xor esi, esi
mov dword [ebp - 0x12ec], eax
mov edi, eax
lea esi, [esi]
nop
lea eax, [ebp - 0x12c4]
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], eax
mov eax, dword [ebp - 0x12d0]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], edi
mov dword [esp + 8], ebx
mov dword [esp + 4], esi
mov dword [esp], eax
mov dword [ebp - 0x12d8], 0x800
call sub.advapi32.dll_RegEnumKeyExW
sub esp, 0x20
test eax, eax
jne 0x6664a0e0
mov dword [esp + 8], 6
mov dword [esp + 4], str.MSACM.SoftwareMicrosoftWindows_NTCurrentVersionDrivers32
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll__wcsnicmp]
test eax, eax
jne 0x6664a0e0
mov dword [esp + 4], 0x3d
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_wcschr]
test eax, eax
je 0x6664a0e0
xor ecx, ecx
add eax, 2
mov word [eax - 2], cx
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov dword [esp], ebx
call fcn.666493e0
lea esi, [esi]
add esi, 1
cmp dword [ebp - 0x12dc], esi
ja 0x6664a040
mov edi, dword [ebp - 0x12f0]
mov dword [ebp - 0x12f0], edi
xor esi, esi
mov edi, dword [ebp - 0x12ec]
mov dword [ebp - 0x12dc], 0x40
mov dword [ebp - 0x12d8], 0x1000
jmp 0x6664a123
add esi, 1
lea eax, [ebp - 0x12d4]
mov dword [esp + 0x1c], edi
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], ebx
mov dword [esp + 0x10], 0
mov dword [esp + 4], esi
mov dword [esp], eax
call sub.advapi32.dll_RegEnumValueW
sub esp, 0x20
test eax, eax
jne 0x6664a1e2
lea eax, [ebp - 0x1298]
mov dword [esp + 8], 6
mov dword [esp + 4], str.MSACM.SoftwareMicrosoftWindows_NTCurrentVersionDrivers32
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll__wcsnicmp]
test eax, eax
jne 0x6664a120
lea eax, [ebp - 0x1298]
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
mov dword [esp], eax
call fcn.666493e0
jmp 0x6664a120
mov dword [esp + 0xc], 0x66652b22
mov dword [esp + 8], str.MSACM_ReorderDriversByPriority
mov dword [esp + 4], 0x66650048
mov dword [esp], 3
call fcn.66647130
jmp 0x66649d63
mov eax, 2
jmp 0x66649d3e
mov eax, dword [ebp - 0x12d0]
mov edi, dword [ebp - 0x12f0]
mov dword [esp], eax
call sub.advapi32.dll_RegCloseKey
sub esp, 4
jmp 0x66649c87
cmp dword [ebp - 0x12fc], edi
jbe 0x66649f50
cmp dword [ebp - 0x12f4], edi
je 0x66649f50
mov edx, dword [ebp - 0x12f8]
mov edi, dword [ebp - 0x12f0]
mov ecx, dword [esi]
mov eax, dword [edx + edi*4 - 4]
mov dword [edx + edi*4 - 4], ecx
mov dword [esi], eax
movzx eax, word [ebp - 0x1218]
cmp ax, 0x31
je 0x6664a275
cmp ax, 0x30
jne 0x66649f50
mov eax, dword [ebp - 0x12f8]
mov ecx, dword [ebp - 0x12f0]
mov eax, dword [eax + ecx*4 - 4]
or dword [eax + 0x28], 0x80000000
jmp 0x66649f50
mov eax, dword [edi]
mov dword [section..bss], eax
mov eax, dword [edi + esi*4]
mov dword [0x66657020], eax
jmp 0x66649d81
mov eax, dword [edx + edi*4 - 4]
and dword [eax + 0x28], 0x7fffffff
jmp 0x66649f50
mov eax, dword [ebp - 0x12cc]
test byte [0x66650048], 2
je 0x66649d87
mov dword [esp + 0xc], str.out_of_memory_n
mov dword [esp + 8], str.MSACM_ReorderDriversByPriority
mov dword [esp + 4], 0x66650048
mov dword [esp], 1
call fcn.66647130
mov eax, dword [ebp - 0x12cc]
jmp 0x66649d87
test byte [0x66650048], 8
jne 0x6664a2f0
mov dword [ebp - 0x12cc], 0
jmp 0x66649d96
lea eax, [ebp - 0x12d8]
mov dword [ebp - 0x12ec], eax
jmp 0x6664a0f5
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], 0x66650048
mov dword [esp], 3
call fcn.66647130
jmp 0x6664a2d0