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

Disassembly:
sub esp, 0xd0
mov eax, dword [0x100ca040]
xor eax, esp
mov dword [esp + 0xcc], eax
mov eax, dword [esp + 0xd8]
push ebx
mov ebx, dword [esp + 0x114]
push ebp
mov ebp, edx
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0xe4]
mov edx, dword [esp + 0x11c]
push esi
push edi
mov edi, dword [esp + 0x110]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0xf4]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0xf0]
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x104]
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x30], eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x1c], 0
mov dword [esp + 0x34], edx
cmp edi, dword [esp + 0x100]
jne 0x1007fc50
cmp dword [esp + 0x114], edx
jle 0x1007fc5c
mov ebx, dword [esp + 0x2c]
mov dword [esp + 0x1c], 1
cmp ebp, 9
je 0x1007fc80
mov edi, dword [esp + 0x1c]
cmp ebp, 8
mov dword [esp + 0x24], 1
cmovne edi, dword [esp + 0x24]
mov dword [esp + 0x1c], edi
mov edi, dword [esp + 0x110]
mov esi, dword [esp + 0x18]
cmp dword [esi + 0x38], ebp
mov esi, dword [esp + 0x100]
je 0x1007fca6
mov eax, dword [esp + 0x18]
mov ecx, eax
mov dword [eax + 0x38], ebp
call fcn.1007fb30
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x20]
cmp dword [esp + 0x1c], 0
mov dword [esp + 0x9c], 0
mov dword [esp + 0xa0], 0
mov dword [esp + 0xa4], 0
mov dword [esp + 0xa8], 0
mov dword [esp + 0xac], 0
mov dword [esp + 0xb0], 0
mov dword [esp + 0xb4], 0
mov dword [esp + 0xb8], 0
je 0x10080030
xor eax, eax
jmp 0x1007fd10
cmp dword [eax*8 + 0x100cc600], ebp
je 0x1007fd29
inc eax
cmp eax, 0xb
jb 0x1007fd10
mov dword [esp + 0x38], 0xffffffff
jmp 0x1007fd34
mov eax, dword [eax*8 + 0x100cc604]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0xf8]
mov ecx, dword [esp + 0xfc]
mov dword [esp + 0xbc], eax
mov eax, ebx
cdq
mov ebp, eax
mov dword [esp + 0xc0], ecx
mov ebx, edx
mov dword [esp + 0xc4], esi
mov eax, edi
cdq
push edx
push eax
mov eax, esi
cdq
push edx
push eax
push ebx
push ebp
call dword [sym.imp.avutil_52.dll_av_rescale]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x2c]
cdq
mov edi, eax
mov esi, edx
mov eax, dword [esp + 0x12c]
cdq
push edx
push eax
mov eax, dword [esp + 0x54]
cdq
push edx
push eax
push esi
push edi
call dword [sym.imp.avutil_52.dll_av_rescale]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x58]
push ebx
mov ebx, dword [sym.imp.avutil_52.dll_av_rescale]
cdq
push ebp
push edx
push eax
mov eax, dword [esp + 0x158]
cdq
push edx
push eax
call ebx
mov ebp, dword [esp + 0x6c]
add esp, 0x48
mov dword [esp + 0x118], eax
mov eax, ebp
cdq
push esi
push edi
push edx
push eax
mov eax, dword [esp + 0x12c]
cdq
push edx
push eax
call ebx
mov ebx, dword [esp + 0x50]
push 0
push 0
push 0
push 0x4002
push ebx
push ebp
push dword [esp + 0x58]
mov ebp, dword [esp + 0x4c]
push 0x1e
push dword [esp + 0x4c]
mov dword [esp + 0x158], eax
push dword [esp + 0x68]
push dword [ebp + 0x34]
call dword [sym.imp.swscale_2.dll_sws_getCachedContext]
mov dword [ebp + 0x34], eax
add esp, 0x44
mov eax, dword [esp + 0x30]
mov dword [esp + 0xcc], eax
mov ecx, ebx
mov eax, dword [esp + 0x20]
shl eax, 2
mov dword [esp + 0x34], eax
mov dword [esp + 0xbc], eax
lea eax, [esp + 0x48]
push eax
mov dword [esp + 0xd4], 0
mov dword [esp + 0xd8], 0
mov dword [esp + 0xdc], 0
mov dword [esp + 0xc4], 0
mov dword [esp + 0xc8], 0
mov dword [esp + 0xcc], 0
call fcn.1007fae0
mov ebp, dword [esp + 0x2c]
lea edi, [esp + 0x78]
add ebp, 0x3f
mov ecx, 0xa
mov esi, eax
and ebp, 0xffffffc0
rep movsd dword es:[edi], dword [esi]
imul ebp, dword [esp + 0x78]
xor esi, esi
add esp, 4
cmp dword [esp + 0x78], esi
jle 0x1007fee8
mov edi, dword [esp + 0x24]
mov ebx, dword [sym.imp.avutil_52.dll_av_mallocz]
inc edi
and edi, 0xfffffffe
nop
mov eax, ebp
cdq
idiv dword [esp + esi*4 + 0x7c]
mov ecx, eax
mov eax, edi
imul eax, ecx
mov dword [esp + esi*4 + 0xac], ecx
cdq
idiv dword [esp + esi*4 + 0x8c]
add eax, 0x10
push eax
call ebx
mov dword [esp + esi*4 + 0xa0], eax
add esp, 4
inc esi
cmp esi, dword [esp + 0x78]
jl 0x1007feb0
mov ebx, dword [esp + 0x38]
cmp ebx, 0x1e
je 0x1007ffb6
mov edi, dword [esp + 0x14]
mov esi, edi
imul esi, dword [esp + 0x20]
shl esi, 2
push esi
call dword [sym.imp.avutil_52.dll_av_malloc]
add esp, 4
mov ebp, eax
mov dword [esp + 0x20], ebp
push esi
push dword [esp + 0x34]
push ebp
call fcn.100922e0
add esp, 0xc
test edi, edi
jle 0x1007ffad
mov eax, dword [esp + 0x2c]
mov ebx, ebp
mov ebp, edi
lea ecx, [ecx]
mov ecx, ebx
test eax, eax
jle 0x1007ffa2
mov edi, eax
mov al, byte [ecx + 3]
test al, al
je 0x1007ff98
cmp al, 0xff
je 0x1007ff98
movzx esi, al
movzx eax, byte [ecx]
imul eax, eax, 0xff
cdq
idiv esi
test eax, 0xffffff00
je 0x1007ff5e
neg eax
sar eax, 0x1f
mov byte [ecx], al
movzx eax, byte [ecx + 1]
imul eax, eax, 0xff
cdq
idiv esi
test eax, 0xffffff00
je 0x1007ff79
neg eax
sar eax, 0x1f
mov byte [ecx + 1], al
movzx eax, byte [ecx + 2]
imul eax, eax, 0xff
cdq
idiv esi
test eax, 0xffffff00
je 0x1007ff95
neg eax
sar eax, 0x1f
mov byte [ecx + 2], al
add ecx, 4
dec edi
jne 0x1007ff38
mov eax, dword [esp + 0x2c]
add ebx, dword [esp + 0x34]
dec ebp
jne 0x1007ff30
mov ebp, dword [esp + 0x20]
mov dword [esp + 0xcc], ebp
jmp 0x1007ffb8
xor ebp, ebp
lea eax, [esp + 0xac]
push eax
lea eax, [esp + 0xa0]
push eax
push dword [esp + 0x1c]
lea eax, [esp + 0xc8]
push 0
push eax
lea eax, [esp + 0xe0]
push eax
mov eax, dword [esp + 0x30]
push dword [eax + 0x34]
call dword [sym.imp.swscale_2.dll_sws_scale]
mov ecx, dword [esp + 0x40]
add esp, 0x1c
mov ebx, dword [esp + 0x28]
mov dword [esp + 0x14], ecx
test ebp, ebp
je 0x1008001c
push ebp
call dword [sym.imp.avutil_52.dll_av_free]
mov edx, dword [esp + 0x108]
add esp, 4
mov esi, dword [esp + 0x100]
mov ebp, dword [esp + 0x3c]
jmp 0x10080045
mov edx, dword [esp + 0x104]
mov esi, dword [esp + 0x100]
mov ebp, dword [esp + 0x3c]
jmp 0x10080049
mov dword [esp + 0x9c], eax
lea eax, [ecx*4]
mov dword [esp + 0xac], eax
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov edi, dword [eax + 0x20]
test edi, edi
je 0x100800ad
push dword [esp + 0xe4]
lea eax, [esp + 0xb0]
push ebp
push ecx
push ebx
push dword [esp + 0x12c]
push dword [esp + 0x12c]
push eax
lea eax, [esp + 0xb8]
push eax
mov eax, dword [esp + 0x118]
sub esp, 0x10
mov ecx, esp
push dword [esp + 0x74]
mov dword [ecx], eax
mov eax, dword [esp + 0x130]
push dword [esp + 0x74]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x50]
mov dword [ecx + 8], esi
mov dword [ecx + 0xc], edx
mov ecx, dword [eax + 0x24]
add ecx, eax
call edi
cmp dword [esp + 0x1c], 0
je 0x100800d2
mov ebx, dword [sym.imp.avutil_52.dll_av_freep]
lea esi, [esp + 0x9c]
mov edi, 4
push esi
call ebx
add esp, 4
add esi, 4
dec edi
jne 0x100800c6
mov ecx, dword [esp + 0xdc]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1008c1b5
add esp, 0xd0
ret 0x44