Function at 0x21113260
Capabilities:
Check mutex on windows
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 0x14]
test ebx, ebx
push esi
push edi
je 0x211132c6
cmp word [ebx], 1
je 0x2111328e
push str.Non_PCM_wave_data_type_not_supported.
call sym.mss32.dll__AIL_set_error_4
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov ax, word [ebx + 2]
cmp ax, 1
jb 0x211132ae
cmp ax, 2
ja 0x211132ae
mov ax, word [ebx + 0xe]
cmp ax, 8
je 0x211132c6
cmp ax, 0x10
je 0x211132c6
push str.Unsupported_PCM_data_format.
call sym.mss32.dll__AIL_set_error_4
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push 0x2d4
call sym.mss32.dll__AIL_mem_alloc_lock_4
mov esi, eax
test esi, esi
jne 0x211132ee
push str.Could_not_allocate_memory_for_driver_descriptor.
call sym.mss32.dll__AIL_set_error_4
pop edi
pop esi
mov eax, 7
pop ebx
mov esp, ebp
pop ebp
ret 0x10
xor eax, eax
mov ecx, 0xb5
mov edi, esi
rep stosd dword es:[edi], eax
mov eax, dword [str.HDIG]
mov ecx, dword [ebp + 8]
mov dword [esi], eax
mov dword [ecx], esi
call sym.mss32.dll__AIL_MMX_available_0
test ebx, ebx
mov dword [esi + 0x104], eax
lea eax, [esi + 0x8c]
je 0x2111333c
mov ecx, dword [ebx]
mov edx, eax
mov dword [edx], ecx
mov ecx, dword [ebx + 4]
mov dword [edx + 4], ecx
mov ecx, dword [ebx + 8]
mov dword [edx + 8], ecx
mov ecx, dword [ebx + 0xc]
xor ebx, ebx
mov dword [edx + 0xc], ecx
mov dword [esi + 0x100], ebx
jmp 0x2111337d
mov word [eax], 1
mov ecx, 2
mov word [esi + 0x8e], cx
mov dword [esi + 0x90], 0x5622
mov word [esi + 0x98], cx
mov word [esi + 0x9a], 8
mov dword [esi + 0x94], 0xac44
mov dword [esi + 0x100], 1
xor ebx, ebx
mov ecx, dword [ebp + 0x10]
push 0x30000
push ebx
push 0x21113140
push eax
mov dword [esi + 0x88], ecx
push ecx
lea edx, [esi + 0x68]
mov ecx, esi
call fcn.21111c10
mov edi, eax
cmp edi, ebx
je 0x211133be
push str.waveOutOpen___failed.
call sym.mss32.dll__AIL_set_error_4
push esi
call sym.mss32.dll__AIL_mem_free_lock_4
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [ebp + 0xc]
cmp ecx, ebx
je 0x211133ca
lea eax, [esi + 0x68]
mov dword [ecx], eax
push 0x80
push 0x2114fa70
push str.None
mov dword [esi + 0x70], ebx
mov dword [esi + 0x30], ebx
push str.Reset
mov dword [esi + 0xc4], ebx
mov edi, 1
push 0x2113e648
mov dword [esi + 8], ebx
mov dword [esi + 0x6c], edi
call dword [sym.imp.KERNEL32.dll_GetProfileStringA]
push edi
mov edx, 0x211414c0
mov ecx, 0x2114fa70
call fcn.2111afa0
test eax, eax
jne 0x21113417
mov dword [esi + 0x6c], edi
push edi
mov edx, 0x2113e644
mov ecx, 0x2114fa70
call fcn.2111afa0
test eax, eax
jne 0x2111342e
mov dword [esi + 0x6c], ebx
mov edx, dword [esi + 0x90]
xor eax, eax
mov ax, word [esi + 0x8e]
mov dword [esi + 0x14], edx
mov dword [esi + 0x20], eax
xor eax, eax
mov ax, word [esi + 0x9a]
shr eax, 3
cmp eax, edi
mov dword [esi + 0x24], eax
jne 0x21113475
mov dword [ebp - 8], 0x80808080
mov ecx, dword [esi + 0x20]
cmp ecx, edi
mov dword [esi + 0x1c], ebx
jne 0x2111346c
mov dword [esi + 0x18], ebx
jmp 0x2111348e
mov dword [esi + 0x18], 2
jmp 0x2111348e
mov dword [ebp - 8], ebx
mov ecx, dword [esi + 0x20]
cmp ecx, edi
mov dword [esi + 0x1c], edi
jne 0x21113487
mov dword [esi + 0x18], edi
jmp 0x2111348e
mov dword [esi + 0x18], 3
cmp dword [0x2114e828], ebx
je 0x21113663
push 0x20
call sym.mss32.dll__AIL_mem_alloc_lock_4
mov dword [ebp + 0x14], eax
cmp dword [ebp + 0x14], ebx
jne 0x211134b8
push str.Could_not_allocate_memory_for_test_WAVEHDR.
call sym.mss32.dll__AIL_set_error_4
jmp 0x21113a90
mov ecx, dword [ebp + 0x14]
lea edx, [ebp - 8]
mov dword [ecx], edx
mov eax, dword [ebp + 0x14]
mov dword [eax + 4], 4
mov ecx, dword [ebp + 0x14]
mov dword [ecx + 0x10], ebx
mov edx, dword [ebp + 0x14]
mov dword [edx + 0x14], ebx
mov eax, dword [ebp + 0x14]
mov dword [eax + 0xc], ebx
push 0x20
mov ecx, dword [ebp + 0x14]
mov edx, dword [esi + 0x68]
push ecx
mov ecx, esi
call fcn.21111b20
lock inc dword [0x2114faf0]
mov dword [esi + 0x2cc], edi
push 0x20
mov edx, dword [ebp + 0x14]
push edx
mov edx, dword [esi + 0x68]
mov ecx, esi
call fcn.21112120
mov eax, dword [ebp + 0x14]
test byte [eax + 0x10], 1
jne 0x2111351b
mov ecx, dword [ebp + 0x14]
test byte [ecx + 0x10], 1
je 0x21113512
cmp dword [0x2114e89c], ebx
je 0x21113530
mov edx, dword [0x2114fa38]
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [esi + 0x68]
mov ecx, esi
call fcn.21112070
call sym.mss32.dll__AIL_ms_count_0
mov edi, eax
push 0x20
mov eax, dword [ebp + 0x14]
mov edx, dword [esi + 0x68]
push eax
mov ecx, esi
call fcn.21112120
mov ecx, dword [ebp + 0x14]
test byte [ecx + 0x10], 1
jne 0x2111356b
mov edx, dword [ebp + 0x14]
test byte [edx + 0x10], 1
je 0x21113562
call sym.mss32.dll__AIL_ms_count_0
sub eax, edi
cmp eax, 0x4b
mov dword [ebp + 8], eax
jbe 0x21113583
mov dword [ebp + 8], 0x4b
jmp 0x2111358f
cmp eax, 0x14
jae 0x2111358f
mov dword [ebp + 8], 0x14
push 0x20
mov eax, dword [ebp + 0x14]
mov edx, dword [esi + 0x68]
push eax
mov ecx, esi
call fcn.21111b50
mov edx, dword [esi + 0x68]
mov ecx, esi
call fcn.21112070
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [0x2114e89c], ebx
je 0x211135df
mov eax, dword [0x2114fa38]
cmp eax, ebx
jne 0x211135d6
mov edi, dword [sym.imp.KERNEL32.dll_CreateMutexA]
push ebx
push ebx
push ebx
call edi
cmp eax, ebx
mov dword [0x2114fa38], eax
je 0x211135c8
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [esi + 0x2cc], 0
lock dec dword [0x2114faf0]
mov ecx, dword [ebp + 0x14]
push ecx
call sym.mss32.dll__AIL_mem_free_lock_4
mov edx, dword [esi + 0x94]
imul edx, dword [0x2114e8a0]
mov eax, 0x10624dd3
mul edx
mov eax, dword [0x2114e824]
shr edx, 6
mov ebx, edx
and ebx, 0xfffffc00
cmp ebx, eax
jle 0x21113623
mov ebx, eax
mov eax, dword [esi + 0x90]
mov edi, eax
imul edi, dword [ebp + 8]
lea eax, [eax + eax*4]
mov dword [ebp + 0x14], eax
add edi, dword [ebp + 0x14]
mov ecx, dword [esi + 0x24]
mov eax, 0x10624dd3
mul edi
mov eax, dword [esi + 0x20]
shr edx, 6
add edx, 3
and edx, 0xfffffffc
imul eax, edx
imul ecx, eax
cmp ecx, ebx
mov dword [esi + 0x2c], edx
mov dword [esi + 0x28], eax
mov dword [esi + 0x64], ecx
jl 0x21113635
jmp 0x21113679
mov eax, dword [esi + 0xec]
mov dword [esi + 0x64], eax
cdq
idiv dword [esi + 0x24]
mov dword [esi + 0x28], eax
cdq
idiv ecx
mov dword [esi + 0x2c], eax
mov eax, dword [esi + 0x28]
shl eax, 2
push eax
mov dword [esi + 0x3c], eax
call sym.mss32.dll__AIL_mem_alloc_lock_4
xor ebx, ebx
cmp eax, ebx
mov dword [esi + 0x40], eax
jne 0x211136a0
push str.Could_not_allocate_build_buffer.
call sym.mss32.dll__AIL_set_error_4
jmp 0x21113a90
mov ecx, dword [0x2114e86c]
mov edx, ecx
push edx
mov dword [esi + 0x10c], ecx
call sym.mss32.dll__AIL_mem_alloc_lock_4
cmp eax, ebx
mov dword [esi + 0x108], eax
jne 0x211136ef
push str.Could_not_allocate_decode_buffer.
call sym.mss32.dll__AIL_set_error_4
mov edx, dword [esi + 0x68]
mov ecx, esi
call fcn.21112030
mov eax, dword [esi + 0x40]
push eax
call sym.mss32.dll__AIL_mem_free_lock_4
push esi
call sym.mss32.dll__AIL_mem_free_lock_4
pop edi
pop esi
mov eax, 7
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [0x2114e88c]
mov eax, ecx
cmp eax, ebx
mov dword [esi + 0x2c4], ecx
mov dword [esi + 0x2c8], ebx
jne 0x2111370f
mov dword [esi + 0x2c0], ebx
jmp 0x21113787
mov ecx, dword [esi + 0x3c]
lea eax, [eax + ecx - 1]
cdq
idiv ecx
imul eax, ecx
push eax
mov dword [esi + 0x2c4], eax
call sym.mss32.dll__AIL_mem_alloc_lock_4
mov edi, eax
cmp edi, ebx
mov dword [esi + 0x2c0], edi
jne 0x21113771
push str.Could_not_allocate_reverb_buffer.
call sym.mss32.dll__AIL_set_error_4
mov edx, dword [esi + 0x68]
mov ecx, esi
call fcn.21112030
mov edx, dword [esi + 0x40]
push edx
call sym.mss32.dll__AIL_mem_free_lock_4
mov eax, dword [esi + 0x108]
push eax
call sym.mss32.dll__AIL_mem_free_lock_4
push esi
call sym.mss32.dll__AIL_mem_free_lock_4
pop edi
pop esi
mov eax, 7
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [esi + 0x2c4]
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
push 1
call sym.mss32.dll__AIL_get_preference_4
lea ecx, [eax + eax*8]
lea ecx, [ecx + ecx*8]
lea edx, [eax + ecx*2]
shl edx, 2
push edx
mov dword [esi + 0x38], eax
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], 0x7f
call sym.mss32.dll__AIL_mem_alloc_lock_4
cmp eax, ebx
mov dword [esi + 0x34], eax
jne 0x211137eb
push str.Could_not_allocate_SAMPLE_structures.
call sym.mss32.dll__AIL_set_error_4
mov eax, dword [esi + 0x40]
push eax
call sym.mss32.dll__AIL_mem_free_lock_4
mov ecx, dword [esi + 0x108]
push ecx
call sym.mss32.dll__AIL_mem_free_lock_4
cmp dword [esi + 0x2c4], ebx
je 0x21113a90
mov edx, dword [esi + 0x2c0]
push edx
jmp 0x21113a8b
mov eax, dword [esi + 0x38]
xor ebx, ebx
test eax, eax
jle 0x21113830
xor edx, edx
mov edi, dword [esi + 0x34]
xor eax, eax
add edi, edx
mov ecx, 0xa3
rep stosd dword es:[edi], eax
mov eax, dword [esi + 0x34]
mov ecx, dword [str.HSAM]
mov dword [eax + edx], ecx
mov eax, dword [esi + 0x34]
mov dword [eax + edx + 8], 1
mov ecx, dword [esi + 0x34]
mov dword [ecx + edx + 4], esi
mov eax, dword [esi + 0x38]
inc ebx
add edx, 0x28c
cmp ebx, eax
jl 0x211137f6
mov eax, dword [0x2114e828]
test eax, eax
je 0x21113abd
push 0xb
call sym.mss32.dll__AIL_get_preference_4
cdq
idiv dword [esi + 0x64]
cmp eax, 4
mov dword [esi + 0x78], eax
jge 0x21113857
mov dword [esi + 0x78], 4
mov edx, dword [esi + 0x78]
shl edx, 2
push edx
call sym.mss32.dll__AIL_mem_alloc_lock_4
xor ebx, ebx
mov dword [esi + 0x7c], eax
mov dword [esi + 0x80], ebx
mov dword [esi + 0x84], ebx
mov eax, dword [esi + 0x78]
test eax, eax
lea edi, [esi + 0x74]
jle 0x2111397e
push 0x20
call sym.mss32.dll__AIL_mem_alloc_lock_4
mov dword [ebp + 0x14], eax
mov eax, dword [ebp + 0x14]
mov dword [edi], eax
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x2111391c
push 0xc
call sym.mss32.dll__AIL_mem_alloc_lock_4
mov ecx, dword [ebp + 0x14]
mov dword [ecx + 0xc], eax
mov edx, dword [ebp + 0x14]
mov eax, dword [edx + 0xc]
test eax, eax
je 0x21113928
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax + 0xc]
mov dword [ecx], esi
mov edx, dword [ebp + 0x14]
mov edi, dword [edx + 0xc]
mov eax, dword [esi + 0x78]
add edi, 4
inc ebx
cmp ebx, eax
jl 0x21113882
cmp ebx, 0xffffffff
jne 0x2111397e
mov eax, dword [esi + 0x74]
mov dword [ebp + 0x14], eax
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x2111393d
mov ecx, dword [ebp + 0x14]
mov eax, dword [ecx + 0xc]
test eax, eax
je 0x21113934
mov edx, dword [ebp + 0x14]
mov eax, dword [edx + 0xc]
mov ecx, dword [eax + 4]
mov dword [ebp + 8], ecx
mov edx, dword [ebp + 0x14]
mov eax, dword [edx + 0xc]
push eax
call sym.mss32.dll__AIL_mem_free_lock_4
mov ecx, dword [ebp + 0x14]
push ecx
call sym.mss32.dll__AIL_mem_free_lock_4
mov edx, dword [ebp + 8]
mov dword [ebp + 0x14], edx
mov eax, dword [ebp + 0x14]
test eax, eax
jne 0x211138e2
jmp 0x2111393d
push str.Could_not_allocate_WAVEHDR_structures.
call sym.mss32.dll__AIL_set_error_4
jmp 0x211138d5
push str.Could_not_allocate_HDR_USER_structures.
call sym.mss32.dll__AIL_set_error_4
jmp 0x211138d5
mov eax, dword [ebp + 0x14]
push eax
call sym.mss32.dll__AIL_mem_free_lock_4
mov ecx, dword [esi + 0x7c]
push ecx
call sym.mss32.dll__AIL_mem_free_lock_4
mov edx, dword [esi + 0x34]
push edx
call sym.mss32.dll__AIL_mem_free_lock_4
mov eax, dword [esi + 0x40]
push eax
call sym.mss32.dll__AIL_mem_free_lock_4
mov ecx, dword [esi + 0x108]
push ecx
call sym.mss32.dll__AIL_mem_free_lock_4
mov eax, dword [esi + 0x2c4]
test eax, eax
je 0x21113a90
mov edx, dword [esi + 0x2c0]
push edx
jmp 0x21113a8b
mov eax, dword [esi + 0x74]
mov dword [edi], eax
mov ecx, dword [esi + 0x74]
mov dword [ebp + 0x14], ecx
mov eax, dword [esi + 0x78]
xor edi, edi
test eax, eax
jle 0x21113abd
xor ebx, ebx
mov edx, dword [esi + 0x64]
push edx
call sym.mss32.dll__AIL_mem_alloc_lock_4
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
mov edx, dword [ebp + 0x14]
cmp dword [edx], ebx
je 0x21113aae
mov eax, dword [ebp + 0x14]
mov ecx, dword [esi + 0x64]
mov dword [eax + 4], ecx
mov edx, dword [ebp + 0x14]
mov dword [edx + 0x10], ebx
mov eax, dword [ebp + 0x14]
mov dword [eax + 0x14], ebx
push 0x20
mov ecx, dword [ebp + 0x14]
mov edx, dword [esi + 0x68]
push ecx
mov ecx, esi
call fcn.21111b20
mov edx, dword [ebp + 0x14]
mov eax, dword [edx + 0xc]
mov ecx, dword [eax + 4]
mov dword [ebp + 0x14], ecx
mov eax, dword [esi + 0x78]
inc edi
cmp edi, eax
jl 0x21113998
cmp edi, 0xffffffff
jne 0x21113abd
xor ebx, ebx
mov edx, dword [esi + 0x74]
mov dword [ebp + 0x14], edx
mov eax, dword [esi + 0x78]
xor edi, edi
cmp eax, ebx
jle 0x21113a55
mov eax, dword [ebp + 0x14]
cmp dword [eax], ebx
je 0x21113a26
push 0x20
mov ecx, dword [ebp + 0x14]
mov edx, dword [esi + 0x68]
push ecx
mov ecx, esi
call fcn.21111b50
mov edx, dword [ebp + 0x14]
mov eax, dword [edx]
push eax
call sym.mss32.dll__AIL_mem_free_lock_4
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx + 0xc]
mov eax, dword [edx + 4]
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx + 0xc]
push edx
call sym.mss32.dll__AIL_mem_free_lock_4
mov eax, dword [ebp + 0x14]
push eax
call sym.mss32.dll__AIL_mem_free_lock_4
mov ecx, dword [ebp + 8]
mov dword [ebp + 0x14], ecx
mov eax, dword [esi + 0x78]
inc edi
cmp edi, eax
jl 0x21113a04
mov edx, dword [esi + 0x7c]
push edx
call sym.mss32.dll__AIL_mem_free_lock_4
mov eax, dword [esi + 0x34]
push eax
call sym.mss32.dll__AIL_mem_free_lock_4
mov ecx, dword [esi + 0x40]
push ecx
call sym.mss32.dll__AIL_mem_free_lock_4
mov edx, dword [esi + 0x108]
push edx
call sym.mss32.dll__AIL_mem_free_lock_4
cmp dword [esi + 0x2c4], ebx
je 0x21113a90
mov eax, dword [esi + 0x2c0]
push eax
call sym.mss32.dll__AIL_mem_free_lock_4
mov edx, dword [esi + 0x68]
mov ecx, esi
call fcn.21112030
push esi
call sym.mss32.dll__AIL_mem_free_lock_4
pop edi
pop esi
mov eax, 7
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push str.Could_not_allocate_output_buffer.
call sym.mss32.dll__AIL_set_error_4
jmp 0x211139f5
mov eax, dword [0x2114e8b4]
test eax, eax
je 0x21113bc2
mov dword [esi + 0xcc], eax
push fcn.21112b90
mov dword [0x2114e8b4], esi
call sym.mss32.dll__AIL_register_timer_4
cmp eax, 0xffffffff
mov dword [esi + 4], eax
jne 0x21113ca6
push 0x2114136c
call sym.mss32.dll__AIL_set_error_4
mov eax, dword [0x2114e828]
test eax, eax
je 0x21113b61
mov eax, dword [esi + 0x74]
mov dword [ebp + 0x14], eax
mov eax, dword [esi + 0x78]
xor edi, edi
test eax, eax
jle 0x21113b58
push 0x20
mov ecx, dword [ebp + 0x14]
mov edx, dword [esi + 0x68]
push ecx
mov ecx, esi
call fcn.21111b50
mov edx, dword [ebp + 0x14]
mov eax, dword [edx]
push eax
call sym.mss32.dll__AIL_mem_free_lock_4
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx + 0xc]
mov eax, dword [edx + 4]
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx + 0xc]
push edx
call sym.mss32.dll__AIL_mem_free_lock_4
mov eax, dword [ebp + 0x14]
push eax
call sym.mss32.dll__AIL_mem_free_lock_4
mov ecx, dword [ebp + 8]
mov dword [ebp + 0x14], ecx
mov eax, dword [esi + 0x78]
inc edi
cmp edi, eax
jl 0x21113b0e
mov edx, dword [esi + 0x7c]
push edx
call sym.mss32.dll__AIL_mem_free_lock_4
mov eax, dword [esi + 0xc8]
push eax
push 0
call dword [sym.imp.USER32.dll_KillTimer]
mov ecx, dword [esi + 0x34]
push ecx
call sym.mss32.dll__AIL_mem_free_lock_4
mov edx, dword [esi + 0x40]
push edx
call sym.mss32.dll__AIL_mem_free_lock_4
mov eax, dword [esi + 0x108]
push eax
call sym.mss32.dll__AIL_mem_free_lock_4
mov eax, dword [esi + 0x2c4]
test eax, eax
je 0x21113ba4
mov ecx, dword [esi + 0x2c0]
push ecx
call sym.mss32.dll__AIL_mem_free_lock_4
mov edx, dword [esi + 0x68]
mov ecx, esi
call fcn.21112030
push esi
call sym.mss32.dll__AIL_mem_free_lock_4
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push esi
mov dword [esi + 0xcc], 0
call sym.mss32.dll__AIL_primary_digital_driver_4
push 0x21112b30
push 0x32
push 0
push 0
call dword [sym.imp.USER32.dll_SetTimer]
test eax, eax
mov dword [esi + 0xc8], eax
jne 0x21113ad0
mov eax, dword [0x2114e8b4]
test eax, eax
jne 0x21113c03
mov ecx, dword [esi + 4]
push ecx
call sym.mss32.dll__AIL_release_timer_handle_4
mov eax, dword [0x2114e828]
test eax, eax
je 0x21113c6e
mov edx, dword [esi + 0x74]
mov dword [ebp + 0x14], edx
mov eax, dword [esi + 0x78]
xor edi, edi
test eax, eax
jle 0x21113c65
push 0x20
mov eax, dword [ebp + 0x14]
mov edx, dword [esi + 0x68]
push eax
mov ecx, esi
call fcn.21111b50
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx]
push edx
call sym.mss32.dll__AIL_mem_free_lock_4
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx + 4]
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax + 0xc]
push ecx
call sym.mss32.dll__AIL_mem_free_lock_4
mov edx, dword [ebp + 0x14]
push edx
call sym.mss32.dll__AIL_mem_free_lock_4
mov eax, dword [ebp + 8]
mov dword [ebp + 0x14], eax
mov eax, dword [esi + 0x78]
inc edi
cmp edi, eax
jl 0x21113c1b
mov ecx, dword [esi + 0x7c]
push ecx
call sym.mss32.dll__AIL_mem_free_lock_4
mov edx, dword [esi + 0x34]
push edx
call sym.mss32.dll__AIL_mem_free_lock_4
mov eax, dword [esi + 0x40]
push eax
call sym.mss32.dll__AIL_mem_free_lock_4
mov ecx, dword [esi + 0x108]
push ecx
call sym.mss32.dll__AIL_mem_free_lock_4
mov eax, dword [esi + 0x2c4]
test eax, eax
je 0x21113ba4
mov edx, dword [esi + 0x2c0]
push edx
jmp 0x21113b9f
lea eax, [esi + 0x120]
mov ecx, 4
mov dword [eax], 0
add eax, 0x68
dec ecx
jne 0x21113cb1
lea edx, [ebp - 4]
push edx
push 0
push str.MSS_mixer_services
call sym.mss32.dll__RIB_enumerate_providers_12
push 0
push 1
push esi
call sym.mss32.dll__AIL_set_digital_driver_processor_12
mov eax, dword [ebp - 4]
push eax
push 2
push esi
call sym.mss32.dll__AIL_set_digital_driver_processor_12
mov ecx, dword [ebp - 4]
push ecx
push 0
push esi
call sym.mss32.dll__AIL_set_digital_driver_processor_12
mov edx, dword [ebp - 4]
push edx
push 3
push esi
call sym.mss32.dll__AIL_set_digital_driver_processor_12
mov eax, dword [esi + 4]
push 0x64
push eax
call sym.mss32.dll__AIL_set_timer_frequency_8
mov ecx, dword [esi + 4]
push esi
push ecx
call sym.mss32.dll__AIL_set_timer_user_8
mov edx, dword [esi + 4]
push edx
call sym.mss32.dll__AIL_start_timer_4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10