Function at 0x48b500
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x3c
mov edx, dword [esp + 0x54]
mov ebp, dword [esp + 0x5c]
mov edi, dword [esp + 0x50]
mov eax, dword [esp + 0x58]
test edx, edx
mov dword [ebp], 0
mov dword [ebp + 4], 0
je 0x48b5c0
sub edx, 1
test eax, eax
je 0x48b5b0
mov ecx, dword [edi + 0x198]
sub eax, 1
cmp ecx, edx
jb 0x48b587
cmp eax, ecx
seta cl
shl edx, 4
shl eax, 4
test cl, cl
jne 0x48b587
mov ecx, dword [edi + 0x1a0]
mov ebx, dword [edi + 0x1a8]
movzx eax, word [ecx + eax]
mov esi, dword [ecx + edx]
shl esi, 0x10
or esi, eax
mov eax, dword [edi + 0x68]
test ebx, ebx
mov dword [esp + 0x14], eax
je 0x48b587
cmp esi, dword [ebx + 0x10]
jb 0x48b581
cmp esi, dword [ebx + 0x14]
jbe 0x48b615
mov ebx, dword [ebx]
test ebx, ebx
jne 0x48b573
mov edx, dword [edi + 0x12c]
mov ecx, dword [edi + 0x130]
cmp edx, ecx
je 0x48b5a5
mov eax, dword [ebp]
test eax, eax
jne 0x48b600
mov edx, dword [ebp + 4]
test edx, edx
jne 0x48b5d0
add esp, 0x3c
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
cmp edx, dword [edi + 0x198]
ja 0x48b587
shl edx, 4
xor eax, eax
jmp 0x48b550
test eax, eax
jne 0x48b534
xor edx, edx
jmp 0x48b550
mov edx, dword [edi + 0x130]
mov dword [esp + 8], edx
mov edx, dword [edi + 0x12c]
mov dword [esp], eax
mov dword [esp + 4], edx
call sym._FT_MulDiv
mov dword [ebp + 4], eax
add esp, 0x3c
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._FT_MulDiv
mov dword [ebp], eax
jmp 0x48b59e
mov eax, dword [ebx + 0xc]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp], eax
call sym._FT_Stream_Seek
test eax, eax
jne 0x48b587
movzx eax, byte [ebx + 4]
imul eax, dword [ebx + 8]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp], eax
call sym._FT_Stream_EnterFrame
test eax, eax
jne 0x48b587
movzx eax, byte [ebx + 4]
mov ecx, 0x1f
mov edx, dword [ebx + 8]
mov dword [esp + 0x18], edx
mov dword [esp + 0x28], eax
bsr eax, eax
xor eax, 0x1f
sub ecx, eax
mov eax, 1
shl eax, cl
mov ecx, dword [esp + 0x14]
imul edx, eax
mov ecx, dword [ecx + 0x20]
mov dword [esp + 0x20], edx
mov dword [esp + 0x1c], ecx
movzx ecx, byte [ebx + 5]
mov edx, ecx
and ecx, 2
and edx, 1
mov byte [esp + 0x2f], cl
mov byte [esp + 0x24], dl
mov edx, dword [esp + 0x28]
sub edx, eax
mov eax, edx
je 0x48b703
imul eax, dword [esp + 0x18]
cmp byte [esp + 0x24], 0
mov ecx, dword [esp + 0x1c]
lea edx, [ecx + eax]
je 0x48b856
lea eax, [edx + 4]
mov dword [esp + 0x28], eax
movzx eax, byte [edx]
shl eax, 0x18
mov ecx, eax
movzx eax, byte [edx + 1]
shl eax, 0x10
or ecx, eax
movzx eax, byte [edx + 3]
or ecx, eax
movzx eax, byte [edx + 2]
shl eax, 8
or eax, ecx
cmp esi, eax
je 0x48b765
jbe 0x48b703
mov ecx, dword [esp + 0x28]
mov eax, ecx
lea edx, [ecx + 1]
add eax, 2
cmp byte [esp + 0x2f], 0
cmove eax, edx
mov dword [esp + 0x1c], eax
mov ecx, dword [esp + 0x20]
cmp dword [esp + 0x18], ecx
jae 0x48b809
cmp byte [esp + 0x24], 0
jne 0x48b79b
mov dword [esp + 0x24], ebx
mov dword [esp + 0x50], edi
mov ebx, ecx
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x5c], ebp
jmp 0x48b73d
cmova edi, eax
cmp ebx, dword [esp + 0x18]
jbe 0x48b870
shr ebx, 1
lea eax, [edi + ebx]
movzx ecx, byte [eax]
movzx edx, byte [eax + 1]
lea ebp, [eax + 2]
shl ecx, 0x10
or edx, ecx
cmp esi, edx
jne 0x48b730
mov dword [esp + 0x28], ebp
mov ebx, dword [esp + 0x24]
mov edi, dword [esp + 0x50]
mov ebp, dword [esp + 0x5c]
cmp byte [esp + 0x2f], 0
je 0x48b84a
mov ecx, dword [esp + 0x28]
movzx eax, byte [ecx]
movzx edx, byte [ecx + 1]
shl eax, 8
or eax, edx
cwde
movsx edx, word [ebx + 6]
add eax, edx
mov dword [ebp], eax
mov eax, dword [esp + 0x14]
mov dword [esp], eax
call sym._FT_Stream_ExitFrame
jmp 0x48b587
mov dword [esp + 0x28], ebx
mov dword [esp + 0x50], edi
mov ebx, dword [esp + 0x20]
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x5c], ebp
jmp 0x48b7ba
cmova edi, eax
cmp dword [esp + 0x18], ebx
jae 0x48b7f9
shr ebx, 1
lea eax, [edi + ebx]
movzx ecx, byte [eax]
movzx edx, byte [eax + 1]
lea ebp, [eax + 4]
shl edx, 0x10
shl ecx, 0x18
or ecx, edx
movzx edx, byte [eax + 3]
or ecx, edx
movzx edx, byte [eax + 2]
shl edx, 8
or edx, ecx
cmp esi, edx
jne 0x48b7b1
mov ebx, dword [esp + 0x28]
mov edi, dword [esp + 0x50]
mov dword [esp + 0x28], ebp
mov ebp, dword [esp + 0x5c]
jmp 0x48b765
mov dword [esp + 0x1c], edi
mov ebx, dword [esp + 0x28]
mov edi, dword [esp + 0x50]
mov ebp, dword [esp + 0x5c]
cmp byte [esp + 0x24], 0
je 0x48b880
mov eax, dword [esp + 0x1c]
lea ecx, [eax + 4]
mov dword [esp + 0x28], ecx
mov ecx, eax
movzx eax, byte [eax]
shl eax, 0x18
mov edx, eax
movzx eax, byte [ecx + 1]
shl eax, 0x10
or edx, eax
movzx eax, byte [ecx + 3]
or edx, eax
movzx eax, byte [ecx + 2]
shl eax, 8
or eax, edx
cmp esi, eax
jne 0x48b78a
jmp 0x48b765
mov eax, dword [esp + 0x28]
movzx eax, byte [eax]
jmp 0x48b781
lea eax, [edx + 2]
mov dword [esp + 0x28], eax
movzx eax, byte [edx]
shl eax, 0x10
mov ecx, eax
movzx eax, byte [edx + 1]
or eax, ecx
jmp 0x48b6e1
mov dword [esp + 0x1c], edi
mov ebx, dword [esp + 0x24]
mov edi, dword [esp + 0x50]
mov ebp, dword [esp + 0x5c]
mov eax, dword [esp + 0x1c]
lea ecx, [eax + 2]
mov dword [esp + 0x28], ecx
mov ecx, eax
movzx eax, byte [eax]
shl eax, 0x10
mov edx, eax
movzx eax, byte [ecx + 1]
or eax, edx
jmp 0x48b83d