Function at 0x40ac50
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x80
mov eax, dword [0x4ba00c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebx + 8]
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x80], eax
mov eax, dword [ebx + 0x10]
mov dword [ebp - 0x7c], eax
mov eax, dword [0x4d3fd8]
test byte [edi + 8], 0x42
mov dword [ebp - 0x48], edx
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x4c], eax
jne 0x40b717
cmp byte [edi + 0xa8], 0
jg 0x40b717
cmp byte [edi + 0xa9], 0
jg 0x40b717
cmp byte [edi + 0x8f], 0
je 0x40b717
movss xmm2, dword [eax + 0x3bcc]
xor edx, edx
movss xmm0, dword [edi + 0x48]
movaps xmm1, xmm2
addss xmm0, dword [0x4afcf8]
mulss xmm2, dword [0x4afca8]
mov esi, 4
mov cl, byte [eax + 0x5d]
mulss xmm1, dword [0x4afd04]
test cl, cl
mov byte [ebp - 0x27], 0
addss xmm0, xmm2
cmovne edx, esi
mov dword [ebp - 0x78], edx
maxss xmm1, xmm0
cvttss2si eax, xmm1
movd xmm0, eax
cvtdq2ps xmm0, xmm0
mulss xmm0, dword [0x4afcdc]
cvttss2si esi, xmm0
mov dword [ebp - 0x74], esi
je 0x40ad31
movss xmm0, dword [0x4afd50]
jmp 0x40ad34
xorps xmm0, xmm0
movss dword [ebp - 0x44], xmm0
movss xmm0, dword [0x4afdc8]
movss dword [ebp - 0x3c], xmm0
movss dword [ebp - 0x40], xmm0
movss dword [ebp - 0x50], xmm0
movss dword [ebp - 0x30], xmm0
mov dword [edi + 0x12c], 1
call fcn.0040ee30
xor edx, edx
mov dword [ebp - 0x2c], edx
cmp dword [ebx + 0xc], edx
jle 0x40b1c4
movss xmm0, dword [edi + 0x10]
lea ecx, [edx + edx*2]
movss xmm1, dword [edi + 0x14]
movaps xmm3, xmm0
addss xmm3, dword [edi + 0x18]
movss xmm2, dword [edi + 0x1c]
xorps xmm6, xmm6
addss xmm2, xmm1
mov dword [ebp - 0x20], ecx
cvtsi2ss xmm6, esi
subss xmm3, xmm0
subss xmm2, xmm1
mulss xmm3, dword [ecx*8 + 0x4ab718]
mulss xmm2, dword [ecx*8 + 0x4ab71c]
addss xmm3, xmm0
movss xmm0, dword [ecx*8 + 0x4ab720]
movaps xmm5, xmm0
addss xmm2, xmm1
mulss xmm5, xmm6
movss xmm1, dword [ecx*8 + 0x4ab724]
movaps xmm4, xmm1
mulss xmm4, xmm6
addss xmm5, xmm3
movss xmm6, dword [ebp - 0x44]
mulss xmm0, xmm6
mulss xmm1, xmm6
addss xmm4, xmm2
subss xmm3, xmm0
movss dword [ebp - 0x60], xmm5
subss xmm2, xmm1
movss dword [ebp - 0x5c], xmm4
comiss xmm3, xmm5
movss dword [ebp - 0x68], xmm3
movss dword [ebp - 0x64], xmm2
jbe 0x40ae1c
movss dword [ebp - 0x68], xmm5
movss dword [ebp - 0x60], xmm3
comiss xmm2, xmm4
jbe 0x40ae2b
movss dword [ebp - 0x64], xmm4
movss dword [ebp - 0x5c], xmm2
mov ecx, dword [edi + 0xc8]
mov esi, 4
mov eax, dword [edi + 0xd0]
lea edi, [ebp - 0x24]
mov dword [ebp - 0x24], edx
mov edx, dword [eax + ecx*4 - 4]
not edx
nop dword [eax + eax]
movzx eax, byte [edi]
lea edi, [edi + 1]
movzx ecx, dl
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x4ab778]
sub esi, 1
jne 0x40ae50
mov eax, dword [0x4d3fd8]
not edx
mov esi, dword [ebp - 0x74]
mov dword [ebp - 0x34], edx
cmp dword [eax + 0x3e50], edx
jne 0x40ae9b
push ecx
push dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x34]
mov edx, 4
call fcn.00415420
mov eax, dword [0x4d3fd8]
add esp, 8
mov edx, dword [ebp - 0x34]
cmp dword [eax + 0x3e68], edx
jne 0x40aea9
mov dword [eax + 0x3e6c], edx
cmp dword [eax + 0x3e90], edx
jne 0x40aeb8
mov byte [eax + 0x3e94], 1
push 0x40800
lea eax, [ebp - 0x25]
push eax
lea eax, [ebp - 0x26]
push eax
lea ecx, [ebp - 0x68]
call fcn.00427e80
mov cl, byte [ebp - 0x26]
add esp, 0xc
test cl, cl
jne 0x40aee2
mov al, byte [ebp - 0x25]
test al, al
je 0x40b177
mov edx, dword [ebp - 0x2c]
mov eax, edx
mov ecx, dword [ebp - 0x4c]
not eax
and eax, 1
add eax, 5
mov dword [ecx + 0x4154], eax
mov al, byte [ebp - 0x25]
test al, al
je 0x40b17f
cmp word [ecx + 0x367a], 2
jne 0x40af5b
test edx, edx
jne 0x40af5b
push dword [ebp - 0x48]
mov edi, dword [ebp - 0x38]
lea ecx, [ebp - 0x70]
mov edx, edi
call fcn.0040a570
add esp, 4
mov byte [ebp - 0x27], 1
xor edx, edx
xor ecx, ecx
movss xmm0, dword [eax]
movss dword [ebp - 0x50], xmm0
movss xmm0, dword [eax + 4]
movss dword [ebp - 0x30], xmm0
call fcn.00405400
mov edx, dword [ebp - 0x2c]
cmp byte [ebp - 0x25], 0
je 0x40b199
mov ecx, 0x20
jmp 0x40b1a4
mov edx, dword [ebp - 0x20]
movss xmm3, dword [0x4afcf8]
mov edi, dword [ebx + 0x14]
movss xmm2, dword [0x4afde4]
movss xmm1, dword [edx*8 + 0x4ab71c]
ucomiss xmm1, xmm3
lahf
test ah, 0x44
jp 0x40af8a
movss xmm6, dword [edi + 4]
jmp 0x40af8d
movaps xmm6, xmm2
movss xmm0, dword [edx*8 + 0x4ab718]
ucomiss xmm0, xmm3
lahf
test ah, 0x44
jp 0x40afa5
movss xmm5, dword [edi]
jmp 0x40afa8
movaps xmm5, xmm2
xorps xmm2, xmm2
ucomiss xmm1, xmm2
movss xmm1, dword [0x4afdc8]
lahf
test ah, 0x44
jp 0x40afc3
movss xmm7, dword [edi + 0xc]
jmp 0x40afc6
movaps xmm7, xmm1
ucomiss xmm0, xmm2
lahf
test ah, 0x44
jp 0x40afdb
movss xmm0, dword [edi + 8]
movss dword [ebp - 0x34], xmm0
jmp 0x40afe0
movss dword [ebp - 0x34], xmm1
movss xmm4, dword [edx*8 + 0x4ab720]
xorps xmm3, xmm3
movss xmm2, dword [edx*8 + 0x4ab724]
movaps xmm0, xmm4
mulss xmm0, dword [ebp - 0x44]
movaps xmm1, xmm2
mulss xmm1, dword [ebp - 0x44]
cvtsi2ss xmm3, esi
xorps xmm3, xmmword [0x4b0780]
mulss xmm4, xmm3
mulss xmm2, xmm3
subss xmm4, xmm0
subss xmm2, xmm1
mulss xmm4, dword [edx*8 + 0x4ab718]
mulss xmm2, dword [edx*8 + 0x4ab71c]
addss xmm4, xmm0
movss xmm0, dword [ecx + 0xd50]
subss xmm0, dword [ecx + 0x3e7c]
addss xmm2, xmm1
addss xmm4, xmm0
movss xmm0, dword [ecx + 0xd54]
subss xmm0, dword [ecx + 0x3e80]
addss xmm0, xmm2
comiss xmm6, xmm0
ja 0x40b06e
movaps xmm6, xmm7
minss xmm6, xmm0
comiss xmm5, xmm4
ja 0x40b07c
movss xmm5, dword [ebp - 0x34]
minss xmm5, xmm4
mov edi, dword [ebp - 0x38]
lea eax, [ebp - 0xc]
movss xmm7, dword [edx*8 + 0x4ab718]
lea ecx, [ebp - 0x58]
push eax
movss xmm2, dword [edi + 0x10]
movss xmm4, dword [edi + 0x14]
movaps xmm3, xmm2
movss xmm1, dword [edi + 0x1c]
subss xmm3, xmm5
addss xmm2, dword [edi + 0x18]
addss xmm1, dword [edi + 0x14]
subss xmm4, xmm6
mulss xmm3, xmm7
mulss xmm4, dword [edx*8 + 0x4ab71c]
addss xmm3, xmm5
subss xmm5, xmm2
addss xmm4, xmm6
subss xmm6, xmm1
movss dword [ebp - 0x3c], xmm3
mulss xmm5, xmm7
mulss xmm6, dword [edx*8 + 0x4ab71c]
mov edx, edi
addss xmm5, xmm2
movss dword [ebp - 0x40], xmm4
addss xmm6, xmm1
subss xmm5, xmm3
subss xmm6, xmm4
movss dword [ebp - 0xc], xmm5
movss dword [ebp - 8], xmm6
call fcn.0040a570
mov ecx, dword [ebp - 0x20]
add esp, 4
xorps xmm2, xmm2
movss xmm0, dword [ecx*8 + 0x4ab718]
ucomiss xmm0, xmm2
movss xmm0, dword [ebp - 0x58]
movss dword [ebp - 0x50], xmm0
lahf
test ah, 0x44
jp 0x40b140
subss xmm0, dword [ebp - 0xc]
movss xmm1, dword [ebp - 0x3c]
subss xmm1, xmm0
movss dword [ebp - 0x3c], xmm1
movss xmm0, dword [ecx*8 + 0x4ab71c]
ucomiss xmm0, xmm2
movss xmm0, dword [ebp - 0x54]
movss dword [ebp - 0x30], xmm0
lahf
test ah, 0x44
jp 0x40b16f
subss xmm0, dword [ebp - 8]
movss xmm1, dword [ebp - 0x40]
subss xmm1, xmm0
movss dword [ebp - 0x40], xmm1
mov edx, dword [ebp - 0x2c]
mov al, byte [ebp - 0x25]
jmp 0x40b182
mov edi, dword [ebp - 0x38]
mov edx, dword [ebp - 0x2c]
jmp 0x40b185
mov edi, dword [ebp - 0x38]
mov cl, byte [ebp - 0x26]
test edx, edx
je 0x40af47
test al, al
jne 0x40af51
test cl, cl
je 0x40b1b7
xor ecx, ecx
cmp byte [ebp - 0x26], cl
setne cl
add ecx, 0x1e
movss xmm1, dword [0x4afcf8]
call fcn.00403de0
mov ecx, dword [ebp - 0x7c]
mov dword [ecx + edx*4], eax
inc edx
mov dword [ebp - 0x2c], edx
cmp edx, dword [ebx + 0xc]
jl 0x40ad72
xor edi, edi
mov dword [ebp - 0x24], edi
cmp dword [ebp - 0x78], edi
jbe 0x40b4ad
lea eax, [edi*8]
sub eax, edi
shl eax, 2
mov dword [ebp - 0x5c], eax
test edi, edi
je 0x40b204
cmp edi, 1
je 0x40b204
mov dword [ebp - 0x34], 3
lea eax, [ebp - 8]
mov dword [ebp - 0x44], 0xd54
mov dword [ebp - 0x2c], 0x3e80
jmp 0x40b21c
mov dword [ebp - 0x34], 4
lea eax, [ebp - 0xc]
mov dword [ebp - 0x44], 0xd50
mov dword [ebp - 0x2c], 0x3e7c
mov edx, dword [ebp - 0x38]
movd xmm0, esi
push ecx
cvtdq2ps xmm3, xmm0
mov dword [esp], 0x40800000
lea ecx, [ebp - 0x1c]
push edi
mov dword [ebp - 0x48], eax
call fcn.0040ab30
mov ecx, dword [edx + 0xc8]
lea eax, [edi + 4]
mov dword [ebp - 0x20], eax
lea esi, [ebp - 0x20]
mov eax, dword [edx + 0xd0]
add esp, 8
mov edi, 4
mov edx, dword [eax + ecx*4 - 4]
not edx
nop dword [eax]
movzx eax, byte [esi]
lea esi, [esi + 1]
movzx ecx, dl
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x4ab778]
sub edi, 1
jne 0x40b260
mov eax, dword [0x4d3fd8]
not edx
mov esi, dword [ebp - 0x74]
mov edi, dword [ebp - 0x24]
mov dword [ebp - 0x20], edx
cmp dword [eax + 0x3e50], edx
jne 0x40b2af
push ecx
mov ecx, dword [ebp - 0x20]
lea eax, [edi + 4]
push eax
mov edx, 4
call fcn.00415420
mov eax, dword [0x4d3fd8]
add esp, 8
mov edx, dword [ebp - 0x20]
cmp dword [eax + 0x3e68], edx
jne 0x40b2bd
mov dword [eax + 0x3e6c], edx
cmp dword [eax + 0x3e90], edx
jne 0x40b2cc
mov byte [eax + 0x3e94], 1
push 0x40800
lea eax, [ebp - 0x25]
push eax
lea eax, [ebp - 0x26]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00427e80
mov al, byte [ebp - 0x25]
add esp, 0xc
cmp byte [ebp - 0x26], 0
mov edx, dword [ebp - 0x4c]
je 0x40b301
movss xmm0, dword [edx + 0x3e60]
comiss xmm0, dword [0x4afc98]
ja 0x40b309
test al, al
je 0x40b4a0
mov ecx, dword [ebp - 0x34]
mov dword [edx + 0x4154], ecx
test al, al
je 0x40b4a0
mov eax, dword [ebp - 0x80]
mov dword [eax], edi
cmp edi, 3
jne 0x40b509
mov eax, dword [ebx + 0x14]
movss xmm4, dword [0x4afde4]
movss xmm5, dword [eax + 4]
movss xmm1, dword [0x4afdc8]
movss xmm2, dword [0x4afdc8]
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x44]
movss xmm0, dword [eax + 0x10]
movss dword [ebp - 0xc], xmm0
movss xmm0, dword [eax + 0x14]
movss dword [ebp - 8], xmm0
movss xmm0, dword [ecx + edx]
mov ecx, dword [ebp - 0x2c]
subss xmm0, dword [ecx + edx]
mov ecx, dword [ebp - 0x48]
addss xmm0, dword [0x4afd50]
movss dword [ecx], xmm0
movss xmm0, dword [ebp - 8]
comiss xmm5, xmm0
ja 0x40b38f
movaps xmm5, xmm1
minss xmm5, xmm0
movss xmm0, dword [ebp - 0xc]
comiss xmm4, xmm0
ja 0x40b3a0
movaps xmm4, xmm2
minss xmm4, xmm0
mov ecx, dword [ebp - 0x5c]
mov edx, eax
movss xmm2, dword [eax + 0x10]
movss xmm7, dword [eax + 0x14]
movaps xmm6, xmm2
addss xmm2, dword [eax + 0x18]
movss xmm1, dword [ecx + 0x4ab584]
subss xmm7, xmm5
minss xmm1, dword [ecx + 0x4ab58c]
movss xmm3, dword [ecx + 0x4ab580]
subss xmm6, xmm4
minss xmm3, dword [ecx + 0x4ab588]
lea ecx, [ebp - 0x58]
push ecx
movss dword [ebp - 0x48], xmm1
lea ecx, [ebp - 0x70]
mulss xmm7, xmm1
movss xmm1, dword [eax + 0x1c]
addss xmm1, dword [eax + 0x14]
mulss xmm6, xmm3
addss xmm7, xmm5
movss dword [ebp - 0x5c], xmm3
addss xmm6, xmm4
subss xmm4, xmm2
movss dword [ebp - 0x40], xmm7
subss xmm5, xmm1
movss dword [ebp - 0x3c], xmm6
mulss xmm4, xmm3
mulss xmm5, dword [ebp - 0x48]
addss xmm4, xmm2
addss xmm5, xmm1
subss xmm4, xmm6
subss xmm5, xmm7
movss dword [ebp - 0x58], xmm4
movss dword [ebp - 0x54], xmm5
call fcn.0040a570
movss xmm0, dword [ebp - 0x5c]
add esp, 4
xorps xmm2, xmm2
ucomiss xmm0, xmm2
movss xmm0, dword [ebp - 0x70]
movss dword [ebp - 0x50], xmm0
lahf
test ah, 0x44
jp 0x40b475
subss xmm0, dword [ebp - 0x58]
movss xmm1, dword [ebp - 0x3c]
subss xmm1, xmm0
movss dword [ebp - 0x3c], xmm1
movss xmm0, dword [ebp - 0x48]
ucomiss xmm0, xmm2
movss xmm0, dword [ebp - 0x6c]
movss dword [ebp - 0x30], xmm0
lahf
test ah, 0x44
jp 0x40b4a0
subss xmm0, dword [ebp - 0x54]
movss xmm1, dword [ebp - 0x40]
subss xmm1, xmm0
movss dword [ebp - 0x40], xmm1
inc edi
mov dword [ebp - 0x24], edi
cmp edi, dword [ebp - 0x78]
jl 0x40b1d2
mov edi, dword [0x4d3fd8]
mov esi, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x4c]
mov eax, dword [edi + 0x3e30]
dec dword [eax + 0xc8]
mov dword [esi + 0x12c], 0
mov eax, dword [ecx + 0x4138]
test eax, eax
je 0x40b668
cmp dword [eax + 0x2ec], esi
jne 0x40b668
mov eax, dword [ecx + 0x401c]
cmp eax, 2
jne 0x40b557
cmp byte [ecx + 0xd69], 0
je 0x40b668
lea edx, [eax - 1]
lea ecx, [ebp - 0x58]
jmp 0x40b566
movss xmm0, dword [0x4afde4]
movaps xmm5, xmm0
cmp edi, 1
jne 0x40b525
mov eax, dword [ebx + 0x14]
movss xmm4, dword [eax]
jmp 0x40b338
movaps xmm4, xmm0
cmp edi, 2
jne 0x40b53a
mov eax, dword [ebx + 0x14]
movss xmm1, dword [eax + 0xc]
jmp 0x40b340
movss xmm1, dword [0x4afdc8]
test edi, edi
jne 0x40b340
mov eax, dword [ebx + 0x14]
movss xmm2, dword [eax + 8]
jmp 0x40b348
cmp eax, 3
jne 0x40b668
lea edx, [eax + 1]
lea ecx, [ebp - 0xc]
sub esp, 8
xorps xmm3, xmm3
mov dword [esp + 4], 0
call fcn.00411d70
add esp, 8
xorps xmm4, xmm4
movss xmm7, dword [eax]
movss xmm3, dword [eax + 4]
ucomiss xmm7, xmm4
lahf
test ah, 0x44
jp 0x40b59e
ucomiss xmm3, xmm4
lahf
test ah, 0x44
jnp 0x40b66b
mov ecx, dword [ebp - 0x4c]
movss xmm1, dword [ecx + 0x50]
movss xmm0, dword [ecx + 0x18]
mulss xmm0, dword [0x4afdac]
minss xmm1, dword [ecx + 0x54]
mulss xmm1, xmm0
cvttss2si eax, xmm1
movss xmm1, dword [0x4afcf8]
movd xmm2, eax
mov eax, dword [ebx + 0x14]
cvtdq2ps xmm2, xmm2
movss xmm0, dword [eax]
subss xmm0, dword [esi + 0x10]
mulss xmm7, xmm2
mulss xmm3, xmm2
subss xmm0, dword [esi + 0x18]
maxss xmm7, xmm0
movss xmm0, dword [eax + 4]
subss xmm0, dword [esi + 0x14]
subss xmm0, dword [esi + 0x1c]
mov byte [ecx + 0x414c], 0
mov byte [ecx + 0x4027], 1
mov ecx, 0x20
maxss xmm3, xmm0
movss dword [ebp - 0x5c], xmm3
call fcn.00403de0
mov ecx, dword [ebp - 0x7c]
mov edx, esi
mov dword [ecx], eax
lea eax, [ebp - 0x70]
movss xmm0, dword [esi + 0x20]
lea ecx, [ebp - 0x60]
addss xmm0, xmm7
push eax
movss dword [ebp - 0x70], xmm0
movss xmm0, dword [esi + 0x24]
addss xmm0, dword [ebp - 0x5c]
movss dword [ebp - 0x6c], xmm0
call fcn.0040a570
mov edi, dword [0x4d3fd8]
add esp, 4
xorps xmm4, xmm4
movss xmm0, dword [eax]
movss dword [ebp - 0x50], xmm0
movss xmm0, dword [eax + 4]
jmp 0x40b670
xorps xmm4, xmm4
movss xmm0, dword [ebp - 0x30]
movss xmm1, dword [0x4afdc8]
movss xmm2, dword [ebp - 0x50]
ucomiss xmm2, xmm1
lahf
test ah, 0x44
jnp 0x40b6ab
test dword [esi + 8], 0x100
movss dword [esi + 0x20], xmm2
movss dword [esi + 0x24], xmm0
jne 0x40b6ab
comiss xmm4, dword [edi + 0x5208]
jb 0x40b6ab
mov eax, dword [edi + 0x1c]
mov dword [edi + 0x5208], eax
movss xmm0, dword [ebp - 0x3c]
ucomiss xmm0, xmm1
lahf
test ah, 0x44
jnp 0x40b6f5
test dword [esi + 8], 0x100
cvttss2si eax, xmm0
movd xmm1, eax
cvttss2si eax, dword [ebp - 0x40]
cvtdq2ps xmm1, xmm1
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [esi + 0x10], xmm1
movss dword [esi + 0x14], xmm0
jne 0x40b6f5
comiss xmm4, dword [edi + 0x5208]
jb 0x40b6f5
mov ecx, dword [edi + 0x1c]
mov dword [edi + 0x5208], ecx
mov ecx, dword [esi + 0x20]
mov al, byte [ebp - 0x27]
mov dword [esi + 0x18], ecx
mov ecx, dword [esi + 0x24]
mov dword [esi + 0x1c], ecx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045a181
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
mov ecx, dword [ebp - 4]
xor al, al
pop edi
xor ecx, ebp
pop esi
call fcn.0045a181
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret