Function at 0x4fb0a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x61e9bb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x7c
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x18]
sub eax, dword [esi + 0x10]
mov edx, dword [esi + 0x1c]
sbb edx, dword [esi + 0x14]
add eax, 0x1f
push edi
adc edx, 0
mov cl, 5
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x11], 0
call fcn.005f8600
mov edi, dword [ebp + 8]
mov ecx, dword [edi + 0xc]
sub ecx, dword [edi]
lea ebx, [eax*4]
cmp ebx, ecx
jbe 0x4fb105
push eax
mov ecx, edi
call fcn.005ee260
mov eax, dword [edi]
mov ecx, dword [edi + 4]
add eax, ebx
cmp ecx, eax
jae 0x4fb11d
mov dword [ecx], 0
add ecx, 4
cmp ecx, eax
jne 0x4fb110
mov dword [edi + 4], eax
mov edi, dword [esi + 0x14]
cmp edi, dword [esi + 0x1c]
mov ebx, dword [esi + 0x10]
jg 0x4fb16c
jl 0x4fb132
cmp ebx, dword [esi + 0x18]
jae 0x4fb16c
mov edx, dword [esi]
mov edx, dword [edx + 0x5c]
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x20]
push ecx
push 0
push 0
push 1
push edi
push ebx
mov ecx, esi
call edx
test eax, eax
jne 0x4fb15a
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x1c]
jbe 0x4fb15a
mov dword [ebp - 0x1c], eax
add ebx, 1
adc edi, 0
cmp edi, dword [esi + 0x1c]
jl 0x4fb132
jg 0x4fb16c
cmp ebx, dword [esi + 0x18]
jb 0x4fb132
mov eax, dword [esi + 0x60]
mov edx, dword [eax + 0x24]
lea edi, [esi + 0x60]
push 0x18
mov ecx, edi
call edx
test al, al
jne 0x4fb1cb
mov eax, dword [edi]
mov edx, dword [eax + 0x24]
push 0x20
mov ecx, edi
call edx
test al, al
jne 0x4fb1cb
mov eax, dword [edi]
mov edx, dword [eax + 0x24]
push 0x10
mov ecx, edi
call edx
test al, al
jne 0x4fb1cb
mov eax, dword [edi]
mov edx, dword [eax + 0x24]
push 8
mov ecx, edi
call edx
test al, al
jne 0x4fb1cb
lea eax, [ebp - 0x34]
push str.Video_decompressor_is_incapable_of_decompressing_to_an_RGB_format.
push eax
call fcn.0051c348
add esp, 8
push 0x694d20
lea ecx, [ebp - 0x34]
push ecx
call fcn.005f8355
mov eax, dword [ebp - 0x1c]
lea edx, [eax + 7]
and edx, 0xfffffff8
add edx, eax
push edx
call fcn.005f7142
mov edi, eax
add esp, 4
test edi, edi
mov dword [ebp - 0x18], edi
jne 0x4fb1fe
lea ecx, [ebp - 0x38]
call fcn.0051c377
push 0x6952c4
lea eax, [ebp - 0x38]
push eax
call fcn.005f8355
mov eax, dword [esi + 0x18]
sub eax, dword [esi + 0x10]
xor ecx, ecx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.005f7142
add esp, 4
test eax, eax
mov dword [ebp - 0x24], eax
jne 0x4fb243
push edi
call fcn.005f7371
add esp, 4
lea ecx, [ebp - 0x3c]
call fcn.0051c377
push 0x6952c4
lea eax, [ebp - 0x3c]
push eax
call fcn.005f8355
mov ecx, dword [esi + 0x18]
sub ecx, dword [esi + 0x10]
push 1
push ecx
push str.Rekeying_video_stream
push 0x6472cc
push 0
lea ecx, [ebp - 0x88]
mov dword [ebp - 4], 0
call fcn.004c83b0
push str.Frame__ld_of__ld
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 1
call fcn.004c8060
mov edx, dword [esi]
mov eax, dword [edx + 0x2c]
push 0
push 1
mov ecx, esi
call eax
mov ecx, dword [esi + 0x10]
mov edx, dword [esi + 0x14]
mov byte [ebp - 0x11], 1
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x4c], edx
jmp 0x4fb2a0
mov eax, dword [ebp - 0x4c]
cmp eax, dword [esi + 0x1c]
jg 0x4fb3a5
jl 0x4fb2ba
mov ecx, dword [ebp - 0x50]
cmp ecx, dword [esi + 0x18]
jae 0x4fb3a5
mov ecx, dword [esi + 0x70]
movzx eax, word [ecx + 0xe]
imul eax, dword [ecx + 4]
add eax, 7
cdq
and edx, 7
add eax, edx
sar eax, 3
mov ebx, eax
mov dword [ebp - 0x40], eax
mov eax, dword [ecx + 8]
cdq
mov edi, eax
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x20]
push ecx
mov ecx, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x4c]
push ecx
mov ecx, dword [ebp - 0x50]
xor edi, edx
push 1
sub edi, edx
mov edx, dword [esi]
mov edx, dword [edx + 0x5c]
push eax
push ecx
neg ebx
mov ecx, esi
mov dword [ebp - 0x28], 0
and ebx, 3
call edx
test eax, eax
jne 0x4fb373
mov edx, dword [ebp - 0x4c]
mov eax, dword [esi + 0x60]
mov eax, dword [eax + 0x3c]
push edx
mov edx, dword [ebp - 0x50]
push edx
mov edx, dword [ebp - 0x4c]
push edx
mov edx, dword [ebp - 0x50]
push edx
mov edx, dword [ebp - 0x20]
push 0
lea ecx, [esi + 0x60]
push edx
mov edx, dword [ebp - 0x18]
push edx
call eax
mov eax, dword [esi + 0x64]
mov dword [ebp - 0x2c], edi
mov edi, edi
mov edx, dword [ebp - 0x40]
movzx edi, byte [eax]
mov ecx, dword [ebp - 0x28]
add ecx, edi
xor ecx, 0xaaaaaaaa
add eax, 1
sub edx, 1
mov dword [ebp - 0x28], ecx
jne 0x4fb343
add eax, ebx
sub dword [ebp - 0x2c], 1
jne 0x4fb340
mov ecx, dword [ebp - 0x50]
sub ecx, dword [esi + 0x10]
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x28]
mov dword [edx + ecx*4], eax
mov eax, dword [ebp - 0x50]
mov edx, dword [ebp - 0x4c]
add eax, 1
adc edx, 0
mov dword [ebp - 0x50], eax
sub eax, dword [esi + 0x10]
mov dword [ebp - 0x4c], edx
sbb edx, dword [esi + 0x14]
mov cl, 1
call fcn.005f8600
lea ecx, [ebp - 0x88]
mov dword [ebp - 0x78], eax
call fcn.004c8090
jmp 0x4fb2a0
mov ecx, dword [esi + 0x14]
mov ebx, dword [esi + 0x10]
mov dword [ebp - 0x4c], ecx
mov ecx, dword [esi + 0x70]
movzx eax, word [ecx + 0xe]
imul eax, dword [ecx + 4]
add eax, 7
cdq
and edx, 7
add eax, edx
sar eax, 3
mov dword [ebp - 0x40], eax
neg eax
and eax, 3
mov dword [ebp - 0x44], eax
mov eax, dword [ecx + 8]
cdq
mov edi, eax
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x20]
push ecx
mov ecx, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x4c]
push ecx
xor edi, edx
push 1
sub edi, edx
mov edx, dword [esi]
mov edx, dword [edx + 0x5c]
push eax
push ebx
mov ecx, esi
mov dword [ebp - 0x28], 0
call edx
test eax, eax
jne 0x4fb48c
mov eax, dword [ebp - 0x4c]
mov edx, dword [esi + 0x60]
mov edx, dword [edx + 0x3c]
push eax
push ebx
push eax
mov eax, dword [ebp - 0x20]
push ebx
push 0
lea ecx, [esi + 0x60]
push eax
mov eax, dword [ebp - 0x18]
push eax
call edx
mov eax, dword [esi + 0x64]
mov dword [ebp - 0x2c], edi
jmp 0x4fb430
mov edx, dword [ebp - 0x40]
movzx edi, byte [eax]
mov ecx, dword [ebp - 0x28]
add ecx, edi
xor ecx, 0xaaaaaaaa
add eax, 1
sub edx, 1
mov dword [ebp - 0x28], ecx
jne 0x4fb433
add eax, dword [ebp - 0x44]
sub dword [ebp - 0x2c], 1
jne 0x4fb430
mov edi, ebx
sub edi, dword [esi + 0x10]
mov eax, ecx
mov ecx, dword [ebp - 0x24]
cmp eax, dword [ecx + edi*4]
jne 0x4fb48c
mov edx, dword [ebp - 0x4c]
mov eax, ebx
sub eax, dword [esi + 0x10]
mov cl, 5
sbb edx, dword [esi + 0x14]
call fcn.005f8600
mov edx, dword [ebp + 8]
mov ecx, dword [edx]
lea eax, [ecx + eax*4]
mov ecx, edi
and ecx, 0x1f
mov edx, 1
shl edx, cl
or dword [eax], edx
mov eax, dword [esi + 0x10]
cmp ebx, eax
mov edx, dword [esi + 0x14]
jne 0x4fb4ac
cmp dword [ebp - 0x4c], edx
jne 0x4fb4ac
mov ebx, dword [esi + 0x18]
mov ecx, dword [esi + 0x1c]
sub ebx, 1
sbb ecx, 0
mov dword [ebp - 0x4c], ecx
jmp 0x4fb4b3
add ebx, 0xffffffff
adc dword [ebp - 0x4c], 0xffffffff
mov edi, dword [ebp - 0x4c]
add eax, ebx
adc edx, edi
mov cl, 1
call fcn.005f8600
mov ecx, dword [esi + 0x18]
sub ecx, eax
mov dword [ebp - 0x78], ecx
lea ecx, [ebp - 0x88]
call fcn.004c8090
mov ecx, dword [esi + 0x10]
mov eax, dword [esi + 0x14]
add ecx, 1
adc eax, 0
cmp edi, eax
jg 0x4fb3ae
jl 0x4fb4f2
cmp ebx, ecx
jae 0x4fb3ae
mov edx, dword [esi]
mov eax, dword [edx + 0x30]
mov ecx, esi
call eax
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 0
call fcn.004c8190
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.005f7371
mov edx, dword [ebp - 0x24]
push edx
call fcn.005f7371
mov ecx, dword [ebp - 0xc]
add esp, 8
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4