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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x4c
mov esi, dword [esp + 0x68]
mov ebx, dword [esp + 0x64]
mov edi, dword [esi + 0x24]
mov eax, edi
movzx ebp, al
mov eax, dword [ebx + 0x94]
lea ecx, [ebp - 1]
mov dword [esp + 0x2c], eax
xor eax, eax
cmp ecx, 0xa
ja 0x1002b1dd
mov edx, 1
mov al, 3
shl edx, cl
test dl, 7
je 0x1002b500
cmp dword [esp + 0x2c], eax
jne 0x1002b6e6
mov eax, edi
and eax, 0x2000
mov dword [esp + 0x2c], eax
jne 0x1002b70f
mov eax, dword [esi]
mov edx, dword [esi + 0x14]
mov dword [ebx + 0x10], eax
mov eax, dword [esi + 4]
mov dword [ebx + 0x14], eax
mov eax, dword [esi + 0x10]
mov dword [ebx + 0x2c], edx
mov dword [ebx + 0x1c], edx
mov dword [ebx + 0x28], eax
mov dword [ebx + 0x18], eax
mov eax, dword [esi + 0x20]
mov dword [ebx + 0x58], eax
mov eax, dword [esi + 8]
mov dword [ebx + 0x78], eax
mov eax, dword [esi + 0xb0]
mov dword [ebx + 0x2ef0], eax
mov eax, dword [esi + 0xb4]
mov dword [ebx + 0x2ef4], eax
mov eax, dword [esi + 0xb8]
mov dword [ebx + 0x2ef8], eax
mov eax, dword [esi + 0xbc]
mov dword [ebx + 0x2efc], eax
mov eax, dword [esp + 0x60]
mov eax, dword [eax + 0x258]
test eax, eax
jne 0x1002b348
xor eax, eax
cmp ebp, 8
mov dword [ebx + 0x2f00], 0
mov dword [ebx + 0x2f04], eax
jle 0x1002b363
mov eax, dword [esp + 0x60]
and edi, 0x1000
mov ecx, dword [esi + 0x2c]
mov esi, dword [esi + 0x3c]
mov eax, dword [eax + 0x20]
mov dword [esp + 0x38], eax
je 0x1002b2a1
sub eax, 1
imul eax, ecx
neg ecx
add esi, eax
xor eax, eax
cmp ebp, 0xb
mov edx, dword [esp + 0x60]
sete al
mov edi, eax
mov eax, dword [esp + 0x60]
mov edx, dword [edx + 0x1c]
mov eax, dword [eax + 0x9274]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x34], edx
mov edx, 2
mov dword [esp + 0x18], esi
mov dword [esp + 0x30], eax
xor eax, eax
cmp ebp, 0xa
mov ebp, dword [esp + 0x38]
sete al
sub edx, edi
add eax, 3
add edi, 1
lea edx, [ebx + edx*4]
mov dword [esp + 0x20], eax
lea edi, [ebx + edi*4]
mov dword [esp + 0x28], ebp
mov ebp, dword [esp + 0x34]
mov dword [esp + 0x24], ebp
mov eax, dword [edx + 0x9c]
mov dword [esp + 0x14], eax
mov eax, dword [edx + 0xcc]
mov dword [esp + 0x10], eax
mov eax, dword [ebx + 0x9c]
mov dword [esp + 0xc], eax
mov eax, dword [ebx + 0xcc]
mov dword [esp + 8], eax
mov eax, dword [edi + 0x9c]
mov dword [esp + 4], eax
mov eax, dword [edi + 0xcc]
mov dword [esp], eax
mov eax, dword [esp + 0x30]
call eax
mov eax, dword [esp + 0x2c]
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esi + 0x58]
cmp ebp, 8
mov dword [ebx + 0x2f00], eax
mov eax, dword [esi + 0x5c]
mov dword [ebx + 0x2f04], eax
jg 0x1002b27e
mov eax, dword [esp + 0x60]
and edi, 0x1000
mov eax, dword [eax + 0x4890]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x60]
mov ecx, dword [eax + 0x1c]
mov eax, dword [eax + 0x20]
mov dword [esp + 0x30], eax
mov eax, dword [esi + 0x3c]
mov dword [esp + 0x34], eax
mov eax, dword [esi + 0x2c]
jne 0x1002b520
mov edi, eax
sar edi, 0x1f
mov edx, edi
xor edx, eax
sub edx, edi
cmp ecx, edx
jg 0x1002b719
mov dword [esp + 0xc], eax
mov edi, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edi
mov dword [esp + 8], eax
mov eax, dword [ebx + 0x9c]
mov dword [esp + 4], eax
mov eax, dword [ebx + 0xcc]
mov dword [esp], eax
mov eax, dword [esp + 0x60]
call dword [eax + 0x9268]
cmp ebp, 6
je 0x1002b535
cmp ebp, 3
je 0x1002b535
cmp ebp, 4
je 0x1002b3fd
cmp ebp, 1
jne 0x1002b5a0
cmp ebp, 5
je 0x1002b6c5
cmp ebp, 2
mov eax, 1
mov dword [esp + 0x3c], 0
je 0x1002b6c5
mov ecx, dword [esp + 0x60]
lea eax, [esi + eax*4]
mov ebp, dword [eax + 0x2c]
mov edi, dword [ecx + 0x1c]
mov ecx, dword [ecx + 0x20]
sar edi, 1
mov dword [esp + 0x30], ecx
movzx ecx, byte [esp + 0x38]
sar dword [esp + 0x30], cl
mov ecx, dword [eax + 0x3c]
mov dword [esp + 0x34], ecx
mov ecx, dword [esi + 0x24]
and ecx, 0x1000
je 0x1002b45d
mov eax, dword [esp + 0x30]
sub eax, 1
imul eax, ebp
neg ebp
add dword [esp + 0x34], eax
mov edx, ebp
sar edx, 0x1f
mov eax, edx
xor eax, ebp
sub eax, edx
cmp edi, eax
jg 0x1002b754
mov eax, dword [esp + 0x3c]
neg eax
lea eax, [eax*4 + 8]
add esi, eax
test ecx, ecx
mov eax, dword [esi + 0x3c]
mov dword [esp + 0x38], eax
mov eax, dword [esi + 0x2c]
je 0x1002b49d
mov ecx, dword [esp + 0x30]
lea edx, [ecx - 1]
imul edx, eax
neg eax
add dword [esp + 0x38], edx
mov ecx, eax
sar ecx, 0x1f
mov edx, ecx
xor edx, eax
sub edx, ecx
cmp edi, edx
jg 0x1002b74a
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x18], edi
mov dword [esp + 0xc], ebp
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x1c], ecx
mov dword [esp + 8], eax
mov eax, dword [ebx + 0xa0]
mov dword [esp + 4], eax
mov eax, dword [ebx + 0xd0]
mov dword [esp], eax
mov eax, dword [esp + 0x60]
call dword [eax + 0x926c]
mov eax, dword [esp + 0x2c]
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
test edx, 0x7c0
mov al, 7
jne 0x1002b1dd
and edx, 0x38
cmp edx, 1
sbb eax, eax
not eax
and eax, 6
jmp 0x1002b1dd
mov edi, dword [esp + 0x30]
lea edx, [edi - 1]
imul edx, eax
neg eax
add dword [esp + 0x34], edx
jmp 0x1002b395
mov eax, dword [esp + 0x60]
movzx ecx, byte [esp + 0x38]
mov ebp, dword [esi + 0x40]
mov edx, dword [eax + 0x20]
mov edi, dword [eax + 0x1c]
mov eax, dword [esi + 0x30]
sar edx, cl
test byte [esi + 0x25], 0x10
jne 0x1002b6d7
mov esi, eax
sar esi, 0x1f
mov ecx, esi
xor ecx, eax
sub ecx, esi
cmp edi, ecx
jg 0x1002b74a
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], eax
mov dword [esp + 8], ebp
mov eax, dword [ebx + 0xa0]
mov dword [esp + 4], eax
mov eax, dword [ebx + 0xd0]
mov dword [esp], eax
mov eax, dword [esp + 0x60]
call dword [eax + 0x9268]
jmp 0x1002b33c
cmp ebp, 5
je 0x1002b6c5
cmp ebp, 2
lea esi, [esi]
je 0x1002b6c5
mov ecx, dword [esp + 0x60]
xor eax, eax
cmp ebp, 7
setne al
lea eax, [eax*4 + 4]
add eax, esi
mov ecx, dword [ecx + 0x1c]
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x60]
mov edi, dword [ecx + 0x20]
mov ecx, dword [eax + 0x3c]
mov dword [esp + 0x34], ecx
mov ecx, dword [eax + 0x2c]
mov eax, dword [esi + 0x24]
and eax, 0x1000
mov dword [esp + 0x38], eax
je 0x1002b5fd
lea eax, [edi - 1]
imul eax, ecx
neg ecx
add dword [esp + 0x34], eax
mov edx, ecx
sar edx, 0x1f
mov eax, edx
xor eax, ecx
sub eax, edx
cmp dword [esp + 0x30], eax
jg 0x1002b75a
xor eax, eax
cmp ebp, 7
sete al
lea eax, [eax*4 + 4]
add esi, eax
mov eax, dword [esp + 0x38]
mov ebp, dword [esi + 0x3c]
mov esi, dword [esi + 0x2c]
test eax, eax
je 0x1002b63b
lea eax, [edi - 1]
imul eax, esi
neg esi
add ebp, eax
mov edx, esi
sar edx, 0x1f
mov eax, edx
xor eax, esi
sub eax, edx
cmp dword [esp + 0x30], eax
jg 0x1002b768
mov eax, dword [esp + 0x30]
mov dword [esp + 0x14], edi
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 8], eax
mov eax, dword [ebx + 0xa0]
mov dword [esp + 4], eax
mov eax, dword [ebx + 0xd0]
mov dword [esp], eax
mov eax, dword [esp + 0x60]
call dword [eax + 0x9268]
mov eax, dword [esp + 0x60]
mov eax, dword [eax + 0x20]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x60]
mov eax, dword [eax + 0x1c]
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebp
mov dword [esp + 0x10], eax
mov eax, dword [ebx + 0xa4]
mov dword [esp + 4], eax
mov eax, dword [ebx + 0xd4]
mov dword [esp], eax
mov eax, dword [esp + 0x60]
call dword [eax + 0x9268]
jmp 0x1002b33c
mov dword [esp + 0x3c], 1
mov eax, 2
jmp 0x1002b41c
lea ecx, [edx - 1]
imul ecx, eax
neg eax
add ebp, ecx
jmp 0x1002b556
mov dword [esp + 8], str.Invalid_input_colorspace_n
mov eax, dword [esp + 0x60]
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.100083f0
mov dword [esp + 0x2c], 0xffffffff
jmp 0x1002b33c
mov dword [esp + 8], str.This_build_of_x264_requires_8_bit_input._Rebuild_to_support_high_depth_input._n
jmp 0x1002b6ee
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], ecx
mov eax, dword [esp + 0x60]
mov dword [esp + 8], str.Input_picture_width___d__is_greater_than_stride___d__n
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.100083f0
mov dword [esp + 0x2c], 0xffffffff
jmp 0x1002b33c
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], edi
jmp 0x1002b721
mov dword [esp + 0x10], ebp
jmp 0x1002b74e
mov eax, dword [esp + 0x30]
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], eax
jmp 0x1002b721
mov eax, dword [esp + 0x30]
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], eax
jmp 0x1002b721