Function at 0x100cbee0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
cmp dword [0x10338d0c], 0
push ebx
push esi
push edi
je 0x100cc18f
mov eax, dword [0x1044f624]
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x100cc18f
xor ebx, ebx
test ecx, ecx
jle 0x100cc18f
xor ecx, ecx
mov dword [ebp - 0x20], ecx
mov edi, dword [eax]
add edi, ecx
mov ecx, dword [edi]
test ecx, ecx
je 0x100cc17c
mov eax, dword [ecx]
mov eax, dword [eax + 0x260]
call eax
test al, al
je 0x100cc177
mov esi, dword [edi]
mov eax, dword [esi + 8]
lea ecx, [esi + 8]
mov eax, dword [eax + 0x28]
call eax
mov edx, dword [0x104571e4]
add edx, 0xffffffdc
xor edx, 0xb3877ec2
lea eax, [eax*4 + 0x10454b8c]
mov dword [ebp - 0x3c], eax
mov eax, dword [0x10338d0c]
mov ecx, dword [edx + esi]
cmp ecx, dword [edx + eax]
jne 0x100cbf7d
mov ecx, dword [0x1044f6b4]
mov eax, dword [ecx]
mov eax, dword [eax + 0x34]
call eax
test eax, eax
je 0x100cc177
cmp dword [0x102c27bc], 0
je 0x100cc177
mov cl, byte [0x102c284f]
mov esi, dword [0x102c284c]
movzx eax, cl
mov dword [ebp - 0x38], eax
movzx eax, cl
mov dword [ebp - 0x34], eax
mov ax, word [0x102c284e]
movzx edx, ax
mov dword [ebp - 0x30], edx
movzx edx, ax
mov dword [ebp - 0x2c], edx
mov edx, esi
shr edx, 8
mov dword [ebp - 0x28], edx
mov edx, esi
shr edx, 8
mov dword [ebp - 0x24], edx
movzx edx, ax
movzx eax, ax
mov dword [ebp - 0x18], eax
movzx eax, cl
mov dword [ebp - 8], esi
shr dword [ebp - 8], 8
mov dword [ebp - 4], esi
shr dword [ebp - 4], 8
cmp byte [0x104574e0], 0
mov dword [ebp - 0x14], eax
movzx eax, cl
mov dword [ebp - 0x10], edx
mov edx, dword [0x102c27bc]
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x1c], eax
jne 0x100cc0d5
mov ecx, dword [0x1044f5e4]
push 0
push 1
push str.Other_textures
mov eax, dword [ecx]
push str.dev_glow_edge_highlight
mov eax, dword [eax + 0x150]
call eax
mov ecx, dword [0x1044f5e4]
push 0
mov dword [0x104576b4], eax
push 1
mov eax, dword [ecx]
push str.Other_textures
push str.dev_glow_color
mov eax, dword [eax + 0x150]
call eax
mov ecx, dword [0x1044f5e4]
push 0
mov dword [0x104576c0], eax
push 1
mov eax, dword [ecx]
push str.Other_textures
push str.dev_glow_health_color
mov eax, dword [eax + 0x150]
call eax
mov ecx, dword [0x104576b4]
mov dword [0x104576b0], eax
push 1
push 0x8000
mov eax, dword [ecx]
mov eax, dword [eax + 0x74]
call eax
mov ecx, dword [0x104576c0]
push 1
push 0x8000
mov eax, dword [ecx]
mov eax, dword [eax + 0x74]
call eax
mov ecx, dword [0x104576b0]
push 1
push 4
mov eax, dword [ecx]
mov eax, dword [eax + 0x74]
call eax
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x24]
mov edx, dword [0x102c27bc]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x38]
mov byte [0x104574e0], 1
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x1c], eax
jmp 0x100cc0d8
mov ecx, dword [ebp - 8]
cmp edx, 1
mov byte [edi + 0x24], 1
sete al
mov byte [edi + 0x26], al
cmp dword [0x102c27bc], 2
seta al
mov byte [edi + 0x25], al
mov eax, dword [0x102c27bc]
cmp eax, 2
jae 0x100cc106
mov edx, dword [ebp - 0x10]
xor eax, eax
mov esi, dword [ebp - 0x14]
jmp 0x100cc115
mov ecx, dword [ebp - 4]
add eax, 0xfffffffe
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0xc], esi
mov esi, dword [ebp - 0x1c]
vmovss xmm3, dword [0x100ea22c]
vxorps xmm0, xmm0, xmm0
mov dword [edi + 0x2c], eax
mov eax, dword [ebp - 0xc]
movzx eax, al
vcvtsi2ss xmm0, xmm0, eax
vdivss xmm2, xmm0, xmm3
vxorps xmm0, xmm0, xmm0
movzx eax, cl
vcvtsi2ss xmm0, xmm0, eax
vdivss xmm1, xmm0, xmm3
vxorps xmm0, xmm0, xmm0
movzx eax, dl
vcvtsi2ss xmm0, xmm0, eax
mov eax, dword [ebp - 0x3c]
vdivss xmm0, xmm0, xmm3
vmovss dword [edi + 0xc], xmm0
vxorps xmm0, xmm0, xmm0
vcvtsi2ss xmm0, xmm0, esi
vdivss xmm0, xmm0, xmm3
vmovss dword [edi + 4], xmm2
vmovss dword [edi + 8], xmm1
vmulss xmm0, xmm0, dword [eax]
vmovss dword [edi + 0x10], xmm0
mov eax, dword [0x1044f624]
mov ecx, dword [ebp - 0x20]
inc ebx
add ecx, 0x38
mov dword [ebp - 0x20], ecx
cmp ebx, dword [eax + 0xc]
jl 0x100cbf15
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret