Function at 0x10105b40
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, 0xa8
mov eax, dword [0x102ce4c0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebx + 8], 5
push esi
push edi
mov dword [ebp - 0x34], ecx
jne 0x1010603d
mov eax, dword [0x1019f080]
mov dword [ebp - 8], eax
test eax, eax
je 0x1010603d
mov edx, dword [0x102cf60c]
test dl, 1
jne 0x10105ba7
or edx, 1
mov dword [0x102cf60c], edx
mov edx, dword [0x102cf604]
mov dword [0x102cf608], edx
jmp 0x10105bad
mov edx, dword [0x102cf608]
cmp dword [edx + eax], 0
jne 0x1010603d
mov edx, dword [0x102cf614]
test dl, 1
jne 0x10105bd9
or edx, 1
mov dword [0x102cf614], edx
mov edx, dword [0x102cf600]
mov dword [0x102cf610], edx
jmp 0x10105bdf
mov edx, dword [0x102cf610]
cmp dword [edx + eax], 0
jle 0x1010603d
cmp byte [0x102c1354], 0
movss xmm1, dword [0x10175770]
je 0x10105d35
movss xmm0, dword [0x102c1374]
mulss xmm0, xmm1
cvttss2si edx, xmm0
movss xmm0, dword [0x102c1370]
mulss xmm0, xmm1
cvttss2si esi, xmm0
movss xmm0, dword [0x102c136c]
mulss xmm0, xmm1
mov dword [ebp - 0x10], esi
cvttss2si esi, xmm0
movss xmm0, dword [0x102c1368]
mulss xmm0, xmm1
mov dword [ebp - 0x14], esi
movd xmm1, dword [0x102c1378]
mov esi, dword [eax + 0x11c5c]
cvtdq2ps xmm1, xmm1
mulss xmm1, dword [0x101756dc]
movss dword [ebp - 0x18], xmm1
cmp esi, dword [ecx]
jle 0x10105d2b
mov ecx, dword [ebp - 0x10]
lea edi, [esi + esi*4]
movzx eax, dl
movaps xmm2, xmm1
xorps xmm2, xmmword [0x10175840]
mov dword [ebp - 0x2c], eax
movzx eax, cl
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x10], eax
movzx eax, cl
cvttss2si ecx, xmm0
mov dword [ebp - 0x14], eax
shl edi, 2
movss dword [ebp - 0x1c], xmm2
movzx eax, cl
mov dword [ebp - 0x30], eax
nop dword [eax]
mov ecx, dword [0x102cf478]
push ecx
mov dword [esp], 0x40800000
push dword [ebp - 0x2c]
mov eax, dword [ecx]
push dword [ebp - 0x10]
mov dword [ebp - 0x28], 0
push dword [ebp - 0x14]
mov edx, dword [eax + 4]
lea eax, [ebp - 0x28]
push dword [ebp - 0x30]
mov dword [ebp - 0x24], 0
push eax
lea eax, [ebp - 0x40]
mov dword [ebp - 0x20], 0
push eax
lea eax, [ebp - 0x4c]
movss dword [ebp - 0x40], xmm1
push eax
mov eax, dword [ebp - 8]
movss dword [ebp - 0x3c], xmm1
movss dword [ebp - 0x38], xmm1
movss dword [ebp - 0x4c], xmm2
mov eax, dword [eax + 0x11c50]
add eax, 0xffffffec
movss dword [ebp - 0x48], xmm2
add eax, edi
movss dword [ebp - 0x44], xmm2
push eax
call edx
mov ecx, dword [ebp - 0x34]
dec esi
movss xmm1, dword [ebp - 0x18]
add edi, 0xffffffec
movss xmm2, dword [ebp - 0x1c]
cmp esi, dword [ecx]
jg 0x10105ca0
mov eax, dword [ebp - 8]
mov dword [eax + 0x11c5c], 0
mov eax, dword [eax + 0x11c5c]
cmp eax, dword [ecx]
je 0x10105d41
mov dword [ecx], eax
cmp dword [0x102c137c], 0
je 0x1010603d
xor esi, esi
lea edi, [ecx + 8]
mov dword [ebp - 8], esi
mov ecx, dword [edi]
mov eax, 0x2aaaaaab
sub ecx, dword [edi - 4]
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x1010602d
mov ecx, dword [0x102cf474]
push esi
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
mov edx, eax
test edx, edx
je 0x10106024
mov esi, dword [0x1019f080]
cmp edx, esi
sete byte [ebp - 9]
je 0x10105de1
mov eax, dword [0x102cf818]
test al, 1
jne 0x10105db7
mov ecx, dword [0x102cf810]
or eax, 1
mov dword [0x102cf818], eax
mov dword [0x102cf814], ecx
jmp 0x10105dbd
mov ecx, dword [0x102cf814]
mov edx, dword [ecx + edx]
test al, 1
jne 0x10105dd8
mov ecx, dword [0x102cf810]
or eax, 1
mov dword [0x102cf818], eax
mov dword [0x102cf814], ecx
cmp edx, dword [ecx + esi]
je 0x10105de1
mov al, 1
jmp 0x10105de3
xor al, al
cmp byte [ebp - 9], 0
je 0x10105df2
movups xmm0, xmmword [0x102c13a4]
jmp 0x10105e06
test al, al
jne 0x10105dff
movups xmm0, xmmword [0x102c1394]
jmp 0x10105e06
movups xmm0, xmmword [0x102c1384]
movss xmm1, dword [0x10175770]
movups xmmword [ebp - 0x60], xmm0
movss xmm0, dword [ebp - 0x54]
mulss xmm0, xmm1
cvttss2si edx, xmm0
movss xmm0, dword [ebp - 0x58]
mulss xmm0, xmm1
movzx esi, dl
shl esi, 8
cvttss2si ecx, xmm0
movss xmm0, dword [ebp - 0x5c]
mulss xmm0, xmm1
movzx ecx, cl
or esi, ecx
mov dword [ebp - 0x1c], ecx
shl esi, 8
cvttss2si eax, xmm0
movss xmm0, dword [ebp - 0x60]
movzx eax, al
mov dword [ebp - 0x10], eax
or esi, dword [ebp - 0x10]
mulss xmm0, xmm1
shl esi, 8
cvttss2si eax, xmm0
movzx eax, al
mov dword [ebp - 0x18], eax
or esi, eax
mov eax, dword [0x102c1380]
sub eax, 0
je 0x10105fee
sub eax, 1
je 0x10105fc4
sub eax, 1
jne 0x10106021
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov eax, dword [edi]
movss xmm2, dword [eax - 0xc]
movss xmm1, dword [eax - 8]
movss xmm0, dword [eax - 4]
subss xmm2, dword [eax - 0x18]
subss xmm1, dword [eax - 0x14]
subss xmm0, dword [eax - 0x10]
lea eax, [ebp - 0x28]
push eax
sub esp, 0xc
mov ecx, esp
unpcklps xmm2, xmm1
movss dword [ebp - 0x44], xmm0
mov eax, dword [ebp - 0x44]
movq qword [ecx], xmm2
mov dword [ecx + 8], eax
call fcn.10064c40
mov edx, dword [edi]
add esp, 0x10
mov eax, dword [0x102cf464]
mov ecx, dword [0x102cf4cc]
mov dword [ebp - 0x38], 0xbdcccccd
add ecx, 0x18
movss xmm1, dword [edx - 0x18]
subss xmm1, dword [edx - 0xc]
movss xmm2, dword [edx - 0x14]
subss xmm2, dword [edx - 8]
movss xmm0, dword [edx - 0x10]
subss xmm0, dword [edx - 4]
mulss xmm1, xmm1
mov dword [ebp - 0xa0], 0x3dcccccd
mulss xmm2, xmm2
mov dword [ebp - 0x64], 0
mulss xmm0, xmm0
mov dword [ebp - 0x64], esi
addss xmm2, xmm1
movss xmm3, dword [eax + 0x10]
xorps xmm1, xmm1
mov eax, dword [edx - 0x10]
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x88], eax
addss xmm2, xmm0
mov eax, dword [ebp - 0x38]
movq xmm0, qword [edx - 0x18]
movq qword [ebp - 0x9c], xmm0
movq xmm0, qword [ebp - 0x28]
movq qword [ebp - 0x90], xmm0
xorps xmm0, xmm0
sqrtss xmm1, xmm2
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0xa0]
mov dword [ebp - 0x70], eax
lea eax, [ebp - 0x9c]
push eax
movss xmm2, dword [0x10180ed8]
push dword [ecx + 0xc]
unpcklps xmm0, xmm2
movss dword [ebp - 0x6c], xmm3
addss xmm3, dword [0x1017573c]
movq qword [ebp - 0x84], xmm0
movss xmm0, dword [0x101756dc]
unpcklps xmm1, xmm0
movq qword [ebp - 0x78], xmm1
movss dword [ebp - 0x68], xmm3
call fcn.10103530
jmp 0x10106021
mov ecx, dword [0x102cf478]
mov edx, dword [edi]
push ecx
mov dword [esp], 0x40400000
mov esi, dword [ecx]
push 0
push dword [ebp - 0x1c]
lea eax, [edx - 0xc]
push dword [ebp - 0x10]
push dword [ebp - 0x18]
push eax
lea eax, [edx - 0x18]
push eax
call dword [esi + 0x14]
jmp 0x10106021
mov edx, dword [edi]
push esi
sub esp, 0xc
mov ecx, esp
sub esp, 0xc
movq xmm0, qword [edx - 0xc]
mov eax, dword [edx - 4]
movq qword [ecx], xmm0
movq xmm0, qword [edx - 0x18]
mov dword [ecx + 8], eax
mov ecx, esp
mov eax, dword [edx - 0x10]
movq qword [ecx], xmm0
mov dword [ecx + 8], eax
call fcn.101027c0
add esp, 0x1c
mov esi, dword [ebp - 8]
mov eax, dword [edi - 4]
cmp eax, dword [edi]
je 0x1010602d
mov dword [edi], eax
inc esi
add edi, 0xc
mov dword [ebp - 8], esi
cmp esi, 0x41
jl 0x10105d56
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.10110662
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4