Function at 0x100c5990
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov eax, dword [0x100e800c]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x1012c628], 0
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
je 0x100c5c7b
mov eax, dword [ebx + 4]
lea ecx, [ebx + 4]
mov eax, dword [eax + 0x20]
call eax
test eax, eax
je 0x100c5c7b
mov ecx, dword [0x101a9a7c]
push eax
mov edx, dword [ecx]
mov edx, dword [edx + 0x78]
call edx
mov esi, eax
mov dword [ebp - 0x50], esi
test esi, esi
je 0x100c5c7b
mov ecx, dword [ebx + 8]
add ebx, 8
mov dword [ebp - 0x48], ebx
mov edx, dword [ecx + 0x28]
mov ecx, ebx
call edx
imul ecx, eax, 0x10c
lea eax, [ecx + 0x10141f18]
test eax, eax
je 0x100c5c7b
push eax
mov ecx, 0x10141f53
call fcn.100b4840
mov edx, eax
mov dword [ebp - 0x10], edx
test edx, edx
je 0x100c5c7b
xor ebx, ebx
cmp dword [esi + 0x9c], ebx
jle 0x100c5c7b
xor ecx, ecx
lea edi, [edx + 0x440]
mov dword [ebp - 0x14], ecx
mov eax, dword [esi + 0xa0]
add eax, ecx
add eax, esi
je 0x100c5c61
test dword [eax + 0xa0], 0x100
je 0x100c5c61
mov ecx, dword [eax + 4]
cmp ecx, 0xffffffff
je 0x100c5c61
cmp ebx, 0x7f
ja 0x100c5ab8
lea eax, [edi - 0x1c]
test eax, eax
je 0x100c5ab8
movss xmm0, dword [edi - 0x10]
movss xmm1, dword [edi]
movss xmm2, dword [edi + 0x10]
movss dword [ebp - 0x2c], xmm0
movss dword [ebp - 0x28], xmm1
movss dword [ebp - 0x24], xmm2
cmp ecx, 0x7f
ja 0x100c5aea
lea eax, [ecx + ecx*2]
shl eax, 4
add eax, 0x424
add eax, edx
je 0x100c5aea
movss xmm0, dword [eax + 0xc]
movss xmm1, dword [eax + 0x1c]
movss xmm2, dword [eax + 0x2c]
movss dword [ebp - 0x38], xmm0
movss dword [ebp - 0x34], xmm1
movss dword [ebp - 0x30], xmm2
mov edx, dword [0x101a9c60]
mov eax, dword [ebp - 0x3c]
add edx, 0xffffffd5
xor edx, 0x976fd33a
mov ecx, dword [edx + eax]
mov eax, dword [0x101ae588]
cmp ecx, dword [edx + eax]
jne 0x100c5b27
mov ecx, dword [0x101a9b30]
mov eax, dword [ecx]
mov eax, dword [eax + 0x34]
call eax
test eax, eax
jne 0x100c5b27
mov eax, dword [0x1012049c]
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x40]
jmp 0x100c5b32
mov eax, dword [0x1012049c]
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x44]
lea edx, [ebp - 0x60]
mov dword [ebp - 0xc], eax
lea ecx, [ebp - 0x2c]
call fcn.100b19c0
test al, al
je 0x100c5c5e
lea edx, [ebp - 0x58]
lea ecx, [ebp - 0x38]
call fcn.100b19c0
test al, al
je 0x100c5c5e
mov esi, dword [ebp - 0xc]
movd xmm0, dword [ebp + 0xc]
cvtdq2ps xmm0, xmm0
mov eax, dword [esi]
mov ecx, eax
shr ecx, 8
mov dword [ebp - 0x18], ecx
mov ecx, eax
shr ecx, 8
mov dword [ebp - 0x20], ecx
mov ecx, eax
shr ecx, 0x10
mov dword [ebp - 0x4c], ecx
mov ecx, dword [ebp - 0x48]
shr eax, 0x10
mov dword [ebp - 0x1c], eax
movss dword [ebp - 8], xmm0
mov eax, dword [ecx]
mov eax, dword [eax + 0x24]
call eax
test al, al
jne 0x100c5bce
mov eax, dword [esi]
xorps xmm2, xmm2
movss xmm1, dword [ebp - 8]
shr eax, 0x18
maxss xmm1, xmm2
movd xmm0, eax
minss xmm1, dword [0x100dccd8]
mov eax, dword [ebp - 0x4c]
cvtdq2ps xmm0, xmm0
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
mulss xmm1, xmm0
movss dword [ebp - 8], xmm1
movzx eax, byte [0x1012049f]
xorps xmm0, xmm0
mov esi, dword [ebp - 0xc]
mov ecx, dword [0x101a9a50]
movd xmm1, eax
cvttss2si eax, dword [ebp - 8]
cvtdq2ps xmm1, xmm1
movzx eax, al
maxss xmm1, xmm0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
minss xmm1, dword [0x100dccd8]
mulss xmm1, xmm0
cvttss2si eax, xmm1
movzx edx, al
mov eax, dword [ebp - 0x1c]
movzx eax, al
shl edx, 8
or edx, eax
mov eax, dword [ebp - 0x20]
movzx eax, al
shl edx, 8
or edx, eax
mov eax, dword [esi]
mov esi, dword [ecx]
movzx eax, al
shl edx, 8
or edx, eax
mov eax, dword [esi + 0x38]
push edx
call eax
cvttss2si eax, dword [ebp - 0x54]
mov ecx, dword [0x101a9a50]
mov edx, dword [ecx]
push eax
cvttss2si eax, dword [ebp - 0x58]
push eax
cvttss2si eax, dword [ebp - 0x5c]
push eax
cvttss2si eax, dword [ebp - 0x60]
push eax
mov eax, dword [edx + 0x4c]
call eax
mov esi, dword [ebp - 0x50]
mov edx, dword [ebp - 0x10]
add dword [ebp - 0x14], 0xd8
inc ebx
mov ecx, dword [ebp - 0x14]
add edi, 0x30
cmp ebx, dword [esi + 0x9c]
jl 0x100c5a63
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100c8fa5
mov esp, ebp
pop ebp
ret 8