Function at 0x49bfb1
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x5b41f4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, ecx
push ebx
mov ebx, dword [ebp + 0x18]
push edi
cmp dword [eax + 0x18], 0
mov edi, dword [ebp + 0x1c]
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x34], edi
je 0x49c1ca
lea ecx, [ebp + 8]
call fcn.004380a3
movd xmm1, ebx
cvtdq2ps xmm1, xmm1
fstp dword [ebp - 0x28]
movss xmm0, dword [ebp - 0x28]
comiss xmm0, xmm1
jbe 0x49c01d
subss xmm0, xmm1
mulss xmm0, dword [0x535380]
cvttss2si eax, xmm0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
addss xmm0, dword [ebp + 8]
movss dword [ebp + 8], xmm0
jmp 0x49c022
movss xmm0, dword [ebp + 8]
addss xmm1, xmm0
lea ecx, [ebp + 8]
movss dword [ebp + 0x10], xmm1
call fcn.00437d9e
movd xmm1, edi
cvtdq2ps xmm1, xmm1
fstp dword [ebp - 0x28]
movss xmm0, dword [ebp - 0x28]
comiss xmm0, xmm1
jbe 0x49c06a
subss xmm0, xmm1
mulss xmm0, dword [0x535380]
cvttss2si eax, xmm0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
addss xmm0, dword [ebp + 0xc]
movss dword [ebp + 0xc], xmm0
jmp 0x49c06f
movss xmm0, dword [ebp + 0xc]
addss xmm1, xmm0
push esi
lea ecx, [ebp - 0x29]
movss dword [ebp + 0x14], xmm1
call fcn.0049db87
push eax
mov eax, edi
lea ecx, [ebp - 0x58]
imul eax, ebx
shl eax, 2
push eax
call fcn.0049db8a
test edi, edi
jle 0x49c136
mov ecx, ebx
mov dword [ebp - 0x38], 0xff
shl ecx, 2
xor eax, eax
mov dword [ebp - 0x4c], ecx
mov edx, ebx
mov ecx, edi
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x28], ecx
shl edx, 2
test ebx, ebx
jle 0x49c126
mov dword [ebp - 0x3c], ebx
mov edi, eax
mov ebx, dword [ebp + 0x20]
push 0
lea ecx, [ebp - 0x58]
call fcn.0049deb7
movzx ecx, byte [ebx + 3]
xor edx, edx
lea esi, [edi + eax]
movzx eax, byte [ebx]
imul eax, ecx
lea edi, [edi + 4]
div dword [ebp - 0x38]
xor edx, edx
mov byte [esi + 2], al
movzx eax, byte [ebx + 1]
imul eax, ecx
div dword [ebp - 0x38]
xor edx, edx
mov byte [esi + 1], al
movzx eax, byte [ebx + 2]
imul eax, ecx
mov ecx, 0xff
div ecx
mov byte [esi], al
mov al, byte [ebx + 3]
add ebx, 4
sub dword [ebp - 0x3c], 1
mov byte [esi + 3], al
jne 0x49c0c5
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x4c]
mov dword [ebp + 0x20], ebx
mov ebx, dword [ebp - 0x44]
add eax, edx
sub ecx, 1
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x28], ecx
jne 0x49c0b9
mov edi, dword [ebp - 0x34]
and dword [ebp - 0x30], 0
push edi
push ebx
call fcn.0049e4c9
mov esi, dword [ebp - 0x48]
mov ebx, edx
pop ecx
pop ecx
mov dword [ebp - 0x34], eax
lea ecx, [ebp - 0x58]
mov esi, dword [esi + 0x18]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0x57
push eax
mov eax, dword [ebp - 0x44]
shl eax, 2
push eax
mov dword [ebp - 0x10], 1
mov dword [ebp - 0xc], 0x42900000
mov dword [ebp - 8], 0x42900000
mov edi, dword [esi]
push 0
call fcn.0049deb7
push eax
push ebx
push dword [ebp - 0x34]
push esi
call dword [edi + 0x10]
pop esi
test eax, eax
js 0x49c1c2
movups xmm0, xmmword [ebp + 8]
push 0
push 1
push ecx
mov dword [esp], 0x3f800000
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x48]
push dword [ebp - 0x30]
movups xmmword [ebp - 0x24], xmm0
mov ecx, dword [eax + 0x18]
call fcn.0049e12a
mov eax, dword [ebp - 0x30]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
lea ecx, [ebp - 0x58]
call fcn.0049ddba
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.004afcaa
leave
ret 0x1c