Function at 0x10104090
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 [0x103250c0]
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 0x10104416
mov esi, dword [0x1019e080]
test esi, esi
je 0x10104416
mov ecx, dword [0x1032606c]
test cl, 1
jne 0x101040f4
or ecx, 1
mov dword [0x1032606c], ecx
mov ecx, dword [0x10326064]
mov dword [0x10326068], ecx
jmp 0x101040fa
mov ecx, dword [0x10326068]
cmp dword [ecx + esi], 0
jne 0x10104416
mov ecx, dword [0x10326074]
test cl, 1
jne 0x10104126
or ecx, 1
mov dword [0x10326074], ecx
mov ecx, dword [0x10326060]
mov dword [0x10326070], ecx
jmp 0x1010412c
mov ecx, dword [0x10326070]
cmp dword [ecx + esi], 0
jle 0x10104416
cmp byte [0x10317acc], 0
movss xmm1, dword [0x1017256c]
je 0x10104289
movss xmm0, dword [0x10317aec]
mulss xmm0, xmm1
cvttss2si ecx, xmm0
movss xmm0, dword [0x10317ae8]
mulss xmm0, xmm1
cvttss2si edx, xmm0
movss xmm0, dword [0x10317ae4]
mulss xmm0, xmm1
cvttss2si edi, xmm0
movss xmm0, dword [0x10317ae0]
mulss xmm0, xmm1
mov dword [ebp - 8], edi
movd xmm1, dword [0x10317af0]
mov edi, dword [esi + 0x11c5c]
cvtdq2ps xmm1, xmm1
mulss xmm1, dword [0x101724d8]
movss dword [ebp - 0x10], xmm1
cmp edi, dword [eax]
jle 0x1010427f
movzx eax, cl
movaps xmm2, xmm1
mov ecx, dword [ebp - 8]
xorps xmm2, xmmword [0x10172640]
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 [0x10325ec8]
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 [0x10325ec8]
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 0x101041f0
mov dword [esi + 0x11c5c], 0
mov ecx, dword [esi + 0x11c5c]
cmp ecx, dword [eax]
je 0x10104295
mov dword [eax], ecx
cmp dword [0x10317af8], 0
je 0x10104416
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 0x10104406
mov ecx, dword [0x10325ec4]
push esi
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
mov edx, eax
test edx, edx
je 0x101043fd
mov esi, dword [0x1019e080]
cmp edx, esi
sete byte [ebp - 9]
je 0x1010433b
mov eax, dword [0x10326278]
test al, 1
jne 0x10104311
mov ecx, dword [0x10326270]
or eax, 1
mov dword [0x10326278], eax
mov dword [0x10326274], ecx
jmp 0x10104317
mov ecx, dword [0x10326274]
mov edx, dword [ecx + edx]
test al, 1
jne 0x10104332
mov ecx, dword [0x10326270]
or eax, 1
mov dword [0x10326278], eax
mov dword [0x10326274], ecx
cmp edx, dword [ecx + esi]
je 0x1010433b
mov al, 1
jmp 0x1010433d
xor al, al
cmp byte [ebp - 9], 0
je 0x1010434c
movups xmm0, xmmword [0x10317b20]
jmp 0x10104360
test al, al
jne 0x10104359
movups xmm0, xmmword [0x10317b10]
jmp 0x10104360
movups xmm0, xmmword [0x10317b00]
movss xmm1, dword [0x1017256c]
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.10100b80
mov esi, dword [ebp - 8]
add esp, 0x1c
mov eax, dword [edi - 4]
cmp eax, dword [edi]
je 0x10104406
mov dword [edi], eax
inc esi
add edi, 0xc
mov dword [ebp - 8], esi
cmp esi, 0x41
jl 0x101042b0
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.1010f972
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4