Function at 0x4c0530
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x78
mov esi, ecx
mov edi, edx
lea ebx, [ebp - 0xd]
mov byte [ebp - 0xd], 0
lea ecx, [ebp - 0x4c]
push 1
push ebx
call fcn.004c1390
add esp, 8
mov eax, dword [ebp - 0x4c]
cmp eax, 2
jne 0x4c05ce
movzx eax, byte [ebp - 0xd]
lea ecx, [ebp - 0x80]
push eax
push ecx
call fcn.004e6b30
add esp, 8
mov eax, dword [ebp - 0x80]
cmp eax, 2
jne 0x4c060e
movzx eax, byte [ebp - 0x7a]
movzx ecx, word [ebp - 0x7c]
mov byte [ebp - 0xd], 0
mov edx, edi
shl eax, 0x10
or ecx, eax
mov dword [ebp - 0x18], ecx
lea ecx, [ebp - 0x4c]
push 1
push ebx
call fcn.004c1390
add esp, 8
mov ecx, dword [ebp - 0x4c]
cmp ecx, 2
jne 0x4c070f
movzx edx, byte [ebp - 0xd]
test dl, dl
js 0x4c066b
mov eax, dword [ebp - 0x18]
mov dword [esi + 4], edx
mov word [esi + 8], ax
shr eax, 0x10
mov byte [esi + 0xa], al
mov dword [esi], 2
jmp 0x4c0663
movsd xmm2, qword [ebp - 0x38]
movsd xmm1, qword [ebp - 0x30]
mov ecx, dword [ebp - 0x48]
movsd xmm0, qword [ebp - 0x40]
mov edx, dword [ebp - 0x44]
movsd qword [ebp - 0x6c], xmm2
movsd qword [ebp - 0x64], xmm1
movsd xmm2, qword [ebp - 0x28]
movsd xmm1, qword [ebp - 0x20]
movsd qword [ebp - 0x74], xmm0
movsd qword [ebp - 0x5c], xmm2
movsd qword [ebp - 0x54], xmm1
mov dword [ebp - 0x7c], ecx
mov dword [ebp - 0x78], edx
jmp 0x4c061b
movzx edx, byte [ebp - 0x7a]
movzx ecx, word [ebp - 0x7c]
shl edx, 0x10
or ecx, edx
movsd xmm0, qword [ebp - 0x54]
movsd xmm1, qword [ebp - 0x59]
movsd xmm2, qword [ebp - 0x61]
movsd qword [esi + 0x2c], xmm0
movsd qword [esi + 0x27], xmm1
movsd xmm1, qword [ebp - 0x69]
movsd qword [esi + 0x1f], xmm2
movsd xmm2, qword [ebp - 0x79]
movsd qword [esi + 0x17], xmm1
movsd xmm1, qword [ebp - 0x71]
movsd qword [esi + 7], xmm2
movsd qword [esi + 0xf], xmm1
mov dword [esi], eax
mov word [esi + 4], cx
shr ecx, 0x10
mov byte [esi + 6], cl
add esp, 0x78
pop esi
pop edi
pop ebx
pop ebp
ret
cmp edx, 0x80
jne 0x4c067f
mov eax, 5
xor ecx, ecx
jmp 0x4c0754
cmp dl, 0x84
ja 0x4c07fa
mov ebx, edx
mov dword [ebp - 0x84], edx
xor ebx, 0x80
je 0x4c07d6
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x4c]
mov byte [ebp - 0xd], 0
mov edx, edi
push 1
lea eax, [ebp - 0xd]
push eax
call fcn.004c1390
add esp, 8
mov ecx, dword [ebp - 0x4c]
cmp ecx, 2
jne 0x4c070f
mov edx, dword [ebp - 0x14]
movzx eax, byte [ebp - 0xd]
shl edx, 8
or eax, edx
dec ebx
mov dword [ebp - 0x14], eax
jne 0x4c06a3
mov edi, dword [ebp - 0x14]
mov eax, 0xc
cmp edi, 0x10000000
jae 0x4c0678
and edi, 0xffffff80
mov al, 1
mov cl, 0x81
cmp edi, 0x80
je 0x4c0707
lea edi, [edx - 0x100]
mov cl, 0x82
cmp edi, 0xff00
jae 0x4c0803
mov edx, dword [ebp - 0x14]
jmp 0x4c07e8
movsd xmm2, qword [ebp - 0x38]
movsd xmm1, qword [ebp - 0x30]
mov eax, dword [ebp - 0x44]
movsd xmm0, qword [ebp - 0x40]
mov edi, dword [ebp - 0x48]
mov edx, dword [ebp - 0x18]
movsd qword [ebp - 0x78], xmm2
movsd qword [ebp - 0x70], xmm1
movsd xmm2, qword [ebp - 0x28]
movsd xmm1, qword [ebp - 0x20]
cmp al, 0xd
movsd qword [ebp - 0x80], xmm0
movsd qword [ebp - 0x68], xmm2
movsd qword [ebp - 0x60], xmm1
jne 0x4c0754
xor ecx, ecx
mov al, 6
jmp 0x4c078b
movsd xmm2, qword [ebp - 0x68]
movsd xmm1, qword [ebp - 0x70]
movsd xmm0, qword [ebp - 0x60]
mov edx, eax
shr edx, 8
movsd qword [ebp - 0x34], xmm2
movsd qword [ebp - 0x3c], xmm1
movsd xmm2, qword [ebp - 0x80]
movsd xmm1, qword [ebp - 0x78]
movsd qword [ebp - 0x2c], xmm0
movsd qword [ebp - 0x44], xmm1
movsd qword [ebp - 0x4c], xmm2
movsd xmm2, qword [ebp - 0x34]
movsd xmm1, qword [ebp - 0x3c]
movsd xmm0, qword [ebp - 0x2c]
movsd qword [esi + 0x24], xmm2
movsd qword [esi + 0x1c], xmm1
movsd xmm2, qword [ebp - 0x4c]
movsd xmm1, qword [ebp - 0x44]
movsd qword [esi + 0x2c], xmm0
movsd qword [esi + 0x14], xmm1
movsd qword [esi + 0xc], xmm2
mov dword [esi], ecx
mov dword [esi + 4], edi
mov byte [esi + 8], al
mov eax, edx
mov word [esi + 9], dx
shr eax, 0x10
mov byte [esi + 0xb], al
jmp 0x4c0663
xor edx, edx
lea eax, [edx - 0x1000000]
mov cl, 0x84
cmp eax, 0xf000000
setb al
test al, al
mov eax, dword [ebp - 0x84]
je 0x4c07fa
cmp cl, al
je 0x4c05b3
mov edx, dword [ebp - 0x18]
xor ecx, ecx
mov al, 6
jmp 0x4c078b
add edx, 0xffff0000
mov cl, 0x83
cmp edx, 0xff0000
mov edx, dword [ebp - 0x14]
jae 0x4c07d8
jmp 0x4c07e8