Function at 0x100efb60
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
cmp dword [0x10429d7c], 0
push ebx
push esi
push edi
je 0x100efe00
mov eax, dword [0x10540960]
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x100efe00
xor ebx, ebx
test ecx, ecx
jle 0x100efe00
xor ecx, ecx
mov dword [ebp - 0x1c], ecx
mov edi, dword [eax]
add edi, ecx
mov ecx, dword [edi]
test ecx, ecx
je 0x100efded
mov eax, dword [ecx]
mov eax, dword [eax + 0x260]
call eax
test al, al
je 0x100efde8
mov esi, dword [edi]
mov eax, dword [esi + 8]
lea ecx, [esi + 8]
mov eax, dword [eax + 0x28]
call eax
mov edx, dword [0x1054854c]
add edx, 0xffffffdc
xor edx, 0x14f7a1fc
lea eax, [eax*4 + 0x10545ef0]
mov dword [ebp - 0x38], eax
mov eax, dword [0x10429d7c]
mov ecx, dword [edx + esi]
cmp ecx, dword [edx + eax]
jne 0x100efbfd
mov ecx, dword [0x105409f4]
mov eax, dword [ecx]
mov eax, dword [eax + 0x34]
call eax
test eax, eax
je 0x100efde8
cmp dword [0x103b1b44], 0
je 0x100efde8
mov ax, word [0x103b1bd6]
mov esi, dword [0x103b1bd4]
mov edx, esi
movzx ecx, ah
mov dword [ebp - 0x34], ecx
movzx ecx, ah
mov dword [ebp - 0x30], ecx
movzx ecx, ax
mov dword [ebp - 0x2c], ecx
movzx ecx, ax
mov dword [ebp - 0x28], ecx
mov ecx, esi
shr ecx, 8
mov dword [ebp - 0x24], ecx
mov ecx, esi
shr ecx, 8
mov dword [ebp - 0x20], ecx
movzx ecx, ax
mov dword [ebp - 8], ecx
movzx ecx, ax
mov dword [ebp - 0x14], ecx
movzx ecx, ah
mov dword [ebp - 4], esi
shr dword [ebp - 4], 8
shr edx, 8
cmp byte [0x10548854], 0
movzx eax, ah
mov dword [ebp - 0x10], ecx
mov ecx, dword [0x103b1b44]
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x18], eax
jne 0x100efd4b
mov ecx, dword [0x10540920]
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 [0x10540920]
push 0
mov dword [0x10548b60], 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 [0x10540920]
push 0
mov dword [0x10548b6c], 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 [0x10548b60]
mov dword [0x10548b5c], eax
push 1
push 0x8000
mov eax, dword [ecx]
mov eax, dword [eax + 0x74]
call eax
mov ecx, dword [0x10548b6c]
push 1
push 0x8000
mov eax, dword [ecx]
mov eax, dword [eax + 0x74]
call eax
mov ecx, dword [0x10548b5c]
push 1
push 4
mov eax, dword [ecx]
mov eax, dword [eax + 0x74]
call eax
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0x20]
mov ecx, dword [0x103b1b44]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x34]
mov byte [0x10548854], 1
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x18], eax
cmp ecx, 1
mov byte [edi + 0x24], 1
sete al
mov byte [edi + 0x26], al
cmp dword [0x103b1b44], 2
seta al
mov byte [edi + 0x25], al
mov eax, dword [0x103b1b44]
cmp eax, 2
jae 0x100efd79
mov ecx, dword [ebp - 0xc]
xor eax, eax
mov esi, dword [ebp - 0x10]
jmp 0x100efd8a
mov edx, dword [ebp - 4]
mov ecx, esi
mov esi, dword [ebp - 0x14]
add eax, 0xfffffffe
mov dword [ebp - 8], esi
mov esi, dword [ebp - 0x18]
movss xmm3, dword [0x101d8670]
mov dword [edi + 0x2c], eax
movzx eax, cl
movd xmm2, eax
movzx eax, dl
cvtdq2ps xmm2, xmm2
movd xmm1, eax
mov eax, dword [ebp - 8]
movzx eax, al
cvtdq2ps xmm1, xmm1
movd xmm0, eax
cvtdq2ps xmm0, xmm0
mov eax, dword [ebp - 0x38]
divss xmm2, xmm3
divss xmm0, xmm3
divss xmm1, xmm3
movss dword [edi + 0xc], xmm0
movd xmm0, esi
cvtdq2ps xmm0, xmm0
movss dword [edi + 4], xmm2
divss xmm0, xmm3
movss dword [edi + 8], xmm1
mulss xmm0, dword [eax]
movss dword [edi + 0x10], xmm0
mov eax, dword [0x10540960]
mov ecx, dword [ebp - 0x1c]
inc ebx
add ecx, 0x38
mov dword [ebp - 0x1c], ecx
cmp ebx, dword [eax + 0xc]
jl 0x100efb95
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret