Function at 0x67869c
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 [0x495040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebx + 8]
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x70], eax
mov eax, dword [ebx + 0x10]
mov dword [ebp - 0x6c], eax
mov eax, dword [0x497418]
test byte [edi + 8], 0x42
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x38], eax
jne 0x679172
cmp byte [edi + 0xa8], 0
jg 0x679172
cmp byte [edi + 0xa9], 0
jg 0x679172
cmp byte [edi + 0x8f], 0
je 0x679172
movss xmm2, dword [eax + 0x3bcc]
xor edx, edx
movss xmm0, dword [edi + 0x48]
movaps xmm1, xmm2
addss xmm0, dword [0x489b58]
mulss xmm2, dword [0x489b08]
mov esi, 4
mov cl, byte [eax + 0x5d]
mulss xmm1, dword [0x489b64]
test cl, cl
mov byte [ebp - 0x17], 0
addss xmm0, xmm2
cmovne edx, esi
mov dword [ebp - 0x68], edx
maxss xmm1, xmm0
cvttss2si eax, xmm1
movd xmm0, eax
cvtdq2ps xmm0, xmm0
mulss xmm0, dword [0x489b3c]
cvttss2si esi, xmm0
mov dword [ebp - 0x64], esi
je 0x67877d
movss xmm0, dword [0x489bb0]
jmp 0x678780
xorps xmm0, xmm0
movss dword [ebp - 0x34], xmm0
mov ecx, str.RESIZE
movss xmm0, dword [0x489c28]
movss dword [ebp - 0x2c], xmm0
movss dword [ebp - 0x30], xmm0
movss dword [ebp - 0x3c], xmm0
movss dword [ebp - 0x20], xmm0
mov dword [edi + 0x12c], 1
call fcn.0067cebc
xor edx, edx
mov dword [ebp - 0x1c], edx
cmp dword [ebx + 0xc], edx
jle 0x678c17
nop word [eax + eax]
movss xmm0, dword [edi + 0x10]
lea ecx, [edx + edx*2]
movss xmm1, dword [edi + 0x14]
movaps xmm3, xmm0
addss xmm3, dword [edi + 0x18]
movaps xmm2, xmm1
mov dword [ebp - 0x10], ecx
addss xmm2, dword [edi + 0x1c]
xorps xmm6, xmm6
cvtsi2ss xmm6, esi
subss xmm3, xmm0
subss xmm2, xmm1
mulss xmm3, dword [ecx*8 + 0x484a40]
mulss xmm2, dword [ecx*8 + 0x484a44]
addss xmm3, xmm0
movss xmm0, dword [ecx*8 + 0x484a48]
movaps xmm5, xmm0
mulss xmm0, dword [ebp - 0x34]
addss xmm2, xmm1
mulss xmm5, xmm6
movss xmm1, dword [ecx*8 + 0x484a4c]
movaps xmm4, xmm1
mulss xmm1, dword [ebp - 0x34]
mulss xmm4, xmm6
addss xmm5, xmm3
subss xmm3, xmm0
addss xmm4, xmm2
subss xmm2, xmm1
movss dword [ebp - 0x50], xmm5
comiss xmm3, xmm5
movss dword [ebp - 0x58], xmm3
movss dword [ebp - 0x54], xmm2
movss dword [ebp - 0x4c], xmm4
jbe 0x678872
movss dword [ebp - 0x58], xmm5
movss dword [ebp - 0x50], xmm3
comiss xmm2, xmm4
jbe 0x678881
movss dword [ebp - 0x54], xmm4
movss dword [ebp - 0x4c], xmm2
mov ecx, dword [edi + 0xc8]
mov esi, 4
mov eax, dword [edi + 0xd0]
lea edi, [ebp - 0x14]
mov dword [ebp - 0x14], edx
mov edx, dword [eax + ecx*4 - 4]
not edx
movzx eax, byte [edi]
lea edi, [edi + 1]
movzx ecx, dl
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x484aa0]
sub esi, 1
jne 0x67889e
mov eax, dword [0x497418]
not edx
mov esi, dword [ebp - 0x64]
mov dword [ebp - 0x24], edx
cmp dword [eax + 0x3e50], edx
jne 0x6788e9
push ecx
push dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x24]
mov edx, 4
call fcn.006841ec
mov eax, dword [0x497418]
add esp, 8
mov edx, dword [ebp - 0x24]
cmp dword [eax + 0x3e68], edx
jne 0x6788f7
mov dword [eax + 0x3e6c], edx
cmp dword [eax + 0x3e90], edx
jne 0x678906
mov byte [eax + 0x3e94], 1
push 0x40800
lea eax, [ebp - 0x15]
push eax
lea eax, [ebp - 0x16]
push eax
lea ecx, [ebp - 0x58]
call fcn.00697fcc
mov cl, byte [ebp - 0x16]
add esp, 0xc
test cl, cl
jne 0x678930
mov al, byte [ebp - 0x15]
test al, al
je 0x678bca
mov edx, dword [ebp - 0x1c]
mov eax, edx
mov ecx, dword [ebp - 0x38]
not eax
and eax, 1
add eax, 5
mov dword [ecx + 0x4154], eax
mov al, byte [ebp - 0x15]
test al, al
je 0x678bd2
cmp word [ecx + 0x367a], 2
jne 0x6789a9
test edx, edx
jne 0x6789a9
push dword [ebp - 0x40]
mov edi, dword [ebp - 0x28]
lea ecx, [ebp - 0x60]
mov edx, edi
call fcn.00677fbc
add esp, 4
mov byte [ebp - 0x17], 1
xor edx, edx
xor ecx, ecx
movss xmm0, dword [eax]
movss dword [ebp - 0x3c], xmm0
movss xmm0, dword [eax + 4]
movss dword [ebp - 0x20], xmm0
call fcn.00672e0c
mov edx, dword [ebp - 0x1c]
cmp byte [ebp - 0x15], 0
je 0x678bec
mov ecx, 0x20
jmp 0x678bf7
mov edx, dword [ebp - 0x10]
movss xmm3, dword [0x489b58]
mov edi, dword [ebx + 0x14]
movss xmm2, dword [0x489c5c]
movss xmm0, dword [edx*8 + 0x484a44]
ucomiss xmm0, xmm3
lahf
test ah, 0x44
jp 0x6789d8
movss xmm6, dword [edi + 4]
jmp 0x6789db
movaps xmm6, xmm2
movss xmm1, dword [edx*8 + 0x484a40]
ucomiss xmm1, xmm3
lahf
test ah, 0x44
jp 0x6789f3
movss xmm5, dword [edi]
jmp 0x6789f6
movaps xmm5, xmm2
xorps xmm2, xmm2
ucomiss xmm0, xmm2
lahf
test ah, 0x44
jp 0x678a16
movss xmm0, dword [edi + 0xc]
movss dword [ebp - 0x24], xmm0
movss xmm0, dword [0x489c28]
jmp 0x678a23
movss xmm0, dword [0x489c28]
movss dword [ebp - 0x24], xmm0
ucomiss xmm1, xmm2
lahf
test ah, 0x44
jp 0x678a33
movss xmm7, dword [edi + 8]
jmp 0x678a36
movaps xmm7, xmm0
movss xmm4, dword [edx*8 + 0x484a48]
xorps xmm3, xmm3
movss xmm2, dword [edx*8 + 0x484a4c]
movaps xmm0, xmm4
mulss xmm0, dword [ebp - 0x34]
movaps xmm1, xmm2
mulss xmm1, dword [ebp - 0x34]
cvtsi2ss xmm3, esi
xorps xmm3, xmmword [0x489d20]
mulss xmm4, xmm3
mulss xmm2, xmm3
subss xmm4, xmm0
subss xmm2, xmm1
mulss xmm4, dword [edx*8 + 0x484a40]
mulss xmm2, dword [edx*8 + 0x484a44]
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 0x678ac6
movss xmm6, dword [ebp - 0x24]
minss xmm6, xmm0
comiss xmm5, xmm4
ja 0x678ad2
movaps xmm5, xmm7
minss xmm5, xmm4
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0xc]
movss xmm4, dword [edx*8 + 0x484a40]
lea ecx, [ebp - 0x48]
movss xmm7, dword [edx*8 + 0x484a44]
mov edx, edi
push eax
movss xmm0, dword [edi + 0x10]
movss xmm1, dword [edi + 0x14]
movaps xmm2, xmm0
addss xmm0, dword [edi + 0x18]
subss xmm2, xmm5
movaps xmm3, xmm1
addss xmm1, dword [edi + 0x1c]
subss xmm3, xmm6
mulss xmm2, xmm4
mulss xmm3, xmm7
addss xmm2, xmm5
subss xmm5, xmm0
addss xmm3, xmm6
subss xmm6, xmm1
movss dword [ebp - 0x2c], xmm2
mulss xmm5, xmm4
mulss xmm6, xmm7
addss xmm5, xmm0
movss dword [ebp - 0x30], xmm3
addss xmm6, xmm1
subss xmm5, xmm2
subss xmm6, xmm3
movss dword [ebp - 0xc], xmm5
movss dword [ebp - 8], xmm6
call fcn.00677fbc
mov ecx, dword [ebp - 0x10]
add esp, 4
xorps xmm2, xmm2
movss xmm0, dword [ecx*8 + 0x484a40]
ucomiss xmm0, xmm2
movss xmm0, dword [ebp - 0x48]
movss dword [ebp - 0x3c], xmm0
lahf
test ah, 0x44
jp 0x678b93
subss xmm0, dword [ebp - 0xc]
movss xmm1, dword [ebp - 0x2c]
subss xmm1, xmm0
movss dword [ebp - 0x2c], xmm1
movss xmm0, dword [ecx*8 + 0x484a44]
ucomiss xmm0, xmm2
movss xmm0, dword [ebp - 0x44]
movss dword [ebp - 0x20], xmm0
lahf
test ah, 0x44
jp 0x678bc2
subss xmm0, dword [ebp - 8]
movss xmm1, dword [ebp - 0x30]
subss xmm1, xmm0
movss dword [ebp - 0x30], xmm1
mov edx, dword [ebp - 0x1c]
mov al, byte [ebp - 0x15]
jmp 0x678bd5
mov edi, dword [ebp - 0x28]
mov edx, dword [ebp - 0x1c]
jmp 0x678bd8
mov edi, dword [ebp - 0x28]
mov cl, byte [ebp - 0x16]
test edx, edx
je 0x678995
test al, al
jne 0x67899f
test cl, cl
je 0x678c0a
xor ecx, ecx
cmp byte [ebp - 0x16], cl
setne cl
add ecx, 0x1e
movss xmm1, dword [0x489b58]
call fcn.006711ec
mov ecx, dword [ebp - 0x6c]
mov dword [ecx + edx*4], eax
inc edx
mov dword [ebp - 0x1c], edx
cmp edx, dword [ebx + 0xc]
jl 0x6787cc
xor edi, edi
mov dword [ebp - 0x14], edi
cmp dword [ebp - 0x68], edi
jbe 0x678f06
nop dword [eax]
lea eax, [edi*8]
sub eax, edi
shl eax, 2
mov dword [ebp - 0x4c], eax
test edi, edi
je 0x678c5e
cmp edi, 1
je 0x678c5e
mov dword [ebp - 0x24], 3
lea eax, [ebp - 8]
mov dword [ebp - 0x34], 0xd54
mov dword [ebp - 0x1c], 0x3e80
jmp 0x678c76
mov dword [ebp - 0x24], 4
lea eax, [ebp - 0xc]
mov dword [ebp - 0x34], 0xd50
mov dword [ebp - 0x1c], 0x3e7c
mov edx, dword [ebp - 0x28]
movd xmm0, esi
push ecx
cvtdq2ps xmm3, xmm0
mov dword [esp], 0x40800000
lea ecx, [ebp - 0x80]
push edi
mov dword [ebp - 0x40], eax
call fcn.0067857c
mov ecx, dword [edx + 0xc8]
lea eax, [edi + 4]
mov dword [ebp - 0x10], eax
lea esi, [ebp - 0x10]
mov eax, dword [edx + 0xd0]
add esp, 8
mov edi, 4
mov edx, dword [eax + ecx*4 - 4]
not edx
nop dword [eax + eax]
movzx eax, byte [esi]
lea esi, [esi + 1]
movzx ecx, dl
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x484aa0]
sub edi, 1
jne 0x678cbc
mov eax, dword [0x497418]
not edx
mov esi, dword [ebp - 0x64]
mov edi, dword [ebp - 0x14]
mov dword [ebp - 0x10], edx
cmp dword [eax + 0x3e50], edx
jne 0x678d0b
push ecx
mov ecx, dword [ebp - 0x10]
lea eax, [edi + 4]
push eax
mov edx, 4
call fcn.006841ec
mov eax, dword [0x497418]
add esp, 8
mov edx, dword [ebp - 0x10]
cmp dword [eax + 0x3e68], edx
jne 0x678d19
mov dword [eax + 0x3e6c], edx
cmp dword [eax + 0x3e90], edx
jne 0x678d28
mov byte [eax + 0x3e94], 1
push 0x40800
lea eax, [ebp - 0x15]
push eax
lea eax, [ebp - 0x16]
push eax
lea ecx, [ebp - 0x80]
call fcn.00697fcc
mov al, byte [ebp - 0x15]
add esp, 0xc
cmp byte [ebp - 0x16], 0
mov edx, dword [ebp - 0x38]
je 0x678d5d
movss xmm0, dword [edx + 0x3e60]
comiss xmm0, dword [0x489af8]
ja 0x678d65
test al, al
je 0x678ef9
mov ecx, dword [ebp - 0x24]
mov dword [edx + 0x4154], ecx
test al, al
je 0x678ef9
mov eax, dword [ebp - 0x70]
mov dword [eax], edi
cmp edi, 3
jne 0x678f63
mov eax, dword [ebx + 0x14]
movss xmm4, dword [0x489c5c]
movss xmm3, dword [eax + 4]
movss xmm1, dword [0x489c28]
movss xmm5, dword [0x489c28]
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x34]
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 - 0x1c]
subss xmm0, dword [ecx + edx]
mov ecx, dword [ebp - 0x40]
addss xmm0, dword [0x489bb0]
movss dword [ecx], xmm0
movss xmm0, dword [ebp - 8]
comiss xmm3, xmm0
ja 0x678deb
movaps xmm3, xmm1
minss xmm3, xmm0
movss xmm0, dword [ebp - 0xc]
comiss xmm4, xmm0
ja 0x678dfc
movaps xmm4, xmm5
minss xmm4, xmm0
mov ecx, dword [ebp - 0x4c]
mov edx, eax
movss xmm0, dword [eax + 0x10]
movss xmm1, dword [eax + 0x14]
movaps xmm5, xmm0
addss xmm0, dword [eax + 0x18]
movss xmm7, dword [ecx + 0x4848ac]
subss xmm5, xmm4
minss xmm7, dword [ecx + 0x4848b4]
movss xmm2, dword [ecx + 0x4848a8]
movaps xmm6, xmm1
minss xmm2, dword [ecx + 0x4848b0]
addss xmm1, dword [eax + 0x1c]
subss xmm6, xmm3
lea ecx, [ebp - 0x48]
movss dword [ebp - 0x14], xmm7
push ecx
mulss xmm5, xmm2
lea ecx, [ebp - 0x60]
mulss xmm6, xmm7
addss xmm5, xmm4
movss dword [ebp - 0x4c], xmm2
subss xmm4, xmm0
addss xmm6, xmm3
subss xmm3, xmm1
movss dword [ebp - 0x2c], xmm5
mulss xmm4, xmm2
mulss xmm3, xmm7
addss xmm4, xmm0
movss dword [ebp - 0x30], xmm6
addss xmm3, xmm1
subss xmm4, xmm5
subss xmm3, xmm6
movss dword [ebp - 0x48], xmm4
movss dword [ebp - 0x44], xmm3
call fcn.00677fbc
movss xmm0, dword [ebp - 0x4c]
add esp, 4
xorps xmm2, xmm2
ucomiss xmm0, xmm2
movss xmm0, dword [ebp - 0x60]
movss dword [ebp - 0x3c], xmm0
lahf
test ah, 0x44
jp 0x678ece
subss xmm0, dword [ebp - 0x48]
movss xmm1, dword [ebp - 0x2c]
subss xmm1, xmm0
movss dword [ebp - 0x2c], xmm1
movss xmm0, dword [ebp - 0x14]
ucomiss xmm0, xmm2
movss xmm0, dword [ebp - 0x5c]
movss dword [ebp - 0x20], xmm0
lahf
test ah, 0x44
jp 0x678ef9
subss xmm0, dword [ebp - 0x44]
movss xmm1, dword [ebp - 0x30]
subss xmm1, xmm0
movss dword [ebp - 0x30], xmm1
inc edi
mov dword [ebp - 0x14], edi
cmp edi, dword [ebp - 0x68]
jl 0x678c2c
mov edi, dword [0x497418]
mov esi, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x38]
mov eax, dword [edi + 0x3e30]
dec dword [eax + 0xc8]
mov dword [esi + 0x12c], 0
mov eax, dword [ecx + 0x4138]
test eax, eax
je 0x6790c3
cmp dword [eax + 0x2e8], esi
jne 0x6790c3
mov eax, dword [ecx + 0x401c]
cmp eax, 2
jne 0x678fb7
cmp byte [ecx + 0xd69], 0
je 0x6790c3
push ecx
lea edx, [eax - 1]
lea ecx, [ebp - 0x48]
jmp 0x678fc7
movss xmm1, dword [0x489c5c]
movaps xmm3, xmm1
movaps xmm0, xmm3
cmp edi, 1
jne 0x678f82
mov eax, dword [ebx + 0x14]
movss xmm4, dword [eax]
jmp 0x678d94
movaps xmm4, xmm1
movaps xmm2, xmm4
cmp edi, 2
jne 0x678f9a
mov eax, dword [ebx + 0x14]
movss xmm1, dword [eax + 0xc]
jmp 0x678d9c
movss xmm1, dword [0x489c28]
test edi, edi
jne 0x678d9c
mov eax, dword [ebx + 0x14]
movss xmm5, dword [eax + 8]
jmp 0x678da4
cmp eax, 3
jne 0x6790c3
push ecx
lea edx, [eax + 1]
lea ecx, [ebp - 0xc]
mov dword [esp], 0
xorps xmm3, xmm3
push 0
call fcn.0068046c
add esp, 8
xorps xmm4, xmm4
movss xmm3, dword [eax]
movss xmm7, dword [eax + 4]
ucomiss xmm3, xmm4
lahf
test ah, 0x44
jp 0x678ffd
ucomiss xmm7, xmm4
lahf
test ah, 0x44
jnp 0x6790c6
mov ecx, dword [ebp - 0x38]
movss xmm1, dword [ecx + 0x50]
movss xmm0, dword [ecx + 0x18]
mulss xmm0, dword [0x489c08]
minss xmm1, dword [ecx + 0x54]
mulss xmm1, xmm0
cvttss2si eax, xmm1
movss xmm1, dword [0x489b58]
movd xmm2, eax
mov eax, dword [ebx + 0x14]
cvtdq2ps xmm2, xmm2
movss xmm0, dword [eax]
subss xmm0, dword [esi + 0x10]
mulss xmm3, xmm2
mulss xmm7, xmm2
subss xmm0, dword [esi + 0x18]
maxss xmm3, xmm0
movss xmm0, dword [eax + 4]
subss xmm0, dword [esi + 0x14]
movss dword [ebp - 0x4c], xmm3
subss xmm0, dword [esi + 0x1c]
mov byte [ecx + 0x414c], 0
mov byte [ecx + 0x4027], 1
mov ecx, 0x20
maxss xmm7, xmm0
call fcn.006711ec
mov ecx, dword [ebp - 0x6c]
mov edx, esi
movss xmm0, dword [ebp - 0x4c]
mov dword [ecx], eax
lea eax, [ebp - 0x60]
addss xmm0, dword [esi + 0x20]
addss xmm7, dword [esi + 0x24]
push eax
lea ecx, [ebp - 0x50]
movss dword [ebp - 0x60], xmm0
movss dword [ebp - 0x5c], xmm7
call fcn.00677fbc
mov edi, dword [0x497418]
add esp, 4
xorps xmm4, xmm4
movss xmm0, dword [eax]
movss dword [ebp - 0x3c], xmm0
movss xmm0, dword [eax + 4]
jmp 0x6790cb
xorps xmm4, xmm4
movss xmm0, dword [ebp - 0x20]
movss xmm1, dword [0x489c28]
movss xmm2, dword [ebp - 0x3c]
ucomiss xmm2, xmm1
lahf
test ah, 0x44
jnp 0x679106
test dword [esi + 8], 0x100
movss dword [esi + 0x20], xmm2
movss dword [esi + 0x24], xmm0
jne 0x679106
comiss xmm4, dword [edi + 0x5208]
jb 0x679106
mov eax, dword [edi + 0x1c]
mov dword [edi + 0x5208], eax
movss xmm0, dword [ebp - 0x2c]
ucomiss xmm0, xmm1
lahf
test ah, 0x44
jnp 0x679150
test dword [esi + 8], 0x100
cvttss2si eax, xmm0
movd xmm1, eax
cvttss2si eax, dword [ebp - 0x30]
cvtdq2ps xmm1, xmm1
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [esi + 0x10], xmm1
movss dword [esi + 0x14], xmm0
jne 0x679150
comiss xmm4, dword [edi + 0x5208]
jb 0x679150
mov ecx, dword [edi + 0x1c]
mov dword [edi + 0x5208], ecx
mov ecx, dword [esi + 0x20]
mov edx, dword [esi + 0x24]
mov al, byte [ebp - 0x17]
mov dword [esi + 0x18], ecx
mov dword [esi + 0x1c], edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006bc02b
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.006bc02b
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret