Function at 0x101b2f80
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov edx, dword [ebp + 8]
push ebx
push esi
mov esi, 1
mov dword [ebp - 0x10], 0xf000
mov eax, dword [edx + 0x128]
mov ebx, dword [edx + 0x280]
sub ebx, dword [edx + 0x278]
add ebx, 0xc
lea ecx, [eax + 1]
imul ecx, eax
push edi
mov edi, dword [ebp + 0x28]
add ecx, ecx
cmp dword [edx + 0x78], 0
lea eax, [ecx + 1]
cmovle eax, ecx
mov ecx, dword [edx + 0x254]
mov dword [ebp - 0x38], eax
dec ecx
mov eax, 1
shl eax, cl
mov ecx, ebx
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0x20]
rol esi, cl
mov ecx, edx
imul eax, edi
mov dword [ebp - 4], esi
cmp dword [ecx + 0xcc], 0
mov dword [ebp - 0x14], eax
jne 0x101b3010
cmp dword [ecx + 0x27c], 0
jne 0x101b3010
shl eax, 2
push eax
push 0
push dword [ebp + 0x14]
call fcn.1039a3e0
add esp, 0xc
jmp 0x101b30c9
movzx edx, word [ecx + 0x284]
xor edx, 0xb524
cmp dword [ebp + 0x20], 0
mov word [0x107527e8], dx
jle 0x101b30cf
mov ecx, dword [ebp + 0x20]
lea eax, [edi*4]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x14]
mov edi, dword [ebp - 0x20]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], ecx
cmp dword [ebp + 0x24], 0
mov esi, dword [ebp - 4]
jle 0x101b30b9
mov edi, dword [ebp + 0x24]
mov ecx, esi
sar ecx, 1
mov esi, eax
mov dword [ebp - 0x34], ecx
nop dword [eax]
mov ax, dx
lea esi, [esi + 4]
add ax, ax
xor ax, dx
shl ax, 2
xor ax, dx
shl ax, 9
xor ax, dx
shr dx, 1
and ax, word [ebp - 0x10]
shl ax, 3
or ax, dx
mov dx, ax
movzx eax, ax
shr eax, 5
mov word [0x107527e8], dx
mov eax, dword [eax*4 + 0x10459e30]
add eax, ecx
mov ecx, ebx
sar eax, cl
mov ecx, dword [ebp - 0x34]
mov dword [esi - 4], eax
sub edi, 1
jne 0x101b3060
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x20]
add eax, edi
sub ecx, 1
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], ecx
jne 0x101b3047
mov edi, dword [ebp + 0x28]
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 0x14]
cmp dword [ecx + 0x120], 0
jne 0x101b30f7
cmp dword [ecx + 0x27c], 0
jne 0x101b30f7
shl eax, 2
push eax
push 0
push dword [ebp + 0x18]
call fcn.1039a3e0
add esp, 0xc
jmp 0x101b31a7
movzx edx, word [ecx + 0x284]
xor edx, 0x49d8
cmp dword [ebp + 0x20], 0
mov word [0x107527e8], dx
jle 0x101b31aa
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x20]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], ecx
cmp dword [ebp + 0x24], 0
mov esi, dword [ebp - 4]
jle 0x101b318f
mov edi, dword [ebp + 0x24]
mov ecx, esi
sar ecx, 1
mov esi, eax
mov dword [ebp - 0x34], ecx
mov ax, dx
lea esi, [esi + 4]
add ax, ax
xor ax, dx
shl ax, 2
xor ax, dx
shl ax, 9
xor ax, dx
shr dx, 1
and ax, word [ebp - 0x10]
shl ax, 3
or ax, dx
mov dx, ax
movzx eax, ax
shr eax, 5
mov word [0x107527e8], dx
mov eax, dword [eax*4 + 0x10459e30]
add eax, ecx
mov ecx, ebx
sar eax, cl
mov ecx, dword [ebp - 0x34]
mov dword [esi - 4], eax
sub edi, 1
jne 0x101b3136
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
mov edi, dword [ebp + 0x28]
lea esi, [edi*4]
add eax, esi
sub ecx, 1
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], ecx
jne 0x101b3121
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0x20]
mov ebx, dword [ebp + 0x30]
mov esi, ebx
sub edx, dword [ebp + 0x38]
mov dword [ebp - 0x1c], esi
mov dword [ebp + 0x20], edx
cmp ebx, edx
jge 0x101b348f
mov eax, dword [ebp + 0x3c]
add eax, dword [ebp + 0x40]
imul edi, ebx
mov dword [ebp - 0x44], eax
mov eax, dword [ebp + 0x24]
sub eax, dword [ebp + 0x34]
mov dword [ebp + 0x24], eax
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0x10], edi
xor edi, edi
mov dword [ebp - 0x20], edi
mov edx, dword [ebp + 0x2c]
mov ebx, dword [ebp + 0x24]
cmp edx, ebx
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0xc], edx
jge 0x101b347b
mov dword [ebp - 0x18], 0
nop
xor eax, eax
xor esi, esi
xor edi, edi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x38], eax
jle 0x101b33bf
lea edi, [ecx + 0x1f0]
mov dword [ebp - 0x30], edi
mov ecx, dword [ebp + 0xc]
mov ecx, dword [ecx + eax*4]
mov eax, dword [ecx + 8]
test eax, eax
jne 0x101b3254
mov eax, dword [ecx]
add eax, dword [ebp - 0x1c]
imul eax, dword [ebp + 0x28]
add eax, dword [ecx + 4]
mov ecx, dword [ebp + 0x14]
add eax, edx
mov edx, dword [ebp + 0x18]
mov ecx, dword [ecx + eax*4]
mov edx, dword [edx + eax*4]
imul ecx, dword [edi - 0x64]
imul edx, dword [edi]
jmp 0x101b3398
cmp eax, 1
jne 0x101b3498
mov eax, dword [ebp - 0x20]
xor edx, edx
mov ecx, dword [ebp + 0x3c]
mov esi, dword [ebp - 0x18]
shl eax, cl
mov ecx, dword [ebp + 0x40]
add eax, dword [ebp + 0x30]
shl esi, cl
mov ecx, dword [ebp + 0x3c]
add esi, dword [ebp + 0x2c]
inc ecx
add ecx, eax
mov dword [ebp + 0x38], edx
mov dword [ebp - 0x28], esi
mov dword [ebp - 8], ecx
cmp eax, ecx
jge 0x101b337a
mov ecx, dword [ebp + 0x40]
mov edi, eax
imul edi, dword [ebp + 0x1c]
inc ecx
add ecx, esi
xorps xmm1, xmm1
mov edx, ecx
mov dword [ebp - 4], ecx
sub edx, esi
xorps xmm2, xmm2
sub dword [ebp - 8], eax
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x24], edi
jmp 0x101b32b3
mov edx, dword [ebp - 0x40]
mov eax, esi
cmp esi, ecx
jge 0x101b32f0
cmp edx, 8
jb 0x101b32f0
mov ecx, edx
and ecx, 0x80000007
jns 0x101b32cd
dec ecx
or ecx, 0xfffffff8
inc ecx
mov edx, dword [ebp - 4]
sub edx, ecx
lea ecx, [edi + eax]
add eax, 8
movups xmm0, xmmword [ebx + ecx*4]
paddd xmm1, xmm0
movups xmm0, xmmword [ebx + ecx*4 + 0x10]
paddd xmm2, xmm0
cmp eax, edx
jl 0x101b32d2
mov ecx, dword [ebp - 4]
xor edx, edx
xor esi, esi
cmp eax, ecx
jge 0x101b333f
sub ecx, eax
cmp ecx, 2
jl 0x101b3324
nop
lea ecx, [edi + eax]
mov edi, dword [ebp - 0x24]
add edx, dword [ebx + ecx*4]
add eax, 2
add esi, dword [ebx + ecx*4 + 4]
mov ecx, dword [ebp - 0x28]
add ecx, dword [ebp + 0x40]
mov ebx, dword [ebp + 0x10]
cmp eax, ecx
jl 0x101b3300
mov ecx, dword [ebp - 4]
cmp eax, ecx
jge 0x101b3332
mov ecx, dword [ebp + 0x38]
add eax, edi
add ecx, dword [ebx + eax*4]
mov dword [ebp + 0x38], ecx
mov ecx, dword [ebp - 4]
lea eax, [esi + edx]
mov edx, dword [ebp + 0x38]
add edx, eax
mov dword [ebp + 0x38], edx
jmp 0x101b3342
mov edx, dword [ebp + 0x38]
add edi, dword [ebp + 0x1c]
sub dword [ebp - 8], 1
mov esi, dword [ebp - 0x28]
mov dword [ebp - 0x24], edi
jne 0x101b32b0
mov edi, dword [ebp - 0x30]
paddd xmm1, xmm2
movaps xmm0, xmm1
psrldq xmm0, 8
paddd xmm1, xmm0
movups xmm0, xmm1
psrldq xmm0, 4
paddd xmm1, xmm0
movd eax, xmm1
add edx, eax
mov ecx, dword [ebp - 0x44]
mov eax, 1
mov esi, dword [ebp - 0x34]
shl eax, cl
sar eax, 1
add eax, edx
mov edx, dword [edi]
sar eax, cl
mov ecx, dword [edi - 0x64]
imul ecx, eax
imul edx, eax
mov eax, dword [ebp - 0x2c]
add edi, 4
add dword [ebp - 0x14], edx
inc eax
mov edx, dword [ebp - 0xc]
add esi, ecx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x34], esi
cmp eax, dword [ebp - 0x38]
jl 0x101b3221
mov edi, dword [ebp - 0x14]
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0xcc], 0
jne 0x101b33d1
cmp dword [ecx + 0x27c], 0
je 0x101b3412
mov eax, dword [ebp - 0x10]
mov ecx, dword [ecx + 0x254]
add eax, edx
mov edx, dword [ebp + 0x14]
lea edx, [edx + eax*4]
mov eax, dword [ebp - 0x3c]
add eax, esi
mov esi, dword [0x107527e0]
sar eax, cl
add eax, dword [edx]
cmp eax, esi
jge 0x101b33fe
mov ecx, dword [ebp + 8]
mov eax, esi
mov dword [edx], eax
jmp 0x101b3418
cmp eax, dword [0x107527e4]
mov ecx, dword [ebp + 8]
cmovg eax, dword [0x107527e4]
mov dword [edx], eax
jmp 0x101b3418
mov esi, dword [0x107527e0]
cmp dword [ecx + 0x120], 0
jne 0x101b342a
cmp dword [ecx + 0x27c], 0
je 0x101b345f
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 0x10]
mov edx, dword [ebp + 0x18]
mov ecx, dword [ecx + 0x254]
lea edx, [edx + eax*4]
mov eax, dword [ebp - 0x3c]
add eax, edi
sar eax, cl
add eax, dword [edx]
cmp eax, esi
jge 0x101b344d
mov eax, esi
jmp 0x101b345a
cmp eax, dword [0x107527e4]
cmovg eax, dword [0x107527e4]
mov ecx, dword [ebp + 8]
mov dword [edx], eax
mov edx, dword [ebp - 0xc]
inc dword [ebp - 0x18]
inc edx
mov dword [ebp - 0xc], edx
cmp edx, dword [ebp + 0x24]
jl 0x101b3200
mov esi, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x20]
mov eax, dword [ebp + 0x28]
add dword [ebp - 0x10], eax
inc esi
inc edi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], edi
cmp esi, dword [ebp + 0x20]
jl 0x101b31e3
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
push str.Grain_synthesis:_prediction_between_two_chroma_components_is_not_supported_
push 2
call fcn.103a4368
add esp, 4
push eax
call fcn.10083f40
add esp, 8
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret