Function at 0x10023620
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_lav_57.dll_mv_pix_fmt_desc_get
mov dword [esp], ebx
mov ebp, eax
call sym.avutil_lav_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 0x1002364b
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 0x100238d1
test ebp, ebp
je 0x100238d1
mov eax, dword [ebp + 8]
xor edi, edi
mov edx, eax
and edx, 8
or edi, edx
jne 0x100238d1
mov esi, eax
and eax, 4
and esi, 0x20
mov dword [esp + 0x28], esi
xor esi, esi
or eax, 0
jne 0x10023930
movzx edx, byte [ebp + 4]
test dl, dl
je 0x10023898
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 0x100238d1
cmp edx, 1
je 0x1002375b
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 0x100238d1
cmp edx, 2
je 0x1002375b
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 0x100238d1
cmp edx, 3
je 0x1002375b
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 0x100238d1
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 0x100238d1
cmp ecx, 7
jg 0x100237da
cmp byte [esp + 0x30], 0
jne 0x100238d1
test eax, eax
jle 0x100238d1
test edi, edi
jne 0x100238e8
cmp byte [esp + 0x2c], 0
nop
je 0x100238e8
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 0x10023810
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_lav_57.dll_mv_write_image_line
movzx eax, byte [ebx + 4]
cmp eax, edi
jg 0x10023790
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 0x100238b9
inc ebp
cmp esi, ebp
jle 0x10023a33
mov dword [esp + 8], ebp
mov dword [esp + 4], edi
mov dword [esp], ebx
call sym.avutil_lav_57.dll_mv_image_get_linesize
mov dword [esp + ebp*4 + 0x60], eax
test eax, eax
jns 0x100238b0
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 0x10023910
cmp edi, 3
jne 0x10023803
mov ebx, 1
shl ebx, cl
dec ebx
movzx ebx, bx
jmp 0x10023803
mov edx, dword [esp + 0x38]
test edx, edx
jne 0x10023803
sub ecx, 8
mov ebx, pe_nt_image_headers32
shl ebx, cl
movzx ebx, bx
jmp 0x10023803
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_lav_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 0x100238d1
or esi, dword [esp + 0x28]
setne dl
or dl, al
je 0x100238d1
test ebp, ebp
jle 0x100238d1
mov esi, dword [esp + 0x170]
test esi, esi
je 0x100239dc
mov ecx, dword [esp + 0x184]
mov eax, dword [esp + 0x170]
test ecx, ecx
mov esi, dword [eax]
jle 0x100239dc
movzx eax, bl
imul eax, eax, 0x1010101
lea esi, [esi]
cmp ebp, 8
mov edx, ebp
mov edi, esi
jae 0x100239f0
and edx, 7
je 0x100239c8
xor ecx, ecx
mov byte [edi + ecx], bl
inc ecx
cmp ecx, edx
jb 0x100239c0
mov edi, dword [esp + 0x174]
mov edx, dword [edi]
add esi, edx
dec dword [esp + 0x184]
jne 0x100239b0
xor eax, eax
add esp, 0x15c
pop ebx
pop esi
pop edi
pop ebp
ret
test esi, 1
jne 0x10023a14
test edi, 2
jne 0x10023a28
test edi, 4
jne 0x10023a1e
mov ecx, edx
and edx, 3
shr ecx, 2
rep stosd dword es:[edi], eax
jmp 0x100239b9
mov byte [esi], al
lea edi, [esi + 1]
lea edx, [ebp - 1]
jmp 0x100239f8
mov dword [edi], eax
sub edx, 4
add edi, 4
jmp 0x10023a08
mov word [edi], ax
sub edx, 2
add edi, 2
jmp 0x10023a00
mov ebx, dword [esp + 0x170]
mov ebp, dword [esp + 0x28]
test ebx, ebx
je 0x100239dc
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 0x10023bc7
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 0x10023b2f
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 0x10023b19
mov eax, dword [esp + 0x38]
movzx edx, byte [eax]
lea ecx, [eax + esi]
jmp 0x10023add
inc eax
cmp ecx, eax
je 0x10023b50
cmp byte [eax], dl
je 0x10023ad8
cmp dword [esp + 0x2c], 1
je 0x10023b50
mov eax, dword [esp + 0x40]
mov edi, ebp
mov esi, dword [esp + 0x38]
cmp eax, 8
mov ecx, eax
jae 0x10023b98
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_lav_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 0x10023ac0
inc dword [esp + 0x28]
add dword [esp + 0x38], 0x20
mov eax, dword [esp + 0x28]
cmp dword [esp + 0x34], eax
jg 0x10023a57
xor eax, eax
jmp 0x100239de
mov eax, dword [esp + 0x3c]
mov edi, ebp
cmp eax, 8
mov ebx, eax
jae 0x10023b6e
and ebx, 7
je 0x10023b19
xor eax, eax
mov byte [edi + eax], dl
inc eax
cmp eax, ebx
jb 0x10023b64
jmp 0x10023b19
imul eax, edx, 0x1010101
test ebp, 1
jne 0x10023bf0
test edi, 2
jne 0x10023be5
test edi, 4
jne 0x10023bdb
mov ecx, ebx
and ebx, 3
shr ecx, 2
rep stosd dword es:[edi], eax
jmp 0x10023b5d
test ebp, 1
jne 0x10023c14
test edi, 2
jne 0x10023c02
test edi, 4
je 0x10023afd
mov eax, dword [esi]
add edi, 4
add esi, 4
sub ecx, 4
mov dword [edi - 4], eax
jmp 0x10023afd
mov eax, dword [esp + 0x4c]
movzx ecx, byte [eax + 6]
mov eax, 1
shl eax, cl
jmp 0x10023a7e
mov dword [edi], eax
sub ebx, 4
add edi, 4
jmp 0x10023b8c
mov word [edi], ax
sub ebx, 2
add edi, 2
jmp 0x10023b84
mov byte [ebp], al
lea edi, [ebp + 1]
mov esi, dword [esp + 0x3c]
lea ebx, [esi - 1]
jmp 0x10023b7c
movzx eax, word [esi]
add edi, 2
add esi, 2
sub ecx, 2
mov word [edi - 2], ax
jmp 0x10023ba8
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 0x10023ba0