Function at 0x100acf97
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword [0x10216634]
sub esp, 0x1c
cmp byte [eax + 0x19cc], 0
push ebx
push esi
push edi
je 0x100ad26b
mov eax, dword [0x102187c8]
mov ecx, dword [eax]
test ecx, ecx
je 0x100ad26b
mov eax, dword [ecx]
mov eax, dword [eax + 0x270]
call eax
test al, al
je 0x100ad26b
mov esi, dword [0x102187c8]
mov ecx, 0xad2bbff4
mov edi, dword [esi]
call fcn.100c3de0
movss xmm1, dword [eax + edi + 4]
movss xmm0, dword [eax + edi]
mulss xmm0, xmm0
mulss xmm1, xmm1
addss xmm0, xmm1
xorps xmm1, xmm1
cvtps2pd xmm0, xmm0
ucomisd xmm1, xmm0
ja 0x100acefa
sqrtsd xmm0, xmm0
jmp 0x100aceff
call fcn.10187f60
xorps xmm1, xmm1
cvtsd2ss xmm1, xmm0
xorps xmm0, xmm0
ucomiss xmm1, xmm0
lahf
test ah, 0x44
jnp 0x100ad26b
mov ecx, 0xad2bbff4
call fcn.100c3de0
movss xmm1, dword [eax + edi + 4]
movss xmm0, dword [eax + edi]
mulss xmm0, xmm0
mulss xmm1, xmm1
addss xmm0, xmm1
xorps xmm1, xmm1
cvtps2pd xmm0, xmm0
ucomisd xmm1, xmm0
ja 0x100acf49
sqrtsd xmm0, xmm0
jmp 0x100acf4e
call fcn.10187f60
cvtsd2ss xmm0, xmm0
comiss xmm0, dword [0x101ecce8]
jb 0x100ad26b
mov eax, dword [0x10216634]
mov edx, dword [eax + 0x3680]
lea ecx, [eax + 0x3680]
cmp edx, 3
ja case.0x100acf75.0
jmp dword [edx*4 + 0x100ad274]
call fcn.100be310
mov esi, dword [0x102187c8]
mov cl, al
mov eax, dword [0x10216634]
jmp 0x100acf93
mov cl, byte [ecx + 0x20]
test cl, cl
je case.0x100acf75.0
cmp byte [eax + 0x367d], 0
jne 0x100ad26b
mov eax, dword [0x1021663c]
mov ebx, dword [eax + 0x70]
mov eax, dword [ebx]
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov ecx, dword [esi]
mov edi, dword [eax + 0x1c]
mov eax, dword [ecx]
mov eax, dword [eax + 0x28]
call eax
push 0
lea ecx, [esp + 0x1c]
push ecx
push eax
mov ecx, ebx
call edi
mov eax, dword [0x1021663c]
movq xmm0, qword [str.QSPR_MI]
mov esi, dword [eax + 0x38]
mov eax, dword [str.OM_MA]
mov dword [esp + 0x20], eax
mov ax, word [0x101b0040]
movq qword [esp + 0x18], xmm0
mov word [esp + 0x24], ax
test ah, ah
je 0x100ad14d
xor ebx, ebx
cmp dword [0x10217ca4], 2
jl 0x100ad120
movaps xmm2, xmmword [0x101ed000]
mov ebx, 8
movaps xmm3, xmmword [0x101ed430]
movaps xmm1, xmm2
punpckldq xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm1, xmm3
pmuldq xmm0, xmm3
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movaps xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x101ed0a0]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
movaps xmm2, xmmword [0x101ed030]
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
andps xmm1, xmmword [0x101ed130]
movd xmm0, dword [str.QSPR_MI]
packuswb xmm1, xmm1
paddb xmm1, xmmword [str.4444444444444444]
xorps xmm1, xmm0
movaps xmm0, xmm2
movd dword [esp + 0x18], xmm1
movaps xmm1, xmm2
punpckldq xmm1, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm1, xmm3
pmuldq xmm0, xmm3
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movaps xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x101ed0a0]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
andps xmm1, xmmword [0x101ed130]
movd xmm0, dword [esp + 0x1c]
packuswb xmm1, xmm1
paddb xmm1, xmmword [str.4444444444444444]
xorps xmm1, xmm0
movd dword [esp + 0x1c], xmm1
nop dword [eax]
mov eax, 0x92492493
imul ebx
add edx, ebx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov cl, al
shl cl, 3
sub cl, al
mov al, bl
shl cl, 3
sub al, cl
add al, 0x34
xor byte [esp + ebx + 0x18], al
inc ebx
cmp ebx, 0xe
jl 0x100ad120
mov eax, dword [esi]
lea ecx, [esp + 0x18]
push 0
push 1
push 0
mov eax, dword [eax + 0x150]
push ecx
mov ecx, esi
call eax
mov esi, eax
test esi, esi
je 0x100ad26b
mov ecx, dword [0x10216634]
cmp byte [ecx + 0x19cb], 0
jne 0x100ad1a9
movss xmm0, dword [ecx + 0x199f]
sub esp, 0xc
movss dword [esp + 8], xmm0
movss xmm0, dword [ecx + 0x199b]
movss dword [esp + 4], xmm0
movss xmm0, dword [ecx + 0x1997]
jmp 0x100ad25d
mov eax, dword [0x10216630]
mov eax, dword [eax + 0xc]
movss xmm0, dword [eax]
mulss xmm0, dword [ecx + 0x19c7]
movss dword [esp + 0xc], xmm0
addss xmm0, dword [0x101eccd4]
cvtps2pd xmm0, xmm0
call fcn.10187d90
xorps xmm1, xmm1
cvtsd2ss xmm1, xmm0
movss xmm0, dword [esp + 0xc]
addss xmm0, dword [0x101ecc58]
mulss xmm1, dword [0x101ecb34]
addss xmm1, dword [0x101ecb34]
cvtps2pd xmm0, xmm0
movss dword [esp + 0x10], xmm1
call fcn.10187d90
cvtsd2ss xmm0, xmm0
mulss xmm0, dword [0x101ecb34]
addss xmm0, dword [0x101ecb34]
movss dword [esp + 0x14], xmm0
movss xmm0, dword [esp + 0xc]
cvtps2pd xmm0, xmm0
call fcn.10187d90
movss xmm1, dword [esp + 0x10]
sub esp, 0xc
cvtsd2ss xmm0, xmm0
movss dword [esp + 8], xmm1
mulss xmm0, dword [0x101ecb34]
movss xmm1, dword [esp + 0x20]
movss dword [esp + 4], xmm1
addss xmm0, dword [0x101ecb34]
mov eax, dword [esi]
mov ecx, esi
movss dword [esp], xmm0
mov eax, dword [eax + 0x70]
call eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret