Function at 0x4bb58c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffecc
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 + 0xa8]
mov dword [ebp - 8], eax
xor eax, eax
mov edx, dword [ebp + 8]
mov edi, eax
mov esi, eax
mov ecx, dword [edx + 0xd8]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
xor edx, edx
mov dword [ebp - 0x18], edx
mov ecx, dword [ebp + 0x10]
lea eax, [ecx + 0x100]
mov dword [ebp - 0x34], eax
mov edx, dword [ebp + 8]
lea ecx, [edx + 0xce08]
mov dword [ebp - 0x28], ecx
mov eax, dword [ebp + 8]
lea edx, [eax + 0xdc]
mov dword [ebp - 0x24], edx
mov ecx, dword [ebp - 0x24]
mov eax, dword [ecx]
add dword [ebp - 0x10], eax
push 0x100
push 0
lea edx, [ebp - 0x134]
push edx
call fcn.004a99a8
add esp, 0xc
mov ecx, dword [ebp - 0x28]
mov dword [ecx], edi
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x14]
mov dword [eax - 0x300], edx
mov eax, edi
mov edx, dword [ebp - 0x10]
sub edx, esi
cmp eax, edx
jle 0x4bb62d
mov eax, edx
mov dword [ebp - 0x1c], eax
sub edi, eax
mov edx, dword [ebp - 0xc]
lea ecx, [edx + esi*4]
mov dword [ebp - 0x2c], ecx
jmp 0x4bb651
mov edx, dword [ebp - 0x2c]
inc esi
mov ecx, dword [edx]
mov edx, dword [ebp - 8]
and word [edx + ecx*4 + 2], 0
add dword [ebp - 0x2c], 4
mov ecx, eax
add eax, 0xffffffff
test ecx, ecx
jg 0x4bb63d
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x14]
lea ebx, [eax + edx]
cmp esi, dword [ebp - 0x10]
jge 0x4bb7ba
mov eax, dword [ebp - 0x18]
inc eax
sar eax, 1
mov edx, dword [ebp + 0xc]
mov ecx, dword [edx + eax*4]
mov eax, dword [ebp + 8]
mov edx, dword [eax + ecx*4 + 0xc9c8]
push edx
mov ecx, dword [ebp + 8]
add ecx, 0xc9b4
push ecx
call fcn.004beaa0
add esp, 8
mov edi, eax
mov eax, edi
mov byte [ebx], al
inc dword [ebp - 0x14]
inc ebx
cmp edi, 0xf
jge 0x4bb6f6
xor edx, edx
mov dl, byte [edi + 0x6a0eac]
push edx
mov ecx, dword [ebp + 8]
add ecx, 0xc9b4
push ecx
call fcn.004b9cc0
add esp, 8
mov byte [ebx], al
inc dword [ebp - 0x14]
inc ebx
test edi, edi
jne 0x4bb6d4
mov edx, eax
sar edx, 8
mov byte [ebx], dl
inc dword [ebp - 0x14]
inc ebx
cmp edi, 2
setl cl
and ecx, 1
neg ecx
and ecx, 0xfffffff3
cmp edi, 0xc
setl dl
and edx, 1
neg edx
and edx, 0x15
add ecx, edx
shl eax, cl
jmp 0x4bb6f8
xor eax, eax
add eax, dword [edi*4 + 0x6a0ebc]
mov edi, eax
sar edi, 8
and edi, 0xfff
test eax, eax
jne 0x4bb713
mov edi, 0x7fffffff
test edi, edi
je 0x4bb75f
mov eax, dword [ebp - 0x10]
sub eax, esi
mov edx, eax
sub edx, edi
cmp edi, eax
setg cl
and ecx, 1
neg ecx
and edx, ecx
add edx, edi
mov eax, edx
add dword [ebp - 0x1c], eax
sub edi, eax
mov edx, dword [ebp - 0xc]
lea ecx, [edx + esi*4]
mov dword [ebp - 0x30], ecx
jmp 0x4bb754
mov edx, dword [ebp - 0x30]
inc esi
mov ecx, dword [edx]
mov edx, dword [ebp - 8]
and word [edx + ecx*4 + 2], 0
add dword [ebp - 0x30], 4
mov ecx, eax
add eax, 0xffffffff
test ecx, ecx
jg 0x4bb740
jmp 0x4bb7b1
mov ecx, eax
mov edx, eax
and ecx, 0x100000
neg ecx
xor eax, ecx
sar edx, 0
sar eax, 0x15
and edx, 0xff
test edx, edx
mov dword [ebp - 0x20], eax
je 0x4bb785
xor eax, eax
mov dword [ebp - 0x20], eax
inc dword [ebp + edx*4 - 0x134]
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
mov edx, dword [eax + esi*4]
lea eax, [ecx + edx*4]
mov edx, dword [ebp - 0x20]
and dx, 0xffff
mov cx, word [eax + 2]
and cx, 0
or dx, cx
inc esi
mov word [eax + 2], dx
cmp esi, dword [ebp - 0x10]
jl 0x4bb66c
mov eax, dword [ebp - 0x1c]
add dword [ebp - 0x38], eax
mov eax, 0x3f
lea ebx, [ebp - 0x34]
jmp 0x4bb7cf
mov edx, dword [ebx]
add dword [ebx - 4], edx
add ebx, 0xfffffffc
mov ecx, eax
add eax, 0xffffffff
test ecx, ecx
jg 0x4bb7ca
mov edx, dword [ebp - 0x34]
mov eax, 0x40
mov ecx, edx
lea ebx, [ebp - 0x34]
mov dword [ebp - 0x2c], ecx
jmp 0x4bb7f4
mov edx, dword [ebp - 0x2c]
mov ecx, dword [ebx]
sub dword [edx], ecx
add ebx, 0xfffffffc
add dword [ebp - 0x2c], 0xfffffffc
mov edx, eax
add eax, 0xffffffff
test edx, edx
jg 0x4bb7ed
inc dword [ebp - 0x18]
add dword [ebp - 0x34], 0x100
add dword [ebp - 0x28], 0x100
add dword [ebp - 0x24], 4
cmp dword [ebp - 0x18], 3
jl 0x4bb5f1
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 0xd110], ecx
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret