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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x64c
push ebx
push esi
push edi
lea eax, [esp + 0x44]
mov dword [esp + 0x58], eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0xa8], ecx
lea edx, [esp + 0x38]
mov dword [esp + 0xb8], edx
lea eax, [esp + 0x1b4]
lea ecx, [esp + 0x20]
lea edx, [esp + 0x30]
mov dword [esp + 0xc8], eax
mov dword [esp + 0xd8], ecx
mov dword [esp + 0x78], edx
lea eax, [esp + 0x1a8]
lea ecx, [esp + 0x1ac]
lea edx, [esp + 0x1a4]
mov dword [esp + 0x88], eax
mov dword [esp + 0x98], ecx
mov dword [esp + 0xe8], edx
xor esi, esi
lea eax, [esp + 0x1bc]
lea ecx, [esp + 0x1c4]
lea edx, [esp + 0x40]
mov edi, 1
mov dword [esp + 0xf8], eax
mov dword [esp + 0x108], ecx
mov dword [esp + 0x118], edx
lea eax, [esp + 0x1cc]
lea ecx, [esp + 0x1d4]
lea edx, [esp + 0x1c8]
mov dword [esp + 0x50], esi
mov dword [esp + 0x54], str.ASI_error
mov dword [esp + 0x5c], esi
mov dword [esp + 0xa0], esi
mov dword [esp + 0xa4], str.ASI_stream_property
mov dword [esp + 0xac], esi
mov dword [esp + 0xb0], esi
mov dword [esp + 0xb4], str.ASI_stream_open
mov dword [esp + 0xbc], esi
mov dword [esp + 0xc0], esi
mov dword [esp + 0xc4], str.ASI_stream_seek
mov dword [esp + 0xcc], esi
mov dword [esp + 0xd0], esi
mov dword [esp + 0xd4], str.ASI_stream_close
mov dword [esp + 0xdc], esi
mov dword [esp + 0x70], esi
mov dword [esp + 0x74], str.ASI_stream_process
mov dword [esp + 0x7c], esi
mov dword [esp + 0x80], edi
mov dword [esp + 0x84], str.Input_bit_rate
mov dword [esp + 0x8c], esi
mov dword [esp + 0x90], edi
mov dword [esp + 0x94], str.Input_sample_rate
mov dword [esp + 0x9c], esi
mov dword [esp + 0xe0], edi
mov dword [esp + 0xe4], str.Input_sample_width
mov dword [esp + 0xec], esi
mov dword [esp + 0xf0], edi
mov dword [esp + 0xf4], str.Input_channels
mov dword [esp + 0xfc], esi
mov dword [esp + 0x100], edi
mov dword [esp + 0x104], str.Output_bit_rate
mov dword [esp + 0x10c], esi
mov dword [esp + 0x110], edi
mov dword [esp + 0x114], str.Output_sample_rate
mov dword [esp + 0x11c], esi
mov dword [esp + 0x160], edi
mov dword [esp + 0x164], str.Output_sample_width
mov dword [esp + 0x168], eax
mov dword [esp + 0x16c], esi
mov dword [esp + 0x170], edi
mov dword [esp + 0x174], str.Output_channels
mov dword [esp + 0x178], ecx
mov dword [esp + 0x17c], esi
mov dword [esp + 0x180], edi
mov dword [esp + 0x184], str.Output_reservoir
mov dword [esp + 0x188], edx
mov dword [esp + 0x18c], esi
mov dword [esp + 0x190], edi
lea eax, [esp + 0x1b0]
mov dword [esp + 0x198], eax
lea eax, [esp + 0x3c]
mov dword [esp + 0x148], eax
lea eax, [esp + 0x1b8]
lea ecx, [esp + 0x4c]
lea edx, [esp + 0x1d8]
mov dword [esp + 0x1f8], eax
mov dword [esp + 0x128], ecx
mov dword [esp + 0x138], edx
lea eax, [esp + 0x1dc]
lea ecx, [esp + 0x34]
lea edx, [esp + 0x48]
mov dword [esp + 0x68], eax
mov eax, dword [ebp + 0xc]
cmp eax, esi
mov dword [esp + 0x158], ecx
mov dword [esp + 0x1e8], edx
lea ecx, [esp + 0x1d0]
lea edx, [esp + 0x1c0]
mov dword [esp + 0x194], str.Position
mov dword [esp + 0x19c], esi
mov dword [esp + 0x120], edi
mov dword [esp + 0x124], str.Percent_done
mov dword [esp + 0x12c], esi
mov dword [esp + 0x130], edi
mov dword [esp + 0x134], str.Minimum_input_block_size
mov dword [esp + 0x13c], esi
mov dword [esp + 0x140], edi
mov dword [esp + 0x144], str.Raw_source_sample_rate
mov dword [esp + 0x14c], esi
mov dword [esp + 0x150], edi
mov dword [esp + 0x154], str.Raw_source_sample_width
mov dword [esp + 0x15c], esi
mov dword [esp + 0x1e0], edi
mov dword [esp + 0x1e4], str.Raw_source_channels
mov dword [esp + 0x1ec], esi
mov dword [esp + 0x1f0], edi
mov dword [esp + 0x1f4], str.Requested_bit_rate
mov dword [esp + 0x1fc], esi
mov dword [esp + 0x200], edi
mov dword [esp + 0x204], str.Requested_sample_rate
mov dword [esp + 0x208], ecx
mov dword [esp + 0x20c], esi
mov dword [esp + 0x210], edi
mov dword [esp + 0x214], str.Requested_sample_width
mov dword [esp + 0x218], edx
mov dword [esp + 0x21c], esi
mov dword [esp + 0x60], edi
mov dword [esp + 0x64], str.Requested_channels
mov dword [esp + 0x6c], esi
jne 0x21126245
push str.No_codec_found_for_requested_output_type.
mov dword [0x2118b1f0], esi
call sym.mss32.dll__AIL_set_error_4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov ecx, str.Output_file_types
call fcn.21123f50
cmp eax, esi
mov dword [0x2118b1f0], eax
jne 0x2112626d
push str.No_codec_found_for_requested_output_type.
call sym.mss32.dll__AIL_set_error_4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov ecx, dword [ebp + 0x18]
cmp ecx, esi
je 0x21126285
push esi
push esi
call ecx
test eax, eax
je 0x21126653
mov eax, dword [0x2118b1f0]
lea ecx, [esp + 0x50]
push ecx
push edi
push str.ASI_codec
push eax
call sym.mss32.dll_RIB_request_interface
mov eax, dword [0x2118b1f0]
lea edx, [esp + 0xa0]
push edx
push 4
push str.ASI_stream
push eax
call sym.mss32.dll_RIB_request_interface
mov edx, dword [0x2118b1f0]
lea ecx, [esp + 0x70]
push ecx
push 3
push str.ASI_stream
push edx
call sym.mss32.dll_RIB_request_interface
mov ecx, dword [0x2118b1f0]
lea eax, [esp + 0xe0]
push eax
push 4
push str.ASI_stream
push ecx
call sym.mss32.dll_RIB_request_interface
mov eax, dword [0x2118b1f0]
lea edx, [esp + 0x160]
push edx
push 4
push str.ASI_stream
push eax
call sym.mss32.dll_RIB_request_interface
mov edx, dword [0x2118b1f0]
lea ecx, [esp + 0x120]
push ecx
push 4
push str.ASI_stream
push edx
call sym.mss32.dll_RIB_request_interface
mov ecx, dword [0x2118b1f0]
lea eax, [esp + 0x1e0]
push eax
push 4
push str.ASI_stream
push ecx
call sym.mss32.dll_RIB_request_interface
mov eax, dword [0x2118b1f0]
lea edx, [esp + 0x60]
push edx
push edi
push str.ASI_stream
push eax
call sym.mss32.dll_RIB_request_interface
mov ebx, dword [ebp + 8]
mov ecx, dword [ebx + 4]
mov eax, dword [ebx + 8]
mov edx, dword [ebx + 0xc]
xor edi, edi
cmp dword [ebx], 0x11
mov dword [0x21188dac], ecx
mov dword [0x21188db0], eax
mov dword [esp + 0x14], edx
je 0x2112648f
push eax
push 0x21109840
push esi
mov dword [0x21188db4], esi
call dword [esp + 0x44]
cmp eax, esi
mov dword [0x2118b298], eax
je 0x21126515
mov edx, dword [esp + 0x3c]
push esi
lea ecx, [esp + 0x18]
push ecx
push esi
push edx
push eax
call dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
mov edx, dword [0x2118b298]
push esi
lea eax, [ebx + 0x10]
push eax
push esi
push ecx
push edx
call dword [esp + 0x30]
mov ecx, dword [esp + 0x48]
mov edx, dword [0x2118b298]
push esi
lea eax, [ebx + 0x14]
push eax
push esi
push ecx
push edx
call dword [esp + 0x30]
mov eax, dword [ebp + 0x18]
cmp eax, esi
je 0x211263e2
push 0x21123fb0
push 1
call eax
test eax, eax
je 0x21126521
call fcn.21109b30
cmp eax, esi
mov dword [esp + 0x18], eax
je 0x21126555
mov ecx, dword [0x2118b298]
push 0x400
lea eax, [esp + 0x25c]
push eax
push ecx
call dword [esp + 0x3c]
mov ecx, dword [0x2118b298]
push esi
push esi
lea edx, [esp + 0x34]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x48]
push edx
push eax
push ecx
mov dword [esp + 0x40], 0xffffffff
call dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
cmp eax, dword [esp + 0x14]
je 0x2112657b
mov edx, dword [0x2118b298]
push edx
mov dword [esp + 0x18], eax
call dword [esp + 0x24]
mov dword [0x2118b298], esi
mov dword [esp + 0x10], esi
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
mov edx, dword [eax + ecx*4]
push edx
call sym.mss32.dll__AIL_mem_free_lock_4
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
add eax, 1
cmp eax, dword [ecx + 0x1010]
mov dword [esp + 0x10], eax
jbe 0x21126455
mov edx, ecx
push edx
call sym.mss32.dll__AIL_mem_free_lock_4
cmp edi, esi
je 0x2112648f
push edi
call sym.mss32.dll__AIL_mem_free_lock_4
xor eax, eax
cmp dword [ebx + 0x10], 0x10
mov ecx, 9
sete al
mov esi, ebx
lea edi, [esp + 0x1e0]
rep movsd dword es:[edi], dword [esi]
xor ecx, ecx
cmp dword [ebx + 0x14], 2
lea edx, [esp + 0x1e0]
setne cl
push edx
push 1
sub ecx, 1
and ecx, 2
or eax, ecx
mov esi, eax
mov eax, dword [esp + 0x1c]
push esi
push eax
call sym.mss32.dll__AIL_size_processed_digital_audio_16
push eax
mov dword [esp + 0x28], eax
call sym.mss32.dll__AIL_mem_alloc_lock_4
mov edi, eax
test edi, edi
je 0x21126262
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x1e0]
push ecx
push 1
push esi
push edx
push eax
push edi
call sym.mss32.dll__AIL_process_digital_audio_24
test eax, eax
je 0x2112656a
mov dword [0x21188dac], edi
mov dword [0x21188db0], eax
xor esi, esi
jmp 0x2112636f
call dword [esp + 0x44]
push eax
call sym.mss32.dll__AIL_set_error_4
jmp 0x21126566
mov ecx, dword [0x2118b298]
push ecx
call dword [esp + 0x24]
cmp edi, esi
mov dword [0x2118b298], esi
je 0x21126653
push edi
call sym.mss32.dll__AIL_mem_free_lock_4
push str.Compression_cancelled.
call sym.mss32.dll__AIL_set_error_4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov edx, dword [0x2118b298]
push edx
call dword [esp + 0x24]
mov dword [0x2118b298], esi
cmp edi, esi
je 0x21126570
push edi
call sym.mss32.dll__AIL_mem_free_lock_4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
cmp dword [esp + 0x10], esi
mov dword [esp + 0x28], esi
je 0x211265ff
jmp 0x21126589
xor esi, esi
cmp dword [esp + 0x28], esi
jne 0x211265ff
mov ebx, dword [ebp + 0x18]
cmp ebx, esi
je 0x211265c8
mov ecx, dword [esp + 0x4c]
fldz
mov edx, dword [0x2118b298]
fstp dword [esp + 0x24]
push esi
push esi
lea eax, [esp + 0x2c]
push eax
push ecx
push edx
call dword [esp + 0x30]
mov eax, dword [esp + 0x24]
push eax
push 2
call ebx
test eax, eax
jne 0x211265c8
mov dword [esp + 0x28], 1
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0x18]
lea ecx, [esp + 0x258]
push ecx
call fcn.21109c70
mov eax, dword [0x2118b298]
add esp, 4
push 0x400
lea edx, [esp + 0x25c]
push edx
push eax
call dword [esp + 0x3c]
test eax, eax
mov dword [esp + 0x10], eax
jne 0x21126587
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov esi, dword [esp + 0x18]
call fcn.21109bb0
test eax, eax
jne 0x2112661c
push str.Out_of_memory.
call sym.mss32.dll__AIL_set_error_4
mov ecx, dword [0x2118b298]
push ecx
call dword [esp + 0x24]
test edi, edi
mov dword [0x2118b298], 0
je 0x2112663b
push edi
call sym.mss32.dll__AIL_mem_free_lock_4
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x2112664c
push 0
push 3
call eax
test eax, eax
je 0x21126653
cmp dword [esp + 0x28], 0
je 0x21126668
push str.Compression_cancelled.
call sym.mss32.dll__AIL_set_error_4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 0x14