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

Disassembly:
sub esp, 0x674
lea eax, [esp + 0x24]
mov dword [esp + 0x3c], eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x4c], ecx
lea edx, [esp + 0x1c]
lea eax, [esp + 0x1f4]
lea ecx, [esp + 8]
push ebx
mov dword [esp + 0x60], edx
mov dword [esp + 0x70], eax
mov dword [esp + 0x80], ecx
push ebp
xor ebp, ebp
lea edx, [esp + 0x20]
lea eax, [esp + 0x1f0]
lea ecx, [esp + 0x1cc]
mov dword [esp + 0x94], edx
mov dword [esp + 0xb4], eax
mov dword [esp + 0xc4], ecx
lea edx, [esp + 0x1d4]
lea eax, [esp + 0x200]
lea ecx, [esp + 0x1dc]
push esi
push edi
mov edi, 1
mov dword [esp + 0xdc], edx
mov dword [esp + 0xec], eax
mov dword [esp + 0xfc], ecx
lea edx, [esp + 0x24]
lea eax, [esp + 0x1fc]
lea ecx, [esp + 0x1ec]
mov dword [esp + 0x44], ebp
mov dword [esp + 0x48], str.ASI_error
mov dword [esp + 0x50], ebp
mov dword [esp + 0x54], ebp
mov dword [esp + 0x58], str.ASI_stream_attribute
mov dword [esp + 0x60], ebp
mov dword [esp + 0x64], ebp
mov dword [esp + 0x68], str.ASI_stream_open
mov dword [esp + 0x70], ebp
mov dword [esp + 0x74], ebp
mov dword [esp + 0x78], str.ASI_stream_seek
mov dword [esp + 0x80], ebp
mov dword [esp + 0x84], ebp
mov dword [esp + 0x88], str.ASI_stream_close
mov dword [esp + 0x90], ebp
mov dword [esp + 0x94], ebp
mov dword [esp + 0x98], str.ASI_stream_process
mov dword [esp + 0xa0], ebp
mov dword [esp + 0xa4], ebp
mov dword [esp + 0xa8], str.ASI_stream_set_preference
mov dword [esp + 0xac], 0x21152dc0
mov dword [esp + 0xb0], ebp
mov dword [esp + 0xb4], edi
mov dword [esp + 0xb8], str.Input_bit_rate
mov dword [esp + 0xc0], ebp
mov dword [esp + 0xc4], edi
mov dword [esp + 0xc8], str.Input_sample_rate
mov dword [esp + 0xd0], ebp
mov dword [esp + 0xd4], edi
mov dword [esp + 0xd8], str.Input_sample_width
mov dword [esp + 0xe0], ebp
mov dword [esp + 0xe4], edi
mov dword [esp + 0xe8], str.Input_channels
mov dword [esp + 0xf0], ebp
mov dword [esp + 0xf4], edi
mov dword [esp + 0xf8], str.Output_bit_rate
mov dword [esp + 0x100], ebp
mov dword [esp + 0x104], edi
mov dword [esp + 0x108], str.Output_sample_rate
mov dword [esp + 0x10c], edx
mov dword [esp + 0x110], ebp
mov dword [esp + 0x114], edi
mov dword [esp + 0x118], str.Output_sample_width
mov dword [esp + 0x11c], eax
mov dword [esp + 0x120], ebp
mov dword [esp + 0x124], edi
mov dword [esp + 0x128], str.Output_channels
mov dword [esp + 0x12c], ecx
mov dword [esp + 0x130], ebp
mov dword [esp + 0x134], edi
lea edx, [esp + 0x200]
mov dword [esp + 0x13c], edx
lea ecx, [esp + 0x1f4]
lea edx, [esp + 0x40]
mov dword [esp + 0x15c], ecx
mov dword [esp + 0x16c], edx
lea eax, [esp + 0x38]
lea ecx, [esp + 0x3c]
lea edx, [esp + 0x30]
mov dword [esp + 0x14c], eax
mov eax, 2
mov dword [esp + 0x17c], ecx
mov dword [esp + 0x18c], edx
lea ecx, [esp + 0x1d8]
lea edx, [esp + 0x1e0]
mov dword [esp + 0x164], eax
mov dword [esp + 0x174], eax
mov dword [esp + 0x184], eax
mov dword [esp + 0x194], eax
mov dword [esp + 0x1a4], eax
mov dword [esp + 0x1b4], eax
mov dword [esp + 0x1c4], eax
mov eax, dword [esp + 0x68c]
cmp eax, ebp
mov dword [esp + 0x19c], ecx
mov dword [esp + 0x1ac], edx
lea ecx, [esp + 0x1e8]
lea edx, [esp + 0x1f0]
mov dword [esp + 0x138], str.Position
mov dword [esp + 0x140], ebp
mov dword [esp + 0x144], edi
mov dword [esp + 0x148], str.Percent_done
mov dword [esp + 0x150], ebp
mov dword [esp + 0x154], edi
mov dword [esp + 0x158], str.Minimum_input_block_size
mov dword [esp + 0x160], ebp
mov dword [esp + 0x168], str.Raw_source_sample_rate
mov dword [esp + 0x170], ebp
mov dword [esp + 0x178], str.Raw_source_sample_width
mov dword [esp + 0x180], ebp
mov dword [esp + 0x188], str.Raw_source_channels
mov dword [esp + 0x190], ebp
mov dword [esp + 0x198], str.Requested_bit_rate
mov dword [esp + 0x1a0], ebp
mov dword [esp + 0x1a8], str.Requested_sample_rate
mov dword [esp + 0x1b0], ebp
mov dword [esp + 0x1b8], str.Requested_sample_width
mov dword [esp + 0x1bc], ecx
mov dword [esp + 0x1c0], ebp
mov dword [esp + 0x1c8], str.Requested_channels
mov dword [esp + 0x1cc], edx
mov dword [esp + 0x1d0], ebp
jne 0x2112d301
push 0x211473b0
mov dword [0x21152dbc], ebp
call sym.mss32.dll__AIL_set_error_4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x674
ret 0x14
push eax
push str.Output_file_types
push str.ASI_codec
call sym.mss32.dll_RIB_find_file_provider
cmp eax, ebp
mov dword [0x21152dbc], eax
jne 0x2112d333
push 0x211473b0
call sym.mss32.dll__AIL_set_error_4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x674
ret 0x14
mov ecx, dword [esp + 0x698]
cmp ecx, ebp
je 0x2112d34f
push ebp
push ebp
call ecx
test eax, eax
je 0x2112d668
mov eax, dword [0x21152dbc]
lea ecx, [esp + 0x44]
push ecx
push edi
push str.ASI_codec
push eax
call sym.mss32.dll_RIB_request_interface
mov eax, dword [0x21152dbc]
lea edx, [esp + 0x54]
push edx
push 0x18
push str.ASI_stream
push eax
call sym.mss32.dll_RIB_request_interface
mov ebx, dword [esp + 0x688]
mov ecx, dword [ebx + 4]
mov dword [0x211507b4], ecx
mov eax, dword [ebx + 8]
mov dword [0x211507b8], eax
mov ecx, dword [ebx]
mov edx, dword [ebx + 0xc]
xor esi, esi
cmp ecx, 0x11
mov dword [esp + 0x10], edx
je 0x2112d4fc
push eax
push 0x2111ad50
push ebp
mov dword [0x211507b0], ebp
call dword [esp + 0x38]
cmp eax, ebp
mov dword [0x21152dc4], eax
jne 0x2112d3cc
call dword [esp + 0x34]
push eax
call sym.mss32.dll__AIL_set_error_4
jmp 0x2112d475
mov edx, dword [esp + 0x40]
lea ecx, [esp + 0x10]
push ecx
push edx
push eax
call dword [0x21152dc0]
mov ecx, dword [esp + 0x3c]
mov edx, dword [0x21152dc4]
lea eax, [ebx + 0x10]
push eax
push ecx
push edx
call dword [0x21152dc0]
mov ecx, dword [esp + 0x30]
mov edx, dword [0x21152dc4]
lea eax, [ebx + 0x14]
push eax
push ecx
push edx
call dword [0x21152dc0]
mov eax, dword [esp + 0x698]
cmp eax, ebp
je 0x2112d457
push 0x2112c010
push edi
call eax
test eax, eax
jne 0x2112d457
mov eax, dword [0x21152dc4]
push eax
call dword [esp + 0x1c]
cmp esi, ebp
mov dword [0x21152dc4], ebp
je 0x2112d668
push esi
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, 0x674
ret 0x14
call fcn.2111b000
cmp eax, ebp
mov dword [esp + 0x1c], eax
jne 0x2112d48e
mov ecx, dword [0x21152dc4]
push ecx
call dword [esp + 0x1c]
mov dword [0x21152dc4], ebp
cmp esi, ebp
je 0x2112d47f
push esi
call sym.mss32.dll__AIL_mem_free_lock_4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x674
ret 0x14
mov eax, dword [0x21152dc4]
push 0x400
lea edx, [esp + 0x288]
push edx
push eax
call dword [esp + 0x34]
mov ecx, dword [esp + 0x24]
mov edx, dword [0x21152dc4]
push ecx
push edx
mov edi, eax
call dword [esp + 0x28]
cmp eax, dword [esp + 0x10]
je 0x2112d5a5
mov eax, dword [esp + 0x24]
mov ecx, dword [0x21152dc4]
push eax
push ecx
call dword [esp + 0x28]
mov edx, dword [0x21152dc4]
push edx
mov dword [esp + 0x14], eax
call dword [esp + 0x1c]
mov ecx, dword [esp + 0x1c]
push ebp
xor edx, edx
mov dword [0x21152dc4], ebp
call fcn.2111b080
cmp esi, ebp
je 0x2112d4fc
push esi
call sym.mss32.dll__AIL_mem_free_lock_4
mov edx, dword [ebx + 0x14]
xor eax, eax
mov ecx, 9
mov esi, ebx
lea edi, [esp + 0x20c]
rep movsd dword es:[edi], dword [esi]
cmp dword [ebx + 0x10], 0x10
sete al
xor ecx, ecx
cmp edx, 2
setne cl
lea edx, [esp + 0x20c]
push edx
push 1
dec ecx
and ecx, 2
or eax, ecx
mov edi, eax
mov eax, dword [esp + 0x18]
push edi
push eax
call sym.mss32.dll__AIL_size_processed_digital_audio_16
push eax
mov dword [esp + 0x18], eax
call sym.mss32.dll__AIL_mem_alloc_lock_4
mov esi, eax
cmp esi, ebp
jne 0x2112d55c
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x674
ret 0x14
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x20c]
push ecx
push 1
push edi
push edx
push eax
push esi
call sym.mss32.dll__AIL_process_digital_audio_24
cmp eax, ebp
jne 0x2112d590
push esi
call sym.mss32.dll__AIL_mem_free_lock_4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x674
ret 0x14
mov dword [0x211507b4], esi
mov dword [0x211507b8], eax
mov edi, 1
jmp 0x2112d3a3
cmp edi, ebp
mov dword [esp + 0x14], ebp
je 0x2112d60e
cmp dword [esp + 0x14], ebp
jne 0x2112d60e
mov ebx, dword [esp + 0x698]
cmp ebx, ebp
je 0x2112d5df
mov ecx, dword [esp + 0x38]
mov edx, dword [0x21152dc4]
push ecx
push edx
call dword [esp + 0x28]
push eax
push 2
call ebx
test eax, eax
jne 0x2112d5df
mov dword [esp + 0x14], 1
mov ecx, dword [esp + 0x1c]
push edi
lea edx, [esp + 0x288]
call fcn.2111b150
mov ecx, dword [0x21152dc4]
push 0x400
lea eax, [esp + 0x288]
push eax
push ecx
call dword [esp + 0x34]
mov edi, eax
cmp edi, ebp
jne 0x2112d5ad
mov edx, dword [esp + 0x694]
mov ecx, dword [esp + 0x1c]
push edx
mov edx, dword [esp + 0x694]
call fcn.2111b080
test eax, eax
jne 0x2112d634
push str.Out_of_memory.
call sym.mss32.dll__AIL_set_error_4
mov eax, dword [0x21152dc4]
push eax
call dword [esp + 0x1c]
cmp esi, ebp
mov dword [0x21152dc4], ebp
je 0x2112d64e
push esi
call sym.mss32.dll__AIL_mem_free_lock_4
mov eax, dword [esp + 0x698]
cmp eax, ebp
je 0x2112d662
push ebp
push 3
call eax
test eax, eax
je 0x2112d668
cmp dword [esp + 0x14], ebp
je 0x2112d681
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, 0x674
ret 0x14
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x674
ret 0x14