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

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0xa8
test eax, eax
jne 0x2112b365
mov dword [0x21152dbc], eax
jmp 0x2112b37a
push eax
push str.Output_file_types
push str.ASI_codec
call sym.mss32.dll_RIB_find_file_provider
mov dword [0x21152dbc], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0xb8]
cmp dword [esi + 8], 0x20534c44
push edi
je 0x2112b3a7
push str.Not_a_DLS_file.
call sym.mss32.dll__AIL_set_error_4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xa8
ret 0x14
mov edi, dword [esi + 4]
add edi, 8
push edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x78], edi
call sym.mss32.dll__AIL_mem_alloc_lock_4
mov ebp, eax
test ebp, ebp
mov dword [esp + 0x1c], ebp
jne 0x2112b3d2
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa8
ret 0x14
mov eax, dword [esp + 0xcc]
test eax, eax
je 0x2112b3eb
push 0
push 0
call eax
test eax, eax
je 0x2112b97c
mov ecx, edi
mov eax, ecx
shr ecx, 2
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp + 4]
mov ecx, eax
and ecx, 1
add ecx, eax
lea edx, [ecx + ebp + 8]
lea eax, [ebp + 0xc]
cmp eax, edx
mov dword [ebp + 8], 0x20534c4d
mov dword [esp + 0x18], edx
jae 0x2112b464
cmp dword [eax], 0x6c627470
je 0x2112b450
mov ecx, dword [eax + 4]
mov esi, ecx
and esi, 1
add esi, ecx
lea eax, [eax + esi + 8]
cmp eax, edx
jb 0x2112b41d
push str.No_PTBL_chunk_found.
call sym.mss32.dll__AIL_set_error_4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xa8
ret 0x14
mov ecx, dword [eax + 8]
add eax, 8
add ecx, eax
test eax, eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x40], ecx
jne 0x2112b47d
push str.No_PTBL_chunk_found.
call sym.mss32.dll__AIL_set_error_4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xa8
ret 0x14
mov ebx, dword [eax + 4]
mov eax, dword [esp + 0x18]
lea esi, [ebp + 0xc]
and ebx, 0xffffff
cmp esi, eax
mov dword [esp + 0x10], 0
mov dword [esp + 0x24], ebx
jae 0x2112b535
cmp dword [esi], 0x5453494c
jne 0x2112b51b
cmp dword [esi + 8], 0x6c707677
jne 0x2112b51b
mov eax, dword [esi + 4]
mov edx, eax
and edx, 1
add edx, eax
lea edx, [edx + esi + 8]
lea eax, [esi + 0xc]
cmp eax, edx
mov dword [esp + 0x14], edx
jae 0x2112b51b
cmp dword [eax], 0x5453494c
jne 0x2112b509
cmp dword [eax + 8], 0x65766177
jne 0x2112b509
mov ecx, eax
sub ecx, esi
sub ecx, 0xc
test ebx, ebx
jbe 0x2112b505
mov edx, dword [esp + 0x40]
mov edi, ebx
cmp dword [edx], ecx
jne 0x2112b4fb
mov ebx, dword [esp + 0x10]
mov dword [edx], ebx
mov ebx, dword [esp + 0x24]
add edx, 4
dec edi
jne 0x2112b4ed
mov edx, dword [esp + 0x14]
inc dword [esp + 0x10]
mov ecx, dword [eax + 4]
mov edi, ecx
and edi, 1
add edi, ecx
lea eax, [eax + edi + 8]
cmp eax, edx
jb 0x2112b4cb
mov eax, dword [esi + 4]
mov ecx, eax
and ecx, 1
add ecx, eax
mov eax, dword [esp + 0x18]
lea esi, [esi + ecx + 8]
cmp esi, eax
jb 0x2112b4a1
mov dword [esp + 0x34], 0
mov eax, dword [ebp + 4]
mov edx, eax
and edx, 1
add edx, eax
lea esi, [edx + ebp + 8]
xor ebx, ebx
lea edx, [ebp + 0xc]
cmp edx, esi
mov dword [esp + 0x28], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x38], esi
mov dword [esp + 0x30], edx
mov dword [esp + 0x18], ebx
jae 0x2112b9ba
cmp dword [edx], 0x5453494c
jne 0x2112b658
cmp dword [edx + 8], 0x6c707677
jne 0x2112b658
mov eax, dword [edx + 4]
mov ecx, eax
and ecx, 1
add ecx, eax
lea eax, [ecx + edx + 8]
lea ecx, [edx + 0xc]
cmp ecx, eax
mov dword [esp + 0x6c], eax
jae 0x2112b658
cmp dword [ecx], 0x5453494c
jne 0x2112b636
cmp dword [ecx + 8], 0x65766177
jne 0x2112b636
mov eax, dword [ecx + 4]
mov esi, eax
and esi, 1
add esi, eax
lea eax, [ecx + 0xc]
xor edi, edi
lea esi, [esi + ecx + 8]
xor ebx, ebx
cmp eax, esi
mov dword [esp + 0x14], edi
mov dword [esp + 0x70], eax
jae 0x2112b622
mov edx, dword [eax]
cmp edx, 0x61746164
jne 0x2112b5e6
mov ebx, eax
jmp 0x2112b5fe
cmp edx, 0x20746d66
jne 0x2112b5f2
mov edi, eax
jmp 0x2112b5fe
cmp edx, 0x206d6370
jne 0x2112b5fe
mov dword [esp + 0x14], eax
mov edx, dword [eax + 4]
mov ebp, edx
and ebp, 1
add ebp, edx
lea eax, [eax + ebp + 8]
cmp eax, esi
jb 0x2112b5d8
mov eax, dword [esp + 0x14]
test eax, eax
mov ebp, dword [esp + 0x1c]
mov edx, dword [esp + 0x30]
jne 0x2112b636
jmp 0x2112b626
mov ebp, dword [esp + 0x1c]
mov eax, dword [esp + 0x70]
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x28], edi
mov dword [esp + 0x18], eax
mov eax, dword [ecx + 4]
mov esi, eax
and esi, 1
add esi, eax
mov eax, dword [esp + 0x6c]
lea ecx, [ecx + esi + 8]
cmp ecx, eax
jb 0x2112b5a2
mov ebx, dword [esp + 0x3c]
mov esi, dword [esp + 0x38]
mov eax, dword [edx + 4]
mov ecx, eax
and ecx, 1
add ecx, eax
lea edx, [edx + ecx + 8]
cmp edx, esi
mov dword [esp + 0x30], edx
jb 0x2112b56c
mov eax, dword [esp + 0x28]
test eax, eax
je 0x2112b9ba
test ebx, ebx
je 0x2112b9ba
mov eax, dword [esp + 0x18]
test eax, eax
je 0x2112b9ba
mov esi, dword [esp + 0x28]
mov ecx, dword [esi + 4]
mov eax, dword [str.pcm]
add ecx, 8
mov edx, ecx
shr ecx, 2
lea edi, [esp + 0x88]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0x94]
lea ecx, [ebx + 8]
mov dword [esp + 0x48], ecx
mov ecx, dword [esp + 0x9e]
mov dword [esp + 0x44], 1
mov edx, dword [ebx + 4]
mov dword [esp + 0x4c], edx
mov edx, dword [esp + 0x92]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x9c]
and edx, 0xffff
and ecx, 0xffff
and eax, 0xffff
mov dword [esp + 0x58], edx
mov edx, dword [esp + 0x34]
mov dword [esp + 0x54], ecx
mov ecx, dword [esp + 0xcc]
mov dword [esp + 0x60], eax
add edx, 0x64
xor eax, eax
cmp ecx, eax
mov dword [esp + 0x34], edx
je 0x2112b77e
mov ecx, edx
mov edx, dword [esp + 0x24]
mov dword [esp + 0x7c], eax
mov dword [esp + 0x78], ecx
fild qword [esp + 0x78]
mov dword [esp + 0x84], eax
mov dword [esp + 0x80], edx
fidiv dword [esp + 0x80]
fst dword [esp + 0x14]
fcomp dword [0x211424ac]
fnstsw ax
test ah, 0x41
jne 0x2112b768
mov dword [esp + 0x14], 0x42c80000
mov eax, dword [esp + 0x14]
push eax
push 2
call dword [esp + 0xd4]
test eax, eax
je 0x2112b97c
mov eax, dword [0x21152dbc]
test eax, eax
je 0x2112b8ee
push 0x27
call sym.mss32.dll__AIL_get_preference_4
mov esi, dword [esp + 0x9c]
mov ecx, eax
mov eax, dword [esp + 0x4c]
and esi, 0xffff
xor edx, edx
div esi
cmp eax, ecx
jb 0x2112b8ee
mov edx, dword [esp + 0xcc]
push edx
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x50]
push edx
call fcn.2112baf0
test eax, eax
je 0x2112b99b
mov eax, dword [esp + 0x2c]
add eax, 0x42
push eax
call sym.mss32.dll__AIL_mem_alloc_lock_4
mov ebx, eax
test ebx, ebx
je 0x2112b9a5
mov ecx, dword [esp + 0x2c]
mov esi, dword [esp + 0x10]
mov edx, ecx
shr ecx, 2
lea edi, [ebx + 0x3e]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x10]
push eax
call sym.mss32.dll__AIL_mem_free_lock_4
mov ecx, dword [str.RIFF]
mov dword [ebx], ecx
mov dword [ebx + 4], 0x36
mov edx, dword [str.WAVE]
mov dword [ebx + 8], edx
mov eax, dword [str.fmt]
mov dword [ebx + 0xc], eax
xor ecx, ecx
mov word [ebx + 0x14], cx
mov dword [ebx + 0x10], 0x16
mov dx, word [esp + 0x58]
mov word [ebx + 0x16], dx
mov eax, dword [esp + 0x50]
mov dword [ebx + 0x18], eax
mov eax, dword [esp + 0x54]
cdq
and edx, 7
add eax, edx
sar eax, 3
imul eax, dword [esp + 0x58]
imul eax, dword [esp + 0x50]
mov word [ebx + 0x22], cx
mov dword [ebx + 0x1c], eax
mov word [ebx + 0x20], 1
mov eax, 4
mov word [ebx + 0x24], ax
mov ecx, dword [str.fact]
mov dword [ebx + 0x2a], ecx
mov dword [ebx + 0x2e], eax
mov eax, dword [esp + 0x54]
cdq
and edx, 7
add eax, edx
mov ecx, eax
mov eax, dword [esp + 0x4c]
sar ecx, 3
xor edx, edx
div ecx
xor edx, edx
mov edi, 0x21147378
div dword [esp + 0x58]
mov dword [ebx + 0x32], eax
mov edx, dword [str.data]
mov dword [ebx + 0x36], edx
mov eax, dword [esp + 0x2c]
mov dword [ebx + 0x3a], eax
mov ecx, dword [esp + 0x2c]
add ecx, 0x36
mov dword [ebx + 4], ecx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
lea edx, [ebx + 0x26]
mov esi, edi
shr ecx, 2
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 0x3c]
jmp 0x2112b907
push 0
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x4c]
push edx
call sym.mss32.dll__AIL_compress_ADPCM_12
test eax, eax
je 0x2112b9a5
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x10]
lea esi, [eax + 0xc]
mov edx, dword [ecx + esi + 0xc]
lea edi, [ecx + esi + 8]
lea eax, [edx + edi + 8]
push eax
mov edx, ebp
mov ecx, ebx
call fcn.2112c230
mov ebx, dword [esp + 0x20]
mov ecx, dword [esp + 0x28]
mov edx, ebp
add ebx, eax
call fcn.2112c060
push edi
mov edi, dword [esp + 0x1c]
mov edx, ebp
mov ecx, edi
sub ebx, eax
call fcn.2112c130
push esi
mov edx, ebp
mov ecx, edi
add ebx, eax
call fcn.2112c130
add ebx, eax
mov eax, dword [esp + 0x10]
push eax
call sym.mss32.dll__AIL_mem_free_lock_4
lea ecx, [esp + 0x88]
push ecx
mov edx, ebp
mov ecx, edi
call fcn.2112c130
add ebx, eax
mov dword [esp + 0x20], ebx
jmp 0x2112b53d
push ebp
call sym.mss32.dll__AIL_mem_free_lock_4
push str.Compression_cancelled.
call sym.mss32.dll__AIL_set_error_4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xa8
ret 0x14
mov edx, dword [esp + 0x48]
push edx
call sym.mss32.dll__AIL_mem_free_lock_4
push ebp
call sym.mss32.dll__AIL_mem_free_lock_4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xa8
ret 0x14
mov eax, dword [ebp + 4]
mov ecx, eax
and ecx, 1
add ecx, eax
lea ecx, [ecx + ebp + 8]
lea esi, [ebp + 0xc]
cmp esi, ecx
mov dword [esp + 0x38], ecx
mov dword [esp + 0x10], 0
jae 0x2112ba71
cmp dword [esi], 0x5453494c
jne 0x2112ba5b
cmp dword [esi + 8], 0x6c707677
jne 0x2112ba5b
mov eax, dword [esi + 4]
mov edx, eax
and edx, 1
add edx, eax
lea ebx, [edx + esi + 8]
lea eax, [esi + 0xc]
cmp eax, ebx
jae 0x2112ba5b
cmp dword [eax], 0x5453494c
jne 0x2112ba45
cmp dword [eax + 8], 0x65766177
jne 0x2112ba45
mov edx, dword [esp + 0x24]
mov ecx, eax
sub ecx, esi
sub ecx, 0xc
test edx, edx
jbe 0x2112ba41
mov edx, dword [esp + 0x40]
mov edi, dword [esp + 0x24]
mov ebp, dword [esp + 0x10]
cmp dword [edx], ebp
jne 0x2112ba37
mov dword [edx], ecx
add edx, 4
dec edi
jne 0x2112ba31
mov ebp, dword [esp + 0x1c]
inc dword [esp + 0x10]
mov ecx, dword [eax + 4]
mov edx, ecx
and edx, 1
add edx, ecx
lea eax, [eax + edx + 8]
cmp eax, ebx
jb 0x2112ba05
mov ecx, dword [esp + 0x38]
mov eax, dword [esi + 4]
mov edx, eax
and edx, 1
add edx, eax
lea esi, [esi + edx + 8]
cmp esi, ecx
jb 0x2112b9df
mov eax, dword [esp + 0xc8]
test eax, eax
mov ecx, dword [esp + 0x20]
je 0x2112ba82
mov dword [eax], ecx
mov eax, dword [0x21152dbc]
test eax, eax
je 0x2112bab1
mov edx, dword [esp + 0x74]
mov eax, ecx
shr eax, 1
add eax, edx
xor edx, edx
div ecx
inc eax
shl eax, 0x18
mov ecx, eax
mov eax, dword [esp + 0x68]
mov edx, dword [eax + 4]
and edx, 0xffffff
or ecx, edx
mov dword [eax + 4], ecx
mov eax, dword [esp + 0xc4]
test eax, eax
je 0x2112bac0
mov dword [eax], ebp
jmp 0x2112bac6
push ebp
call sym.mss32.dll__AIL_mem_free_lock_4
mov eax, dword [esp + 0xcc]
test eax, eax
je 0x2112bad7
push 0
push 3
call eax
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0xa8
ret 0x14