Function at 0x1004f247
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
mov dword [ebp - 4], edi
mov esi, dword [esi]
mov dword [ebp - 8], edi
test esi, esi
jne 0x1004f272
call sym.ffmpeg.dll_avformat_alloc_context
mov esi, eax
test esi, esi
jne 0x1004f272
push 0xfffffffffffffff4
pop eax
jmp 0x1004f351
cmp dword [esi], edi
jne 0x1004f28a
push str.Input_context_has_not_been_properly_allocated_by_avformat_alloc_context___and_is_not_NULL_either_n
push 0x10
push edi
call fcn.1006b450
add esp, 0xc
push 0xffffffffffffffea
jmp 0x1004f26c
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x1004f294
mov dword [esi + 4], eax
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x1004f2aa
push edi
push dword [eax]
lea eax, [ebp - 4]
push eax
call fcn.10067908
add esp, 0xc
cmp dword [esi + 0x10], edi
je 0x1004f2b9
or dword [esi + 0x440], 0x80
push ebx
lea eax, [ebp - 4]
push eax
push esi
call fcn.1006d23a
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
js 0x1004f317
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push esi
call fcn.100537c3
mov ebx, eax
add esp, 0xc
test ebx, ebx
js 0x1004f317
mov dword [esi + 0x4f4], ebx
lea ebx, [esi + 0x10]
cmp dword [esi + 0x53c], edi
jne 0x1004f357
mov eax, dword [ebx]
test eax, eax
je 0x1004f357
mov eax, dword [eax + 0x88]
test eax, eax
je 0x1004f357
push eax
call fcn.1006c540
mov dword [esi + 0x53c], eax
pop ecx
test eax, eax
jne 0x1004f357
push 0xfffffffffffffff4
pop ebx
lea eax, [ebp - 8]
push eax
call fcn.10059b76
lea eax, [ebp - 4]
push eax
call sym.ffmpeg.dll_av_dict_free
lea eax, [esi + 0x10]
pop ecx
pop ecx
cmp dword [eax], edi
je 0x1004f342
test byte [esi + 0x440], 0x80
jne 0x1004f342
push eax
call fcn.10056c66
pop ecx
push esi
call sym.ffmpeg.dll_avformat_free_context
mov eax, dword [ebp + 8]
pop ecx
mov dword [eax], edi
mov eax, ebx
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x548], edi
jne 0x1004f380
mov eax, dword [ebx]
test eax, eax
je 0x1004f380
mov eax, dword [eax + 0x8c]
test eax, eax
je 0x1004f380
push eax
call fcn.1006c540
mov dword [esi + 0x548], eax
pop ecx
test eax, eax
je 0x1004f314
mov eax, dword [esi + 0x500]
test eax, eax
je 0x1004f3bb
push 0x2c
push eax
mov eax, dword [esi + 4]
push dword [eax]
call fcn.10066635
add esp, 0xc
test eax, eax
jg 0x1004f3bb
push dword [esi + 0x500]
push str.Format_not_on_whitelist__s_n
push 0x10
push esi
call fcn.1006b450
add esp, 0x10
push 0xffffffffffffffea
jmp 0x1004f316
push dword [esi + 0x4e4]
push dword [esi + 0x4e0]
push dword [ebx]
call fcn.10057548
mov eax, dword [esi + 4]
add esp, 0xc
test byte [eax + 8], 2
je 0x1004f3e7
push dword [ebp + 0xc]
call fcn.1004cd0f
pop ecx
test eax, eax
je 0x1004f3b4
cmp dword [ebp + 0xc], edi
mov eax, 0x80000000
mov dword [esi + 0x424], eax
mov dword [esi + 0x42c], eax
mov eax, 0x1015669e
cmovne eax, dword [ebp + 0xc]
push 0x400
push eax
lea eax, [esi + 0x20]
mov dword [esi + 0x420], edi
push eax
mov dword [esi + 0x428], edi
call fcn.10066900
mov eax, dword [esi + 4]
add esp, 0xc
cmp dword [eax + 0x24], edi
jle 0x1004f470
push dword [eax + 0x24]
call fcn.1006c3c1
pop ecx
mov ecx, eax
mov dword [esi + 0xc], ecx
test ecx, ecx
je 0x1004f314
mov eax, dword [esi + 4]
mov eax, dword [eax + 0x14]
test eax, eax
je 0x1004f470
mov dword [ecx], eax
push dword [esi + 0xc]
call fcn.1006d095
lea eax, [ebp - 4]
push eax
push dword [esi + 0xc]
call fcn.1006d23a
mov ebx, eax
add esp, 0xc
test ebx, ebx
js 0x1004f317
lea ebx, [esi + 0x10]
cmp dword [ebx], edi
je 0x1004f487
push edi
lea eax, [ebp - 8]
push eax
push 0x10173c1c
push esi
call fcn.10059d26
add esp, 0x10
test dword [esi + 0x440], 0x20000
jne 0x1004f4ab
mov eax, dword [esi + 4]
mov eax, dword [eax + 0x2c]
test eax, eax
je 0x1004f4ab
push esi
call eax
mov ebx, eax
pop ecx
test ebx, ebx
js 0x1004f317
cmp dword [ebp - 8], edi
je 0x1004f523
mov eax, dword [esi + 4]
mov ebx, 0x1015c4e4
mov ecx, edi
mov edx, dword [eax]
movzx eax, byte [edx + ecx]
cmp al, byte [ebx + ecx]
jne 0x1004f4cd
inc ecx
cmp ecx, 4
jne 0x1004f4bc
jmp 0x1004f4fb
mov ebx, 0x1015c504
mov ecx, edi
movzx eax, byte [edx + ecx]
cmp al, byte [ebx + ecx]
jne 0x1004f4e5
inc ecx
cmp ecx, 4
jne 0x1004f4d4
jmp 0x1004f4fb
mov ebx, 0x1015c790
mov ecx, edi
movzx eax, byte [edx + ecx]
cmp al, byte [ebx + ecx]
jne 0x1004f513
inc ecx
cmp ecx, 4
jne 0x1004f4ec
lea eax, [ebp - 8]
push eax
push esi
call fcn.10059c10
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
js 0x1004f317
jmp 0x1004f523
push str.demuxer_does_not_support_additional_id3_data__skipping_n
push 0x30
push esi
call fcn.1006b450
add esp, 0xc
lea eax, [ebp - 8]
push eax
call fcn.10059b76
push esi
call fcn.1004f5ce
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
js 0x1004f317
test dword [esi + 0x440], 0x20000
jne 0x1004f578
mov edx, dword [esi + 0x10]
test edx, edx
je 0x1004f578
mov ecx, dword [esi + 0x504]
mov eax, dword [ecx + 0x10]
or eax, dword [ecx + 0x14]
jne 0x1004f578
push 1
push edi
push edi
push edx
call fcn.1005720d
mov ecx, dword [esi + 0x504]
add esp, 0x10
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], edx
mov eax, dword [esi + 0x504]
push esi
mov dword [eax + 0x28], 0x2625a0
call fcn.100556b0
pop ecx
cmp dword [esi + 0x18], edi
jbe 0x1004f5af
mov eax, dword [esi + 0x1c]
mov eax, dword [eax + edi*4]
inc edi
mov ecx, dword [eax + 0x2bc]
mov edx, dword [eax + 0x2b8]
mov eax, dword [ecx + 4]
mov dword [edx + 0x18], eax
cmp edi, dword [esi + 0x18]
jb 0x1004f591
mov ebx, dword [ebp + 0x14]
test ebx, ebx
je 0x1004f5c2
push ebx
call sym.ffmpeg.dll_av_dict_free
mov eax, dword [ebp - 4]
pop ecx
mov dword [ebx], eax
mov eax, dword [ebp + 8]
mov dword [eax], esi
xor eax, eax
jmp 0x1004f350