Function at 0x10101f60
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, 0x58
mov eax, dword [0x1029ad64]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebx + 8], 5
push esi
push edi
mov edi, ecx
jne 0x10102323
mov esi, dword [0x101cf098]
test esi, esi
je 0x10102323
mov eax, dword [0x1029bcec]
test al, 1
jne 0x10101fbc
or eax, 1
mov dword [0x1029bcec], eax
mov eax, dword [0x1029bce4]
mov dword [0x1029bce8], eax
jmp 0x10101fc1
mov eax, dword [0x1029bce8]
cmp dword [eax + esi], 0
jne 0x10102323
mov eax, dword [0x1029bcf4]
test al, 1
jne 0x10101fe8
or eax, 1
mov dword [0x1029bcf4], eax
mov eax, dword [0x1029bce0]
mov dword [0x1029bcf0], eax
jmp 0x10101fed
mov eax, dword [0x1029bcf0]
cmp dword [eax + esi], 0
jle 0x10102323
cmp byte [0x1028e7e8], 0
movss xmm1, dword [0x1019e868]
je 0x10102150
movss xmm0, dword [0x1028e808]
mulss xmm0, xmm1
cvttss2si ecx, xmm0
movss xmm0, dword [0x1028e7fc]
mulss xmm0, xmm1
cvttss2si edx, xmm0
movss xmm0, dword [0x1028e800]
mulss xmm0, xmm1
cvttss2si eax, xmm0
movss xmm0, dword [0x1028e804]
mulss xmm0, xmm1
mov dword [ebp - 8], eax
movd xmm1, dword [0x1028e80c]
mov eax, dword [esi + 0x11c5c]
cvtdq2ps xmm1, xmm1
mov dword [ebp - 0x10], eax
mulss xmm1, dword [0x1019e7d4]
movss dword [ebp - 0x14], xmm1
cmp eax, dword [edi]
jle 0x10102142
cvttss2si eax, xmm0
movzx ecx, cl
mov dword [ebp - 0x34], ecx
movaps xmm2, xmm1
xorps xmm2, xmmword [0x1019e940]
movzx ecx, al
mov eax, dword [ebp - 8]
mov dword [ebp - 0x38], ecx
movzx ecx, al
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x3c], ecx
movzx ecx, dl
movss dword [ebp - 0x18], xmm2
lea eax, [eax + eax*4]
mov dword [ebp - 0x40], ecx
shl eax, 2
mov dword [ebp - 8], eax
nop
mov ecx, dword [0x1029bb48]
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 - 0x4c]
mov dword [ebp - 0x4c], 0
push eax
lea eax, [ebp - 0x58]
mov dword [ebp - 0x48], 0
push eax
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x44], 0
push eax
mov eax, dword [esi + 0x11c50]
add eax, ecx
movss dword [ebp - 0x58], xmm1
mov ecx, dword [0x1029bb48]
push eax
movss dword [ebp - 0x54], xmm1
movss dword [ebp - 0x50], xmm1
movss dword [ebp - 0x2c], xmm2
movss dword [ebp - 0x28], xmm2
movss dword [ebp - 0x24], xmm2
call edx
mov eax, dword [ebp - 0x10]
sub dword [ebp - 8], 0x14
dec eax
movss xmm1, dword [ebp - 0x14]
movss xmm2, dword [ebp - 0x18]
mov dword [ebp - 0x10], eax
cmp eax, dword [edi]
jg 0x101020b0
mov dword [esi + 0x11c5c], 0
xor eax, eax
jmp 0x10102156
mov eax, dword [esi + 0x11c5c]
cmp eax, dword [edi]
je 0x1010215c
mov dword [edi], eax
cmp dword [0x1028e810], 0
je 0x10102323
xor esi, esi
add edi, 8
mov dword [ebp - 0x10], 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 0x10102313
mov ecx, dword [0x1029bb44]
push esi
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
mov edx, eax
test edx, edx
je 0x1010230e
mov eax, dword [0x101cf098]
cmp edx, eax
sete byte [ebp - 9]
je 0x10102200
mov eax, dword [0x1029e1f8]
test al, 1
jne 0x101021d1
mov ecx, dword [0x1029e1f0]
or eax, 1
mov dword [0x1029e1f8], eax
mov dword [0x1029e1f4], ecx
jmp 0x101021d7
mov ecx, dword [0x1029e1f4]
mov edx, dword [ecx + edx]
test al, 1
jne 0x101021f2
mov ecx, dword [0x1029e1f0]
or eax, 1
mov dword [0x1029e1f8], eax
mov dword [0x1029e1f4], ecx
mov eax, dword [0x101cf098]
cmp edx, dword [ecx + eax]
je 0x10102200
mov al, 1
jmp 0x10102202
xor al, al
cmp byte [ebp - 9], 0
je 0x10102211
movups xmm0, xmmword [0x1028e838]
jmp 0x10102225
test al, al
jne 0x1010221e
movups xmm0, xmmword [0x1028e828]
jmp 0x10102225
movups xmm0, xmmword [0x1028e818]
movss xmm1, dword [0x1019e868]
movups xmmword [ebp - 0x30], xmm0
movss xmm0, dword [ebp - 0x24]
mulss xmm0, xmm1
cvttss2si eax, xmm0
movss xmm0, dword [ebp - 0x30]
mulss xmm0, xmm1
mov dword [ebp - 0x14], eax
cvttss2si edx, xmm0
movss xmm0, dword [ebp - 0x2c]
mulss xmm0, xmm1
mov dword [ebp - 0x18], edx
cvttss2si eax, xmm0
movss xmm0, dword [ebp - 0x28]
mov dword [ebp - 8], eax
mov eax, dword [0x1028e814]
mulss xmm0, xmm1
cvttss2si ecx, xmm0
sub eax, 0
je 0x101022ba
sub eax, 1
jne 0x1010230e
mov ecx, dword [0x1029bb48]
mov edx, dword [edi]
push ecx
mov dword [esp], 0x40400000
push eax
mov esi, dword [ecx]
cvttss2si eax, xmm0
movzx eax, al
push eax
mov eax, dword [ebp - 8]
movzx eax, al
push eax
mov eax, dword [ebp - 0x18]
movzx eax, al
push eax
lea eax, [edx - 0xc]
push eax
lea eax, [edx - 0x18]
push eax
call dword [esi + 0x14]
mov esi, dword [ebp - 0x10]
jmp 0x1010230e
mov eax, dword [ebp - 0x14]
movzx eax, al
shl eax, 8
movzx ecx, cl
or eax, ecx
mov ecx, dword [ebp - 8]
shl eax, 8
movzx ecx, cl
or eax, ecx
movzx ecx, dl
mov edx, dword [edi]
shl eax, 8
or eax, ecx
push eax
movq xmm0, qword [edx - 0xc]
sub esp, 0xc
mov eax, dword [edx - 4]
mov ecx, esp
sub esp, 0xc
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.100ff780
add esp, 0x1c
mov eax, dword [edi - 4]
mov dword [edi], eax
inc esi
add edi, 0xc
mov dword [ebp - 0x10], esi
cmp esi, 0x41
jl 0x10102171
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.10139242
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4