Function at 0x100ea270
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xdc
mov eax, dword [0x10227800]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 5
mov eax, ecx
mov dword [ebp - 0x28], eax
jne 0x100ea76c
push esi
mov esi, dword [0x101bb07c]
test esi, esi
je 0x100ea76b
mov ecx, dword [0x102287cc]
test cl, 1
jne 0x100ea2c3
or ecx, 1
mov dword [0x102287cc], ecx
mov ecx, dword [0x102287c4]
mov dword [0x102287c8], ecx
jmp 0x100ea2c9
mov ecx, dword [0x102287c8]
cmp dword [ecx + esi], 0
jne 0x100ea76b
mov ecx, dword [0x102287d4]
test cl, 1
jne 0x100ea2f5
or ecx, 1
mov dword [0x102287d4], ecx
mov ecx, dword [0x102287c0]
mov dword [0x102287d0], ecx
jmp 0x100ea2fb
mov ecx, dword [0x102287d0]
cmp dword [ecx + esi], 0
jle 0x100ea76b
cmp byte [0x10230738], 0
push edi
je 0x100ea459
movss xmm1, dword [0x101637b8]
movss xmm0, dword [0x10230758]
mulss xmm0, xmm1
cvttss2si ecx, xmm0
movss xmm0, dword [0x10230754]
mulss xmm0, xmm1
cvttss2si edx, xmm0
movss xmm0, dword [0x10230750]
mulss xmm0, xmm1
cvttss2si edi, xmm0
movss xmm0, dword [0x1023074c]
mulss xmm0, xmm1
mov dword [ebp - 0x10], edi
movd xmm1, dword [0x1023075c]
mov edi, dword [esi + 0x11c5c]
cvtdq2ps xmm1, xmm1
mulss xmm1, dword [0x10163720]
movss dword [ebp - 0x1c], xmm1
cmp edi, dword [eax]
jle 0x100ea44f
movzx eax, cl
movaps xmm2, xmm1
mov ecx, dword [ebp - 0x10]
xorps xmm2, xmmword [0x10163880]
mov dword [ebp - 0x18], eax
movzx eax, dl
mov dword [ebp - 0x20], eax
movzx eax, cl
cvttss2si ecx, xmm0
mov dword [ebp - 0x10], eax
movss dword [ebp - 0x14], xmm2
movzx eax, cl
mov dword [ebp - 0x24], eax
lea eax, [edi + edi*4]
shl eax, 2
mov dword [ebp - 0xc], eax
nop word [eax + eax]
mov ecx, dword [0x10228634]
push ecx
mov dword [esp], 0x40800000
push dword [ebp - 0x18]
mov eax, dword [ecx]
push dword [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
push dword [ebp - 0x10]
mov edx, dword [eax + 4]
add ecx, 0xffffffec
push dword [ebp - 0x24]
lea eax, [ebp - 0x34]
mov dword [ebp - 0x34], 0
push eax
lea eax, [ebp - 0x40]
mov dword [ebp - 0x30], 0
push eax
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x2c], 0
push eax
mov eax, dword [esi + 0x11c50]
add eax, ecx
movss dword [ebp - 0x40], xmm1
mov ecx, dword [0x10228634]
push eax
movss dword [ebp - 0x3c], xmm1
movss dword [ebp - 0x38], xmm1
movss dword [ebp - 0x4c], xmm2
movss dword [ebp - 0x48], xmm2
movss dword [ebp - 0x44], xmm2
call edx
mov eax, dword [ebp - 0x28]
dec edi
sub dword [ebp - 0xc], 0x14
movss xmm1, dword [ebp - 0x1c]
movss xmm2, dword [ebp - 0x14]
cmp edi, dword [eax]
jg 0x100ea3c0
mov dword [esi + 0x11c5c], 0
mov ecx, dword [esi + 0x11c5c]
cmp ecx, dword [eax]
je 0x100ea465
mov dword [eax], ecx
cmp dword [0x10230760], 0
je 0x100ea76a
xor esi, esi
lea edi, [eax + 8]
mov dword [ebp - 0xc], 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 0x100ea75a
mov ecx, dword [0x10228630]
push esi
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
mov edx, eax
test edx, edx
je 0x100ea751
mov eax, dword [0x101bb07c]
cmp edx, eax
sete byte [ebp - 5]
je 0x100ea50f
mov eax, dword [0x102289d8]
test al, 1
jne 0x100ea4e0
mov ecx, dword [0x102289d0]
or eax, 1
mov dword [0x102289d8], eax
mov dword [0x102289d4], ecx
jmp 0x100ea4e6
mov ecx, dword [0x102289d4]
mov edx, dword [ecx + edx]
test al, 1
jne 0x100ea501
mov ecx, dword [0x102289d0]
or eax, 1
mov dword [0x102289d8], eax
mov dword [0x102289d4], ecx
mov eax, dword [0x101bb07c]
cmp edx, dword [ecx + eax]
je 0x100ea50f
mov al, 1
jmp 0x100ea511
xor al, al
cmp byte [ebp - 5], 0
je 0x100ea520
movups xmm2, xmmword [0x10230788]
jmp 0x100ea534
test al, al
jne 0x100ea52d
movups xmm2, xmmword [0x10230778]
jmp 0x100ea534
movups xmm2, xmmword [0x10230768]
movss xmm1, dword [0x101637b8]
movaps xmm0, xmm2
shufps xmm0, xmm2, 0xff
mulss xmm0, xmm1
cvttss2si ecx, xmm0
movaps xmm0, xmm2
shufps xmm0, xmm2, 0xaa
mulss xmm0, xmm1
mov dword [ebp - 0x1c], ecx
cvttss2si edx, xmm0
movaps xmm0, xmm2
shufps xmm0, xmm2, 0x55
mulss xmm0, xmm1
mov dword [ebp - 0x14], edx
mulss xmm2, xmm1
cvttss2si eax, xmm0
mov dword [ebp - 0x18], eax
cvttss2si eax, xmm2
mov dword [ebp - 0x10], eax
mov eax, dword [0x10230764]
sub eax, 0
je 0x100ea5ef
sub eax, 1
je 0x100ea5b3
sub eax, 1
jne 0x100ea751
mov edx, dword [edi]
mov ecx, dword [0x10228618]
push eax
lea eax, [edx - 0xc]
mov esi, dword [ecx]
push eax
lea eax, [edx - 0x18]
push eax
call dword [esi + 0x1c]
mov esi, dword [ebp - 0xc]
jmp 0x100ea751
mov ecx, dword [0x10228634]
mov eax, dword [ebp - 0x14]
mov edx, dword [edi]
push ecx
mov esi, dword [ecx]
mov dword [esp], 0x40400000
movzx eax, al
push 0
push eax
mov eax, dword [ebp - 0x18]
movzx eax, al
push eax
mov eax, dword [ebp - 0x10]
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 - 0xc]
jmp 0x100ea751
movzx ecx, cl
xorps xmm0, xmm0
movzx eax, dl
shl ecx, 8
or ecx, eax
mov dword [ebp - 0x50], 0
mov eax, dword [ebp - 0x18]
mov edx, ecx
movzx eax, al
mov dword [ebp - 0x14], ecx
mov ecx, dword [edi]
movups xmmword [ebp - 0xd8], xmm0
shl edx, 8
or edx, eax
mov dword [ebp - 0xa4], 0
mov eax, dword [ecx - 0x10]
mov dword [ebp - 0xc0], eax
mov eax, dword [ecx - 4]
movups xmmword [ebp - 0x60], xmm0
mov dword [ebp - 0xb4], eax
movq xmm0, qword [ecx - 0x18]
mov eax, dword [ebp - 0x1c]
movq qword [ebp - 0xc8], xmm0
movq xmm0, qword [ecx - 0xc]
movzx eax, al
movq qword [ebp - 0xbc], xmm0
mov ecx, dword [0x1022866c]
mov dword [ebp - 0xa8], 0xffffffff
movd xmm0, eax
mov eax, dword [ebp - 0x10]
cvtdq2ps xmm0, xmm0
movzx eax, al
mov dword [ebp - 0xdc], 0
mov dword [ebp - 0xac], 0x1017725c
mov dword [ebp - 0xb0], 0xffffffff
mov dword [ebp - 0x9c], 0x40400000
movss dword [ebp - 0x88], xmm0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movzx eax, dl
lea edx, [ebp - 0xdc]
mov dword [ebp - 0x90], 0x3dcccccd
mov dword [ebp - 0xa0], 0
mov dword [ebp - 0x8c], 0x3f800000
mov dword [ebp - 0x68], 2
movss dword [ebp - 0x78], xmm0
movd xmm0, eax
mov eax, dword [ebp - 0x14]
cvtdq2ps xmm0, xmm0
movzx eax, al
mov byte [ebp - 0x6c], 1
mov dword [ebp - 0x84], 0x3f800000
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x7c], 0
movss dword [ebp - 0x74], xmm0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
mov dword [ebp - 0x98], 0x40400000
mov dword [ebp - 0x94], 0x40400000
mov dword [ebp - 0x64], 0x304
push edx
movss dword [ebp - 0x70], xmm0
mov eax, dword [ecx]
mov eax, dword [eax + 0x30]
call eax
test eax, eax
je 0x100ea751
mov ecx, dword [0x1022866c]
push eax
mov edx, dword [ecx]
call dword [edx + 0x18]
mov eax, dword [edi - 4]
cmp eax, dword [edi]
je 0x100ea75a
mov dword [edi], eax
inc esi
add edi, 0xc
mov dword [ebp - 0xc], esi
cmp esi, 0x41
jl 0x100ea480
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100f54de
mov esp, ebp
pop ebp
ret 4