Function at 0x4a8cb0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4a9138
sub esp, 0x40
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x50]
lea edx, [ecx + eax]
shr edx, 1
mov dword [esp + 0x3c], edx
mov ebx, ecx
sub ecx, eax
mov dword [esp + 0x38], ecx
cmp ecx, 0x28
jg 0x4a908e
mov ecx, dword [esp + 0x44]
mov dword [esp], ecx
mov ebp, dword [esp + 0x48]
mov dword [esp + 4], ebp
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
lea esi, [ebx - 1]
mov dword [esp + 0x34], esi
mov dword [esp + 0x10], esi
call fcn.004a8ba0
mov eax, dword [esp + 0x4c]
lea ecx, [eax + 1]
jmp 0x4a8d26
mov edx, dword [esp + 0x24]
lea ecx, [edx + 1]
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x24], ecx
mov edx, dword [esp + 0x34]
cmp ecx, edx
jge 0x4a8d53
mov edx, dword [esp + 0x44]
mov ebx, dword [edx + 0x18]
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
mov ebp, dword [esp + 0x48]
mov dword [esp], ebp
call ebx
movzx eax, byte [esp + 0xc]
test al, al
jne 0x4a8d1b
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x24]
jmp 0x4a8e12
mov edx, dword [esp + 0x30]
lea ecx, [edx + 1]
mov eax, dword [esp + 0x20]
mov dword [esp + 0x30], ecx
cmp ecx, eax
jge 0x4a8d98
mov eax, dword [esp + 0x44]
mov edx, dword [eax + 0x18]
mov ebx, dword [esp + 0x4c]
mov dword [esp + 4], ebx
mov dword [esp + 8], ecx
mov ebp, dword [esp + 0x48]
mov dword [esp], ebp
call edx
movzx eax, byte [esp + 0xc]
test al, al
je 0x4a8d60
mov eax, dword [esp + 0x20]
jmp 0x4a8da2
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x30]
cmp ecx, eax
jge 0x4a9083
mov ecx, dword [esp + 0x44]
mov edx, dword [ecx + 0x18]
mov ebx, dword [esp + 0x4c]
mov dword [esp + 4], ebx
lea ebp, [eax - 1]
mov dword [esp + 0x2c], ebp
mov dword [esp + 8], ebp
mov esi, dword [esp + 0x48]
mov dword [esp], esi
call edx
movzx eax, byte [esp + 0xc]
test al, al
jne 0x4a8d9e
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x20]
cmp eax, ecx
jge 0x4a8e1b
mov edx, dword [esp + 0x44]
mov ebx, dword [edx + 0x1c]
mov dword [esp + 4], eax
dec ecx
mov dword [esp + 0x2c], ecx
mov dword [esp + 8], ecx
mov ebp, dword [esp + 0x48]
mov dword [esp], ebp
call ebx
mov eax, dword [esp + 0x30]
lea ecx, [eax + 1]
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x20], eax
jmp 0x4a8d6b
mov edx, dword [esp + 0x50]
sub edx, ecx
cmp edx, 5
setl bl
jge 0x4a8f3f
mov edx, 1
mov dword [esp + 0x20], ecx
test dl, dl
je 0x4a8f3b
mov edx, dword [esp + 0x24]
jmp 0x4a8efd
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x38]
mov dword [esp + 0x24], eax
cmp edx, eax
jge 0x4a8e87
mov ecx, dword [esp + 0x44]
mov edx, dword [ecx + 0x18]
lea ebx, [eax - 1]
mov dword [esp + 0x38], ebx
mov dword [esp + 4], ebx
mov ebp, dword [esp + 0x4c]
mov dword [esp + 8], ebp
mov esi, dword [esp + 0x48]
mov dword [esp], esi
call edx
movzx eax, byte [esp + 0xc]
test al, al
je 0x4a8e47
mov eax, dword [esp + 0x28]
jmp 0x4a8e94
mov ecx, dword [esp + 0x28]
lea eax, [ecx + 1]
mov dword [esp + 0x28], eax
mov ecx, dword [esp + 0x24]
cmp eax, ecx
jge 0x4a8ecf
mov ecx, dword [esp + 0x44]
mov edx, dword [ecx + 0x18]
mov dword [esp + 4], eax
mov ebx, dword [esp + 0x4c]
mov dword [esp + 8], ebx
mov ebp, dword [esp + 0x48]
mov dword [esp], ebp
call edx
movzx eax, byte [esp + 0xc]
test al, al
jne 0x4a8e8d
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
cmp eax, ecx
jge 0x4a8f06
mov edx, dword [esp + 0x44]
mov ebx, dword [edx + 0x1c]
mov dword [esp + 4], eax
dec ecx
mov dword [esp + 0x24], ecx
mov dword [esp + 8], ecx
mov ebp, dword [esp + 0x48]
mov dword [esp], ebp
call ebx
mov eax, dword [esp + 0x28]
lea edx, [eax + 1]
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
mov dword [esp + 0x28], edx
jmp 0x4a8e53
mov eax, dword [esp + 0x44]
mov eax, dword [eax + 0x1c]
mov edx, dword [esp + 0x4c]
mov dword [esp + 4], edx
dec ecx
mov dword [esp + 0x38], ecx
mov dword [esp + 8], ecx
mov edx, dword [esp + 0x48]
mov dword [esp], edx
call eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x58], eax
add esp, 0x40
ret
mov ecx, eax
jmp 0x4a8f06
mov ebp, dword [esp + 0x38]
mov esi, ebp
sar ebp, 0x1f
shr ebp, 0x1e
add ebp, esi
sar ebp, 2
cmp edx, ebp
jl 0x4a8f5b
mov edx, ebx
jmp 0x4a8e32
mov eax, dword [esp + 0x44]
mov ecx, dword [eax + 0x18]
mov edx, dword [esp + 0x4c]
mov dword [esp + 4], edx
mov ebx, dword [esp + 0x34]
mov dword [esp + 8], ebx
mov ebp, dword [esp + 0x48]
mov dword [esp], ebp
call ecx
movzx eax, byte [esp + 0xc]
mov byte [esp + 0x17], al
test al, al
je 0x4a9057
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x20], ecx
mov eax, dword [esp + 0x44]
mov edx, dword [eax + 0x18]
mov ebx, dword [esp + 0x30]
lea ebp, [ebx - 1]
mov dword [esp + 0x38], ebp
mov dword [esp + 4], ebp
mov esi, dword [esp + 0x4c]
mov dword [esp + 8], esi
mov edi, dword [esp + 0x48]
mov dword [esp], edi
call edx
movzx eax, byte [esp + 0xc]
movzx ecx, byte [esp + 0x17]
xor ecx, 1
movzx ecx, cl
test al, al
je 0x4a904d
mov eax, dword [esp + 0x30]
mov dword [esp + 0x38], eax
mov dword [esp + 0x1c], ecx
mov edx, dword [esp + 0x44]
mov ebx, dword [edx + 0x18]
mov ebp, dword [esp + 0x3c]
mov dword [esp + 4], ebp
mov esi, dword [esp + 0x4c]
mov dword [esp + 8], esi
mov edi, dword [esp + 0x48]
mov dword [esp], edi
call ebx
movzx eax, byte [esp + 0xc]
test al, al
je 0x4a901d
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x38]
cmp eax, 1
setg dl
mov eax, ecx
mov ecx, dword [esp + 0x20]
jmp 0x4a8e32
mov eax, dword [esp + 0x44]
mov ecx, dword [eax + 0x1c]
mov edx, dword [esp + 0x3c]
mov dword [esp + 4], edx
mov edx, dword [esp + 0x38]
dec edx
mov dword [esp + 0x38], edx
mov dword [esp + 8], edx
mov ebx, dword [esp + 0x48]
mov dword [esp], ebx
call ecx
mov eax, dword [esp + 0x1c]
inc eax
mov ecx, dword [esp + 0x38]
jmp 0x4a900c
inc ecx
mov eax, dword [esp + 0x38]
jmp 0x4a8fd3
mov eax, dword [esp + 0x44]
mov ecx, dword [eax + 0x1c]
mov edx, dword [esp + 0x20]
mov dword [esp + 4], edx
mov ebx, dword [esp + 0x34]
mov dword [esp + 8], ebx
mov ebx, dword [esp + 0x48]
mov dword [esp], ebx
call ecx
mov eax, dword [esp + 0x20]
lea ecx, [eax + 1]
jmp 0x4a8f90
mov eax, ecx
mov ecx, dword [esp + 0x20]
jmp 0x4a8de8
mov edx, dword [esp + 0x44]
mov dword [esp], edx
mov ebx, dword [esp + 0x48]
mov dword [esp + 4], ebx
mov dword [esp + 8], eax
mov ebp, ecx
sar ecx, 0x1f
shr ecx, 0x1d
add ecx, ebp
sar ecx, 3
mov dword [esp + 0x18], ecx
lea esi, [ecx + eax]
mov dword [esp + 0xc], esi
lea esi, [eax + ecx*2]
mov dword [esp + 0x10], esi
call fcn.004a8ba0
mov eax, dword [esp + 0x44]
mov dword [esp], eax
mov ecx, dword [esp + 0x48]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x3c]
mov dword [esp + 8], edx
mov ebx, dword [esp + 0x18]
mov ebp, edx
sub edx, ebx
mov dword [esp + 0xc], edx
lea edx, [ebx + ebp]
mov dword [esp + 0x10], edx
call fcn.004a8ba0
mov eax, dword [esp + 0x44]
mov dword [esp], eax
mov ecx, dword [esp + 0x48]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x50]
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.004a8ba0
mov eax, dword [esp + 0x4c]
mov edx, dword [esp + 0x3c]
mov ebx, dword [esp + 0x50]
jmp 0x4a8ceb
call fcn.0044a1d0
jmp fcn.004a8cb0