Function at 0x21120ce0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, dword [0x21151808]
sub esp, 0x48
push ebx
push ebp
xor ebx, ebx
cmp eax, ebx
push esi
push edi
mov ebp, ecx
je 0x21120d03
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
add esp, 0x48
ret 0x20
push 0x8ac0
call sym.mss32.dll__AIL_mem_alloc_lock_4
mov edi, eax
cmp edi, ebx
mov dword [0x21151808], edi
jne 0x21120d28
pop edi
pop esi
pop ebp
mov eax, 8
pop ebx
add esp, 0x48
ret 0x20
cmp ebp, ebx
je 0x21120d35
mov dword [ebp], edi
mov edi, dword [0x21151808]
xor eax, eax
mov ecx, 0x22b0
rep stosd dword es:[edi], eax
call fcn.2111f6c0
test eax, eax
jne 0x21120d56
pop edi
pop esi
pop ebp
mov eax, 8
pop ebx
add esp, 0x48
ret 0x20
mov eax, dword [0x21151808]
fild dword [esp + 0x64]
mov ecx, dword [esp + 0x5c]
mov dword [eax], ecx
mov edx, dword [0x21151808]
mov eax, dword [esp + 0x60]
mov dword [edx + 4], eax
mov ecx, dword [0x21151808]
fstp dword [ecx + 8]
mov edx, dword [0x21151808]
mov ecx, dword [esp + 0x68]
mov dword [edx + 0x18], ecx
mov edx, dword [0x21151808]
mov ecx, dword [esp + 0x6c]
mov dword [edx + 0x1c], ecx
mov edx, dword [0x21151808]
mov ecx, dword [esp + 0x70]
mov dword [edx + 0x20], ecx
mov edx, dword [0x21151808]
mov ecx, dword [esp + 0x74]
mov dword [edx + 0x24], ecx
mov edx, dword [0x21151808]
mov ecx, dword [esp + 0x78]
mov dword [edx + 0x28], ecx
mov ecx, dword [0x21151808]
test al, 2
mov edx, 0
setne dl
inc edx
mov dword [ecx + 0xc], edx
test al, 1
mov eax, dword [0x21151808]
mov edx, 0
setne dl
inc edx
mov dword [eax + 0x10], edx
mov eax, dword [0x21151808]
mov ecx, dword [eax + 0x10]
imul ecx, dword [eax + 0xc]
mov dword [eax + 0x14], ecx
lea edx, [esp + 0x18]
mov dword [esp + 0x30], edx
lea edx, [esp + 0x10]
push edx
push ebx
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x24]
push str.MSS_mixer_services
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], str.MIXER_flush
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], str.MIXER_merge
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], str.MIXER_copy
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x60], ebx
call sym.mss32.dll__RIB_enumerate_providers_12
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x28]
push eax
push 3
push str.MSS_mixer_services
push ecx
call sym.mss32.dll_RIB_request_interface
mov edx, dword [0x21151808]
mov eax, dword [esp + 0x14]
mov dword [edx + 0x8ab8], eax
mov ecx, dword [0x21151808]
mov edx, dword [esp + 0x18]
mov dword [ecx + 0x8ab4], edx
mov eax, dword [0x21151808]
mov ecx, dword [esp + 0x1c]
mov dword [eax + 0x8abc], ecx
xor esi, esi
push 1
mov edx, 0x7f
mov ecx, esi
call fcn.211210d0
inc esi
cmp esi, 0x10
jl 0x21120e91
mov edx, dword [0x21151808]
mov dword [edx + 0x8a8c], ebx
mov eax, dword [0x21151808]
push 0x15
mov dword [eax + 0x8a90], ebx
call sym.mss32.dll__AIL_get_preference_4
mov ecx, dword [0x21151808]
mov dword [ecx + 0x8a98], eax
mov edx, dword [0x21151808]
mov eax, dword [edx + 0x8a98]
lea ecx, [eax + eax*2]
shl ecx, 3
sub ecx, eax
shl ecx, 3
push ecx
call sym.mss32.dll__AIL_mem_alloc_lock_4
mov edx, dword [0x21151808]
mov dword [edx + 0x8a94], eax
mov eax, dword [0x21151808]
mov edi, dword [eax + 0x8a94]
cmp edi, ebx
jne 0x21120f20
mov ecx, dword [ebp]
xor edx, edx
call fcn.211229e0
pop edi
pop esi
pop ebp
mov eax, 8
pop ebx
add esp, 0x48
ret 0x20
mov eax, dword [eax + 0x8a98]
lea ecx, [eax + eax*2]
shl ecx, 3
sub ecx, eax
shl ecx, 3
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
push 0x14
rep stosb byte es:[edi], al
call sym.mss32.dll__AIL_get_preference_4
mov dword [esp + 0x5c], eax
mov eax, dword [0x21151808]
fild dword [esp + 0x5c]
push 0x211212a0
fdivr dword [0x211424a8]
fstp dword [eax + 0x2c]
call sym.mss32.dll__AIL_register_timer_4
mov ecx, dword [0x21151808]
mov dword [ecx + 0x38], eax
mov ecx, dword [0x21151808]
mov eax, dword [ecx + 0x38]
cmp eax, 0xffffffff
jne 0x21120f98
mov ecx, dword [ebp]
xor edx, edx
call fcn.211229e0
pop edi
pop esi
pop ebp
mov eax, 7
pop ebx
add esp, 0x48
ret 0x20
push ecx
push eax
call sym.mss32.dll__AIL_set_timer_user_8
mov eax, dword [0x21151808]
fld dword [eax + 0x2c]
mov eax, dword [eax + 0x38]
fistp qword [esp + 0x20]
mov edx, dword [esp + 0x20]
push edx
push eax
call sym.mss32.dll__AIL_set_timer_period_8
mov ecx, dword [0x21151808]
mov eax, dword [ecx + 0x18]
cdq
idiv dword [ecx + 0x10]
mov esi, 0x40
shl eax, 2
mov dword [ecx + 0x58], eax
mov eax, dword [0x21151808]
mov dword [esi + eax + 4], ebx
mov ecx, dword [0x21151808]
mov edx, dword [ecx + 0x58]
push edx
call sym.mss32.dll__AIL_mem_alloc_lock_4
mov ecx, dword [0x21151808]
mov dword [esi + ecx], eax
mov eax, dword [0x21151808]
cmp dword [esi + eax], ebx
je 0x21120f07
add esi, 8
cmp esi, 0x58
jl 0x21120fd6
mov dword [eax + 0x78], ebx
mov edx, dword [0x21151808]
mov dword [edx + 0x7c], ebx
mov eax, dword [0x21151808]
mov dword [eax + 0x80], ebx
mov ecx, dword [0x21151808]
mov dword [ecx + 0x64], ebx
mov edx, dword [0x21151808]
mov dword [edx + 0x60], ebx
mov eax, dword [0x21151808]
mov dword [eax + 0x5c], ebx
mov ecx, dword [0x21151808]
mov edx, dword [ecx]
push 0x211224e0
push edx
call sym.mss32.dll__AIL_register_event_callback_8
mov ecx, dword [0x21151808]
mov dword [ecx + 0x84], eax
mov edx, dword [0x21151808]
mov eax, dword [edx]
push 0x21122990
push eax
call sym.mss32.dll__AIL_register_timbre_callback_8
mov ecx, dword [0x21151808]
mov dword [ecx + 0x88], eax
call sym.mss32.dll__AIL_MMX_available_0
mov edx, dword [0x21151808]
mov dword [edx + 0x8a9c], eax
mov eax, dword [0x21151808]
mov dword [eax + 0x3c], ebx
call sym.mss32.dll__AIL_us_count_0
mov ecx, dword [0x21151808]
mov dword [ecx + 0x30], eax
mov edx, dword [0x21151808]
mov dword [edx + 0x8aa0], 1
mov eax, dword [0x21151808]
mov ecx, dword [eax + 0x38]
push ecx
call sym.mss32.dll__AIL_start_timer_4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x48
ret 0x20