Function at 0x476790
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x98
push esi
mov edx, ecx
movss xmm3, dword [0x4c2be8]
mov ecx, dword [ebx + 0xc]
push edi
mov edi, dword [ebx + 0x1c]
mov esi, edi
shl esi, 4
add esi, dword [edx + 0x94]
mov dword [ebp - 8], edx
mov edx, dword [ebx + 0x10]
movss dword [ebp - 0x24], xmm3
movss xmm7, dword [edx + 4]
movss xmm2, dword [edx]
movaps xmm4, xmm7
subss xmm2, dword [ecx]
subss xmm4, dword [ecx + 4]
movss xmm5, dword [edx + 8]
subss xmm5, dword [ecx + 8]
movaps xmm0, xmm2
mulss xmm0, xmm2
movaps xmm1, xmm4
mulss xmm1, xmm4
addss xmm1, xmm0
movaps xmm0, xmm5
mulss xmm0, xmm5
addss xmm1, xmm0
xorps xmm0, xmm0
comiss xmm1, dword [0x4c23e4]
jb 0x476872
sqrtss xmm0, xmm1
movss xmm1, dword [0x4d4354]
divss xmm1, xmm0
movaps xmm6, xmm1
movaps xmm0, xmm1
mulss xmm6, xmm2
mulss xmm0, xmm4
mulss xmm2, xmm6
mulss xmm4, xmm0
mulss xmm1, xmm5
addss xmm2, xmm4
xorps xmm4, xmm4
ucomiss xmm6, xmm4
mulss xmm5, xmm1
lahf
addss xmm2, xmm5
movss dword [ebp - 0x28], xmm2
test ah, 0x44
jp 0x476885
movss xmm2, dword [0x4d4354]
movss dword [ebp - 0x1c], xmm3
jmp 0x476899
movss xmm6, dword [0x4d4354]
xorps xmm4, xmm4
xorps xmm1, xmm1
movss dword [ebp - 0x28], xmm2
movss xmm2, dword [0x4d4354]
movaps xmm5, xmm2
divss xmm5, xmm6
movss dword [ebp - 0x1c], xmm5
ucomiss xmm0, xmm4
lahf
test ah, 0x44
jnp 0x4768a9
movaps xmm3, xmm2
divss xmm3, xmm0
ucomiss xmm1, xmm4
movss dword [ebp - 0x20], xmm3
lahf
test ah, 0x44
jnp 0x4768c3
movaps xmm3, xmm2
divss xmm3, xmm1
movss dword [ebp - 0x24], xmm3
movups xmm0, xmmword [ecx]
movups xmm1, xmmword [ecx]
movups xmmword [ebp - 0x70], xmm0
movss xmm0, dword [edx]
comiss xmm1, xmm0
movaps xmmword [ebp - 0x60], xmm1
jbe 0x4768dd
movaps xmm1, xmm0
movss xmm0, dword [ebp - 0x5c]
comiss xmm0, xmm7
movss dword [ebp - 0xc], xmm0
jbe 0x4768f4
movaps xmm0, xmm7
movss dword [ebp - 0xc], xmm0
movss xmm0, dword [ebp - 0x58]
movss xmm2, dword [edx + 8]
comiss xmm0, xmm2
movss dword [ebp - 0x18], xmm0
jbe 0x476910
movaps xmm0, xmm2
movss dword [ebp - 0x18], xmm0
mov eax, dword [ebx + 0x14]
movss xmm0, dword [ebp - 0x6c]
maxss xmm0, xmm7
mov ecx, dword [ebp - 8]
mov dword [ebp - 4], 0xfffe
addss xmm1, dword [eax]
mov eax, dword [ebx + 0x18]
movss xmm6, dword [ecx + 0x10]
movss xmm4, dword [ecx + 0x14]
movss xmm5, dword [ecx + 0x38]
addss xmm0, dword [eax + 4]
movaps xmmword [ebp - 0x60], xmm1
movss xmm1, dword [0x4d4354]
movss dword [ebp - 0x2c], xmm0
movss xmm0, dword [ebp - 0x68]
maxss xmm0, xmm2
addss xmm0, dword [eax + 8]
movss dword [ebp - 0x38], xmm0
movaps xmm0, xmmword [ebp - 0x60]
maxss xmm0, xmm6
minss xmm0, dword [ecx + 0x20]
subss xmm0, xmm6
mulss xmm0, dword [ecx + 0x30]
cvttss2si eax, xmm0
movss xmm0, dword [ebp - 0xc]
and ax, word [ebp - 4]
movzx eax, ax
mov dword [ebp - 0x3c], eax
mov eax, dword [ebx + 0x14]
addss xmm0, dword [eax + 4]
maxss xmm0, xmm4
minss xmm0, dword [ecx + 0x24]
subss xmm0, xmm4
mulss xmm0, dword [ecx + 0x34]
cvttss2si eax, xmm0
movss xmm0, dword [ebp - 0x18]
and ax, word [ebp - 4]
movzx eax, ax
mov dword [ebp - 0xc], eax
mov eax, dword [ebx + 0x14]
addss xmm0, dword [eax + 8]
maxss xmm0, dword [ecx + 0x18]
minss xmm0, dword [ecx + 0x28]
subss xmm0, dword [ecx + 0x18]
mulss xmm0, xmm5
cvttss2si eax, xmm0
movss xmm0, dword [ebp - 0x70]
maxss xmm0, dword [edx]
and ax, word [ebp - 4]
movzx eax, ax
mov dword [ebp - 0x18], eax
mov eax, dword [ebx + 0x18]
mov edx, dword [ebp - 8]
addss xmm0, dword [eax]
maxss xmm0, xmm6
minss xmm0, dword [ecx + 0x20]
subss xmm0, xmm6
mulss xmm0, dword [ecx + 0x30]
addss xmm0, xmm1
cvttss2si eax, xmm0
movss xmm0, dword [ebp - 0x2c]
maxss xmm0, xmm4
or ax, 1
minss xmm0, dword [ecx + 0x24]
subss xmm0, xmm4
mulss xmm0, dword [ecx + 0x34]
addss xmm0, xmm1
cvttss2si ecx, xmm0
movss xmm0, dword [ebp - 0x38]
maxss xmm0, dword [edx + 0x18]
or cx, 1
minss xmm0, dword [edx + 0x28]
subss xmm0, dword [edx + 0x18]
mulss xmm0, xmm5
addss xmm0, xmm1
cvttss2si edx, xmm0
or dx, 1
cmp edi, dword [ebx + 0x20]
jge 0x476d22
movzx edx, dx
movzx ecx, cx
movzx eax, ax
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x38], ecx
mov dword [ebp - 4], eax
mov eax, dword [esi + 0xc]
xor edi, edi
movzx ecx, word [esi + 2]
movzx edx, word [esi + 4]
shr eax, 0x1f
xor al, 1
cmp word [ebp - 0x38], cx
mov dword [ebp - 0x44], eax
sbb ecx, ecx
inc ecx
cmp word [ebp - 0x2c], dx
sbb eax, eax
xor edx, edx
inc eax
and ecx, eax
movzx eax, word [esi + 0xa]
cmp word [ebp - 0x18], ax
movzx eax, word [esi + 8]
cmovbe edx, ecx
cmp ax, word [ebp - 0xc]
sbb eax, eax
xor ecx, ecx
inc eax
and edx, eax
movzx eax, word [esi + 6]
cmp word [ebp - 0x3c], ax
cmovbe ecx, edx
movzx edx, word [esi]
cmp word [ebp - 4], dx
sbb eax, eax
inc eax
and ecx, eax
neg ecx
jns 0x476ce4
mov ecx, dword [ebp - 8]
movaps xmm6, xmm1
movzx eax, word [esi + 2]
movaps xmm5, xmm1
movaps xmm4, xmm1
movd xmm7, edx
cvtdq2ps xmm7, xmm7
mov dword [ebp - 0x54], edi
mov dword [ebp - 0x64], edi
mov edi, 0x10
mov edx, dword [ebx + 0xc]
divss xmm6, dword [ecx + 0x34]
divss xmm4, dword [ecx + 0x38]
divss xmm5, dword [ecx + 0x30]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movzx eax, word [esi + 4]
mulss xmm7, xmm5
mulss xmm0, xmm6
addss xmm7, dword [ecx + 0x10]
movss dword [ebp - 0x40], xmm4
addss xmm0, dword [ecx + 0x14]
movss xmm3, dword [ebp - 0x1c]
movss dword [ebp - 0x60], xmm7
movss dword [ebp - 0x5c], xmm0
movd xmm0, eax
movzx eax, word [esi + 6]
cvtdq2ps xmm0, xmm0
mulss xmm0, xmm4
movd xmm4, eax
movzx eax, word [esi + 8]
addss xmm0, dword [ecx + 0x18]
cvtdq2ps xmm4, xmm4
movss dword [ebp - 0x58], xmm0
movaps xmm0, xmmword [ebp - 0x60]
movaps xmmword [ebp - 0x90], xmm0
movd xmm0, eax
movzx eax, word [esi + 0xa]
cvtdq2ps xmm0, xmm0
mulss xmm4, xmm5
xorps xmm5, xmm5
mulss xmm0, xmm6
addss xmm4, dword [ecx + 0x10]
addss xmm0, dword [ecx + 0x14]
movss dword [ebp - 0x70], xmm4
movss dword [ebp - 0x6c], xmm0
movd xmm0, eax
mov eax, dword [ebx + 0x18]
cvtdq2ps xmm0, xmm0
subss xmm7, dword [eax]
mulss xmm0, dword [ebp - 0x40]
addss xmm0, dword [ecx + 0x18]
xor ecx, ecx
movss dword [ebp - 0x90], xmm7
comiss xmm5, xmm3
movss dword [ebp - 0x68], xmm0
movaps xmm0, xmmword [ebp - 0x70]
movaps xmmword [ebp - 0x80], xmm0
cmova ecx, edi
movss xmm0, dword [ebp - 0x8c]
subss xmm0, dword [eax + 4]
movss dword [ebp - 0x8c], xmm0
movss xmm0, dword [ebp - 0x88]
subss xmm0, dword [eax + 8]
mov eax, dword [ebx + 0x14]
subss xmm4, dword [eax]
movss dword [ebp - 0x88], xmm0
movss xmm0, dword [ebp - 0x7c]
subss xmm0, dword [eax + 4]
movss dword [ebp - 0x80], xmm4
movss dword [ebp - 0x7c], xmm0
movss xmm0, dword [ebp - 0x78]
subss xmm0, dword [eax + 8]
lea eax, [ebp - 0x80]
sub eax, ecx
movss dword [ebp - 0x78], xmm0
movss xmm2, dword [ebp + ecx - 0x90]
subss xmm2, dword [edx]
movss xmm1, dword [eax]
subss xmm1, dword [edx]
mulss xmm2, xmm3
movss xmm6, dword [ebp - 0x20]
lea eax, [ebp - 0x7c]
movss xmm4, dword [edx + 4]
xor ecx, ecx
comiss xmm5, xmm6
mulss xmm1, xmm3
cmova ecx, edi
sub eax, ecx
movss xmm3, dword [eax]
subss xmm3, xmm4
mulss xmm3, xmm6
comiss xmm2, xmm3
ja 0x476ce2
movss xmm0, dword [ebp + ecx - 0x8c]
subss xmm0, xmm4
mulss xmm0, xmm6
comiss xmm0, xmm1
ja 0x476ce2
movss xmm4, dword [ebp - 0x24]
lea eax, [ebp - 0x78]
movss xmm6, dword [edx + 8]
maxss xmm0, xmm2
xor ecx, ecx
minss xmm3, xmm1
comiss xmm5, xmm4
cmova ecx, edi
sub eax, ecx
movss xmm2, dword [eax]
subss xmm2, xmm6
mulss xmm2, xmm4
comiss xmm0, xmm2
ja 0x476ce2
movss xmm1, dword [ebp + ecx - 0x88]
subss xmm1, xmm6
mulss xmm1, xmm4
comiss xmm1, xmm3
ja 0x476ce2
maxss xmm1, xmm0
movss xmm0, dword [ebp - 0x28]
comiss xmm0, xmm1
jbe 0x476ce2
minss xmm2, xmm3
comiss xmm2, xmm5
jbe 0x476ce2
mov edi, 1
jmp 0x476ce4
xor edi, edi
cmp byte [ebp - 0x44], 0
je 0x476d2d
test edi, edi
je 0x476d07
mov ecx, dword [esi + 0xc]
mov eax, ecx
mov edi, dword [ebx + 8]
and eax, 0x1fffff
sar ecx, 0x15
push eax
push ecx
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 4]
mov eax, dword [ebx + 0x1c]
add esi, 0x10
inc eax
movss xmm1, dword [0x4d4354]
mov dword [ebx + 0x1c], eax
cmp eax, dword [ebx + 0x20]
jl 0x476a77
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x1c
test edi, edi
jne 0x476d07
mov ecx, dword [esi + 0xc]
neg ecx
mov eax, ecx
shl eax, 4
add esi, eax
mov eax, dword [ebx + 0x1c]
add eax, ecx
jmp 0x476d0e