Function at 0x4d27a0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4d2c62
sub esp, 0x44
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x50]
mov edx, eax
sub eax, ecx
mov dword [esp + 0x40], eax
mov ebx, eax
sar eax, 0x1f
mov dword [esp + 0x3c], eax
mov ebp, ebx
sub ebx, eax
sar ebx, 1
add ebx, ecx
mov dword [esp + 0x1c], ebx
cmp ebp, 0x28
jg 0x4d2bb4
mov esi, dword [esp + 0x48]
mov dword [esp], esi
mov edi, dword [esp + 0x4c]
mov dword [esp + 4], edi
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ebx
lea ebx, [edx - 1]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x10], ebx
call fcn.004d2690
mov eax, dword [esp + 0x50]
lea ecx, [eax + 1]
mov dword [esp + 0x28], ecx
mov edx, dword [esp + 0x24]
cmp ecx, edx
jge 0x4d2859
mov ebx, dword [esp + 0x48]
mov ebp, dword [ebx + 0x18]
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
mov esi, dword [esp + 0x4c]
mov dword [esp], esi
call ebp
movzx eax, byte [esp + 0xc]
test al, al
je 0x4d2859
mov edx, dword [esp + 0x28]
lea ecx, [edx + 1]
mov eax, dword [esp + 0x50]
mov dword [esp + 0x28], ecx
mov edx, dword [esp + 0x24]
cmp ecx, edx
jl 0x4d2821
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x38], eax
mov dword [esp + 0x34], ecx
cmp ecx, eax
jge 0x4d28a5
mov edx, dword [esp + 0x48]
mov ebx, dword [edx + 0x18]
mov ebp, dword [esp + 0x50]
mov dword [esp + 4], ebp
mov dword [esp + 8], ecx
mov esi, dword [esp + 0x4c]
mov dword [esp], esi
call ebx
movzx eax, byte [esp + 0xc]
test al, al
jne 0x4d28a5
mov edx, dword [esp + 0x34]
lea ecx, [edx + 1]
mov eax, dword [esp + 0x38]
mov dword [esp + 0x34], ecx
cmp ecx, eax
jl 0x4d286d
mov eax, dword [esp + 0x38]
mov dword [esp + 0x38], eax
mov ecx, dword [esp + 0x34]
cmp ecx, eax
jge 0x4d28f5
mov edx, dword [esp + 0x48]
mov ebx, dword [edx + 0x18]
mov ebp, dword [esp + 0x50]
mov dword [esp + 4], ebp
lea esi, [eax - 1]
mov dword [esp + 0x30], esi
mov dword [esp + 8], esi
mov edi, dword [esp + 0x4c]
mov dword [esp], edi
call ebx
movzx eax, byte [esp + 0xc]
test al, al
je 0x4d2ba5
mov eax, dword [esp + 0x30]
mov dword [esp + 0x38], eax
mov ecx, dword [esp + 0x34]
cmp ecx, eax
jl 0x4d28b5
mov eax, ecx
mov ecx, dword [esp + 0x38]
jge 0x4d292a
mov edx, dword [esp + 0x48]
mov ebx, dword [edx + 0x1c]
mov dword [esp + 4], eax
dec ecx
mov dword [esp + 0x38], ecx
mov dword [esp + 8], ecx
mov ebp, dword [esp + 0x4c]
mov dword [esp], ebp
call ebx
mov eax, dword [esp + 0x34]
lea ecx, [eax + 1]
mov eax, dword [esp + 0x38]
jmp 0x4d2861
mov edx, dword [esp + 0x54]
sub edx, ecx
cmp edx, 5
setl bl
jge 0x4d2a5d
mov edx, 1
mov dword [esp + 0x24], ecx
test dl, dl
je 0x4d2a59
mov edx, dword [esp + 0x28]
mov dword [esp + 0x2c], edx
mov dword [esp + 0x28], eax
cmp edx, eax
jge 0x4d299d
mov ebx, dword [esp + 0x48]
mov ebp, dword [ebx + 0x18]
lea esi, [eax - 1]
mov dword [esp + 0x40], esi
mov dword [esp + 4], esi
mov edi, dword [esp + 0x50]
mov dword [esp + 8], edi
mov ecx, dword [esp + 0x4c]
mov dword [esp], ecx
call ebp
movzx eax, byte [esp + 0xc]
test al, al
jne 0x4d299d
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x40]
mov dword [esp + 0x28], eax
cmp edx, eax
jl 0x4d295d
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x2c], eax
mov ecx, dword [esp + 0x28]
cmp eax, ecx
jge 0x4d29e5
mov edx, dword [esp + 0x48]
mov ebx, dword [edx + 0x18]
mov dword [esp + 4], eax
mov ebp, dword [esp + 0x50]
mov dword [esp + 8], ebp
mov esi, dword [esp + 0x4c]
mov dword [esp], esi
call ebx
movzx eax, byte [esp + 0xc]
test al, al
je 0x4d2a4d
mov ecx, dword [esp + 0x2c]
lea eax, [ecx + 1]
mov dword [esp + 0x2c], eax
mov ecx, dword [esp + 0x28]
cmp eax, ecx
jl 0x4d29ad
jge 0x4d2a18
mov edx, dword [esp + 0x48]
mov ebx, dword [edx + 0x1c]
mov dword [esp + 4], eax
dec ecx
mov dword [esp + 0x28], ecx
mov dword [esp + 8], ecx
mov ebp, dword [esp + 0x4c]
mov dword [esp], ebp
call ebx
mov eax, dword [esp + 0x2c]
lea edx, [eax + 1]
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
jmp 0x4d2951
mov eax, dword [esp + 0x48]
mov eax, dword [eax + 0x1c]
mov edx, dword [esp + 0x50]
mov dword [esp + 4], edx
dec ecx
mov dword [esp + 0x40], ecx
mov dword [esp + 8], ecx
mov edx, dword [esp + 0x4c]
mov dword [esp], edx
call eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x5c], eax
add esp, 0x44
ret
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
cmp eax, ecx
jmp 0x4d29e5
mov ecx, eax
jmp 0x4d2a18
mov ebp, dword [esp + 0x3c]
shr ebp, 0x1e
mov esi, dword [esp + 0x40]
add ebp, esi
sar ebp, 2
cmp edx, ebp
jl 0x4d2a78
mov edx, ebx
jmp 0x4d2941
mov edx, dword [esp + 0x48]
mov ebx, dword [edx + 0x18]
mov ebp, dword [esp + 0x50]
mov dword [esp + 4], ebp
mov esi, dword [esp + 0x24]
mov dword [esp + 8], esi
mov edi, dword [esp + 0x4c]
mov dword [esp], edi
call ebx
movzx eax, byte [esp + 0xc]
mov byte [esp + 0x17], al
test al, al
je 0x4d2b74
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x24], ecx
mov edx, dword [esp + 0x48]
mov ebx, dword [edx + 0x18]
mov ebp, dword [esp + 0x34]
lea esi, [ebp - 1]
mov dword [esp + 0x40], esi
mov dword [esp + 4], esi
mov edi, dword [esp + 0x50]
mov dword [esp + 8], edi
mov ecx, dword [esp + 0x4c]
mov dword [esp], ecx
call ebx
movzx eax, byte [esp + 0xc]
movzx ecx, byte [esp + 0x17]
xor ecx, 1
movzx ecx, cl
test al, al
je 0x4d2b6a
mov eax, dword [esp + 0x34]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x40], eax
mov edx, dword [esp + 0x48]
mov ebx, dword [edx + 0x18]
mov ebp, dword [esp + 0x1c]
mov dword [esp + 4], ebp
mov esi, dword [esp + 0x50]
mov dword [esp + 8], esi
mov edi, dword [esp + 0x4c]
mov dword [esp], edi
call ebx
movzx eax, byte [esp + 0xc]
test al, al
je 0x4d2b3a
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x40]
cmp eax, 1
setg dl
mov eax, ecx
mov ecx, dword [esp + 0x24]
jmp 0x4d2941
mov eax, dword [esp + 0x48]
mov ecx, dword [eax + 0x1c]
mov edx, dword [esp + 0x1c]
mov dword [esp + 4], edx
mov edx, dword [esp + 0x40]
dec edx
mov dword [esp + 0x40], edx
mov dword [esp + 8], edx
mov ebx, dword [esp + 0x4c]
mov dword [esp], ebx
call ecx
mov eax, dword [esp + 0x20]
inc eax
mov ecx, dword [esp + 0x40]
jmp 0x4d2b29
inc ecx
mov eax, dword [esp + 0x40]
jmp 0x4d2af0
mov ecx, dword [esp + 0x48]
mov edx, dword [ecx + 0x1c]
mov ebx, dword [esp + 0x38]
mov dword [esp + 4], ebx
mov ebp, dword [esp + 0x24]
mov dword [esp + 8], ebp
mov ebp, dword [esp + 0x4c]
mov dword [esp], ebp
call edx
mov eax, dword [esp + 0x38]
lea ecx, [eax + 1]
movzx eax, byte [esp + 0x17]
jmp 0x4d2aad
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
cmp eax, ecx
jmp 0x4d28fb
mov esi, dword [esp + 0x48]
mov dword [esp], esi
mov edi, dword [esp + 0x4c]
mov dword [esp + 4], edi
mov dword [esp + 8], ecx
shr eax, 0x1d
add eax, ebp
sar eax, 3
mov dword [esp + 0x18], eax
lea ebp, [ecx + eax]
mov dword [esp + 0xc], ebp
lea ebp, [ecx + eax*2]
mov dword [esp + 0x10], ebp
call fcn.004d2690
mov eax, dword [esp + 0x48]
mov dword [esp], eax
mov ecx, dword [esp + 0x4c]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x1c]
mov dword [esp + 8], edx
mov ebx, dword [esp + 0x18]
mov ebp, edx
sub edx, ebx
mov dword [esp + 0xc], edx
lea edx, [ebp + ebx]
mov dword [esp + 0x10], edx
call fcn.004d2690
mov eax, dword [esp + 0x48]
mov dword [esp], eax
mov ecx, dword [esp + 0x4c]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x54]
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.004d2690
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x54]
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x40]
jmp 0x4d27e7
call fcn.004486b0
jmp fcn.004d27a0