Function at 0x4c1882
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x24]
mov dword [ebp - 0x18], edx
mov ecx, dword [ebp - 4]
mov eax, dword [ecx + 0x34]
mov edx, dword [ebp - 4]
sub eax, dword [edx + 0x6c]
mov ecx, dword [ebp - 4]
sub eax, dword [ecx + 0x64]
mov dword [ebp - 0x14], eax
jmp 0x4c18d2
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x24]
sub edx, 0x106
add edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 4]
cmp edx, dword [ecx + 0x64]
ja 0x4c19ac
push dword [ebp - 0x18]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x30]
add edx, dword [ebp - 0x18]
push edx
mov ecx, dword [ebp - 4]
push dword [ecx + 0x30]
call fcn.004b8384
add esp, 0xc
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 4]
sub dword [edx + 0x68], eax
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
sub dword [eax + 0x64], ecx
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 4]
sub dword [ecx + 0x54], edx
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x44]
mov dword [ebp - 8], edx
mov ecx, dword [ebp - 8]
add ecx, ecx
mov eax, dword [ebp - 4]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0x10], ecx
sub dword [ebp - 0x10], 2
mov edx, dword [ebp - 0x10]
movzx ecx, word [edx]
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x18]
jb 0x4c1959
mov dx, word [ebp - 0xc]
sub dx, word [ebp - 0x18]
jmp 0x4c195b
xor edx, edx
mov eax, dword [ebp - 0x10]
mov word [eax], dx
dec dword [ebp - 8]
jne 0x4c193a
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
add eax, eax
mov edx, dword [ebp - 4]
add eax, dword [edx + 0x38]
mov dword [ebp - 0x10], eax
sub dword [ebp - 0x10], 2
mov ecx, dword [ebp - 0x10]
movzx eax, word [ecx]
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0xc]
cmp edx, dword [ebp - 0x18]
jb 0x4c1999
mov cx, word [ebp - 0xc]
sub cx, word [ebp - 0x18]
jmp 0x4c199b
xor ecx, ecx
mov eax, dword [ebp - 0x10]
mov word [eax], cx
dec dword [ebp - 8]
jne 0x4c197a
mov edx, dword [ebp - 0x18]
add dword [ebp - 0x14], edx
mov eax, dword [ebp - 4]
mov edx, dword [eax]
cmp dword [edx + 4], 0
je 0x4c1a4d
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x30]
mov eax, dword [ebp - 4]
add edx, dword [eax + 0x64]
mov ecx, dword [ebp - 4]
add edx, dword [ecx + 0x6c]
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.004c1352
mov dword [ebp - 8], eax
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 4]
add dword [ecx + 0x6c], edx
mov eax, dword [ebp - 4]
cmp dword [eax + 0x6c], 3
jb 0x4c1a32
mov edx, dword [ebp - 4]
mov ecx, dword [edx + 0x30]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x64]
movzx ecx, byte [ecx + edx]
mov eax, dword [ebp - 4]
mov dword [eax + 0x40], ecx
mov edx, dword [ebp - 4]
mov ecx, dword [edx + 0x50]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x40]
shl edx, cl
mov ecx, dword [ebp - 4]
mov eax, dword [ecx + 0x30]
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx + 0x64]
movzx eax, byte [eax + ecx + 1]
xor edx, eax
mov eax, dword [ebp - 4]
and edx, dword [eax + 0x4c]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x40], edx
mov edx, dword [ebp - 4]
cmp dword [edx + 0x6c], 0x106
jae 0x4c1a4d
mov eax, dword [ebp - 4]
mov edx, dword [eax]
cmp dword [edx + 4], 0
jne 0x4c1894
mov esp, ebp
pop ebp
ret