Function at 0x4d9e08
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
mov esi, dword [ebp + 0xc]
movzx esi, word [esi]
mov dword [ebp - 0x28], esi
mov esi, dword [ebp + 8]
movzx esi, word [esi]
mov dword [ebp - 0x2c], esi
mov esi, edx
shl esi, 2
xor esi, edx
xor eax, eax
push edi
mov dword [ebp - 0x18], edx
cmp esi, 4
jae 0x4d9ec5
push 8
pop edi
push 0x10
lea eax, [ecx + 2]
mov edx, edi
mov esi, edi
pop ecx
movzx ebx, byte [eax - 2]
add edx, ebx
movzx ebx, byte [eax - 1]
add esi, ebx
movzx ebx, byte [eax]
add edi, ebx
add eax, 4
dec ecx
jne 0x4d9e45
sar esi, 4
lea ecx, [esi + esi]
sar edx, 4
sar edi, 4
lea eax, [edx + edx]
movzx si, byte [eax + 0x722590]
movzx ax, byte [eax + 0x722591]
lea edx, [edi + edi]
movzx di, byte [ecx + 0x722390]
movzx cx, byte [ecx + 0x722391]
shl si, 6
or si, di
movzx di, byte [edx + 0x722590]
shl ax, 6
or ax, cx
movzx cx, byte [edx + 0x722591]
shl si, 5
or si, di
shl ax, 5
or ax, cx
movzx edi, si
movzx esi, ax
jmp 0x4da0f5
xor edi, edi
xor esi, esi
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], eax
add ecx, 2
mov dword [ebp - 0x1c], 0x10
mov edx, dword [ebp - 0x18]
and edx, 3
shl edx, 2
mov ebx, dword [edx + 0x69207c]
add eax, dword [edx + 0x69208c]
movzx edx, byte [ecx - 1]
mov dword [ebp - 0x14], ebx
imul edx, dword [ebp - 0x14]
add dword [ebp - 8], edx
movzx edx, byte [ecx]
imul edx, dword [ebp - 0x14]
movzx ebx, byte [ecx - 2]
imul ebx, dword [ebp - 0x14]
add dword [ebp - 0x10], edx
movzx edx, byte [ecx - 2]
add dword [ebp - 4], ebx
movzx ebx, byte [ecx]
shr dword [ebp - 0x18], 2
add esi, edx
movzx edx, byte [ecx - 1]
add edi, edx
mov edx, dword [ebp - 0xc]
add edx, ebx
add ecx, 4
dec dword [ebp - 0x1c]
mov dword [ebp - 0xc], edx
jne 0x4d9edf
imul esi, esi, 3
imul edi, edi, 3
imul edx, edx, 3
sub esi, dword [ebp - 4]
sub edi, dword [ebp - 8]
mov dword [ebp - 0x1c], esi
mov esi, eax
mov ecx, 0xff
mov dword [ebp - 0x18], edi
mov edi, eax
and eax, ecx
sar esi, 8
and esi, ecx
mov ebx, eax
imul eax, ebx
sar edi, 0x10
mov ecx, esi
imul ecx, edi
sub ecx, eax
mov dword [ebp - 0x20], ecx
sub edx, dword [ebp - 0x10]
mov eax, ebx
fild dword [ebp - 0x20]
imul eax, dword [ebp - 0x1c]
fdivr qword [0x692638]
mov ecx, esi
mov dword [ebp - 0xc], edx
fstp dword [ebp - 0x20]
imul ecx, dword [ebp - 4]
fld dword [ebp - 0x20]
fld qword [0x692618]
fmul st(1)
fdiv qword [0x692620]
sub ecx, eax
mov dword [ebp - 0x14], ecx
fstp dword [ebp - 0x20]
fild dword [ebp - 0x14]
fld st(1)
fmulp st(1)
fld qword [0x6925c8]
fadd st(1), st(0)
fxch st(1)
fstp dword [ebp - 0x14]
fld dword [ebp - 0x14]
call fcn.005b0cb0
test eax, eax
jge 0x4d9fcc
xor eax, eax
jmp 0x4d9fd4
cmp eax, 0x1f
jle 0x4d9fd4
push 0x1f
pop eax
shl eax, 0xb
movzx eax, ax
mov dword [ebp - 0x14], eax
mov eax, ebx
imul eax, dword [ebp - 0x18]
mov ecx, esi
imul ecx, dword [ebp - 8]
sub ecx, eax
mov dword [ebp - 0x24], ecx
fild dword [ebp - 0x24]
fmul dword [ebp - 0x20]
fadd st(1)
fstp dword [ebp - 0x24]
fld dword [ebp - 0x24]
call fcn.005b0cb0
test eax, eax
jge 0x4da009
xor eax, eax
jmp 0x4da011
cmp eax, 0x3f
jle 0x4da011
push 0x3f
pop eax
imul esi, dword [ebp - 0x10]
shl eax, 5
or dword [ebp - 0x14], eax
mov eax, ebx
imul eax, dword [ebp - 0xc]
sub esi, eax
mov dword [ebp - 0x24], esi
fild dword [ebp - 0x24]
fld st(2)
fmulp st(1)
fadd st(1)
fstp dword [ebp - 0x24]
fld dword [ebp - 0x24]
call fcn.005b0cb0
test eax, eax
jge 0x4da042
xor eax, eax
jmp 0x4da04a
cmp eax, 0x1f
jle 0x4da04a
push 0x1f
pop eax
or dword [ebp - 0x14], eax
mov eax, edi
imul eax, dword [ebp - 0x1c]
mov ecx, ebx
imul ecx, dword [ebp - 4]
sub eax, ecx
mov dword [ebp - 0x24], eax
fild dword [ebp - 0x24]
fld st(2)
fmulp st(1)
fadd st(1)
fstp dword [ebp - 0x24]
fld dword [ebp - 0x24]
call fcn.005b0cb0
test eax, eax
jge 0x4da07a
xor eax, eax
jmp 0x4da082
cmp eax, 0x1f
jle 0x4da082
push 0x1f
pop eax
shl eax, 0xb
movzx esi, ax
mov eax, edi
imul eax, dword [ebp - 0x18]
mov ecx, ebx
imul ecx, dword [ebp - 8]
sub eax, ecx
mov dword [ebp - 0x24], eax
fild dword [ebp - 0x24]
fmul dword [ebp - 0x20]
fadd st(1)
fstp dword [ebp - 0x24]
fld dword [ebp - 0x24]
call fcn.005b0cb0
test eax, eax
jge 0x4da0b4
xor eax, eax
jmp 0x4da0bc
cmp eax, 0x3f
jle 0x4da0bc
push 0x3f
pop eax
imul edi, dword [ebp - 0xc]
imul ebx, dword [ebp - 0x10]
sub edi, ebx
mov dword [ebp - 0x24], edi
shl eax, 5
or esi, eax
fild dword [ebp - 0x24]
fmulp st(2)
faddp st(1)
fstp dword [ebp - 0x24]
fld dword [ebp - 0x24]
call fcn.005b0cb0
test eax, eax
jge 0x4da0e8
xor eax, eax
jmp 0x4da0f0
cmp eax, 0x1f
jle 0x4da0f0
push 0x1f
pop eax
mov edi, dword [ebp - 0x14]
or esi, eax
mov eax, dword [ebp + 0xc]
mov word [eax], si
mov eax, dword [ebp + 8]
mov word [eax], di
cmp word [ebp - 0x28], si
jne 0x4da111
cmp word [ebp - 0x2c], di
jne 0x4da111
xor eax, eax
jmp 0x4da114
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret