Function at 0x101048c0
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, 0x68
mov eax, dword [0x1030cb40]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebx + 8], 5
mov eax, ecx
push esi
push edi
mov dword [ebp - 0x44], eax
jne 0x10104c46
mov esi, dword [0x1019d07c]
test esi, esi
je 0x10104c46
mov ecx, dword [0x1030daec]
test cl, 1
jne 0x10104924
or ecx, 1
mov dword [0x1030daec], ecx
mov ecx, dword [0x1030dae4]
mov dword [0x1030dae8], ecx
jmp 0x1010492a
mov ecx, dword [0x1030dae8]
cmp dword [ecx + esi], 0
jne 0x10104c46
mov ecx, dword [0x1030daf4]
test cl, 1
jne 0x10104956
or ecx, 1
mov dword [0x1030daf4], ecx
mov ecx, dword [0x1030dae0]
mov dword [0x1030daf0], ecx
jmp 0x1010495c
mov ecx, dword [0x1030daf0]
cmp dword [ecx + esi], 0
jle 0x10104c46
cmp byte [0x102ff5c4], 0
movss xmm1, dword [0x1017156c]
je 0x10104ab9
movss xmm0, dword [0x102ff5e4]
mulss xmm0, xmm1
cvttss2si ecx, xmm0
movss xmm0, dword [0x102ff5e0]
mulss xmm0, xmm1
cvttss2si edx, xmm0
movss xmm0, dword [0x102ff5dc]
mulss xmm0, xmm1
cvttss2si edi, xmm0
movss xmm0, dword [0x102ff5d8]
mulss xmm0, xmm1
mov dword [ebp - 8], edi
movd xmm1, dword [0x102ff5e8]
mov edi, dword [esi + 0x11c5c]
cvtdq2ps xmm1, xmm1
mulss xmm1, dword [0x101714d8]
movss dword [ebp - 0x10], xmm1
cmp edi, dword [eax]
jle 0x10104aaf
movzx eax, cl
movaps xmm2, xmm1
mov ecx, dword [ebp - 8]
xorps xmm2, xmmword [0x10171640]
mov dword [ebp - 0x34], eax
movzx eax, dl
mov dword [ebp - 0x38], eax
movzx eax, cl
cvttss2si ecx, xmm0
mov dword [ebp - 0x3c], eax
movss dword [ebp - 0x14], xmm2
movzx eax, cl
mov dword [ebp - 0x40], eax
lea eax, [edi + edi*4]
shl eax, 2
mov dword [ebp - 8], eax
nop word [eax + eax]
mov ecx, dword [0x1030d948]
push ecx
mov dword [esp], 0x40800000
push dword [ebp - 0x34]
mov eax, dword [ecx]
push dword [ebp - 0x38]
mov ecx, dword [ebp - 8]
push dword [ebp - 0x3c]
mov edx, dword [eax + 4]
add ecx, 0xffffffec
push dword [ebp - 0x40]
lea eax, [ebp - 0x50]
mov dword [ebp - 0x50], 0
push eax
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x4c], 0
push eax
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x48], 0
push eax
mov eax, dword [esi + 0x11c50]
add eax, ecx
movss dword [ebp - 0x5c], xmm1
mov ecx, dword [0x1030d948]
push eax
movss dword [ebp - 0x58], xmm1
movss dword [ebp - 0x54], xmm1
movss dword [ebp - 0x2c], xmm2
movss dword [ebp - 0x28], xmm2
movss dword [ebp - 0x24], xmm2
call edx
mov eax, dword [ebp - 0x44]
dec edi
sub dword [ebp - 8], 0x14
movss xmm1, dword [ebp - 0x10]
movss xmm2, dword [ebp - 0x14]
cmp edi, dword [eax]
jg 0x10104a20
mov dword [esi + 0x11c5c], 0
mov ecx, dword [esi + 0x11c5c]
cmp ecx, dword [eax]
je 0x10104ac5
mov dword [eax], ecx
cmp dword [0x102ff5f0], 0
je 0x10104c46
xor esi, esi
lea edi, [eax + 8]
mov dword [ebp - 8], esi
nop word [eax + eax]
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 0x10104c36
mov ecx, dword [0x1030d944]
push esi
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
mov edx, eax
test edx, edx
je 0x10104c2d
mov esi, dword [0x1019d07c]
cmp edx, esi
sete byte [ebp - 9]
je 0x10104b6b
mov eax, dword [0x1030dcf8]
test al, 1
jne 0x10104b41
mov ecx, dword [0x1030dcf0]
or eax, 1
mov dword [0x1030dcf8], eax
mov dword [0x1030dcf4], ecx
jmp 0x10104b47
mov ecx, dword [0x1030dcf4]
mov edx, dword [ecx + edx]
test al, 1
jne 0x10104b62
mov ecx, dword [0x1030dcf0]
or eax, 1
mov dword [0x1030dcf8], eax
mov dword [0x1030dcf4], ecx
cmp edx, dword [ecx + esi]
je 0x10104b6b
mov al, 1
jmp 0x10104b6d
xor al, al
cmp byte [ebp - 9], 0
je 0x10104b7c
movups xmm0, xmmword [0x102ff618]
jmp 0x10104b90
test al, al
jne 0x10104b89
movups xmm0, xmmword [0x102ff608]
jmp 0x10104b90
movups xmm0, xmmword [0x102ff5f8]
movss xmm1, dword [0x1017156c]
movups xmmword [ebp - 0x30], xmm0
mov esi, dword [edi]
movss xmm0, dword [ebp - 0x24]
mulss xmm0, xmm1
cvttss2si ecx, xmm0
movss xmm0, dword [ebp - 0x28]
mulss xmm0, xmm1
movzx ecx, cl
shl ecx, 8
cvttss2si eax, xmm0
movss xmm0, dword [ebp - 0x2c]
mulss xmm0, xmm1
mov dword [ebp - 0x14], eax
cvttss2si eax, xmm0
movss xmm0, dword [ebp - 0x30]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x14]
mulss xmm0, xmm1
movzx eax, al
or ecx, eax
mov eax, dword [ebp - 0x10]
shl ecx, 8
cvttss2si edx, xmm0
movzx eax, al
or ecx, eax
shl ecx, 8
movq xmm0, qword [esi - 0xc]
movzx eax, dl
or ecx, eax
mov eax, dword [esi - 4]
push ecx
sub esp, 0xc
mov ecx, esp
sub esp, 0xc
movq qword [ecx], xmm0
movq xmm0, qword [esi - 0x18]
mov dword [ecx + 8], eax
mov ecx, esp
mov eax, dword [esi - 0x10]
movq qword [ecx], xmm0
mov dword [ecx + 8], eax
call fcn.101013b0
mov esi, dword [ebp - 8]
add esp, 0x1c
mov eax, dword [edi - 4]
cmp eax, dword [edi]
je 0x10104c36
mov dword [edi], eax
inc esi
add edi, 0xc
mov dword [ebp - 8], esi
cmp esi, 0x41
jl 0x10104ae0
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.1010f522
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4