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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x9c
mov ebx, dword [eax + 0x2048]
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], edx
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x58], ebx
mov ebx, dword [eax + 0x2074]
mov dword [esp + 0x30], ebx
mov ebx, dword [eax + 0x207c]
mov dword [esp + 0x6c], ebx
mov ebx, dword [eax + 0x2078]
mov dword [esp + 0x34], ebx
mov ebx, dword [eax + 0x2080]
mov dword [esp + 0x70], ebx
mov ebx, dword [eax + 0x2134]
mov dword [esp + 0x48], ebx
mov ebx, dword [eax + 0x2084]
mov dword [esp + 0x64], ebx
mov ebx, dword [eax + 0x2088]
mov dword [esp + 0x78], ebx
mov ebx, dword [eax + 0x2044]
mov eax, dword [esp + 0xc4]
mov dword [esp + 0x40], ebx
and eax, 1
add eax, 1
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x50]
mov eax, dword [eax + 0x204c]
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x50]
mov eax, dword [eax + 0x2070]
and eax, 0xfe
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0x50]
mov ebx, dword [esp + 0xbc]
mov ebx, dword [eax + ebx*4 + 0x1448]
mov dword [esp + 0x5c], ebx
mov ebx, dword [esp + 0xbc]
mov ebx, dword [eax + ebx*4 + 0x144c]
mov dword [esp + 0x60], ebx
mov ebx, dword [edx]
mov dword [esp + 0x7c], ebx
mov ebx, dword [edx + 4]
mov eax, dword [esp + 0x7c]
mov edx, dword [esp + 0x88]
sub eax, dword [esp + 0x88]
mov dword [esp + 0x28], ebx
mov ebx, dword [esp + 0x7c]
cmp dword [esp + 0x30], eax
lea esi, [eax + 1]
cmovg esi, dword [esp + 0x30]
lea eax, [edx + ebx - 1]
cmp eax, dword [esp + 0x34]
cmovg eax, dword [esp + 0x34]
cmp esi, eax
mov dword [esp + 0x2c], eax
jg 0x903aee
cmp dword [esp + 0x30], esi
jg 0x9040f7
cmp dword [esp + 0x34], esi
jl 0x904235
mov ebx, dword [esp + 0x28]
cmp dword [esp + 0x6c], ebx
jg 0x904219
cmp dword [esp + 0x70], ebx
jl 0x9041fd
mov edx, dword [esp + 0x28]
mov ebx, dword [esp + 0x28]
mov eax, dword [esp + 0x28]
movzx ecx, byte [esp + 0x4c]
shl edx, 0xb
lea ebp, [esi + edx]
shl ebx, 3
shl eax, cl
mov edi, ebx
sub eax, dword [esp + 0x78]
add edi, esi
add eax, dword [esp + 0x48]
and edi, 0x3f
add edx, dword [esp + 0x74]
add ebp, dword [esp + 0x74]
mov dword [esp + 0x38], ebx
mov dword [esp + 0x68], eax
mov dword [esp + 0x44], edx
jmp 0x903a35
mov edi, dword [esp + 0x38]
mov ebp, dword [esp + 0x44]
add edi, esi
add ebp, esi
and edi, 0x3f
cmp dword [esp + 0x30], esi
jg 0x9040f7
cmp dword [esp + 0x34], esi
jl 0x904235
mov eax, dword [esp + 0x40]
lea ebx, [eax + edi*4]
cmp dword [ebx], ebp
je 0x903ae1
mov edx, dword [esp + 0xc4]
mov ecx, dword [esp + 0x60]
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0xb0]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0xb4]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0xc0]
mov dword [esp + 0xc], edx
mov edx, dword [esp + 0xbc]
mov dword [esp + 8], ecx
mov ecx, dword [esp + 0x28]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x50]
mov dword [esp], edx
mov edx, esi
call fcn.008fd210
movzx ecx, byte [esp + 0x4c]
mov edx, esi
mov dword [ebx], ebp
mov ebx, dword [esp + 0x58]
shl edx, cl
sub edx, dword [esp + 0x64]
mov dword [ebx + edi*4], eax
mov ebx, dword [esp + 0x48]
movzx ecx, byte [ebx + edx]
mov ebx, dword [esp + 0x68]
movzx edx, byte [ebx]
add edx, ecx
imul edx, dword [esp + 0xb8]
add edx, eax
cmp edx, dword [esp + 0x3c]
jge 0x903ae1
mov eax, dword [esp + 0x54]
mov ebx, dword [esp + 0x28]
mov dword [esp + 0x3c], edx
mov dword [eax], esi
mov dword [eax + 4], ebx
add esi, 2
cmp esi, dword [esp + 0x2c]
jle 0x903a12
mov eax, dword [esp + 0x88]
mov ebx, dword [esp + 0x28]
shr eax, 1
sub ebx, eax
mov eax, dword [esp + 0x88]
cmp dword [esp + 0x6c], ebx
lea edi, [ebx + 1]
mov ebx, dword [esp + 0x28]
cmovg edi, dword [esp + 0x6c]
sar eax, 1
lea eax, [ebx + eax - 1]
cmp eax, dword [esp + 0x70]
cmovg eax, dword [esp + 0x70]
cmp edi, eax
mov dword [esp + 0x2c], eax
jg 0x903c76
mov ebx, dword [esp + 0x7c]
cmp dword [esp + 0x30], ebx
jg 0x9041e1
cmp dword [esp + 0x34], ebx
jl 0x9041c5
cmp dword [esp + 0x6c], edi
jg 0x9041a9
cmp dword [esp + 0x70], edi
jl 0x90418d
mov eax, edi
mov ebp, dword [esp + 0x74]
shl eax, 0xb
movzx ecx, byte [esp + 0x4c]
add eax, dword [esp + 0x7c]
add ebp, eax
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x28], ebp
mov ebp, dword [esp + 0x7c]
lea ebx, [eax + edi*8]
shl eax, cl
and ebx, 0x3f
sub eax, dword [esp + 0x64]
add eax, dword [esp + 0x48]
mov dword [esp + 0x38], eax
jmp 0x903bbb
mov eax, edi
shl eax, 0xb
lea ebx, [ebp + edi*8]
add eax, ebp
and ebx, 0x3f
add eax, dword [esp + 0x74]
cmp dword [esp + 0x6c], edi
mov dword [esp + 0x28], eax
jg 0x9041a9
cmp dword [esp + 0x70], edi
jl 0x90418d
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x28]
lea esi, [eax + ebx*4]
cmp dword [esi], edx
je 0x903c69
mov ecx, dword [esp + 0xc4]
mov eax, dword [esp + 0x60]
mov edx, dword [esp + 0x5c]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0xb0]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0xb4]
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0xc0]
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0xbc]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 4], edx
mov edx, ebp
mov dword [esp], ecx
mov ecx, edi
call fcn.008fd210
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x58]
mov dword [esi], edx
mov esi, edi
mov dword [ecx + ebx*4], eax
mov ebx, dword [esp + 0x38]
movzx ecx, byte [esp + 0x4c]
movzx edx, byte [ebx]
mov ebx, dword [esp + 0x48]
shl esi, cl
sub esi, dword [esp + 0x78]
movzx ecx, byte [ebx + esi]
add edx, ecx
imul edx, dword [esp + 0xb8]
add edx, eax
cmp edx, dword [esp + 0x3c]
jge 0x903c69
mov eax, dword [esp + 0x54]
mov dword [esp + 0x3c], edx
mov dword [eax], ebp
mov dword [eax + 4], edi
add edi, 2
cmp edi, dword [esp + 0x2c]
jle 0x903b91
mov edx, dword [esp + 0x54]
mov edx, dword [edx]
mov dword [esp + 0x7c], edx
mov edx, dword [esp + 0x54]
mov ebx, dword [esp + 0x7c]
mov edx, dword [edx + 4]
mov eax, edx
sub eax, 2
cmp eax, dword [esp + 0x6c]
cmovl eax, dword [esp + 0x6c]
mov dword [esp + 0x80], edx
add edx, 2
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x80]
add eax, 1
cmp dword [esp + 0x70], eax
mov eax, dword [esp + 0x7c]
cmovle edx, dword [esp + 0x70]
add ebx, 2
add eax, 1
cmp dword [esp + 0x34], eax
cmovle ebx, dword [esp + 0x34]
mov dword [esp + 0x8c], edx
mov dword [esp + 0x2c], ebx
mov ebx, dword [esp + 0x7c]
sub ebx, 2
mov dword [esp + 0x84], ebx
mov ebx, edx
cmp dword [esp + 0x28], ebx
jg 0x903e52
mov ebx, dword [esp + 0x30]
cmp dword [esp + 0x84], ebx
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x28]
mov edi, ebx
mov ebx, dword [esp + 0x28]
movzx ecx, byte [esp + 0x4c]
cmovge edi, dword [esp + 0x84]
shl edx, 0xb
shl ebx, 3
mov dword [esp + 0x38], ebx
mov ebx, dword [esp + 0x70]
shl eax, cl
sub eax, dword [esp + 0x78]
add eax, dword [esp + 0x48]
cmp dword [esp + 0x28], ebx
mov ebx, dword [esp + 0x6c]
mov dword [esp + 0x68], eax
jg 0x90414d
cmp dword [esp + 0x28], ebx
jl 0x904113
add edx, dword [esp + 0x74]
mov dword [esp + 0x44], edx
jmp 0x903e32
cmp dword [esp + 0x30], edi
jg 0x90406b
cmp dword [esp + 0x34], edi
jl 0x90404f
mov ebx, dword [esp + 0x38]
mov eax, dword [esp + 0x40]
mov ebp, dword [esp + 0x44]
add ebx, edi
and ebx, 0x3f
lea esi, [eax + ebx*4]
add ebp, edi
cmp dword [esi], ebp
je 0x903e2f
mov edx, dword [esp + 0xc4]
mov ecx, dword [esp + 0x60]
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0xb0]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0xb4]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0xc0]
mov dword [esp + 0xc], edx
mov edx, dword [esp + 0xbc]
mov dword [esp + 8], ecx
mov ecx, dword [esp + 0x28]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x50]
mov dword [esp], edx
mov edx, edi
call fcn.008fd210
mov ecx, dword [esp + 0x58]
mov edx, edi
mov dword [esi], ebp
mov dword [ecx + ebx*4], eax
movzx ecx, byte [esp + 0x4c]
mov ebx, dword [esp + 0x48]
shl edx, cl
sub edx, dword [esp + 0x64]
movzx ecx, byte [ebx + edx]
mov ebx, dword [esp + 0x68]
movzx edx, byte [ebx]
add edx, ecx
imul edx, dword [esp + 0xb8]
add edx, eax
cmp dword [esp + 0x3c], edx
jle 0x903e2f
mov eax, dword [esp + 0x54]
mov ebx, dword [esp + 0x28]
mov dword [esp + 0x3c], edx
mov dword [eax], edi
mov dword [eax + 4], ebx
add edi, 1
cmp dword [esp + 0x2c], edi
jge 0x903d60
add dword [esp + 0x28], 1
mov ebx, dword [esp + 0x8c]
cmp dword [esp + 0x28], ebx
jle 0x903cf2
sar dword [esp + 0x88], 2
mov ebx, dword [esp + 0x88]
test ebx, ebx
je 0x903fea
mov dword [esp + 0x38], 1
mov dword [esp + 0x28], 0
lea esi, [esi]
mov ebx, dword [esp + 0x28]
mov edi, dword [esp + 0x38]
imul edi, dword [ebx*8 + 0x105b060]
add edi, dword [esp + 0x7c]
cmp edi, dword [esp + 0x34]
cmovg edi, dword [esp + 0x34]
cmp edi, dword [esp + 0x30]
cmovl edi, dword [esp + 0x30]
cmp dword [esp + 0x30], edi
mov ebp, dword [ebx*8 + 0x105b064]
jg 0x9040db
cmp dword [esp + 0x34], edi
jl 0x9040bf
imul ebp, dword [esp + 0x38]
add ebp, dword [esp + 0x80]
cmp ebp, dword [esp + 0x70]
cmovg ebp, dword [esp + 0x70]
cmp ebp, dword [esp + 0x6c]
cmovl ebp, dword [esp + 0x6c]
cmp dword [esp + 0x6c], ebp
jg 0x9040a3
cmp dword [esp + 0x70], ebp
jl 0x904087
mov eax, ebp
shl eax, 0xb
add eax, edi
add eax, dword [esp + 0x74]
lea ebx, [edi + ebp*8]
and ebx, 0x3f
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x2c]
lea esi, [eax + ebx*4]
cmp dword [esi], edx
je 0x903fc4
mov ecx, dword [esp + 0xc4]
mov eax, dword [esp + 0x60]
mov edx, dword [esp + 0x5c]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0xb0]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0xb4]
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0xc0]
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0xbc]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 4], edx
mov edx, edi
mov dword [esp], ecx
mov ecx, ebp
call fcn.008fd210
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x58]
mov dword [esi], edx
mov edx, edi
mov dword [ecx + ebx*4], eax
movzx ecx, byte [esp + 0x4c]
shl edx, cl
mov ecx, dword [esp + 0x48]
sub edx, dword [esp + 0x64]
movzx ebx, byte [ecx + edx]
mov edx, ebp
movzx ecx, byte [esp + 0x4c]
shl edx, cl
mov ecx, dword [esp + 0x48]
sub edx, dword [esp + 0x78]
movzx edx, byte [ecx + edx]
add edx, ebx
imul edx, dword [esp + 0xb8]
add edx, eax
cmp dword [esp + 0x3c], edx
jle 0x903fc4
mov ebx, dword [esp + 0x54]
mov dword [esp + 0x3c], edx
mov dword [ebx], edi
mov dword [ebx + 4], ebp
add dword [esp + 0x28], 1
cmp dword [esp + 0x28], 0x10
jne 0x903e80
add dword [esp + 0x38], 1
mov ebx, dword [esp + 0x38]
cmp dword [esp + 0x88], ebx
jge 0x903e71
mov ebx, dword [esp + 0xc4]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x54]
mov eax, dword [esp + 0x50]
mov dword [esp + 0x14], ebx
mov ebx, dword [esp + 0xc0]
mov dword [esp + 0x18], 2
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 0xbc]
mov dword [esp + 0xc], ebx
mov ebx, dword [esp + 0xb8]
mov dword [esp + 8], ebx
mov ebx, dword [esp + 0xb4]
mov dword [esp + 4], ebx
mov ebx, dword [esp + 0xb0]
mov dword [esp], ebx
call fcn.00902ee0
add esp, 0x9c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], 0x25c
mov dword [esp + 4], str.libavcodec_motion_est_template.c
mov dword [esp], str._x2____xmax
call sub.msvcrt.dll__assert
mov dword [esp + 8], 0x25c
mov dword [esp + 4], str.libavcodec_motion_est_template.c
mov dword [esp], str._x2____xmin
call sub.msvcrt.dll__assert
mov dword [esp + 8], 0x264
mov dword [esp + 4], str.libavcodec_motion_est_template.c
mov dword [esp], str._Ly2____ymax
call sub.msvcrt.dll__assert
mov dword [esp + 8], 0x264
mov dword [esp + 4], str.libavcodec_motion_est_template.c
mov dword [esp], str._Ly2____ymin
call sub.msvcrt.dll__assert
mov dword [esp + 8], 0x264
mov dword [esp + 4], str.libavcodec_motion_est_template.c
mov dword [esp], str._Lx2____xmax
call sub.msvcrt.dll__assert
mov dword [esp + 8], 0x264
mov dword [esp + 4], str.libavcodec_motion_est_template.c
mov dword [esp], str._Lx2____xmin
call sub.msvcrt.dll__assert
mov dword [esp + 8], 0x252
mov dword [esp + 4], str.libavcodec_motion_est_template.c
mov dword [esp], str._x2____xmin
call sub.msvcrt.dll__assert
cmp dword [esp + 0x2c], edi
jl 0x903e3c
cmp dword [esp + 0x30], edi
jg 0x90406b
cmp dword [esp + 0x34], edi
jl 0x90404f
mov dword [esp + 8], 0x25c
mov dword [esp + 4], str.libavcodec_motion_est_template.c
mov dword [esp], str._y2____ymin
call sub.msvcrt.dll__assert
cmp dword [esp + 0x28], ebx
jl 0x904113
cmp dword [esp + 0x2c], edi
jl 0x903e3c
cmp dword [esp + 0x30], edi
jg 0x90406b
cmp dword [esp + 0x34], edi
jl 0x90404f
mov dword [esp + 8], 0x25c
mov dword [esp + 4], str.libavcodec_motion_est_template.c
mov dword [esp], str._y2____ymax
call sub.msvcrt.dll__assert
mov dword [esp + 8], 0x255
mov dword [esp + 4], str.libavcodec_motion_est_template.c
mov dword [esp], str._y2____ymax
call sub.msvcrt.dll__assert
mov dword [esp + 8], 0x255
mov dword [esp + 4], str.libavcodec_motion_est_template.c
mov dword [esp], str._y2____ymin
call sub.msvcrt.dll__assert
mov dword [esp + 8], 0x255
mov dword [esp + 4], str.libavcodec_motion_est_template.c
mov dword [esp], str._x____xmax
call sub.msvcrt.dll__assert
mov dword [esp + 8], 0x255
mov dword [esp + 4], str.libavcodec_motion_est_template.c
mov dword [esp], str._x____xmin
call sub.msvcrt.dll__assert
mov dword [esp + 8], 0x252
mov dword [esp + 4], str.libavcodec_motion_est_template.c
mov dword [esp], str._y____ymax
call sub.msvcrt.dll__assert
mov dword [esp + 8], 0x252
mov dword [esp + 4], str.libavcodec_motion_est_template.c
mov dword [esp], str._y____ymin
call sub.msvcrt.dll__assert
mov dword [esp + 8], 0x252
mov dword [esp + 4], str.libavcodec_motion_est_template.c
mov dword [esp], str._x2____xmax
call sub.msvcrt.dll__assert
jmp fcn.00904260