Function at 0x4c4bf5
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0x5c
push ebx
push ebp
push esi
mov esi, ecx
mov ebp, 1
push edi
mov ecx, dword [esi + 0x34]
mov eax, dword [esi + 0x7c]
shl ebp, cl
xor edi, edi
dec ebp
cmp eax, edi
je 0x4c4d93
mov eax, dword [esi + 0x30]
cmp eax, 2
je 0x4c4c52
cmp eax, 5
je 0x4c4c52
cmp ecx, 8
jne 0x4c4e6a
mov ecx, dword [esi + 0x2c]
mov eax, dword [esi + 4]
mov esi, dword [esi + 8]
mov edx, dword [ecx]
push esi
push eax
push eax
mov eax, dword [esp + 0x80]
push eax
mov eax, dword [esp + 0x80]
push eax
call dword [edx + 0xc]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret 8
cmp ecx, 0x10
jne 0x4c4c92
cmp dword [esi + 4], edi
jle 0x4c4f53
mov ecx, dword [esp + 0x74]
mov eax, dword [esp + 0x70]
add ecx, 2
mov dl, byte [ecx + 2]
add ecx, 6
mov byte [eax], dl
mov dl, byte [ecx - 6]
inc eax
mov byte [eax], dl
mov dl, byte [ecx - 8]
inc eax
mov byte [eax], dl
mov edx, dword [esi + 4]
inc eax
inc edi
cmp edi, edx
jl 0x4c4c6b
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret 8
cmp ecx, 8
jne 0x4c4cd2
cmp dword [esi + 4], edi
jle 0x4c4f53
mov eax, dword [esp + 0x74]
lea ecx, [eax + 1]
mov eax, dword [esp + 0x70]
mov dl, byte [ecx + 1]
add ecx, 3
mov byte [eax], dl
mov dl, byte [ecx - 3]
inc eax
mov byte [eax], dl
mov dl, byte [ecx - 4]
inc eax
mov byte [eax], dl
mov edx, dword [esi + 4]
inc eax
inc edi
cmp edi, edx
jl 0x4c4cab
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret 8
mov eax, dword [esi + 4]
mov dword [esp + 0x10], edi
cmp eax, edi
jle 0x4c4f53
mov eax, dword [esp + 0x70]
lea ebx, [eax + 1]
mov ecx, dword [esi + 0x34]
mov edx, dword [esp + 0x74]
push ecx
push edi
push edx
call fcn.004c4f60
and eax, 0xff
mov dword [esp + 0x30], eax
mov eax, dword [esi + 0x34]
add edi, eax
push eax
mov eax, dword [esp + 0x84]
push edi
push eax
call fcn.004c4f60
mov ecx, dword [esp + 0x8c]
and eax, 0xff
mov dword [esp + 0x88], eax
mov eax, dword [esi + 0x34]
add edi, eax
push eax
push edi
push ecx
call fcn.004c4f60
and eax, 0xff
add esp, 0x24
mov ecx, eax
mov eax, dword [esi + 0x34]
add edi, eax
mov eax, ecx
shl eax, 8
sub eax, ecx
mov ecx, dword [esp + 0x70]
cdq
idiv ebp
add ebx, 3
mov byte [ebx - 4], al
mov eax, ecx
shl eax, 8
sub eax, ecx
mov ecx, dword [esp + 0x24]
cdq
idiv ebp
mov byte [ebx - 3], al
mov eax, ecx
shl eax, 8
sub eax, ecx
cdq
idiv ebp
mov byte [ebx - 2], al
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 4]
inc eax
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x4c4ce8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret 8
cmp ecx, 8
jne 0x4c4e6a
mov eax, dword [esi + 4]
xor ebp, ebp
cmp eax, edi
mov dword [esp + 0x10], ebp
mov dword [esp + 0x20], edi
jle 0x4c4f53
mov ebx, dword [esp + 0x70]
mov edx, dword [esi + 0x38]
test edx, edx
jle 0x4c4df1
lea ecx, [esp + 0x2c]
lea eax, [esi + 0x3c]
mov ebp, edx
mov ebx, dword [esp + 0x74]
xor edx, edx
add eax, 4
add ecx, 4
mov dl, byte [edi + ebx]
inc edi
mov dword [esp + 0x24], edx
dec ebp
fild dword [esp + 0x24]
fmul dword [eax + 0x1c]
fadd dword [eax - 4]
fstp dword [ecx - 4]
jne 0x4c4dc5
mov ebp, dword [esp + 0x10]
mov ebx, dword [esp + 0x70]
mov ecx, dword [esi + 0x2c]
lea edx, [esp + 0x14]
push edx
lea edx, [esp + 0x1c]
mov eax, dword [ecx]
push edx
lea edx, [esp + 0x24]
push edx
lea edx, [esp + 0x38]
push edx
call dword [eax + 4]
fld dword [esp + 0x14]
fmul dword [0x674c3c]
call fcn.0046572c
fld dword [esp + 0x18]
fmul dword [0x674c3c]
mov byte [ebx + ebp], al
call fcn.0046572c
fld dword [esp + 0x1c]
fmul dword [0x674c3c]
mov byte [ebx + ebp + 1], al
call fcn.0046572c
mov byte [ebx + ebp + 2], al
mov eax, dword [esp + 0x20]
mov ecx, dword [esi + 4]
add ebp, 3
inc eax
mov dword [esp + 0x10], ebp
cmp eax, ecx
mov dword [esp + 0x20], eax
jl 0x4c4db5
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret 8
mov eax, dword [esi + 4]
mov dword [esp + 0x10], edi
cmp eax, edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
jle 0x4c4f53
jmp 0x4c4e85
xor edi, edi
mov eax, dword [esi + 0x38]
xor ebp, ebp
cmp eax, edi
jle 0x4c4edc
mov eax, dword [esi + 0x34]
lea ebx, [esp + 0x2c]
lea edi, [esi + 0x3c]
mov ecx, dword [esp + 0x74]
push eax
mov eax, dword [esp + 0x14]
push eax
push ecx
call fcn.004c4f60
and eax, 0xff
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x34], eax
mov eax, dword [esi + 0x34]
fild dword [esp + 0x34]
add ecx, eax
add esp, 0xc
mov dword [esp + 0x10], ecx
mov ecx, dword [esi + 0x38]
fmul dword [edi + 0x20]
inc ebp
add edi, 4
add ebx, 4
cmp ebp, ecx
fadd dword [edi - 4]
fstp dword [ebx - 4]
jl 0x4c4e98
mov ecx, dword [esi + 0x2c]
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x1c]
mov edx, dword [ecx]
push eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x38]
push eax
call dword [edx + 4]
fld dword [esp + 0x14]
fmul dword [0x674c3c]
call fcn.0046572c
fld dword [esp + 0x18]
mov edi, dword [esp + 0x20]
mov ebx, dword [esp + 0x70]
fmul dword [0x674c3c]
mov byte [edi + ebx], al
call fcn.0046572c
fld dword [esp + 0x1c]
fmul dword [0x674c3c]
mov byte [edi + ebx + 1], al
call fcn.0046572c
mov byte [edi + ebx + 2], al
mov eax, dword [esp + 0x24]
mov ecx, dword [esi + 4]
add edi, 3
inc eax
mov dword [esp + 0x20], edi
cmp eax, ecx
mov dword [esp + 0x24], eax
jl 0x4c4e83
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret 8