Function at 0x1004de20
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9c
mov eax, dword [0x100b400c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, edx
mov dword [ebp - 0x9c], ecx
mov dword [ebp - 0x94], edi
mov dword [ebp - 0x98], eax
mov dword [ebp - 0x8c], 0
call dword [sym.imp.avformat_58.dll_avformat_alloc_context]
mov ebx, dword [sym.imp.avutil_56.dll_av_log]
mov dword [ebp - 0x88], eax
test eax, eax
jne 0x1004decc
lea esi, [ebp - 0x84]
push 0x80
mov eax, esi
push eax
push 0xfffffffffffffff4
call dword [sym.imp.avutil_56.dll_av_strerror]
add esp, 0xc
test eax, eax
jns 0x1004de97
push 0xc
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_strerror]
add esp, 4
mov esi, eax
push esi
push edi
push str._s:__s_n
push 0x10
push 0
call ebx
mov eax, dword [0x100b64d8]
add esp, 0x14
test eax, eax
je 0x1004deb7
push 1
call eax
add esp, 4
push 1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__endthreadex]
add esp, 4
mov dword [0x100b64d8], 0
mov esi, dword [ebp - 0x98]
push 1
add esi, 8
push 0
push 0x1009b894
push dword [esi]
call dword [sym.imp.avutil_56.dll_av_dict_get]
add esp, 0x10
test eax, eax
jne 0x1004df0d
push 0x10
push 0x10096124
push 0x1009b894
push esi
call dword [sym.imp.avutil_56.dll_av_dict_set]
add esp, 0x10
mov dword [ebp - 0x8c], 1
push esi
push dword [0x100b6814]
lea eax, [ebp - 0x88]
push edi
push eax
call dword [sym.imp.avformat_58.dll_avformat_open_input]
mov edi, eax
add esp, 0x10
test edi, edi
jns 0x1004df80
lea esi, [ebp - 0x84]
push 0x80
mov eax, esi
push eax
mov eax, dword [sym.imp.avutil_56.dll_av_strerror]
push edi
call eax
add esp, 0xc
test eax, eax
jns 0x1004df58
mov eax, edi
neg eax
push eax
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_strerror]
add esp, 4
mov esi, eax
push esi
push dword [ebp - 0x94]
push str._s:__s_n
push 0x10
push 0
call ebx
add esp, 0x14
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1007fac0
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x8c], 0
mov ecx, dword [ebp - 0x9c]
mov eax, dword [ebp - 0x88]
mov dword [ecx], eax
je 0x1004dfaa
push 1
push 0
push 0x1009b894
push esi
call dword [sym.imp.avutil_56.dll_av_dict_set]
add esp, 0x10
push 2
push 0
push 0x10095064
push dword [esi]
call dword [sym.imp.avutil_56.dll_av_dict_get]
add esp, 0x10
test eax, eax
je 0x1004dfe8
push dword [eax]
push str.Option__s_not_found._n
push 0x10
push 0
call ebx
add esp, 0x10
mov eax, 0xabafb008
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1007fac0
mov esp, ebp
pop ebp
ret
cmp dword [0x100b40a0], 0
je 0x1004e0c7
mov eax, dword [ebp - 0x98]
mov ecx, dword [ebp - 0x88]
push 0
mov edx, dword [eax + 0xc]
call fcn.1001d810
mov ecx, dword [ebp - 0x88]
push eax
mov dword [ebp - 0x90], eax
push ecx
mov edx, dword [ecx + 0x18]
mov dword [ebp - 0x8c], edx
call dword [sym.imp.avformat_58.dll_avformat_find_stream_info]
xor esi, esi
add esp, 0xc
mov edi, eax
cmp dword [ebp - 0x8c], esi
jle 0x1004e05e
mov ebx, dword [ebp - 0x8c]
nop dword [eax]
mov ecx, dword [ebp - 0x90]
lea eax, [ecx + esi*4]
push eax
call dword [sym.imp.avutil_56.dll_av_dict_free]
inc esi
add esp, 4
cmp esi, ebx
jl 0x1004e040
mov ebx, dword [sym.imp.avutil_56.dll_av_log]
lea eax, [ebp - 0x90]
push eax
call dword [sym.imp.avutil_56.dll_av_freep]
add esp, 4
test edi, edi
jns 0x1004e0c7
lea esi, [ebp - 0x84]
push 0x80
mov eax, esi
push eax
mov eax, dword [sym.imp.avutil_56.dll_av_strerror]
push edi
call eax
add esp, 0xc
test eax, eax
jns 0x1004e09f
mov eax, edi
neg eax
push eax
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_strerror]
add esp, 4
mov esi, eax
push esi
push dword [ebp - 0x94]
push str._s:__s_n
push 0x10
push 0
call ebx
add esp, 0x14
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1007fac0
mov esp, ebp
pop ebp
ret
push 0
push dword [ebp - 0x94]
push 0
push dword [ebp - 0x88]
call dword [sym.imp.avformat_58.dll_av_dump_format]
mov eax, dword [ebp - 0x88]
push 8
push dword [eax + 0x18]
call dword [sym.imp.avutil_56.dll_av_mallocz_array]
mov edx, dword [ebp - 0x9c]
add esp, 0x18
mov dword [edx + 4], eax
test eax, eax
jne 0x1004e106
push 1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
mov ecx, dword [ebp - 0x88]
xor edi, edi
mov eax, dword [ecx + 0x18]
mov dword [edx + 8], eax
cmp dword [ecx + 0x18], edi
jbe 0x1004e2b5
nop dword [eax]
mov eax, dword [edx + 4]
lea edx, [eax + edi*8]
mov eax, dword [ecx + 0x1c]
mov dword [ebp - 0x94], edx
mov esi, dword [eax + edi*4]
mov dword [edx], esi
mov eax, dword [esi + 0xb0]
mov eax, dword [eax + 4]
cmp eax, 0x19000
jne 0x1004e159
push dword [esi]
push str.Failed_to_probe_codec_for_input_stream__d_n
push 0x18
push 0
call ebx
add esp, 0x10
jmp 0x1004e29f
push eax
call dword [sym.imp.avcodec_58.dll_avcodec_find_decoder]
add esp, 4
mov dword [ebp - 0x90], eax
test eax, eax
jne 0x1004e18b
push dword [esi]
mov eax, dword [esi + 0xb0]
push dword [eax + 4]
push str.Unsupported_codec_with_id__d_for_input_stream__d_n
push 0x18
push 0
call ebx
add esp, 0x14
jmp 0x1004e29f
mov edx, dword [esi + 0xb0]
mov ecx, dword [ebp - 0x98]
push 0
push eax
mov edx, dword [edx + 4]
mov ecx, dword [ecx + 0xc]
push esi
push dword [ebp - 0x88]
call fcn.1001d610
push dword [ebp - 0x90]
mov dword [ebp - 0x8c], eax
call dword [sym.imp.avcodec_58.dll_avcodec_alloc_context3]
mov ecx, dword [ebp - 0x94]
add esp, 0x14
mov dword [ecx + 4], eax
test eax, eax
je 0x1004e0fe
push dword [esi + 0xb0]
push eax
call dword [sym.imp.avcodec_58.dll_avcodec_parameters_to_context]
add esp, 8
test eax, eax
js 0x1004e0fe
cmp dword [0x100b649c], 0
je 0x1004e212
mov eax, dword [ebp - 0x98]
push 0
push 0x10096124
add eax, 0xc
push str.threads
push eax
call dword [sym.imp.avutil_56.dll_av_dict_set]
add esp, 0x10
mov eax, dword [ebp - 0x94]
mov ecx, dword [esi + 0x10]
mov edx, dword [esi + 0x14]
mov eax, dword [eax + 4]
mov dword [eax + 0x304], ecx
mov dword [eax + 0x308], edx
mov eax, dword [ebp - 0x94]
mov ecx, dword [esi + 0x44]
mov edx, dword [esi + 0x48]
mov eax, dword [eax + 4]
mov dword [eax + 0x2f8], ecx
mov dword [eax + 0x2fc], edx
mov edx, dword [ebp - 0x94]
mov eax, dword [esi + 8]
mov ecx, dword [edx + 4]
mov eax, dword [eax + 0x64]
mov dword [ecx + 0x64], eax
mov eax, dword [esi + 8]
mov ecx, dword [edx + 4]
mov eax, dword [eax + 0x68]
mov dword [ecx + 0x68], eax
lea eax, [ebp - 0x8c]
push eax
push dword [ebp - 0x90]
push dword [edx + 4]
call dword [sym.imp.avcodec_58.dll_avcodec_open2]
add esp, 0xc
test eax, eax
js 0x1004e2f2
push 2
push 0
push 0x10095064
push dword [ebp - 0x8c]
call dword [sym.imp.avutil_56.dll_av_dict_get]
add esp, 0x10
test eax, eax
jne 0x1004e2ca
mov ecx, dword [ebp - 0x88]
inc edi
mov edx, dword [ebp - 0x9c]
cmp edi, dword [ecx + 0x18]
jb 0x1004e120
pop edi
pop esi
mov dword [edx], ecx
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1007fac0
mov esp, ebp
pop ebp
ret
push dword [esi]
push dword [eax]
push str.Option__s_for_input_stream__d_not_found_n
push 0x10
push 0
call ebx
mov ecx, dword [ebp - 4]
add esp, 0x14
xor ecx, ebp
mov eax, 0xabafb008
pop edi
pop esi
pop ebx
call fcn.1007fac0
mov esp, ebp
pop ebp
ret
push dword [esi]
push str.Could_not_open_codec_for_input_stream__d_n
push 0x18
push 0
call ebx
add esp, 0x10
push 1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3