Function at 0x1007dd90
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x18
push esi
mov esi, ecx
push edi
mov dword [esp + 0x18], esi
mov edx, dword [esi + 0x658]
mov edi, dword [esi + 0x2f00]
mov dword [esp + 0x14], edi
movzx eax, word [edx + 0x10]
sub eax, dword [edi]
movzx eax, al
sub eax, 0x71
cmp eax, 0x16
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 8]
setbe cl
mov byte [eax], cl
mov eax, 1
mov ecx, dword [edi + 8]
shr ecx, 0x1a
and ecx, 0xf
shl eax, cl
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x101a5340]
mov eax, dword [esi + 0xa40]
mov eax, dword [eax]
and eax, 0x100
cvtpd2ps xmm1, xmm0
mov dword [esp + 0x1c], eax
je 0x1007de0d
movzx eax, word [edx + 0x18]
jmp 0x1007de19
movss xmm0, dword [edx]
mulss xmm0, xmm1
cvttss2si eax, xmm0
movzx edi, al
mov eax, dword [ebp + 0xc]
sub edi, 0x71
cmp edi, 0x1e
mov dword [esp + 0xc], edi
setbe cl
mov byte [eax], cl
mov eax, dword [esi + 0x3338]
sub eax, 0
je 0x1007de78
sub eax, 1
je 0x1007de71
mov ecx, dword [esi + 0x3460]
mov eax, dword [esi + 0x3454]
sub eax, dword [esi + 0x345c]
sub eax, dword [ecx + 0x844]
add eax, dword [ecx + 0x84c]
cdq
xor eax, edx
sub eax, edx
mov edx, dword [esi + 0x658]
cmp eax, 0x40
setle byte [esp + 0xb]
jmp 0x1007de7d
mov byte [esp + 0xb], 1
jmp 0x1007de7d
mov byte [esp + 0xb], 0
cmp dword [esp + 0x1c], 0
movss xmm5, dword [0x101a4de8]
movss xmm4, dword [0x101a4d68]
mov eax, dword [esi + 0x664]
je 0x1007df8f
test eax, eax
je 0x1007e065
mov esi, dword [esp + 0x14]
lea edi, [eax - 1]
shr edi, 1
add edx, 0x30
inc edi
mov ecx, 0xff80
mov eax, 0x80
nop dword [eax]
cmp dword [esp + 0x10], 0x16
ja 0x1007decd
add word [edx - 0x20], cx
jmp 0x1007ded0
add word [edx], ax
cmp dword [esp + 0xc], 0x1e
ja 0x1007dedd
add word [edx - 0x18], cx
jmp 0x1007dee1
add word [edx + 8], ax
cmp byte [esp + 0xb], 0
jne 0x1007df7e
movzx ecx, word [edx - 0x16]
movd xmm3, dword [esi + 4]
mov eax, ecx
and eax, 0xf
punpckldq xmm3, xmm3
movd xmm1, ecx
mov ecx, 0xff80
movd xmm0, eax
movzx eax, word [edx - 0x1e]
punpckldq xmm0, xmm0
punpckldq xmm3, xmm0
movd xmm2, eax
movzx eax, word [edx + 2]
movd xmm0, eax
movzx eax, word [edx + 0xa]
punpckldq xmm2, xmm0
movd xmm0, eax
punpckldq xmm1, xmm0
punpckldq xmm2, xmm1
psubd xmm2, xmm3
psrld xmm2, 1
paddd xmm2, xmm3
movd eax, xmm2
movaps xmm0, xmm2
psrldq xmm0, 4
mov word [edx - 0x1e], ax
movd eax, xmm0
movaps xmm0, xmm2
psrldq xmm0, 8
psrldq xmm2, 0xc
mov word [edx - 0x16], ax
movd eax, xmm0
mov word [edx + 2], ax
movd eax, xmm2
mov word [edx + 0xa], ax
mov eax, 0x80
add edx, 0x40
sub edi, 1
jne 0x1007dec0
jmp 0x1007e05d
movaps xmm3, xmm5
divss xmm3, xmm1
test eax, eax
je 0x1007e065
mov esi, dword [esp + 0x14]
lea ecx, [edx + 0x30]
lea edx, [eax - 1]
mov edi, 0x80
shr edx, 1
mov eax, 0xff80
inc edx
cmp dword [esp + 0x10], 0x16
ja 0x1007dfc2
add word [ecx - 0x20], ax
jmp 0x1007dfc5
add word [ecx], di
cmp dword [esp + 0xc], 0x1e
ja 0x1007dfdc
movss xmm0, dword [ecx - 0x30]
subss xmm0, xmm3
movss dword [ecx - 0x30], xmm0
jmp 0x1007dfea
movss xmm0, dword [ecx - 0x10]
addss xmm0, xmm3
movss dword [ecx - 0x10], xmm0
cmp byte [esp + 0xb], 0
jne 0x1007e051
movzx eax, word [ecx - 0x1e]
movd xmm1, dword [esi + 4]
punpckldq xmm1, xmm1
movd xmm2, eax
movzx eax, word [ecx + 2]
movd xmm0, eax
punpckldq xmm2, xmm0
movss xmm0, dword [ecx - 0x2c]
psubd xmm2, xmm1
psrld xmm2, 1
mulss xmm0, xmm4
paddd xmm2, xmm1
movd eax, xmm2
movss dword [ecx - 0x2c], xmm0
movss xmm0, dword [ecx - 0xc]
mov word [ecx - 0x1e], ax
psrldq xmm2, 4
movd eax, xmm2
mulss xmm0, xmm4
mov word [ecx + 2], ax
mov eax, 0xff80
movss dword [ecx - 0xc], xmm0
add ecx, 0x40
sub edx, 1
jne 0x1007dfb5
mov edi, dword [esp + 0xc]
mov esi, dword [esp + 0x18]
cmp dword [esp + 0x10], 0x16
ja 0x1007e082
movss xmm0, dword [esi + 0x8c0]
subss xmm0, xmm5
movss dword [esi + 0x8c0], xmm0
jmp 0x1007e096
movss xmm0, dword [esi + 0x8f0]
addss xmm0, xmm5
movss dword [esi + 0x8f0], xmm0
mov al, byte [esp + 0xb]
test al, al
jne 0x1007e0c1
movss xmm1, dword [esi + 0x8f4]
movaps xmm0, xmm1
subss xmm0, dword [esi + 0x8c4]
mulss xmm0, xmm4
subss xmm1, xmm0
movss dword [esi + 0x8f4], xmm1
cmp edi, 0x1e
ja 0x1007e0dc
movss xmm0, dword [esi + 0x8d0]
subss xmm0, xmm5
movss dword [esi + 0x8d0], xmm0
jmp 0x1007e0f0
movss xmm0, dword [esi + 0x900]
addss xmm0, xmm5
movss dword [esi + 0x900], xmm0
test al, al
jne 0x1007e117
movss xmm1, dword [esi + 0x904]
movaps xmm0, xmm1
subss xmm0, dword [esi + 0x8d4]
mulss xmm0, xmm4
subss xmm1, xmm0
movss dword [esi + 0x904], xmm1
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8