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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x80
mov dword [esp + 8], edx
mov eax, dword [ebp + 8]
mov esi, dword [0x1026f864]
xor esi, ebp
mov dword [esp + 0x78], esi
mov dword [esp + 0x10], ecx
mov ecx, dword [ecx + 0x1c]
mov edi, dword [edx + 0x1c]
mov ebx, dword [edx + 0x18]
mov esi, dword [ecx + eax*4]
mov ecx, edi
or ecx, dword [ebp + 0xc]
mov dword [esp + 4], esi
je 0x100313bc
lea eax, [esp + 0x30]
push eax
call sym.ffmpeg.dll_av_init_packet
add esp, 4
jmp 0x10031400
mov eax, dword [esi + 0xe8]
test byte [eax + 0xb0], 1
je 0x10031400
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 4]
mov esi, ebx
mov ebx, edi
mov edi, 0x80000000
push edi
mov edi, 0
push edi
mov edi, 0x80000000
push edi
mov edi, 0
push edi
mov edi, ebx
mov ebx, esi
push dword [esp + 0x18]
push eax
call fcn.10031710
add esp, 0x18
test edi, edi
jg 0x1003140e
cmp dword [ebp + 0xc], 0
je 0x10031697
mov esi, ebx
mov ebx, dword [esp + 8]
mov dword [esp + 0x24], edi
mov eax, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
mov ecx, dword [ebx + 0x14]
mov dword [esp + 0x20], eax
mov eax, dword [ebx + 0xc]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 4]
mov edx, dword [eax + 0x2b8]
mov dword [esp + 0xc], edx
push dword [ebx + 0x3c]
push dword [ebx + 0x38]
mov dword [esp + 0x30], ecx
push ecx
mov dword [esp + 0x38], edi
push edi
mov edi, dword [esp + 0x34]
push dword [esp + 0x2c]
push dword [esp + 0x34]
push edi
push esi
lea ecx, [esp + 0x6c]
push ecx
lea ecx, [esp + 0x6c]
push ecx
mov ecx, dword [esp + 0x34]
push dword [ecx + 0xc]
push dword [eax + 0xe8]
call fcn.1001daf0
add esp, 0x30
movaps xmm0, xmmword [0x102092f0]
mov ecx, eax
xor eax, eax
dec eax
test esi, esi
movups xmmword [ebx + 8], xmm0
mov dword [ebx + 0x3c], eax
mov dword [ebx + 0x38], eax
lea ebx, [esi + ecx]
mov eax, dword [esp + 0x4c]
cmove ebx, esi
test eax, eax
je 0x10031679
mov esi, dword [esp + 8]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0xc], ebx
mov eax, dword [esi]
test eax, eax
je 0x100314c0
mov ecx, dword [esp + 0x48]
cmp ecx, dword [esi + 0x18]
je 0x100314d6
lea eax, [esp + 0x30]
push eax
call fcn.10009780
add esp, 4
test eax, eax
jns 0x100314eb
jmp 0x100316dd
push eax
call fcn.1005a350
add esp, 4
test eax, eax
mov dword [esp + 0x30], eax
je 0x100316e1
mov eax, dword [esi + 0x28]
test eax, eax
je 0x10031505
mov dword [esp + 0x58], eax
mov eax, dword [esi + 0x2c]
mov dword [esp + 0x5c], eax
xor eax, eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
mov edx, dword [esp + 4]
xor eax, eax
mov ecx, 0
mov ebx, dword [edx + 0xe8]
test byte [ebx + 0xb0], 1
je 0x10031525
mov eax, dword [esi + 0x30]
mov ecx, dword [esi + 0x34]
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], ecx
mov eax, dword [edx + 0xb0]
cmp dword [eax], 1
jne 0x1003157f
mov eax, dword [edx + 0x2b8]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x158]
test eax, eax
jle 0x1003157f
mov ecx, dword [ebx + 0x130]
mov edx, ecx
sar edx, 0x1f
push 2
mov edi, dword [esp + 8]
push dword [edi + 0x14]
mov edi, dword [esp + 0xc]
push dword [edi + 0x10]
push eax
push 1
push edx
push ecx
call fcn.10061d50
add esp, 0x1c
mov dword [esp + 0x64], edx
mov edx, dword [esp + 4]
mov dword [esp + 0x60], eax
mov eax, dword [edx]
mov dword [esp + 0x50], eax
movups xmm0, xmmword [ebx + 0x28]
movups xmmword [esp + 0x38], xmm0
movsd xmm0, qword [ebx + 0x120]
movsd qword [esp + 0x68], xmm0
mov ecx, dword [esi + 0x24]
mov eax, ecx
and eax, 4
or eax, dword [esp + 0x54]
mov dword [esp + 0x54], eax
cmp dword [edx + 0xe4], 5
jne 0x100315c0
movsd xmm0, qword [ebx + 8]
movsd qword [esp + 0x68], xmm0
mov edx, dword [ebx + 0xe0]
lea edi, [esp + 0x30]
cmp edx, 1
je 0x100315ef
cmp edx, 0xffffffff
jne 0x100315f6
mov edx, dword [ebx + 0x20]
cmp edx, 1
jne 0x100315e6
or eax, 1
mov dword [esp + 0x54], eax
mov edx, dword [ebx + 0x20]
test cl, 1
je 0x100315f6
test edx, edx
jne 0x100315f6
or eax, 1
mov dword [esp + 0x54], eax
mov esi, dword [esp + 0x10]
mov edx, dword [esp + 4]
mov ecx, esi
push dword [esp + 0x1c]
push dword [esp + 0x24]
push dword [esp + 0x30]
push dword [esp + 0x38]
push edi
push ebx
call fcn.10031710
add esp, 0x18
mov esi, dword [esi + 0x50c]
push 0x50
call fcn.10062340
add esp, 4
test eax, eax
je 0x100316f5
mov ecx, edi
mov edi, eax
push ecx
call fcn.10009780
add esp, 4
test eax, eax
js 0x100316e8
lea eax, [esp + 0x30]
push eax
push edi
call fcn.10009730
add esp, 8
cmp dword [esi + 0x20], 0
je 0x10031663
mov eax, dword [esi + 0x24]
mov dword [eax + 0x48], edi
jmp 0x10031666
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov ebx, dword [esp + 0xc]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x24]
sub edi, ecx
test eax, eax
setne al
cmp dword [ebp + 0xc], 0
setne cl
test edi, edi
jg 0x1003140e
and cl, al
jne 0x1003140e
xor ebx, ebx
cmp dword [ebp + 0xc], 0
je 0x100316bb
mov esi, dword [esp + 4]
push dword [esi + 0xe8]
call fcn.1001dcd0
add esp, 4
mov dword [esi + 0xe8], 0
mov esi, dword [esp + 8]
push esi
call sym.ffmpeg.dll_av_packet_unref
add esp, 4
mov ecx, dword [esp + 0x78]
xor ecx, ebp
call fcn.101e05ab
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov ebx, eax
jmp 0x100316bf
mov ebx, 0xfffffff4
jmp 0x100316bf
mov ebx, eax
push edi
call sym.ffmpeg.dll_av_free
add esp, 4
jmp 0x100316fa
mov ebx, 0xfffffff4
lea eax, [esp + 0x30]
push eax
call sym.ffmpeg.dll_av_packet_unref
add esp, 4
jmp 0x100316bb