Function at 0x10104d30
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 [0x102cdf00]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebx + 8], 5
push esi
push edi
mov dword [ebp - 0x34], ecx
jne 0x1010522d
mov eax, dword [0x1019e080]
mov dword [ebp - 8], eax
test eax, eax
je 0x1010522d
mov edx, dword [0x102cf04c]
test dl, 1
jne 0x10104d97
or edx, 1
mov dword [0x102cf04c], edx
mov edx, dword [0x102cf044]
mov dword [0x102cf048], edx
jmp 0x10104d9d
mov edx, dword [0x102cf048]
cmp dword [edx + eax], 0
jne 0x1010522d
mov edx, dword [0x102cf054]
test dl, 1
jne 0x10104dc9
or edx, 1
mov dword [0x102cf054], edx
mov edx, dword [0x102cf040]
mov dword [0x102cf050], edx
jmp 0x10104dcf
mov edx, dword [0x102cf050]
cmp dword [edx + eax], 0
jle 0x1010522d
cmp byte [0x102c0f4c], 0
movss xmm1, dword [0x10174710]
je 0x10104f25
movss xmm0, dword [0x102c0f6c]
mulss xmm0, xmm1
cvttss2si edx, xmm0
movss xmm0, dword [0x102c0f68]
mulss xmm0, xmm1
cvttss2si esi, xmm0
movss xmm0, dword [0x102c0f64]
mulss xmm0, xmm1
mov dword [ebp - 0x10], esi
cvttss2si esi, xmm0
movss xmm0, dword [0x102c0f60]
mulss xmm0, xmm1
mov dword [ebp - 0x14], esi
movd xmm1, dword [0x102c0f70]
mov esi, dword [eax + 0x11c5c]
cvtdq2ps xmm1, xmm1
mulss xmm1, dword [0x1017467c]
movss dword [ebp - 0x18], xmm1
cmp esi, dword [ecx]
jle 0x10104f1b
mov ecx, dword [ebp - 0x10]
lea edi, [esi + esi*4]
movzx eax, dl
movaps xmm2, xmm1
xorps xmm2, xmmword [0x101747e0]
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 [0x102ceeb8]
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 0x10104e90
mov eax, dword [ebp - 8]
mov dword [eax + 0x11c5c], 0
mov eax, dword [eax + 0x11c5c]
cmp eax, dword [ecx]
je 0x10104f31
mov dword [ecx], eax
cmp dword [0x102c0f74], 0
je 0x1010522d
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 0x1010521d
mov ecx, dword [0x102ceeb4]
push esi
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
mov edx, eax
test edx, edx
je 0x10105214
mov esi, dword [0x1019e080]
cmp edx, esi
sete byte [ebp - 9]
je 0x10104fd1
mov eax, dword [0x102cf258]
test al, 1
jne 0x10104fa7
mov ecx, dword [0x102cf250]
or eax, 1
mov dword [0x102cf258], eax
mov dword [0x102cf254], ecx
jmp 0x10104fad
mov ecx, dword [0x102cf254]
mov edx, dword [ecx + edx]
test al, 1
jne 0x10104fc8
mov ecx, dword [0x102cf250]
or eax, 1
mov dword [0x102cf258], eax
mov dword [0x102cf254], ecx
cmp edx, dword [ecx + esi]
je 0x10104fd1
mov al, 1
jmp 0x10104fd3
xor al, al
cmp byte [ebp - 9], 0
je 0x10104fe2
movups xmm0, xmmword [0x102c0f9c]
jmp 0x10104ff6
test al, al
jne 0x10104fef
movups xmm0, xmmword [0x102c0f8c]
jmp 0x10104ff6
movups xmm0, xmmword [0x102c0f7c]
movss xmm1, dword [0x10174710]
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 [0x102c0f78]
sub eax, 0
je 0x101051de
sub eax, 1
je 0x101051b4
sub eax, 1
jne 0x10105211
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.10064800
mov edx, dword [edi]
add esp, 0x10
mov eax, dword [0x102ceea4]
mov ecx, dword [0x102cef0c]
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 [0x1017fee8]
push dword [ecx + 0xc]
unpcklps xmm0, xmm2
movss dword [ebp - 0x6c], xmm3
addss xmm3, dword [0x101746dc]
movq qword [ebp - 0x84], xmm0
movss xmm0, dword [0x1017467c]
unpcklps xmm1, xmm0
movq qword [ebp - 0x78], xmm1
movss dword [ebp - 0x68], xmm3
call fcn.101028c0
jmp 0x10105211
mov ecx, dword [0x102ceeb8]
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 0x10105211
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.10101960
add esp, 0x1c
mov esi, dword [ebp - 8]
mov eax, dword [edi - 4]
cmp eax, dword [edi]
je 0x1010521d
mov dword [edi], eax
inc esi
add edi, 0xc
mov dword [ebp - 8], esi
cmp esi, 0x41
jl 0x10104f46
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.1010f802
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4