Function at 0x4e1570
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc0
mov eax, dword [0x551aa8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor ebx, ebx
push 0x40
lea eax, [ebp - 0x64]
push ebx
xor edi, edi
push eax
mov dword [ebp - 0xa8], esi
mov dword [ebp - 0xb4], edi
mov dword [ebp - 0xb0], ebx
call sub.MSVCR100.dll_memset
fld dword [esi + 0x658c]
fadd qword [0x546e00]
add esp, 0xc
call fcn.0050c200
cmp eax, 0xa
jge 0x4e15d0
mov dword [ebp - 0x98], 0x96
jmp 0x4e15f5
cmp eax, 0xc
jle 0x4e15e1
mov dword [ebp - 0x98], 0x14
jmp 0x4e15f5
mov ecx, 0xe
sub ecx, eax
lea eax, [ecx + ecx*4]
add eax, eax
add eax, eax
mov dword [ebp - 0x98], eax
fld dword [esi + 0x6588]
fldz
fucompp
fnstsw ax
test ah, 0x44
jnp 0x4e1610
mov dword [ebp - 0x98], 0x50
movzx eax, word [esi + 0x66b4]
sub eax, 0xe
mov dword [ebp - 0x80], 0xe
mov dword [ebp - 0x78], eax
cmp eax, 0xe
jle 0x4e1a1e
movzx edx, word [esi + 0x66b6]
mov dword [ebp - 0xb8], edx
lea ebx, [ebx]
mov dword [ebp - 0x90], 0xa
cmp edx, 0xa
jle 0x4e1a01
movzx ecx, word [esi + 0x66c0]
movzx edx, word [esi + 0x66bc]
mov eax, dword [esi + 0x66e0]
mov dword [ebp - 0x94], ecx
mov ecx, dword [esi + 0x65b0]
mov dword [ebp - 0x8c], ecx
mov ecx, 0x14
mov dword [ebp - 0x7c], edx
mov dword [ebp - 0x9c], eax
mov dword [ebp - 0xac], ecx
lea ecx, [ecx]
mov eax, 2
mov ebx, eax
sub ebx, ecx
mov dword [ebp - 0xa4], ecx
mov dword [ebp - 0x84], ebx
mov ecx, dword [ebp - 0x7c]
lea esi, [eax - 2]
mov edi, esi
mov edx, esi
sar edx, 1
add edx, dword [ebp - 0x80]
and edi, 1
add edi, dword [ebp - 0x90]
add ebx, 0xfffffffe
sar edi, cl
lea ecx, [edx*4]
and ecx, 0x1c
and ebx, 2
add ecx, ebx
mov ebx, dword [ebp - 0x8c]
shr ebx, cl
mov ecx, dword [ebp - 0x7c]
sar edx, cl
mov ecx, dword [ebp - 0x9c]
and esi, 4
and ebx, 3
imul edx, dword [ebp - 0x94]
add edx, edi
lea edx, [ebx + edx*4]
movzx edx, word [ecx + edx*2]
add esi, ebx
mov dword [ebp + esi*4 - 0x24], edx
mov edx, dword [ebp - 0x80]
lea ecx, [eax - 1]
mov dword [ebp - 0xa0], ecx
sar ecx, 1
add edx, ecx
mov ecx, dword [ebp - 0x7c]
lea esi, [eax - 1]
and esi, 1
add esi, dword [ebp - 0x90]
mov ebx, dword [ebp - 0x84]
sar esi, cl
lea ecx, [edx*4]
and ecx, 0x1c
mov dword [ebp - 0x88], esi
mov esi, 0xfffffffe
sub esi, dword [ebp - 0xa4]
and esi, 2
add ecx, esi
mov esi, dword [ebp - 0x8c]
shr esi, cl
mov ecx, dword [ebp - 0x7c]
sar edx, cl
and esi, 3
imul edx, dword [ebp - 0x94]
add edx, dword [ebp - 0x88]
lea ecx, [esi + edx*4]
mov edx, dword [ebp - 0x9c]
movzx edx, word [edx + ecx*2]
mov ecx, dword [ebp - 0xa0]
and ecx, 4
add ecx, esi
mov dword [ebp + ecx*4 - 0x24], edx
mov edx, dword [ebp - 0x80]
mov ecx, eax
sar ecx, 1
add edx, ecx
lea esi, [edx*4]
and esi, 0x1c
lea ecx, [ebx - 2]
and ecx, 2
add ecx, esi
mov esi, dword [ebp - 0x8c]
shr esi, cl
mov ecx, dword [ebp - 0x7c]
sar edx, cl
and esi, 3
imul edx, dword [ebp - 0x94]
add edx, edi
lea ecx, [esi + edx*4]
mov edx, dword [ebp - 0x9c]
movzx ecx, word [edx + ecx*2]
mov edx, eax
and edx, 4
add edx, esi
mov dword [ebp + edx*4 - 0x24], ecx
mov edx, dword [ebp - 0x80]
lea esi, [eax + 1]
mov ecx, esi
sar ecx, 1
add edx, ecx
lea ecx, [edx*4]
and ecx, 0x1c
mov edi, ebx
and edi, 2
add ecx, edi
mov edi, dword [ebp - 0x8c]
add dword [ebp - 0xa4], 8
shr edi, cl
mov ecx, dword [ebp - 0x7c]
sar edx, cl
add eax, 4
and edi, 3
and esi, 4
imul edx, dword [ebp - 0x94]
add edx, dword [ebp - 0x88]
add esi, edi
lea ecx, [edi + edx*4]
mov edx, dword [ebp - 0x9c]
movzx ecx, word [edx + ecx*2]
sub ebx, 8
lea edx, [eax - 2]
mov dword [ebp + esi*4 - 0x24], ecx
mov dword [ebp - 0x84], ebx
cmp edx, 8
jl 0x4e16a5
xor eax, eax
lea ecx, [ecx]
mov ecx, dword [ebp + eax*4 - 0x24]
cmp ecx, 0x96
jl 0x4e19cc
cmp ecx, 0x5dc
jg 0x4e19cc
inc eax
cmp eax, 8
jl 0x4e1840
xor ecx, ecx
mov eax, dword [ebp + ecx*4 - 0x24]
sub eax, dword [ebp + ecx*4 - 0x14]
cdq
xor eax, edx
sub eax, edx
cmp eax, 0x32
jg 0x4e19cc
inc ecx
cmp ecx, 4
jl 0x4e1864
lea eax, [ebp - 0xc0]
lea ecx, [ebp - 0x74]
xor ebx, ebx
mov dword [ebp - 0x88], eax
mov dword [ebp - 0x84], ecx
lea esi, [ebp - 0x24]
lea ebx, [ebx]
xor ecx, ecx
mov edi, dword [esi]
mov eax, dword [esi + 4]
sub eax, edi
shl eax, 0xa
cdq
idiv edi
mov edx, ecx
sar edx, 1
add edx, ebx
add ecx, 2
add esi, 8
mov dword [ebp + edx*4 - 0x74], eax
cmp ecx, 4
jl 0x4e18a2
mov eax, dword [ebp - 0x98]
mov edi, dword [ebp - 0x84]
mov ecx, dword [ebp - 0xa8]
push eax
push edi
push ecx
call fcn.004e1450
mov ecx, dword [ebp - 0x88]
mov dword [ecx], eax
add ebx, 2
add edi, 8
add ecx, 4
add esp, 0xc
mov dword [ebp - 0x84], edi
mov dword [ebp - 0x88], ecx
cmp ebx, 4
jl 0x4e18a0
mov edx, dword [ebp - 0xbc]
mov ecx, dword [ebp - 0xc0]
mov eax, edx
or eax, ecx
mov dword [ebp - 0xa0], eax
cmp eax, 1
jg 0x4e19cc
mov ebx, dword [ebp - 0x24]
test ecx, ecx
je 0x4e1950
mov edi, dword [ebp - 0x74]
mov esi, dword [ebp - 0x70]
add edi, 0x400
add esi, 0x400
imul edi, ebx
imul esi, dword [ebp - 0x1c]
sar edi, 0xa
sar esi, 0xa
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x18], esi
jmp 0x4e1956
mov esi, dword [ebp - 0x18]
mov edi, dword [ebp - 0x20]
test edx, edx
je 0x4e1982
mov edx, dword [ebp - 0x6c]
mov ecx, dword [ebp - 0x68]
add edx, 0x400
imul edx, dword [ebp - 0x14]
add ecx, 0x400
imul ecx, dword [ebp - 0xc]
sar edx, 0xa
sar ecx, 0xa
mov dword [ebp - 0x10], edx
mov dword [ebp - 8], ecx
jmp 0x4e1988
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
shl eax, 5
add dword [ebp + eax - 0x60], edi
add dword [ebp + eax - 0x58], esi
add dword [ebp + eax - 0x50], edx
add dword [ebp + eax - 0x64], ebx
mov edi, dword [ebp - 0x1c]
add dword [ebp + eax - 0x5c], edi
mov esi, dword [ebp - 0x14]
add dword [ebp + eax - 0x54], esi
mov edx, dword [ebp - 0xc]
add dword [ebp + eax - 0x4c], edx
add dword [ebp + eax - 0x48], ecx
lea eax, [ebp + eax - 0x48]
mov eax, dword [ebp - 0xa0]
inc dword [ebp + eax*4 - 0xb4]
lea eax, [ebp + eax*4 - 0xb4]
mov eax, dword [ebp - 0x90]
mov ecx, dword [ebp - 0xac]
mov edx, dword [ebp - 0xb8]
add eax, 2
add ecx, 4
mov dword [ebp - 0x90], eax
mov dword [ebp - 0xac], ecx
cmp eax, edx
jl 0x4e1690
mov eax, dword [ebp - 0x78]
mov esi, dword [ebp - 0xa8]
mov ecx, dword [ebp - 0x80]
add ecx, 4
mov dword [ebp - 0x80], ecx
cmp ecx, eax
jl 0x4e1640
mov ebx, dword [ebp - 0xb0]
mov edi, dword [ebp - 0xb4]
mov eax, ebx
or eax, edi
je 0x4e1a90
imul edi, edi, 0xc8
xor eax, eax
cmp edi, ebx
setl al
shl eax, 5
mov ecx, dword [ebp + eax - 0x54]
add ecx, dword [ebp + eax - 0x64]
mov edx, dword [ebp + eax - 0x50]
mov dword [ebp - 0x78], ecx
fild dword [ebp - 0x78]
add edx, dword [ebp + eax - 0x60]
fld1
mov ecx, dword [ebp + eax - 0x4c]
fld st(0)
mov dword [ebp - 0x78], edx
fdivrp st(2)
add ecx, dword [ebp + eax - 0x5c]
mov edx, dword [ebp + eax - 0x48]
add edx, dword [ebp + eax - 0x58]
fxch st(1)
fstp dword [esi + 0xe784]
fild dword [ebp - 0x78]
mov dword [ebp - 0x78], ecx
fdivr st(1)
fstp dword [esi + 0xe788]
fild dword [ebp - 0x78]
mov dword [ebp - 0x78], edx
fdivr st(1)
fstp dword [esi + 0xe78c]
fidiv dword [ebp - 0x78]
fstp dword [esi + 0xe790]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0050bf32
mov esp, ebp
pop ebp
ret