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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xa8
mov eax, dword [0x100b400c]
xor eax, esp
mov dword [esp + 0xa4], eax
cmp dword [0x100b66c4], 0
xorps xmm0, xmm0
mov eax, dword [ebp + 8]
push esi
push edi
mov esi, ecx
mov dword [esp + 0x14], eax
movq qword [esp + 0x5c], xmm0
mov dword [esp + 0x64], 0
jne 0x1004e35c
cmp dword [0x100b64b0], 0
jne 0x1004e35c
xor ecx, ecx
jmp 0x1004e361
mov ecx, 1
cmp dword [0x100b66d0], 0
mov dword [0x100b67e8], ecx
jne 0x1004e37d
cmp dword [0x100b64bc], 0
jne 0x1004e37d
xor ecx, ecx
jmp 0x1004e382
mov ecx, 1
mov edx, dword [0x100b6858]
mov dword [0x100b67f8], ecx
lea ecx, [esp + 0x5c]
push eax
call fcn.1004de20
mov edi, eax
add esp, 4
test edi, edi
js 0x1004e8fb
mov eax, dword [esp + 0x5c]
push 8
mov eax, dword [eax + 0x18]
push eax
push 0x100b67dc
mov dword [0x100b66c0], eax
call dword [sym.imp.avutil_56.dll_av_reallocp_array]
mov edi, eax
add esp, 0xc
test edi, edi
js 0x1004e8fb
mov eax, dword [esp + 0x5c]
mov eax, dword [eax + 0x18]
shl eax, 3
push eax
push 0
push dword [0x100b67dc]
call sub.VCRUNTIME140.dll_memset
mov eax, dword [esp + 0x68]
add esp, 0xc
push 8
push dword [eax + 0x18]
push 0x100b6808
call dword [sym.imp.avutil_56.dll_av_reallocp_array]
mov edi, eax
add esp, 0xc
test edi, edi
js 0x1004e8fb
mov eax, dword [esp + 0x5c]
mov eax, dword [eax + 0x18]
shl eax, 3
push eax
push 0
push dword [0x100b6808]
call sub.VCRUNTIME140.dll_memset
mov eax, dword [esp + 0x68]
add esp, 0xc
push 4
push dword [eax + 0x18]
push 0x100b67fc
call dword [sym.imp.avutil_56.dll_av_reallocp_array]
mov edi, eax
add esp, 0xc
test edi, edi
js 0x1004e8fb
mov eax, dword [esp + 0x5c]
mov eax, dword [eax + 0x18]
shl eax, 2
push eax
push 0
push dword [0x100b67fc]
call sub.VCRUNTIME140.dll_memset
mov eax, dword [esp + 0x68]
xor ecx, ecx
add esp, 0xc
mov dword [esp + 0x1c], ecx
cmp dword [eax + 0x18], ecx
jbe 0x1004e4de
nop
mov eax, dword [0x100b6498]
test eax, eax
je 0x1004e4a8
mov edx, dword [esp + 0x5c]
push eax
mov eax, dword [edx + 0x1c]
push dword [eax + ecx*4]
push edx
call dword [sym.imp.avformat_58.dll_avformat_match_stream_specifier]
mov edi, eax
add esp, 0xc
test edi, edi
js 0x1004e8fb
mov eax, dword [0x100b67fc]
mov ecx, dword [esp + 0x1c]
mov dword [eax + ecx*4], edi
xor edi, edi
jmp 0x1004e4b4
mov eax, dword [0x100b67fc]
mov dword [eax + ecx*4], 1
mov eax, dword [0x100b67fc]
cmp dword [eax + ecx*4], 0
jne 0x1004e4d0
mov eax, dword [esp + 0x5c]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax + ecx*4]
mov dword [eax + 0x34], 0x30
mov eax, dword [esp + 0x5c]
inc ecx
mov dword [esp + 0x1c], ecx
cmp ecx, dword [eax + 0x18]
jb 0x1004e470
cmp dword [0x100b67e8], 0
jne 0x1004e4f4
cmp dword [0x100b67f8], 0
je 0x1004e679
mov edx, dword [0x100b66c4]
mov ecx, dword [0x100b66d0]
test edx, edx
je 0x1004e518
test ecx, ecx
je 0x1004e525
mov eax, dword [esi + 4]
test byte [eax + 0x28], 2
je 0x1004e518
mov eax, 0x14
jmp 0x1004e52a
test ecx, ecx
je 0x1004e525
test edx, edx
jne 0x1004e525
lea eax, [edx + 0x13]
jmp 0x1004e52e
mov eax, 7
test edx, edx
jne 0x1004e532
test ecx, ecx
je 0x1004e542
push dword [esp + 0x14]
mov edx, eax
mov ecx, esi
call fcn.100458f0
add esp, 4
mov edx, dword [esp + 0x5c]
xor edi, edi
mov eax, dword [edx + 0x428]
mov ecx, dword [edx + 0x42c]
mov dword [esp + 0x68], eax
mov eax, dword [0x100b6824]
mov dword [esp + 0x6c], ecx
test eax, eax
jne 0x1004e5c5
push dword [esp + 0x14]
xorps xmm0, xmm0
mov dword [esp + 0x24], edi
movlpd qword [esp + 0x2c], xmm0
lea eax, [esp + 0x6c]
movlpd qword [esp + 0x34], xmm0
lea edx, [esp + 0x60]
movups xmmword [esp + 0x3c], xmm0
mov ecx, esi
mov dword [esp + 0x4c], edi
movaps xmm0, xmmword [esp + 0x24]
movaps xmmword [esp + 0x74], xmm0
movaps xmm0, xmmword [esp + 0x34]
push eax
movaps xmmword [esp + 0x88], xmm0
lea eax, [esp + 0x78]
movaps xmm0, xmmword [esp + 0x48]
push eax
movaps xmmword [esp + 0x9c], xmm0
call fcn.1004aba0
add esp, 0xc
mov edi, eax
jmp 0x1004e614
mov dword [esp + 0x1c], edi
test eax, eax
jle 0x1004e614
xor ecx, ecx
mov dword [esp + 0x18], ecx
push dword [esp + 0x14]
lea eax, [esp + 0x6c]
push eax
mov eax, dword [0x100b67e0]
lea edx, [esp + 0x64]
add eax, ecx
mov ecx, esi
push eax
call fcn.1004aba0
mov edi, eax
add esp, 0xc
test edi, edi
js 0x1004e614
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
inc eax
add ecx, 0x30
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], ecx
cmp eax, dword [0x100b6824]
jl 0x1004e5d3
cmp dword [0x100b66c4], 0
jne 0x1004e626
cmp dword [0x100b66d0], 0
je 0x1004e671
mov ecx, dword [esi + 0x18]
mov eax, dword [esi + ecx*4 + 0x44]
mov edx, dword [eax]
test ecx, ecx
je 0x1004e65a
mov eax, dword [esi + ecx*4 + 0x40]
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x1004e65a
inc dword [esi + ecx*4 + 0x18]
cmp eax, 0x14
jne 0x1004e65a
cmp edx, 0x11
jne 0x1004e654
inc dword [esi + 0x286c]
jmp 0x1004e65a
inc dword [esi + 0x2870]
mov eax, dword [esi + 4]
mov eax, dword [eax + 0x18]
test eax, eax
je 0x1004e66e
push dword [esp + 0x14]
push esi
call eax
add esp, 8
dec dword [esi + 0x18]
test edi, edi
js 0x1004e8fb
cmp dword [0x100b67e4], 0
je 0x1004e793
mov ecx, dword [esi + 0x18]
xor edi, edi
mov edx, dword [esp + 0x5c]
inc ecx
mov dword [esp + 0x1c], edx
mov dword [esi + 0x18], ecx
cmp ecx, 0xa
jge 0x1004e7b6
test ecx, ecx
je 0x1004e6b0
mov eax, dword [esi + ecx*4 + 0x40]
mov eax, dword [eax]
mov dword [esp + 0x18], eax
jmp 0x1004e6b8
mov dword [esp + 0x18], 0xffffffff
mov dword [esi + ecx*4 + 0x1c], edi
mov ecx, dword [esi + 0x10]
mov eax, dword [esi + 0x18]
add ecx, 0x9d8
cmp dword [esp + 0x18], 0x14
mov dword [esi + eax*4 + 0x44], ecx
jne 0x1004e6df
mov eax, dword [esi + 0x2870]
mov dword [esi + 0x2874], eax
mov eax, dword [esi + 4]
mov eax, dword [eax + 0x14]
test eax, eax
je 0x1004e6f7
push dword [esp + 0x14]
push esi
call eax
mov edx, dword [esp + 0x24]
add esp, 8
xor ecx, ecx
mov dword [esp + 0x18], ecx
cmp dword [edx + 0x468], ecx
jbe 0x1004e740
mov eax, dword [edx + 0x46c]
mov eax, dword [eax + ecx*4]
test eax, eax
je 0x1004e733
push dword [esp + 0x14]
lea edx, [esp + 0x60]
mov ecx, esi
push eax
call fcn.1004cd20
mov edi, eax
add esp, 8
test edi, edi
js 0x1004e740
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
inc ecx
mov dword [esp + 0x18], ecx
cmp ecx, dword [edx + 0x468]
jb 0x1004e705
mov ecx, dword [esi + 0x18]
mov eax, dword [esi + ecx*4 + 0x44]
mov edx, dword [eax]
test ecx, ecx
je 0x1004e774
mov eax, dword [esi + ecx*4 + 0x40]
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x1004e774
inc dword [esi + ecx*4 + 0x18]
cmp eax, 0x14
jne 0x1004e774
cmp edx, 0x11
jne 0x1004e76e
inc dword [esi + 0x286c]
jmp 0x1004e774
inc dword [esi + 0x2870]
mov eax, dword [esi + 4]
mov eax, dword [eax + 0x18]
test eax, eax
je 0x1004e788
push dword [esp + 0x14]
push esi
call eax
add esp, 8
dec dword [esi + 0x18]
test edi, edi
js 0x1004e8fb
cmp dword [0x100b681c], 0
je 0x1004e8bd
mov ecx, dword [esi + 0x18]
xor edi, edi
mov eax, dword [esp + 0x5c]
inc ecx
mov dword [esp + 0x1c], eax
mov dword [esi + 0x18], ecx
cmp ecx, 0xa
jl 0x1004e7dd
push 0x2c3
push str.D:Sources_avc_src_avctranscode_ffprobe.c
push str.wctx__level___10
push str.Assertion__s_failed_at__s:_d_n
push 0
push 0
call dword [sym.imp.avutil_56.dll_av_log]
add esp, 0x18
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_abort]
test ecx, ecx
je 0x1004e7e9
mov eax, dword [esi + ecx*4 + 0x40]
mov edx, dword [eax]
jmp 0x1004e7ec
or edx, 0xffffffff
mov dword [esi + ecx*4 + 0x1c], edi
mov ecx, dword [esi + 0x10]
mov eax, dword [esi + 0x18]
add ecx, 0xaf8
mov dword [esi + eax*4 + 0x44], ecx
cmp edx, 0x14
jne 0x1004e811
mov eax, dword [esi + 0x2870]
mov dword [esi + 0x2874], eax
mov eax, dword [esi + 4]
mov eax, dword [eax + 0x14]
test eax, eax
je 0x1004e825
push dword [esp + 0x14]
push esi
call eax
add esp, 8
xor ecx, ecx
mov dword [esp + 0x18], ecx
cmp dword [esp + 0x64], ecx
jle 0x1004e86e
mov eax, dword [0x100b67fc]
cmp dword [eax + ecx*4], 0
je 0x1004e863
mov eax, dword [esp + 0x60]
push dword [esp + 0x14]
mov edx, dword [esp + 0x20]
push 0
lea eax, [eax + ecx*8]
push eax
push ecx
mov ecx, esi
call fcn.1004b5e0
mov edi, eax
add esp, 0x10
test edi, edi
js 0x1004e86e
mov ecx, dword [esp + 0x18]
inc ecx
mov dword [esp + 0x18], ecx
cmp ecx, dword [esp + 0x64]
jl 0x1004e831
mov ecx, dword [esi + 0x18]
mov eax, dword [esi + ecx*4 + 0x44]
mov edx, dword [eax]
test ecx, ecx
je 0x1004e8a2
mov eax, dword [esi + ecx*4 + 0x40]
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x1004e8a2
inc dword [esi + ecx*4 + 0x18]
cmp eax, 0x14
jne 0x1004e8a2
cmp edx, 0x11
jne 0x1004e89c
inc dword [esi + 0x286c]
jmp 0x1004e8a2
inc dword [esi + 0x2870]
mov eax, dword [esi + 4]
mov eax, dword [eax + 0x18]
test eax, eax
je 0x1004e8b6
push dword [esp + 0x14]
push esi
call eax
add esp, 8
dec dword [esi + 0x18]
test edi, edi
js 0x1004e8fb
cmp dword [0x100b66bc], 0
je 0x1004e8de
push dword [esp + 0x14]
lea edx, [esp + 0x60]
mov ecx, esi
call fcn.1004d310
mov edi, eax
add esp, 4
test edi, edi
js 0x1004e8fb
cmp dword [0x100b66c8], 0
je 0x1004e8fb
push dword [esp + 0x14]
lea edx, [esp + 0x60]
mov ecx, esi
call fcn.1004d7c0
add esp, 4
mov edi, eax
cmp dword [esp + 0x5c], 0
mov esi, dword [sym.imp.avutil_56.dll_av_freep]
je 0x1004e95f
xor esi, esi
cmp dword [esp + 0x64], esi
jle 0x1004e939
mov eax, dword [esp + 0x60]
lea ecx, [eax + esi*8]
mov eax, dword [ecx]
mov eax, dword [eax + 0xb0]
cmp dword [eax + 4], 0
je 0x1004e932
lea eax, [ecx + 4]
push eax
call dword [sym.imp.avcodec_58.dll_avcodec_free_context]
add esp, 4
inc esi
cmp esi, dword [esp + 0x64]
jl 0x1004e910
mov esi, dword [sym.imp.avutil_56.dll_av_freep]
lea eax, [esp + 0x60]
push eax
call esi
add esp, 4
mov dword [esp + 0x64], 0
lea eax, [esp + 0x5c]
push eax
call dword [sym.imp.avformat_58.dll_avformat_close_input]
add esp, 4
push 0x100b67dc
call esi
add esp, 4
push 0x100b6808
call esi
add esp, 4
push 0x100b67fc
call esi
mov ecx, dword [esp + 0xb0]
add esp, 4
mov eax, edi
pop edi
pop esi
xor ecx, esp
call fcn.1007fac0
mov esp, ebp
pop ebp
ret