Function at 0x50ed12
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
sub esp, 0x28
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x18]
add eax, 0x10
mov dword [ebp + 0x18], eax
mov eax, dword [ebp + 0x18]
mov edx, dword [ebp + 0x14]
cmp eax, edx
jae 0x50ed6d
mov eax, dword [ebp + 0x18]
mov eax, dword [eax]
and eax, 0xff
cmp eax, 0x25
je 0x50ed5b
mov eax, dword [ebp + 0x18]
mov eax, dword [eax]
and eax, 0xff
cmp eax, 0x33
je 0x50ed5b
jmp 0x50ed5f
xor eax, eax
jmp 0x50ed62
xor eax, eax
inc eax
cmp eax, 0
jne 0x50ed6d
xor eax, eax
jmp 0x50ed70
xor eax, eax
inc eax
cmp eax, 0
je 0x50ed85
push dword [ebp + 0x20]
push dword [ebp + 0x18]
push dword [ebp + 0xc]
call fcn.0050e9d1
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x14], eax
mov eax, 2
cmp eax, 0
jle 0x50ede4
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x18]
add eax, 0x10
mov dword [ebp + 0x18], eax
mov eax, dword [ebp + 0x18]
mov edx, dword [ebp + 0x14]
cmp eax, edx
jae 0x50edc4
mov eax, dword [ebp + 0x18]
mov eax, dword [eax]
and eax, 0xff
cmp eax, 0xb
jne 0x50edc4
xor eax, eax
jmp 0x50edc7
xor eax, eax
inc eax
cmp eax, 0
je 0x50eddc
push dword [ebp + 0x20]
push dword [ebp + 0x18]
push dword [ebp + 0xc]
call fcn.0050e9d1
mov eax, dword [ebp - 0x2c]
sub eax, 1
jg 0x50ed97
mov eax, 3
cmp eax, 0
jle 0x50ee4c
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x18]
add eax, 0x10
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp + 0x14]
cmp eax, edx
jae 0x50ee44
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
and eax, 0xff
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
cmp eax, 0xb
je 0x50ee2d
mov eax, dword [ebp - 0x20]
cmp eax, 0xc
je 0x50ee2d
xor eax, eax
jmp 0x50ee30
xor eax, eax
inc eax
cmp eax, 0
je 0x50ee3f
mov eax, dword [ebp - 0x18]
mov dword [ebp + 0x18], eax
jmp 0x50ee44
jmp 0x50ee4c
mov eax, dword [ebp - 0x30]
sub eax, 1
jg 0x50edf0
mov eax, 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 0
mov eax, dword [ebp + 0x18]
mov dword [ebp + 0x10], eax
jmp 0x50eecf
mov eax, dword [ebp + 0x18]
mov eax, dword [eax]
and eax, 0xff
cmp eax, 0xf
jne 0x50ee82
push dword [ebp + 0x18]
call fcn.0044bc1c
jmp 0x50ee85
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax]
and eax, 0xff
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
cmp eax, 0x27
jne 0x50eea6
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x20]
cmp eax, 0x27
je 0x50eebe
mov eax, dword [ebp - 0x20]
cmp eax, 0xc
je 0x50eebe
xor eax, eax
jmp 0x50eec1
xor eax, eax
inc eax
xor al, 1
cmp eax, 0
je 0x50eecf
jmp 0x50eee4
mov eax, dword [ebp + 0x18]
add eax, 0x10
mov dword [ebp + 0x18], eax
mov eax, dword [ebp + 0x18]
mov edx, dword [ebp + 0x14]
cmp eax, edx
jb 0x50ee67
mov eax, dword [ebp - 0x24]
cmp eax, 2
jge 0x50eefc
push dword [ebp + 0x20]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.0050e9d1
mov eax, dword [ebp + 0x1c]
mov edx, dword [0x549be8]
cmp eax, edx
sete al
xor ah, ah
cwde
push eax
push dword [ebp - 0x24]
push dword [ebp - 0x14]
push 0xffffffffffffffff
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 8]
push eax
call fcn.0044b276
push eax
push dword [ebp + 8]
call fcn.005078b7
mov eax, dword [ebp + 0x18]
sub eax, 0x10
leave
ret 0x1c