Function at 0x100f81e0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x1024b8c0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 5
push esi
push edi
mov edi, ecx
jne 0x100f8595
mov esi, dword [0x1018c07c]
test esi, esi
je 0x100f8595
mov eax, dword [0x1024c85c]
test al, 1
jne 0x100f8229
or eax, 1
mov dword [0x1024c85c], eax
mov eax, dword [0x1024c854]
mov dword [0x1024c858], eax
jmp 0x100f822e
mov eax, dword [0x1024c858]
cmp dword [eax + esi], 0
jne 0x100f8595
mov eax, dword [0x1024c864]
test al, 1
jne 0x100f8255
or eax, 1
mov dword [0x1024c864], eax
mov eax, dword [0x1024c850]
mov dword [0x1024c860], eax
jmp 0x100f825a
mov eax, dword [0x1024c860]
cmp dword [eax + esi], 0
jle 0x100f8595
cmp byte [0x10254930], 0
je 0x100f83bc
movss xmm1, dword [0x101676b0]
movss xmm0, dword [0x10254950]
mulss xmm0, xmm1
cvttss2si ecx, xmm0
movss xmm0, dword [0x1025494c]
mulss xmm0, xmm1
cvttss2si edx, xmm0
movss xmm0, dword [0x10254948]
mulss xmm0, xmm1
cvttss2si eax, xmm0
movss xmm0, dword [0x10254944]
mulss xmm0, xmm1
mov dword [ebp - 8], eax
movd xmm1, dword [0x10254954]
mov eax, dword [esi + 0x11c5c]
cvtdq2ps xmm1, xmm1
mov dword [ebp - 0x10], eax
mulss xmm1, dword [0x10167618]
movss dword [ebp - 0x18], xmm1
cmp eax, dword [edi]
jle 0x100f83b2
movzx ecx, cl
lea eax, [eax + eax*4]
mov dword [ebp - 0x20], ecx
movaps xmm2, xmm1
xorps xmm2, xmmword [0x10167770]
movzx ecx, dl
mov edx, dword [ebp - 8]
mov dword [ebp - 0x24], ecx
movzx ecx, dl
cvttss2si edx, xmm0
mov dword [ebp - 0x28], ecx
shl eax, 2
mov dword [ebp - 8], eax
movss dword [ebp - 0x1c], xmm2
movzx ecx, dl
mov dword [ebp - 0x14], ecx
nop dword [eax + eax]
mov ecx, dword [0x1024c6c8]
push ecx
mov dword [esp], 0x40800000
push dword [ebp - 0x20]
mov eax, dword [ecx]
push dword [ebp - 0x24]
mov ecx, dword [ebp - 8]
push dword [ebp - 0x28]
mov edx, dword [eax + 4]
add ecx, 0xffffffec
push dword [ebp - 0x14]
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 [0x1024c6c8]
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 - 0x10]
sub dword [ebp - 8], 0x14
dec eax
movss xmm1, dword [ebp - 0x18]
movss xmm2, dword [ebp - 0x1c]
mov dword [ebp - 0x10], eax
cmp eax, dword [edi]
jg 0x100f8320
mov dword [esi + 0x11c5c], 0
mov eax, dword [esi + 0x11c5c]
cmp eax, dword [edi]
je 0x100f83c8
mov dword [edi], eax
cmp dword [0x10254958], 0
je 0x100f8595
xor esi, esi
add edi, 8
mov dword [ebp - 8], esi
nop dword [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 0x100f8585
mov ecx, dword [0x1024c6c4]
push esi
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
mov edx, eax
test edx, edx
je 0x100f857c
mov eax, dword [0x1018c07c]
cmp edx, eax
sete byte [ebp - 9]
je 0x100f846f
mov eax, dword [0x1024ca88]
test al, 1
jne 0x100f8440
mov ecx, dword [0x1024ca80]
or eax, 1
mov dword [0x1024ca88], eax
mov dword [0x1024ca84], ecx
jmp 0x100f8446
mov ecx, dword [0x1024ca84]
mov edx, dword [ecx + edx]
test al, 1
jne 0x100f8461
mov ecx, dword [0x1024ca80]
or eax, 1
mov dword [0x1024ca88], eax
mov dword [0x1024ca84], ecx
mov eax, dword [0x1018c07c]
cmp edx, dword [ecx + eax]
je 0x100f846f
mov al, 1
jmp 0x100f8471
xor al, al
cmp byte [ebp - 9], 0
je 0x100f8480
movups xmm2, xmmword [0x10254980]
jmp 0x100f8494
test al, al
jne 0x100f848d
movups xmm2, xmmword [0x10254970]
jmp 0x100f8494
movups xmm2, xmmword [0x10254960]
movss xmm1, dword [0x101676b0]
movaps xmm0, xmm2
shufps xmm0, xmm2, 0xff
mulss xmm0, xmm1
cvttss2si eax, xmm0
movaps xmm0, xmm2
shufps xmm0, xmm2, 0xaa
mulss xmm0, xmm1
mov dword [ebp - 0x14], eax
cvttss2si ecx, xmm0
movaps xmm0, xmm2
shufps xmm0, xmm2, 0x55
mulss xmm2, xmm1
mov dword [ebp - 0x1c], ecx
mulss xmm0, xmm1
cvttss2si eax, xmm2
cvttss2si edx, xmm0
mov dword [ebp - 0x10], eax
mov eax, dword [0x1025495c]
mov dword [ebp - 0x18], edx
sub eax, 0
je 0x100f8528
sub eax, 1
jne 0x100f857c
mov ecx, dword [0x1024c6c8]
mov edx, dword [edi]
push ecx
mov dword [esp], 0x40400000
mov esi, dword [ecx]
push eax
mov eax, dword [ebp - 0x1c]
movzx eax, al
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 - 8]
jmp 0x100f857c
mov eax, dword [ebp - 0x14]
movzx eax, al
shl eax, 8
movzx ecx, cl
or eax, ecx
movzx ecx, dl
mov edx, dword [edi]
shl eax, 8
or eax, ecx
mov ecx, dword [ebp - 0x10]
shl eax, 8
movq xmm0, qword [edx - 0xc]
movzx ecx, cl
or eax, ecx
push eax
mov eax, dword [edx - 4]
sub esp, 0xc
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.100f5c00
add esp, 0x1c
mov eax, dword [edi - 4]
cmp eax, dword [edi]
je 0x100f8585
mov dword [edi], eax
inc esi
add edi, 0xc
mov dword [ebp - 8], esi
cmp esi, 0x41
jl 0x100f83e0
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.10103042
mov esp, ebp
pop ebp
ret 4