Function at 0x4bc4ec
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc0
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0xd108]
mov dword [ebp - 4], edx
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x40]
mov dword [ebp - 8], eax
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 0xa8]
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov ecx, dword [eax + edx*4 + 0xb00]
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov eax, dword [eax + edx*4 + 0xb18]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x10]
shl eax, 8
add eax, dword [ebp + 0xc]
mov edx, eax
add edx, 0x200
mov dword [ebp - 0x1c], edx
add eax, 0x800
mov dword [ebp - 0x20], eax
xor eax, eax
mov dword [ebp - 0x24], eax
lea edx, [ebp - 0xc]
mov eax, dword [ebp + 0x10]
lea eax, [eax + eax*2]
mov ebx, dword [ebp + 0xc]
lea eax, [ebx + eax*8 + 0xb30]
mov ebx, dword [eax]
add eax, 4
mov bx, word [ebx]
mov word [edx], bx
add edx, 2
inc dword [ebp - 0x24]
cmp dword [ebp - 0x24], 2
jl 0x4bc567
xor eax, eax
mov dword [ebp - 0x18], eax
mov edx, dword [ebp + 0x10]
lea edx, [edx + edx*2]
mov eax, dword [ebp + 0xc]
lea edx, [eax + edx*8]
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x3c], ecx
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x14]
jge 0x4bc724
mov edx, dword [ebp - 0x3c]
mov ecx, dword [edx]
mov dword [ebp - 0x2c], ecx
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x2c]
mov cl, byte [eax + edx*4 + 1]
and ecx, 7
cmp ecx, 1
setne al
and eax, 1
mov dword [ebp - 0x24], eax
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x2c]
mov al, byte [edx + ecx*4]
mov edx, dword [ebp - 0x40]
shr eax, 2
and eax, 0xf
lea ecx, [edx + eax*8]
mov eax, dword [ebp - 0x24]
mov edx, dword [ecx + eax*4 + 0xb30]
xor eax, eax
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x30], eax
mov edx, dword [ebp - 0x20]
cmp dword [edx + eax*4], 0
je 0x4bc5fd
mov ecx, dword [ebp - 0x20]
dec dword [ecx + eax*4]
jmp 0x4bc6ca
mov edx, dword [ebp - 0x1c]
xor ecx, ecx
mov ebx, dword [edx + eax*4]
mov edx, dword [ebp - 4]
mov cl, byte [edx + ebx]
inc ebx
mov dword [ebp - 0x34], ecx
cmp dword [ebp - 0x34], 0xf
mov edx, dword [ebp - 0x34]
mov edx, dword [edx*4 + 0x6a0ebc]
jge 0x4bc64d
cmp dword [ebp - 0x34], 2
setl cl
and ecx, 1
neg ecx
and ecx, 0xfffffff3
cmp dword [ebp - 0x34], 0xc
mov esi, 1
jl 0x4bc63a
dec esi
neg esi
and esi, 0x15
add ecx, esi
mov esi, dword [ebp - 4]
movzx esi, byte [esi + ebx]
shl esi, cl
add edx, esi
inc ebx
mov esi, edx
sar esi, 8
and esi, 0xfff
cmp dword [ebp - 0x34], 0
jne 0x4bc674
mov ecx, dword [ebp - 4]
movzx ecx, byte [ecx + ebx]
shl ecx, 8
add esi, ecx
inc ebx
test esi, esi
jne 0x4bc674
mov esi, 0x7fffffff
mov ecx, edx
sar ecx, 0
and ecx, 0xff
mov dword [ebp - 0x38], ecx
mov ecx, edx
and ecx, 0x100000
neg ecx
xor edx, ecx
mov ecx, dword [ebp - 0x20]
sar edx, 0x15
mov dword [ecx + eax*4], esi
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + eax*4], ebx
add eax, dword [ebp - 0x38]
mov edi, dword [ebp - 0x28]
mov ecx, dword [ebp - 8]
mov ebx, dword [ebp + 0xc]
movzx edi, word [edi + eax*2]
imul edi, edx
movzx ecx, byte [ecx + eax]
cmp esi, 1
mov word [ebx + ecx*2], di
sbb edx, edx
neg edx
add eax, edx
cmp eax, 0x40
jl 0x4bc5e6
cmp eax, 0x40
mov ecx, dword [ebp - 0x10]
setg al
and eax, 1
neg eax
mov eax, dword [ebp - 0x2c]
mov dx, word [ecx + eax*4 + 2]
mov ecx, dword [ebp + 0xc]
shl edx, 0x10
sar edx, 0x10
mov word [ecx], dx
mov eax, dword [ebp - 0x24]
mov dx, word [ebp + eax*2 - 0xc]
push edx
mov ecx, dword [ebp - 0x30]
push ecx
mov eax, dword [ebp + 0xc]
push eax
mov edx, dword [ebp + 0x10]
push edx
mov ecx, dword [ebp - 0x2c]
push ecx
mov eax, dword [ebp + 8]
push eax
call fcn.004c0dec
add esp, 0x18
inc dword [ebp - 0x18]
add dword [ebp - 0x3c], 4
mov edx, dword [ebp - 0x18]
cmp edx, dword [ebp - 0x14]
jl 0x4bc5a1
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp - 0x14]
shl edx, 2
add dword [ecx + eax*4 + 0xb00], edx
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov eax, dword [ecx + eax*4 + 0xb24]
test eax, eax
jle 0x4bc7ae
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
shl eax, 2
sub dword [edx + ecx*4 + 0xb0c], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xac]
push eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov eax, dword [edx + ecx*4 + 0xb24]
push eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov eax, dword [edx + ecx*4 + 0xb0c]
push eax
mov edx, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
mov eax, dword [edx + ecx*4 + 0x240]
push eax
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 0x228]
push ecx
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x22c]
push edx
call fcn.004be2c8
add esp, 0x18
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret