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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x564
mov eax, dword [0x100b400c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov eax, edx
mov dword [ebp - 0x558], ecx
mov ecx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [eax + 4]
mov dword [ebp - 0x544], eax
mov eax, dword [ecx + 0x78]
push edi
mov edi, dword [ebx]
push dword [ebx + 4]
mov dword [ebp - 0x55c], ecx
push edi
mov eax, dword [eax + edi*4]
mov dword [ebp - 0x560], eax
mov eax, dword [ebx + 0x50]
mov dword [ebp - 0x12c], eax
mov eax, dword [esi + 4]
mov dword [ebp - 0x54c], eax
mov dword [ebp - 0x554], eax
mov eax, dword [esi + 8]
push str.out__d__d
mov dword [ebp - 0x548], eax
mov dword [ebp - 0x550], eax
lea eax, [ebp - 0x128]
push 0xff
push eax
call fcn.10019630
mov eax, dword [ebp - 0x558]
add esp, 0x14
push dword [eax + 8]
lea eax, [ebp - 0x128]
push 0
push 0
push eax
push str.abuffersink
call dword [sym.imp.avfilter_7.dll_avfilter_get_by_name]
mov esi, dword [ebp - 0x544]
add esp, 4
push eax
push esi
call dword [sym.imp.avfilter_7.dll_avfilter_graph_create_filter]
add esp, 0x18
test eax, eax
js 0x1002ccf6
push 1
push 0
push 1
push str.all_channel_counts
push dword [esi]
call dword [sym.imp.avutil_56.dll_av_opt_set_int]
add esp, 0x14
test eax, eax
js 0x1002ccf6
cmp dword [ebx + 0xfc], 0
mov edi, dword [sym.imp.avutil_56.dll_av_get_default_channel_layout]
je 0x1002c6fb
push 0x2000
lea eax, [ebp - 0x540]
push 0x100
push eax
call dword [sym.imp.avutil_56.dll_av_bprint_init]
add esp, 0xc
push dword [ebx + 0xfc]
call edi
mov edi, dword [sym.imp.avutil_56.dll_av_bprintf]
add esp, 4
push edx
push eax
lea eax, [ebp - 0x540]
push str.0x_llx
push eax
call edi
xor esi, esi
add esp, 0x10
cmp dword [ebx + 0xfc], esi
jle 0x1002c64a
nop dword [eax]
mov eax, dword [ebx + 0xf8]
mov eax, dword [eax + esi*4]
cmp eax, 0xffffffff
je 0x1002c641
push eax
push esi
lea eax, [ebp - 0x540]
push str.c_dc_d
push eax
call edi
add esp, 0x10
inc esi
cmp esi, dword [ebx + 0xfc]
jl 0x1002c620
push dword [ebp - 0x540]
push str._map_channel_is_forwarded_to_lavfi_similarly_to__af_pan_s._n
push 0x20
push 0
call dword [sym.imp.avutil_56.dll_av_log]
mov eax, dword [ebp - 0x558]
add esp, 0x10
push dword [eax + 8]
push 0
push dword [ebp - 0x540]
push 0x1009a66c
push 0x1009a66c
call dword [sym.imp.avfilter_7.dll_avfilter_get_by_name]
add esp, 4
push eax
lea eax, [ebp - 0x130]
push eax
call dword [sym.imp.avfilter_7.dll_avfilter_graph_create_filter]
add esp, 0x18
test eax, eax
js 0x1002ccf6
push 0
push dword [ebp - 0x130]
push dword [ebp - 0x548]
push dword [ebp - 0x54c]
call dword [sym.imp.avfilter_7.dll_avfilter_link]
add esp, 0x10
test eax, eax
js 0x1002ccf6
mov eax, dword [ebp - 0x130]
mov dword [ebp - 0x54c], eax
mov dword [ebp - 0x554], eax
xor eax, eax
push eax
mov dword [ebp - 0x548], eax
mov dword [ebp - 0x550], eax
lea eax, [ebp - 0x540]
push eax
call dword [sym.imp.avutil_56.dll_av_bprint_finalize]
mov edi, dword [sym.imp.avutil_56.dll_av_get_default_channel_layout]
add esp, 8
mov esi, dword [ebp - 0x12c]
mov ecx, dword [esi + 0x15c]
test ecx, ecx
je 0x1002c72b
mov eax, dword [esi + 0x178]
or eax, dword [esi + 0x17c]
jne 0x1002c72b
push ecx
call edi
add esp, 4
mov dword [esi + 0x178], eax
mov dword [esi + 0x17c], edx
mov esi, dword [ebp - 0x544]
mov edx, dword [sym.imp.avformat_58.dll_avio_open_dyn_buf]
mov edi, dword [sym.imp.avformat_58.dll_avio_printf]
mov eax, dword [esi + 0x28]
cmp eax, 0xffffffff
je 0x1002c764
push eax
call dword [sym.imp.avutil_56.dll_av_get_sample_fmt_name]
add esp, 4
push eax
call dword [sym.imp.avutil_56.dll_av_strdup]
mov edx, dword [sym.imp.avformat_58.dll_avio_open_dyn_buf]
add esp, 4
jmp 0x1002c826
cmp dword [esi + 0x38], 0
je 0x1002c824
lea eax, [ebp - 0x130]
mov dword [ebp - 0x130], 0
push eax
call edx
add esp, 4
test eax, eax
jns 0x1002c7b3
mov eax, dword [0x100b64d4]
test eax, eax
je 0x1002c79e
push dword [ebp - 0x55c]
push 1
call eax
add esp, 8
push 1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__endthreadex]
add esp, 4
mov dword [0x100b64d4], 0
mov esi, dword [esi + 0x38]
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x1002c7ef
mov edi, dword [sym.imp.avutil_56.dll_av_get_sample_fmt_name]
push eax
call edi
add esp, 4
push eax
push 0x1009a37c
push dword [ebp - 0x130]
call dword [sym.imp.avformat_58.dll_avio_printf]
mov eax, dword [esi + 4]
lea esi, [esi + 4]
add esp, 0xc
cmp eax, 0xffffffff
jne 0x1002c7c3
mov edi, dword [sym.imp.avformat_58.dll_avio_printf]
lea eax, [ebp - 0x12c]
push eax
push dword [ebp - 0x130]
call dword [sym.imp.avformat_58.dll_avio_close_dyn_buf]
mov ecx, dword [ebp - 0x12c]
add esp, 8
mov esi, dword [ebp - 0x544]
mov edx, dword [sym.imp.avformat_58.dll_avio_open_dyn_buf]
mov byte [ecx + eax - 1], 0
mov eax, dword [ebp - 0x12c]
jmp 0x1002c826
xor eax, eax
mov dword [ebp - 0x138], eax
mov eax, dword [esi + 0x2c]
test eax, eax
je 0x1002c858
push eax
push 0x100973f0
lea eax, [ebp - 0x14]
push 0x10
push eax
call fcn.10019630
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.avutil_56.dll_av_strdup]
add esp, 0x14
mov ecx, eax
jmp 0x1002c910
cmp dword [esi + 0x40], 0
je 0x1002c90e
lea eax, [ebp - 0x130]
mov dword [ebp - 0x130], 0
push eax
call edx
add esp, 4
test eax, eax
jns 0x1002c8a7
mov eax, dword [0x100b64d4]
test eax, eax
je 0x1002c892
push dword [ebp - 0x55c]
push 1
call eax
add esp, 8
push 1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__endthreadex]
add esp, 4
mov dword [0x100b64d4], 0
mov esi, dword [esi + 0x40]
mov eax, dword [esi]
test eax, eax
je 0x1002c8df
push eax
push 0x100973f0
lea eax, [ebp - 0x24]
push 0x10
push eax
call fcn.10019630
lea eax, [ebp - 0x24]
push eax
push 0x1009a37c
push dword [ebp - 0x130]
call edi
mov eax, dword [esi + 4]
lea esi, [esi + 4]
add esp, 0x1c
test eax, eax
jne 0x1002c8b0
lea eax, [ebp - 0x12c]
push eax
push dword [ebp - 0x130]
call dword [sym.imp.avformat_58.dll_avio_close_dyn_buf]
mov ecx, dword [ebp - 0x12c]
add esp, 8
mov esi, dword [ebp - 0x544]
mov byte [ecx + eax - 1], 0
mov ecx, dword [ebp - 0x12c]
jmp 0x1002c910
xor ecx, ecx
mov edx, dword [ebp - 0x544]
mov esi, dword [esi + 0x30]
mov eax, esi
mov dword [ebp - 0x134], ecx
mov edx, dword [edx + 0x34]
or eax, edx
je 0x1002c955
push edx
push esi
push str.0x_llx
lea eax, [ebp - 0x24]
push 0x10
push eax
call fcn.10019630
add esp, 0x14
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.avutil_56.dll_av_strdup]
mov ecx, dword [ebp - 0x134]
add esp, 4
jmp 0x1002ca29
mov esi, dword [ebp - 0x544]
cmp dword [esi + 0x3c], 0
je 0x1002ca27
lea eax, [ebp - 0x130]
mov dword [ebp - 0x130], 0
push eax
call dword [sym.imp.avformat_58.dll_avio_open_dyn_buf]
add esp, 4
test eax, eax
jns 0x1002c9ae
mov eax, dword [0x100b64d4]
test eax, eax
je 0x1002c999
push dword [ebp - 0x55c]
push 1
call eax
add esp, 8
push 1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__endthreadex]
add esp, 4
mov dword [0x100b64d4], 0
mov esi, dword [esi + 0x3c]
mov ecx, dword [esi]
mov eax, ecx
mov edx, dword [esi + 4]
or eax, edx
je 0x1002c9f8
nop dword [eax]
push edx
push ecx
push str.0x_llx
lea eax, [ebp - 0x14]
push 0x10
push eax
call fcn.10019630
add esp, 0x14
lea eax, [ebp - 0x14]
push eax
push 0x1009a37c
push dword [ebp - 0x130]
call edi
mov ecx, dword [esi + 8]
lea esi, [esi + 8]
mov edx, dword [esi + 4]
mov eax, ecx
add esp, 0xc
or eax, edx
jne 0x1002c9c0
lea eax, [ebp - 0x12c]
push eax
push dword [ebp - 0x130]
call dword [sym.imp.avformat_58.dll_avio_close_dyn_buf]
mov ecx, dword [ebp - 0x12c]
add esp, 8
mov byte [ecx + eax - 1], 0
mov eax, dword [ebp - 0x12c]
mov ecx, dword [ebp - 0x134]
jmp 0x1002ca29
xor eax, eax
cmp dword [ebp - 0x138], 0
mov dword [ebp - 0x13c], eax
jne 0x1002ca44
test ecx, ecx
jne 0x1002ca44
test eax, eax
je 0x1002cb87
mov edx, dword [ebp - 0x138]
mov esi, dword [sym.imp.avutil_56.dll_av_strlcatf]
mov byte [ebp - 0x240], 0
test edx, edx
je 0x1002ca7e
push edx
push str.sample_fmts_s:
lea eax, [ebp - 0x240]
push 0x100
push eax
call esi
mov ecx, dword [ebp - 0x134]
add esp, 0x10
mov eax, dword [ebp - 0x13c]
test ecx, ecx
je 0x1002ca9f
push ecx
push str.sample_rates_s:
lea eax, [ebp - 0x240]
push 0x100
push eax
call esi
mov eax, dword [ebp - 0x13c]
add esp, 0x10
test eax, eax
je 0x1002caba
push eax
push str.channel_layouts_s:
lea eax, [ebp - 0x240]
push 0x100
push eax
call esi
add esp, 0x10
mov esi, dword [sym.imp.avutil_56.dll_av_freep]
lea eax, [ebp - 0x138]
push eax
call esi
add esp, 4
lea eax, [ebp - 0x134]
push eax
call esi
add esp, 4
lea eax, [ebp - 0x13c]
push eax
call esi
add esp, 4
lea eax, [ebp - 0x128]
push dword [ebx + 4]
push dword [ebx]
push str.format_out__d__d
push 0xff
push eax
call fcn.10019630
mov eax, dword [ebp - 0x558]
add esp, 0x14
push dword [eax + 8]
lea eax, [ebp - 0x240]
push 0
push eax
lea eax, [ebp - 0x128]
push eax
push str.aformat
call dword [sym.imp.avfilter_7.dll_avfilter_get_by_name]
add esp, 4
push eax
lea eax, [ebp - 0x12c]
push eax
call dword [sym.imp.avfilter_7.dll_avfilter_graph_create_filter]
add esp, 0x18
test eax, eax
js 0x1002ccf6
push 0
push dword [ebp - 0x12c]
push dword [ebp - 0x548]
push dword [ebp - 0x54c]
call dword [sym.imp.avfilter_7.dll_avfilter_link]
add esp, 0x10
test eax, eax
js 0x1002ccf6
mov eax, dword [ebp - 0x12c]
mov dword [ebp - 0x54c], eax
mov dword [ebp - 0x554], eax
xor eax, eax
mov dword [ebp - 0x548], eax
mov dword [ebp - 0x550], eax
mov edi, dword [ebx + 0x128]
test edi, edi
je 0x1002cc7d
mov eax, dword [ebp - 0x560]
cmp dword [eax + 0x28], 0
je 0x1002cc7d
mov edx, dword [eax]
xor ecx, ecx
mov esi, dword [edx + 0x18]
test esi, esi
je 0x1002cbc8
mov edx, dword [edx + 0x1c]
mov eax, dword [edx]
mov eax, dword [eax + 0xb0]
cmp dword [eax], 0
je 0x1002cbc8
inc ecx
add edx, 4
cmp ecx, esi
jb 0x1002cbb3
cmp ecx, esi
jae 0x1002cc7d
push edi
push 0x100966b8
lea eax, [ebp - 0x240]
push 0x100
push eax
call fcn.10019630
lea eax, [ebp - 0x240]
push eax
push str._apad_is_forwarded_to_lavfi_similarly_to__af_apad_s._n
push 0x20
push 0
call dword [sym.imp.avutil_56.dll_av_log]
mov eax, dword [ebp - 0x558]
add esp, 0x20
push dword [eax + 8]
lea eax, [ebp - 0x240]
push 0
push eax
push str.apad
push str.apad
call dword [sym.imp.avfilter_7.dll_avfilter_get_by_name]
add esp, 4
push eax
lea eax, [ebp - 0x12c]
push eax
call dword [sym.imp.avfilter_7.dll_avfilter_graph_create_filter]
add esp, 0x18
test eax, eax
js 0x1002ccf6
mov esi, dword [sym.imp.avfilter_7.dll_avfilter_link]
push 0
push dword [ebp - 0x12c]
push dword [ebp - 0x548]
push dword [ebp - 0x54c]
call esi
add esp, 0x10
test eax, eax
js 0x1002ccf6
mov eax, dword [ebp - 0x12c]
mov dword [ebp - 0x554], eax
mov dword [ebp - 0x550], 0
jmp 0x1002cc83
mov esi, dword [sym.imp.avfilter_7.dll_avfilter_link]
push dword [ebx + 4]
lea eax, [ebp - 0x128]
push dword [ebx]
push str.trim_for_output_stream__d:_d
push 0xff
push eax
call fcn.10019630
add esp, 0x14
lea eax, [ebp - 0x128]
lea edx, [ebp - 0x550]
lea ecx, [ebp - 0x554]
push eax
mov eax, dword [ebp - 0x560]
push dword [eax + 0x14]
push dword [eax + 0x10]
push dword [eax + 0x1c]
push dword [eax + 0x18]
call fcn.1002c060
add esp, 0x14
test eax, eax
js 0x1002ccf6
mov eax, dword [ebp - 0x544]
push 0
push dword [eax]
push dword [ebp - 0x550]
push dword [ebp - 0x554]
call esi
xor ecx, ecx
add esp, 0x10
test eax, eax
cmovs ecx, eax
mov eax, ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1007fac0
mov esp, ebp
pop ebp
ret