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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x15c
mov ebx, dword [esp + 0x178]
mov dword [esp], ebx
call sym.avutil_ics_57.dll_mv_pix_fmt_desc_get
mov dword [esp], ebx
mov ebp, eax
call sym.avutil_ics_57.dll_mv_pix_fmt_count_planes
xor edx, edx
mov dword [esp + 0x34], eax
xor eax, eax
mov dword [esp + eax + 0xd0], edx
mov dword [esp + eax + 0xd4], edx
add eax, 8
cmp eax, 0x80
jb 0x10020b2b
xor eax, eax
xor edx, edx
mov dword [esp + 0x50], eax
xor eax, eax
xor ecx, ecx
mov dword [esp + 0x54], eax
xor eax, eax
xor esi, esi
mov dword [esp + 0x58], eax
xor eax, eax
mov dword [esp + 0x5c], eax
xor eax, eax
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x64], edx
mov dword [esp + 0x68], ecx
mov dword [esp + 0x6c], esi
dec eax
cmp eax, 3
ja 0x10020db1
test ebp, ebp
je 0x10020db1
mov eax, dword [ebp + 8]
xor edi, edi
mov edx, eax
and edx, 8
or edi, edx
jne 0x10020db1
mov esi, eax
and eax, 4
and esi, 0x20
mov dword [esp + 0x28], esi
xor esi, esi
or eax, 0
jne 0x10020e10
movzx edx, byte [ebp + 4]
test dl, dl
je 0x10020d78
mov eax, dword [ebp + 0x14]
xor ecx, ecx
mov edi, dword [ebp + 0x10]
test eax, eax
cmovns ecx, eax
cmp eax, 0x20
mov dword [esp + edi*4 + 0x50], ecx
jg 0x10020db1
cmp edx, 1
je 0x10020c3b
mov ecx, dword [ebp + 0x24]
mov edi, dword [ebp + 0x28]
mov eax, dword [esp + ecx*4 + 0x50]
cmp eax, edi
cmovl eax, edi
mov dword [esp + ecx*4 + 0x50], eax
cmp eax, 0x20
jg 0x10020db1
cmp edx, 2
je 0x10020c3b
mov ecx, dword [ebp + 0x38]
mov edi, dword [ebp + 0x3c]
mov eax, dword [esp + ecx*4 + 0x50]
cmp eax, edi
cmovl eax, edi
mov dword [esp + ecx*4 + 0x50], eax
cmp eax, 0x20
jg 0x10020db1
cmp edx, 3
je 0x10020c3b
mov edx, dword [ebp + 0x4c]
mov ecx, dword [ebp + 0x50]
mov eax, dword [esp + edx*4 + 0x50]
cmp eax, ecx
cmovl eax, ecx
mov dword [esp + edx*4 + 0x50], eax
cmp eax, 0x20
jg 0x10020db1
mov dword [esp + 0x178], ebx
mov eax, dword [esp + 0x28]
mov dword [esp + 0x28], ebp
or eax, esi
sete byte [esp + 0x30]
movzx ecx, byte [esp + 0x30]
lea esi, [ebp + 0x10]
cmp dword [esp + 0x17c], 2
mov dword [esp + 0x38], eax
setne al
xor edi, edi
and al, cl
mov byte [esp + 0x2c], al
mov eax, dword [esi]
xor ebx, ebx
xor ebp, ebp
mov ecx, dword [esi + 0x10]
mov eax, dword [esp + eax*4 + 0x50]
cdq
idiv dword [esi + 4]
xor edx, edx
mov dword [esp + 0x80], ebx
xor ebx, ebx
mov dword [esp + 0x84], ebp
cmp ecx, 0x10
mov dword [esp + 0x88], edx
mov dword [esp + 0x8c], ebx
jg 0x10020db1
cmp ecx, 7
jg 0x10020cba
cmp byte [esp + 0x30], 0
jne 0x10020db1
test eax, eax
jle 0x10020db1
test edi, edi
jne 0x10020dc8
cmp byte [esp + 0x2c], 0
nop
je 0x10020dc8
sub ecx, 8
mov ebx, 0x10
shl ebx, cl
movzx ebx, bx
lea ebp, [esp + 0x90]
lea ecx, [ebp + eax*2]
mov edx, ebp
mov word [edx], bx
add edx, 2
cmp ecx, edx
jne 0x10020cf0
mov ebx, dword [esp + 0x28]
lea edx, [esp + 0xd0]
add esi, 0x14
mov dword [esp + 0x1c], eax
xor eax, eax
mov dword [esp + 0x14], eax
xor eax, eax
mov dword [esp + 0x70], edx
lea edx, [esp + 0xf0]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x80]
mov dword [esp + 0x74], edx
lea edx, [esp + 0x110]
mov dword [esp + 8], eax
lea eax, [esp + 0x70]
mov dword [esp + 0x78], edx
lea edx, [esp + 0x130]
mov dword [esp + 0x18], edi
inc edi
mov dword [esp + 4], eax
mov dword [esp + 0xc], ebx
mov dword [esp], ebp
mov dword [esp + 0x7c], edx
call sym.avutil_ics_57.dll_mv_write_image_line
movzx eax, byte [ebx + 4]
cmp eax, edi
jg 0x10020c70
mov ebp, dword [esp + 0x28]
mov ebx, dword [esp + 0x178]
mov dword [esp + 0x28], ebp
xor esi, esi
mov edi, dword [esp + 0x180]
mov ebp, esi
mov esi, dword [esp + 0x34]
jmp 0x10020d99
inc ebp
cmp esi, ebp
jle 0x10020f13
mov dword [esp + 8], ebp
mov dword [esp + 4], edi
mov dword [esp], ebx
call sym.avutil_ics_57.dll_mv_image_get_linesize
mov dword [esp + ebp*4 + 0x60], eax
test eax, eax
jns 0x10020d90
add esp, 0x15c
mov eax, 0xffffffea
pop ebx
pop esi
pop edi
pop ebp
ret
lea edx, [edi - 1]
xor ebx, ebx
cmp edx, 1
jbe 0x10020df0
cmp edi, 3
jne 0x10020ce3
mov ebx, 1
shl ebx, cl
dec ebx
movzx ebx, bx
jmp 0x10020ce3
mov edx, dword [esp + 0x38]
test edx, edx
jne 0x10020ce3
sub ecx, 8
mov ebx, pe_nt_image_headers32
shl ebx, cl
movzx ebx, bx
jmp 0x10020ce3
mov dword [esp], ebx
mov eax, dword [esp + 0x180]
xor ebp, ebp
mov dword [esp + 8], ebp
mov dword [esp + 4], eax
call sym.avutil_ics_57.dll_mv_image_get_linesize
mov ebp, eax
lea eax, [ebx - 9]
cmp eax, 1
setbe al
cmp ebx, 9
mov ebx, 0xff
cmovne ebx, edi
cmp dword [esp + 0x34], 1
jne 0x10020db1
or esi, dword [esp + 0x28]
setne dl
or dl, al
je 0x10020db1
test ebp, ebp
jle 0x10020db1
mov esi, dword [esp + 0x170]
test esi, esi
je 0x10020ebc
mov ecx, dword [esp + 0x184]
mov eax, dword [esp + 0x170]
test ecx, ecx
mov esi, dword [eax]
jle 0x10020ebc
movzx eax, bl
imul eax, eax, 0x1010101
lea esi, [esi]
cmp ebp, 8
mov edx, ebp
mov edi, esi
jae 0x10020ed0
and edx, 7
je 0x10020ea8
xor ecx, ecx
mov byte [edi + ecx], bl
inc ecx
cmp ecx, edx
jb 0x10020ea0
mov edi, dword [esp + 0x174]
mov edx, dword [edi]
add esi, edx
dec dword [esp + 0x184]
jne 0x10020e90
xor eax, eax
add esp, 0x15c
pop ebx
pop esi
pop edi
pop ebp
ret
test esi, 1
jne 0x10020ef4
test edi, 2
jne 0x10020f08
test edi, 4
jne 0x10020efe
mov ecx, edx
and edx, 3
shr ecx, 2
rep stosd dword es:[edi], eax
jmp 0x10020e99
mov byte [esi], al
lea edi, [esi + 1]
lea edx, [ebp - 1]
jmp 0x10020ed8
mov dword [edi], eax
sub edx, 4
add edi, 4
jmp 0x10020ee8
mov word [edi], ax
sub edx, 2
add edi, 2
jmp 0x10020ee0
mov ebx, dword [esp + 0x170]
mov ebp, dword [esp + 0x28]
test ebx, ebx
je 0x10020ebc
mov dword [esp + 0x4c], ebp
lea eax, [esp + 0xd0]
xor ecx, ecx
mov dword [esp + 0x38], eax
mov dword [esp + 0x28], ecx
mov eax, dword [esp + 0x28]
mov esi, dword [esp + eax*4 + 0x60]
mov dword [esp + 0x3c], esi
mov esi, dword [esp + 0x170]
mov ebp, dword [esi + eax*4]
dec eax
cmp eax, 1
jbe 0x100210a7
mov eax, 1
xor ecx, ecx
mov esi, dword [esp + 0x184]
lea eax, [eax + esi - 1]
sar eax, cl
mov dword [esp + 0x30], eax
test eax, eax
jle 0x1002100f
mov eax, dword [esp + 0x28]
mov ebx, dword [esp + eax*4 + 0x50]
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x2c], ebx
cmp eax, ebx
mov esi, eax
cmova esi, ebx
mov dword [esp + 0x40], esi
sub eax, esi
mov dword [esp + 0x44], eax
lea esi, [esi]
nop
mov esi, dword [esp + 0x2c]
test esi, esi
je 0x10020ff9
mov eax, dword [esp + 0x38]
movzx edx, byte [eax]
lea ecx, [eax + esi]
jmp 0x10020fbd
inc eax
cmp ecx, eax
je 0x10021030
cmp byte [eax], dl
je 0x10020fb8
cmp dword [esp + 0x2c], 1
je 0x10021030
mov eax, dword [esp + 0x40]
mov edi, ebp
mov esi, dword [esp + 0x38]
cmp eax, 8
mov ecx, eax
jae 0x10021078
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x44]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 4], eax
add eax, ebp
mov dword [esp], eax
call sym.avutil_ics_57.dll_mv_memcpy_backptr
mov eax, dword [esp + 0x174]
mov esi, dword [esp + 0x28]
mov edx, dword [eax + esi*4]
add ebp, edx
dec dword [esp + 0x30]
jne 0x10020fa0
inc dword [esp + 0x28]
add dword [esp + 0x38], 0x20
mov eax, dword [esp + 0x28]
cmp dword [esp + 0x34], eax
jg 0x10020f37
xor eax, eax
jmp 0x10020ebe
mov eax, dword [esp + 0x3c]
mov edi, ebp
cmp eax, 8
mov ebx, eax
jae 0x1002104e
and ebx, 7
je 0x10020ff9
xor eax, eax
mov byte [edi + eax], dl
inc eax
cmp eax, ebx
jb 0x10021044
jmp 0x10020ff9
imul eax, edx, 0x1010101
test ebp, 1
jne 0x100210d0
test edi, 2
jne 0x100210c5
test edi, 4
jne 0x100210bb
mov ecx, ebx
and ebx, 3
shr ecx, 2
rep stosd dword es:[edi], eax
jmp 0x1002103d
test ebp, 1
jne 0x100210f4
test edi, 2
jne 0x100210e2
test edi, 4
je 0x10020fdd
mov eax, dword [esi]
add edi, 4
add esi, 4
sub ecx, 4
mov dword [edi - 4], eax
jmp 0x10020fdd
mov eax, dword [esp + 0x4c]
movzx ecx, byte [eax + 6]
mov eax, 1
shl eax, cl
jmp 0x10020f5e
mov dword [edi], eax
sub ebx, 4
add edi, 4
jmp 0x1002106c
mov word [edi], ax
sub ebx, 2
add edi, 2
jmp 0x10021064
mov byte [ebp], al
lea edi, [ebp + 1]
mov esi, dword [esp + 0x3c]
lea ebx, [esi - 1]
jmp 0x1002105c
movzx eax, word [esi]
add edi, 2
add esi, 2
sub ecx, 2
mov word [edi - 2], ax
jmp 0x10021088
movzx eax, byte [esi]
lea edi, [ebp + 1]
inc esi
mov byte [esp + 0x4b], al
mov byte [ebp], al
mov eax, dword [esp + 0x40]
lea ecx, [eax - 1]
jmp 0x10021080