Function at 0x4ccb80
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x30
mov esi, dword [ebp + 8]
mov eax, dword [0x5c4738]
xor eax, ebp
mov dword [esp + 0x28], eax
cmp byte [edx + 0xb], 0
js 0x4ccd9e
mov word [edx], 0
mov byte [edx + 0xb], 0
cmp byte [esi + 0xb], 0
js 0x4ccdb1
mov word [esi], 0
mov byte [esi + 0xb], 0
mov dword [esp + 0x14], edx
movzx eax, byte [ecx + 0xb]
mov dword [esp + 0x10], ecx
mov dword [esp + 8], eax
test al, al
jns 0x4ccbe1
mov eax, dword [ecx]
mov dword [esp + 0x10], eax
mov eax, dword [ecx + 4]
mov dword [esp + 8], eax
mov dword [esp + 0xc], ecx
xor edi, edi
lea esi, [esp + 0x18]
xor ecx, ecx
mov ebx, dword [ecx*8 + 0x57d33c]
mov dword [esp + 4], ecx
mov eax, dword [ecx*8 + 0x57d338]
mov dword [esp + 0x20], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], edi
mov byte [esp + 0x23], bl
lea ecx, [ebx + ebx]
push ecx
push eax
push esi
call fcn.004d4f00
add esp, 0xc
mov word [esp + ebx*2 + 0x18], 0
movzx eax, byte [esp + 0x23]
mov ecx, eax
test al, al
mov edx, esi
jns 0x4ccc35
mov ecx, dword [esp + 0x1c]
cmp ecx, dword [esp + 8]
mov esi, dword [esp + 0xc]
ja 0x4ccd74
test ecx, ecx
je 0x4ccd7b
test al, al
jns 0x4ccc53
mov edx, dword [esp + 0x18]
xor edi, edi
mov ebx, dword [esp + 0x10]
movzx ebx, word [ebx + edi*2]
cmp bx, word [edx + edi*2]
sete bl
jne 0x4ccc6e
inc edi
cmp ecx, edi
jne 0x4ccc55
mov dword [esp], ecx
test al, al
mov edi, 0
mov ecx, dword [esp + 4]
js 0x4ccd89
test bl, bl
je 0x4ccd59
mov eax, dword [esp]
test eax, eax
je 0x4ccd70
movzx edx, byte [esi + 0xb]
mov ecx, edx
test dl, dl
jns 0x4ccc9f
mov ecx, dword [esi + 4]
cmp eax, ecx
je 0x4ccd70
mov eax, esi
test dl, dl
jns 0x4cccaf
mov eax, dword [esi]
lea edx, [eax + ecx*2]
mov edi, edx
test ecx, ecx
jle 0x4ccccf
mov edi, eax
cmp word [edi], 0x3d
je 0x4cccca
add edi, 2
dec ecx
jne 0x4cccba
mov edi, edx
jmp 0x4ccccf
test edi, edi
cmove edi, edx
mov ecx, edi
sub ecx, eax
sar ecx, 1
xor ebx, ebx
dec ebx
cmp edi, edx
cmovne ebx, ecx
lea edi, [esi + 0xc]
lea ecx, [esp + 0x18]
push edi
push ebx
push 0
push esi
call fcn.00418b90
mov esi, dword [esp + 0x14]
cmp byte [esi + 0xb], 0
js 0x4ccdc4
mov eax, dword [esp + 0x20]
mov dword [esi + 8], eax
movsd xmm0, qword [esp + 0x18]
movsd qword [esi], xmm0
cmp ebx, 0xffffffff
je 0x4ccd42
inc ebx
lea ecx, [esp + 0x18]
push edi
push 0xffffffffffffffff
push ebx
push dword [esp + 0x18]
call fcn.00418b90
mov esi, dword [ebp + 8]
cmp byte [esi + 0xb], 0
js 0x4ccdeb
mov eax, dword [esp + 0x20]
mov dword [esi + 8], eax
movsd xmm0, qword [esp + 0x18]
movsd qword [esi], xmm0
mov bl, 1
mov ecx, dword [esp + 0x28]
xor ecx, ebp
call fcn.004d25a3
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
inc ecx
movzx eax, byte [0x5c64a4]
xor eax, 3
cmp ecx, eax
lea esi, [esp + 0x18]
jb 0x4ccbed
xor ebx, ebx
jmp 0x4ccd44
xor ebx, ebx
jmp 0x4ccc6e
mov dword [esp], 0
mov bl, 1
jmp 0x4ccc6e
push dword [esp + 0x18]
call fcn.004cf0d6
mov ecx, dword [esp + 8]
add esp, 4
jmp 0x4ccc7f
mov eax, dword [edx]
mov word [eax], 0
mov dword [edx + 4], 0
jmp 0x4ccbad
mov eax, dword [esi]
mov word [eax], 0
mov dword [esi + 4], 0
jmp 0x4ccbc0
mov eax, dword [esi]
mov word [eax], 0
mov dword [esi + 4], 0
cmp byte [esi + 0xb], 0
jns 0x4cccfc
push dword [esi]
call fcn.004cf0d6
add esp, 4
jmp 0x4cccfc
mov eax, dword [esi]
mov word [eax], 0
mov dword [esi + 4], 0
cmp byte [esi + 0xb], 0
jns 0x4ccd31
push dword [esi]
call fcn.004cf0d6
add esp, 4
jmp 0x4ccd31