Function at 0x21128360
Capabilities:
Contain obfuscated stackstrings
Resolve function by parsing pe exports

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x620
push ebx
push ebp
push esi
push edi
xor edi, edi
cmp eax, edi
je 0x21128766
mov ebx, dword [esp + 0x638]
cmp ebx, edi
je 0x21128766
lea eax, [esp + 0x20]
mov dword [esp + 0x68], eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x78], ecx
lea edx, [esp + 0x2c]
mov dword [esp + 0x88], edx
lea eax, [esp + 0x1fc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
mov dword [esp + 0x98], eax
mov dword [esp + 0xa8], ecx
mov dword [esp + 0xb8], edx
mov ebp, 1
lea eax, [esp + 0x218]
lea ecx, [esp + 0x220]
lea edx, [esp + 0x228]
mov dword [esp + 0xd8], eax
mov dword [esp + 0xe8], ecx
mov dword [esp + 0xf8], edx
lea eax, [esp + 0x214]
lea ecx, [esp + 0x1f0]
lea edx, [esp + 0x24]
mov dword [esp + 0x108], eax
mov dword [esp + 0x118], ecx
mov dword [esp + 0x128], edx
lea eax, [esp + 0x224]
lea ecx, [esp + 0x30]
lea edx, [esp + 0x204]
mov dword [esp + 0x60], edi
mov dword [esp + 0x64], str.ASI_error
mov dword [esp + 0x6c], edi
mov dword [esp + 0x70], edi
mov dword [esp + 0x74], str.ASI_stream_attribute
mov dword [esp + 0x7c], edi
mov dword [esp + 0x80], edi
mov dword [esp + 0x84], str.ASI_stream_open
mov dword [esp + 0x8c], edi
mov dword [esp + 0x90], edi
mov dword [esp + 0x94], str.ASI_stream_seek
mov dword [esp + 0x9c], edi
mov dword [esp + 0xa0], edi
mov dword [esp + 0xa4], str.ASI_stream_close
mov dword [esp + 0xac], edi
mov dword [esp + 0xb0], edi
mov dword [esp + 0xb4], str.ASI_stream_process
mov dword [esp + 0xbc], edi
mov dword [esp + 0xc0], edi
mov dword [esp + 0xc4], str.ASI_stream_set_preference
mov dword [esp + 0xc8], 0x21159154
mov dword [esp + 0xcc], edi
mov dword [esp + 0xd0], ebp
mov dword [esp + 0xd4], str.Input_bit_rate
mov dword [esp + 0xdc], edi
mov dword [esp + 0xe0], ebp
mov dword [esp + 0xe4], str.Input_sample_rate
mov dword [esp + 0xec], edi
mov dword [esp + 0xf0], ebp
mov dword [esp + 0xf4], str.Input_sample_width
mov dword [esp + 0xfc], edi
mov dword [esp + 0x100], ebp
mov dword [esp + 0x104], str.Input_channels
mov dword [esp + 0x10c], edi
mov dword [esp + 0x110], ebp
mov dword [esp + 0x114], str.Output_bit_rate
mov dword [esp + 0x11c], edi
mov dword [esp + 0x120], ebp
mov dword [esp + 0x124], str.Output_sample_rate
mov dword [esp + 0x12c], edi
mov dword [esp + 0x130], ebp
mov dword [esp + 0x134], str.Output_sample_width
mov dword [esp + 0x138], eax
mov dword [esp + 0x13c], edi
mov dword [esp + 0x140], ebp
mov dword [esp + 0x144], str.Output_channels
mov dword [esp + 0x148], ecx
mov dword [esp + 0x14c], edi
mov dword [esp + 0x150], ebp
mov dword [esp + 0x154], str.Position
mov dword [esp + 0x158], edx
mov dword [esp + 0x15c], edi
mov dword [esp + 0x160], ebp
lea ecx, [esp + 0x21c]
lea edx, [esp + 0x20c]
mov dword [esp + 0x178], ecx
mov dword [esp + 0x188], edx
lea eax, [esp + 0x28]
lea ecx, [esp + 0x22c]
lea edx, [esp + 0x1f4]
mov dword [esp + 0x168], eax
mov eax, 2
mov dword [esp + 0x198], ecx
mov dword [esp + 0x1a8], edx
lea ecx, [esp + 0x1f8]
lea edx, [esp + 0x200]
mov dword [esp + 0x180], eax
mov dword [esp + 0x190], eax
mov dword [esp + 0x1a0], eax
mov dword [esp + 0x1b0], eax
mov dword [esp + 0x1c0], eax
mov dword [esp + 0x1d0], eax
mov dword [esp + 0x1e0], eax
mov eax, dword [esp + 0x63c]
cmp eax, edi
mov dword [esp + 0x1b8], ecx
mov dword [esp + 0x1c8], edx
lea ecx, [esp + 0x208]
lea edx, [esp + 0x210]
mov dword [esp + 0x164], str.Percent_done
mov dword [esp + 0x16c], edi
mov dword [esp + 0x170], ebp
mov dword [esp + 0x174], str.Minimum_input_block_size
mov dword [esp + 0x17c], edi
mov dword [esp + 0x184], str.Raw_source_sample_rate
mov dword [esp + 0x18c], edi
mov dword [esp + 0x194], str.Raw_source_sample_width
mov dword [esp + 0x19c], edi
mov dword [esp + 0x1a4], str.Raw_source_channels
mov dword [esp + 0x1ac], edi
mov dword [esp + 0x1b4], str.Requested_bit_rate
mov dword [esp + 0x1bc], edi
mov dword [esp + 0x1c4], str.Requested_sample_rate
mov dword [esp + 0x1cc], edi
mov dword [esp + 0x1d4], str.Requested_sample_width
mov dword [esp + 0x1d8], ecx
mov dword [esp + 0x1dc], edi
mov dword [esp + 0x1e4], str.Requested_channels
mov dword [esp + 0x1e8], edx
mov dword [esp + 0x1ec], edi
jne 0x21128740
mov dword [0x21159158], edi
jmp 0x2112875c
push eax
push str.Input_file_types
push str.ASI_codec
call sym.mss32.dll_RIB_find_file_provider
mov esi, eax
cmp esi, edi
mov dword [0x21159158], esi
jne 0x21128775
push str.No_codec_found_for_requested_input_type.
call sym.mss32.dll__AIL_set_error_4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x620
ret 0x18
mov eax, dword [esp + 0x648]
cmp eax, edi
je 0x21128792
push edi
push edi
call eax
test eax, eax
je 0x211289fb
mov esi, dword [0x21159158]
lea eax, [esp + 0x60]
push eax
push ebp
push str.ASI_codec
push esi
call sym.mss32.dll_RIB_request_interface
lea ecx, [esp + 0x70]
push ecx
push 0x18
push str.ASI_stream
push esi
call sym.mss32.dll_RIB_request_interface
mov edx, dword [esp + 0x634]
push ebx
push 0x211099a0
push edi
mov dword [0x21157100], edx
mov dword [0x21157104], ebx
mov dword [0x21157108], edi
call dword [esp + 0x38]
cmp eax, edi
mov dword [0x2115928c], eax
jne 0x211287fb
call dword [esp + 0x20]
push eax
call sym.mss32.dll__AIL_set_error_4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x620
ret 0x18
mov eax, dword [esp + 0x648]
cmp eax, edi
je 0x2112883b
push 0x21125e70
push ebp
call eax
test eax, eax
jne 0x2112883b
mov eax, dword [0x2115928c]
push eax
call dword [esp + 0x14]
push str.Decompression_cancelled.
mov dword [0x2115928c], edi
call sym.mss32.dll__AIL_set_error_4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x620
ret 0x18
call fcn.21109c50
mov esi, eax
cmp esi, edi
jne 0x21128866
mov ecx, dword [0x2115928c]
push ecx
call dword [esp + 0x14]
mov dword [0x2115928c], edi
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x620
ret 0x18
lea edx, [esp + 0x34]
push edx
mov eax, 0x2c
call fcn.21109e00
mov ecx, dword [0x2115928c]
add esp, 4
push 0x400
lea eax, [esp + 0x234]
push eax
push ecx
mov dword [esp + 0x20], edi
call dword [esp + 0x28]
mov ebx, eax
cmp ebx, edi
je 0x211288ff
lea ebx, [ebx]
cmp dword [esp + 0x14], edi
jne 0x211288ff
cmp dword [esp + 0x648], edi
je 0x211288d0
mov edx, dword [esp + 0x28]
mov eax, dword [0x2115928c]
push edx
push eax
call dword [esp + 0x20]
push eax
push 2
call dword [esp + 0x650]
test eax, eax
jne 0x211288d0
mov dword [esp + 0x14], ebp
lea ecx, [esp + 0x230]
push ecx
mov eax, ebx
call fcn.21109e00
mov eax, dword [0x2115928c]
add esp, 4
push 0x400
lea edx, [esp + 0x234]
push edx
push eax
call dword [esp + 0x28]
mov ebx, eax
cmp ebx, edi
jne 0x211288a0
mov edx, dword [esp + 0x30]
mov ecx, dword [esi + 0x1008]
mov eax, dword [0x2115928c]
push edx
sub ecx, 8
mov ebp, 0x10
push eax
mov dword [esp + 0x3c], 0x46464952
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], 0x45564157
mov dword [esp + 0x48], 0x20746d66
mov dword [esp + 0x4c], ebp
mov word [esp + 0x50], 1
call dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov edx, dword [0x2115928c]
push ecx
mov bx, ax
push edx
mov word [esp + 0x52], bx
call dword [esp + 0x20]
movzx ecx, bx
mov edx, ecx
imul ecx, eax
mov dword [esp + 0x4c], eax
mov eax, dword [esi + 0x1008]
shl ecx, 4
sub eax, 0x2c
shl edx, 4
shr ecx, 3
shr edx, 3
mov dword [esp + 0x5c], eax
mov dword [esp + 0x50], ecx
xor eax, eax
mov ecx, esi
mov word [esp + 0x54], dx
mov word [esp + 0x56], bp
mov dword [esp + 0x58], 0x61746164
call fcn.2110a050
lea ecx, [esp + 0x34]
push ecx
mov eax, 0x2c
call fcn.21109e00
mov eax, dword [esp + 0x648]
mov ecx, dword [esp + 0x644]
add esp, 4
mov ebx, esi
call fcn.21109cd0
test eax, eax
jne 0x211289d4
push str.Out_of_memory.
call sym.mss32.dll__AIL_set_error_4
mov edx, dword [0x2115928c]
push edx
call dword [esp + 0x14]
mov eax, dword [esp + 0x648]
cmp eax, edi
mov dword [0x2115928c], edi
je 0x211289f5
push edi
push 3
call eax
cmp dword [esp + 0x14], edi
je 0x21128a14
push str.Decompression_cancelled.
call sym.mss32.dll__AIL_set_error_4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x620
ret 0x18
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x620
ret 0x18