Function at 0x4bb0f0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4bb542
sub esp, 0x44
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x50]
mov edx, eax
sub eax, ecx
mov dword [esp + 0x40], eax
mov ebx, eax
sar eax, 0x1f
mov dword [esp + 0x3c], eax
mov ebp, ebx
sub ebx, eax
sar ebx, 1
add ebx, ecx
mov dword [esp + 0x1c], ebx
cmp ebp, 0x28
jg 0x4bb494
mov esi, dword [esp + 0x48]
mov dword [esp], esi
mov edi, dword [esp + 0x4c]
mov dword [esp + 4], edi
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ebx
lea ebx, [edx - 1]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x10], ebx
call fcn.004bb010
mov eax, dword [esp + 0x50]
lea ecx, [eax + 1]
mov dword [esp + 0x28], ecx
mov ebx, dword [esp + 0x24]
cmp ecx, ebx
jge 0x4bb1a0
mov dword [esp], ecx
mov dword [esp + 4], eax
mov edx, dword [esp + 0x48]
mov ebp, dword [edx]
call ebp
movzx eax, byte [esp + 8]
test al, al
je 0x4bb1a0
mov ebx, dword [esp + 0x28]
lea ecx, [ebx + 1]
mov eax, dword [esp + 0x50]
mov dword [esp + 0x28], ecx
mov ebx, dword [esp + 0x24]
cmp ecx, ebx
jl 0x4bb171
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x38], eax
mov dword [esp + 0x34], ecx
cmp ecx, eax
jge 0x4bb1e3
mov ebx, dword [esp + 0x50]
mov dword [esp], ebx
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x48]
mov ebp, dword [edx]
call ebp
movzx eax, byte [esp + 8]
test al, al
jne 0x4bb1e3
mov ebx, dword [esp + 0x34]
lea ecx, [ebx + 1]
mov eax, dword [esp + 0x38]
mov dword [esp + 0x34], ecx
cmp ecx, eax
jl 0x4bb1b4
mov eax, dword [esp + 0x38]
mov dword [esp + 0x38], eax
mov ecx, dword [esp + 0x34]
cmp ecx, eax
jge 0x4bb22a
mov ebx, dword [esp + 0x50]
mov dword [esp], ebx
lea ebp, [eax - 1]
mov dword [esp + 0x30], ebp
mov dword [esp + 4], ebp
mov edx, dword [esp + 0x48]
mov esi, dword [edx]
call esi
movzx eax, byte [esp + 8]
test al, al
je 0x4bb485
mov eax, dword [esp + 0x30]
mov dword [esp + 0x38], eax
mov ecx, dword [esp + 0x34]
cmp ecx, eax
jl 0x4bb1f3
mov eax, ecx
mov ecx, dword [esp + 0x38]
jge 0x4bb256
mov dword [esp], eax
dec ecx
mov dword [esp + 0x38], ecx
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x4c]
mov ebx, dword [edx]
call ebx
mov eax, dword [esp + 0x34]
lea ecx, [eax + 1]
mov eax, dword [esp + 0x38]
jmp 0x4bb1a8
mov ebx, dword [esp + 0x54]
sub ebx, ecx
cmp ebx, 5
xchg ebp, ebx
setl bl
xchg ebp, ebx
jge 0x4bb36d
mov edx, 1
mov dword [esp + 0x24], ecx
test dl, dl
je 0x4bb369
mov edx, dword [esp + 0x28]
mov dword [esp + 0x2c], edx
mov dword [esp + 0x28], eax
cmp edx, eax
jge 0x4bb2c6
lea ebx, [eax - 1]
mov dword [esp + 0x40], ebx
mov dword [esp], ebx
mov ebp, dword [esp + 0x50]
mov dword [esp + 4], ebp
mov esi, dword [esp + 0x48]
mov edi, dword [esi]
mov edx, esi
call edi
movzx eax, byte [esp + 8]
test al, al
jne 0x4bb2c6
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x40]
mov dword [esp + 0x28], eax
cmp edx, eax
jl 0x4bb28d
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x2c], eax
mov ecx, dword [esp + 0x28]
cmp eax, ecx
jge 0x4bb305
mov dword [esp], eax
mov ebx, dword [esp + 0x50]
mov dword [esp + 4], ebx
mov edx, dword [esp + 0x48]
mov ebp, dword [edx]
call ebp
movzx eax, byte [esp + 8]
test al, al
je 0x4bb35d
mov ecx, dword [esp + 0x2c]
lea eax, [ecx + 1]
mov dword [esp + 0x2c], eax
mov ecx, dword [esp + 0x28]
cmp eax, ecx
jl 0x4bb2d6
jge 0x4bb32f
mov dword [esp], eax
dec ecx
mov dword [esp + 0x28], ecx
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x4c]
mov ebx, dword [edx]
call ebx
mov eax, dword [esp + 0x2c]
lea edx, [eax + 1]
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
jmp 0x4bb281
mov eax, dword [esp + 0x50]
mov dword [esp], eax
lea eax, [ecx - 1]
mov dword [esp + 0x40], eax
mov dword [esp + 4], eax
mov edx, dword [esp + 0x4c]
mov ecx, dword [edx]
call ecx
mov eax, dword [esp + 0x40]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x5c], eax
add esp, 0x44
ret
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
cmp eax, ecx
jmp 0x4bb305
mov ecx, eax
jmp 0x4bb32f
mov esi, dword [esp + 0x3c]
shr esi, 0x1e
mov edi, dword [esp + 0x40]
add esi, edi
sar esi, 2
cmp ebx, esi
jl 0x4bb388
mov edx, ebp
jmp 0x4bb271
mov ebx, dword [esp + 0x50]
mov dword [esp], ebx
mov ebp, dword [esp + 0x24]
mov dword [esp + 4], ebp
mov edx, dword [esp + 0x48]
mov esi, dword [edx]
call esi
movzx eax, byte [esp + 8]
mov byte [esp + 0x17], al
test al, al
je 0x4bb45d
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x24], ecx
mov ebx, dword [esp + 0x34]
lea ebp, [ebx - 1]
mov dword [esp + 0x40], ebp
mov dword [esp], ebp
mov esi, dword [esp + 0x50]
mov dword [esp + 4], esi
mov edx, dword [esp + 0x48]
mov edi, dword [edx]
call edi
movzx eax, byte [esp + 8]
movzx ecx, byte [esp + 0x17]
xor ecx, 1
movzx ecx, cl
test al, al
je 0x4bb456
mov eax, dword [esp + 0x34]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x40], eax
mov ebx, dword [esp + 0x1c]
mov dword [esp], ebx
mov ebp, dword [esp + 0x50]
mov dword [esp + 4], ebp
mov edx, dword [esp + 0x48]
mov esi, dword [edx]
call esi
movzx eax, byte [esp + 8]
test al, al
je 0x4bb42f
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x40]
cmp eax, 1
setg dl
mov eax, ecx
mov ecx, dword [esp + 0x24]
jmp 0x4bb271
mov eax, dword [esp + 0x1c]
mov dword [esp], eax
mov eax, dword [esp + 0x40]
dec eax
mov dword [esp + 0x40], eax
mov dword [esp + 4], eax
mov edx, dword [esp + 0x4c]
mov ecx, dword [edx]
call ecx
mov eax, dword [esp + 0x20]
inc eax
mov ecx, dword [esp + 0x40]
jmp 0x4bb41e
inc ecx
mov eax, dword [esp + 0x40]
jmp 0x4bb3ee
mov ecx, dword [esp + 0x38]
mov dword [esp], ecx
mov ebx, dword [esp + 0x24]
mov dword [esp + 4], ebx
mov edx, dword [esp + 0x4c]
mov ebx, dword [edx]
call ebx
mov eax, dword [esp + 0x38]
lea ecx, [eax + 1]
movzx eax, byte [esp + 0x17]
jmp 0x4bb3b4
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
cmp eax, ecx
jmp 0x4bb230
mov esi, dword [esp + 0x48]
mov dword [esp], esi
mov edi, dword [esp + 0x4c]
mov dword [esp + 4], edi
mov dword [esp + 8], ecx
shr eax, 0x1d
add eax, ebp
sar eax, 3
mov dword [esp + 0x18], eax
lea ebp, [ecx + eax]
mov dword [esp + 0xc], ebp
lea ebp, [ecx + eax*2]
mov dword [esp + 0x10], ebp
call fcn.004bb010
mov eax, dword [esp + 0x48]
mov dword [esp], eax
mov ecx, dword [esp + 0x4c]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x1c]
mov dword [esp + 8], edx
mov ebx, dword [esp + 0x18]
mov ebp, edx
sub edx, ebx
mov dword [esp + 0xc], edx
lea edx, [ebp + ebx]
mov dword [esp + 0x10], edx
call fcn.004bb010
mov eax, dword [esp + 0x48]
mov dword [esp], eax
mov ecx, dword [esp + 0x4c]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x54]
lea ebx, [edx - 1]
mov dword [esp + 8], ebx
mov ebp, dword [esp + 0x18]
mov esi, ebx
sub ebx, ebp
mov dword [esp + 0xc], ebx
shl ebp, 1
sub esi, ebp
mov dword [esp + 0x10], esi
call fcn.004bb010
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x54]
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x40]
jmp 0x4bb137
call fcn.00448420
jmp fcn.004bb0f0