Function at 0x10021bc0
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, 0x70
mov eax, dword [0x1018e4ac]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebx + 8]
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x54], eax
mov eax, dword [ebx + 0x10]
mov dword [ebp - 0x60], eax
mov eax, dword [0x10191030]
test byte [edi + 8], 0x42
mov dword [ebp - 8], edx
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x50], eax
jne 0x1002267e
cmp byte [edi + 0x90], 0
jg 0x1002267e
cmp byte [edi + 0x91], 0
jg 0x1002267e
cmp byte [edi + 0x7b], 0
je 0x1002267e
movss xmm2, dword [eax + 0x18d4]
xor edx, edx
movss xmm0, dword [edi + 0x3c]
movaps xmm1, xmm2
addss xmm0, dword [0x10182e48]
mulss xmm2, dword [0x10182e00]
mov esi, 4
mov cl, byte [eax + 0xb3]
mulss xmm1, dword [0x10182e54]
test cl, cl
mov byte [ebp - 0x25], 0
addss xmm0, xmm2
cmovne edx, esi
mov dword [ebp - 0x5c], edx
maxss xmm1, xmm0
cvttss2si eax, xmm1
movd xmm0, eax
cvtdq2ps xmm0, xmm0
mulss xmm0, dword [0x10182e30]
cvttss2si esi, xmm0
mov dword [ebp - 0x58], esi
je 0x10021c9e
movss xmm0, dword [0x10182ee0]
jmp 0x10021ca1
xorps xmm0, xmm0
movss dword [ebp - 0x30], xmm0
movss xmm0, dword [0x101830a8]
movss dword [ebp - 0x38], xmm0
movss dword [ebp - 0x3c], xmm0
movss dword [ebp - 0x48], xmm0
movss dword [ebp - 0x24], xmm0
mov dword [edi + 0x134], 1
mov dword [edi + 0x138], 2
call fcn.10026210
xor edx, edx
mov dword [ebp - 0x2c], edx
cmp dword [ebx + 0xc], edx
jle 0x10022113
nop dword [eax]
movss xmm0, dword [edi + 0xc]
lea ecx, [edx + edx*2]
movss xmm1, dword [edi + 0x10]
movaps xmm3, xmm0
addss xmm3, dword [edi + 0x14]
movaps xmm2, xmm1
mov dword [ebp - 0x4c], ecx
addss xmm2, dword [edi + 0x18]
xorps xmm6, xmm6
cvtsi2ss xmm6, esi
subss xmm3, xmm0
subss xmm2, xmm1
mulss xmm3, dword [ecx*8 + 0x1018f038]
mulss xmm2, dword [ecx*8 + 0x1018f03c]
addss xmm3, xmm0
movss xmm0, dword [ecx*8 + 0x1018f040]
movaps xmm5, xmm0
mulss xmm0, dword [ebp - 0x30]
addss xmm2, xmm1
mulss xmm5, xmm6
movss xmm1, dword [ecx*8 + 0x1018f044]
movaps xmm4, xmm1
mulss xmm1, dword [ebp - 0x30]
mulss xmm4, xmm6
addss xmm5, xmm3
subss xmm3, xmm0
addss xmm4, xmm2
subss xmm2, xmm1
movss dword [ebp - 0x10], xmm5
comiss xmm3, xmm5
movss dword [ebp - 0x18], xmm3
movss dword [ebp - 0x14], xmm2
movss dword [ebp - 0xc], xmm4
jbe 0x10021d96
movss dword [ebp - 0x18], xmm5
movss dword [ebp - 0x10], xmm3
comiss xmm2, xmm4
jbe 0x10021da5
movss dword [ebp - 0x14], xmm4
movss dword [ebp - 0xc], xmm2
mov ecx, dword [edi + 0xbc]
mov esi, 4
mov eax, dword [edi + 0xc4]
lea edi, [ebp - 0x1c]
mov dword [ebp - 0x1c], 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 + 0x1016e2f8]
sub esi, 1
jne 0x10021dc2
mov eax, dword [0x10191030]
not edx
mov esi, dword [ebp - 0x58]
cmp dword [eax + 0x1a3c], edx
jne 0x10021df4
mov dword [eax + 0x1a40], edx
cmp dword [eax + 0x1a74], edx
jne 0x10021e03
mov byte [eax + 0x1a78], 1
push 0x4080
lea eax, [ebp - 0x1e]
push eax
lea eax, [ebp - 0x1d]
push eax
lea ecx, [ebp - 0x18]
call fcn.1003fc00
mov cl, byte [ebp - 0x1d]
add esp, 0xc
test cl, cl
jne 0x10021e2d
mov al, byte [ebp - 0x1e]
test al, al
je 0x100220c6
mov edx, dword [ebp - 0x2c]
mov eax, edx
mov ecx, dword [ebp - 0x50]
not eax
and eax, 1
add eax, 5
mov dword [ecx + 0x1df4], eax
mov al, byte [ebp - 0x1e]
test al, al
je 0x100220ce
cmp byte [ecx + 0x3e5], 0
je 0x10021eaa
test edx, edx
jne 0x10021eaa
mov eax, dword [ebp - 8]
lea ecx, [ebp - 0x70]
mov edi, dword [ebp - 0x34]
mov edx, edi
push dword [eax + 4]
push dword [eax]
call fcn.10021570
add esp, 8
mov byte [ebp - 0x25], 1
xor edx, edx
xor ecx, ecx
movss xmm3, dword [eax]
movss xmm2, dword [eax + 4]
movss dword [ebp - 0x48], xmm3
movss dword [ebp - 0x24], xmm2
call fcn.1001d980
mov edx, dword [ebp - 0x2c]
cmp byte [ebp - 0x1e], 0
je 0x100220e8
mov ecx, 0x20
jmp 0x100220f3
mov edx, dword [ebp - 0x4c]
xorps xmm3, xmm3
cvtsi2ss xmm3, esi
movss xmm2, dword [edx*8 + 0x1018f044]
xorps xmm3, xmmword [0x10184270]
movaps xmm1, xmm2
mulss xmm1, dword [ebp - 0x30]
movss xmm6, dword [edx*8 + 0x1018f040]
movss xmm5, dword [edx*8 + 0x1018f03c]
movaps xmm0, xmm6
mulss xmm0, dword [ebp - 0x30]
movss xmm4, dword [edx*8 + 0x1018f038]
movss xmm7, dword [ecx + 0xec]
subss xmm7, dword [ecx + 0x1a64]
mulss xmm2, xmm3
mulss xmm6, xmm3
subss xmm2, xmm1
subss xmm6, xmm0
mulss xmm2, xmm5
mulss xmm6, xmm4
addss xmm2, xmm1
movss xmm1, dword [0x10182e48]
ucomiss xmm5, xmm1
addss xmm6, xmm0
movss xmm0, dword [ecx + 0xe8]
subss xmm0, dword [ecx + 0x1a60]
mov ecx, dword [ebx + 0x14]
addss xmm7, xmm2
lahf
addss xmm6, xmm0
movss xmm0, dword [0x10183100]
test ah, 0x44
jp 0x10021f5a
movss xmm5, dword [ecx + 4]
jmp 0x10021f5d
movaps xmm5, xmm0
ucomiss xmm4, xmm1
lahf
test ah, 0x44
jp 0x10021f6c
movss xmm4, dword [ecx]
jmp 0x10021f6f
movaps xmm4, xmm0
movss xmm1, dword [edx*8 + 0x1018f03c]
xorps xmm0, xmm0
movss xmm2, dword [0x101830a8]
ucomiss xmm1, xmm0
lahf
test ah, 0x44
jp 0x10021f93
movss xmm1, dword [ecx + 0xc]
jmp 0x10021f96
movaps xmm1, xmm2
movss xmm3, dword [edx*8 + 0x1018f038]
ucomiss xmm3, xmm0
lahf
test ah, 0x44
jp 0x10021faf
movss xmm0, dword [ecx + 8]
jmp 0x10021fb2
movaps xmm0, xmm2
comiss xmm5, xmm7
ja 0x10021fbe
movaps xmm5, xmm1
minss xmm5, xmm7
comiss xmm4, xmm6
ja 0x10021fca
movaps xmm4, xmm0
minss xmm4, xmm6
mov edi, dword [ebp - 0x34]
lea ecx, [ebp - 0x68]
movss xmm6, dword [edx*8 + 0x1018f03c]
movss xmm0, dword [edi + 0xc]
movss xmm1, dword [edi + 0x10]
movaps xmm2, xmm0
addss xmm0, dword [edi + 0x14]
subss xmm2, xmm4
mulss xmm2, xmm3
movaps xmm3, xmm1
addss xmm1, dword [edi + 0x18]
subss xmm3, xmm5
addss xmm2, xmm4
subss xmm4, xmm0
mulss xmm3, xmm6
mulss xmm4, dword [edx*8 + 0x1018f038]
mov edx, edi
addss xmm3, xmm5
movss dword [ebp - 0x38], xmm2
subss xmm5, xmm1
addss xmm4, xmm0
movss dword [ebp - 0x3c], xmm3
mulss xmm5, xmm6
subss xmm4, xmm2
addss xmm5, xmm1
movss dword [ebp - 0x44], xmm4
subss xmm5, xmm3
movss dword [ebp - 0x40], xmm5
push dword [ebp - 0x40]
push dword [ebp - 0x44]
call fcn.10021570
mov ecx, dword [ebp - 0x4c]
add esp, 8
movss xmm3, dword [ebp - 0x68]
xorps xmm2, xmm2
movss dword [ebp - 0x48], xmm3
movss xmm0, dword [ecx*8 + 0x1018f038]
ucomiss xmm0, xmm2
lahf
test ah, 0x44
jp 0x1002208c
movss xmm1, dword [ebp - 0x38]
movaps xmm0, xmm3
subss xmm0, dword [ebp - 0x44]
subss xmm1, xmm0
movss dword [ebp - 0x38], xmm1
movss xmm0, dword [ecx*8 + 0x1018f03c]
ucomiss xmm0, xmm2
movss xmm2, dword [ebp - 0x64]
movss dword [ebp - 0x24], xmm2
lahf
test ah, 0x44
jp 0x100220be
movss xmm1, dword [ebp - 0x3c]
movaps xmm0, xmm2
subss xmm0, dword [ebp - 0x40]
subss xmm1, xmm0
movss dword [ebp - 0x3c], xmm1
mov edx, dword [ebp - 0x2c]
mov al, byte [ebp - 0x1e]
jmp 0x100220d1
mov edi, dword [ebp - 0x34]
mov edx, dword [ebp - 0x2c]
jmp 0x100220d4
mov edi, dword [ebp - 0x34]
mov cl, byte [ebp - 0x1d]
test edx, edx
je 0x10021e96
test al, al
jne 0x10021ea0
test cl, cl
je 0x10022106
xor ecx, ecx
cmp byte [ebp - 0x1d], cl
setne cl
add ecx, 0x1e
movss xmm1, dword [0x10182e48]
call fcn.1001c670
mov ecx, dword [ebp - 0x60]
mov dword [ecx + edx*4], eax
inc edx
mov dword [ebp - 0x2c], edx
cmp edx, dword [ebx + 0xc]
jl 0x10021cf0
xor ecx, ecx
mov dword [ebp - 0x30], ecx
cmp dword [ebp - 0x5c], ecx
jbe 0x10022420
movd xmm0, esi
mov edx, edi
push ecx
cvtdq2ps xmm3, xmm0
mov dword [esp], 0x40800000
push ecx
lea ecx, [ebp - 0x18]
call fcn.10021aa0
mov eax, dword [ebp - 0x30]
add esp, 8
mov ecx, dword [edi + 0xbc]
add eax, 4
mov dword [ebp - 8], eax
mov esi, 4
mov eax, dword [edi + 0xc4]
lea edi, [ebp - 8]
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 + 0x1016e2f8]
sub esi, 1
jne 0x10022161
mov eax, dword [0x10191030]
not edx
mov esi, dword [ebp - 0x58]
cmp dword [eax + 0x1a3c], edx
jne 0x10022193
mov dword [eax + 0x1a40], edx
cmp dword [eax + 0x1a74], edx
jne 0x100221a2
mov byte [eax + 0x1a78], 1
push 0x80
lea eax, [ebp - 0x1d]
push eax
lea eax, [ebp - 0x1e]
push eax
lea ecx, [ebp - 0x18]
call fcn.1003fc00
mov edx, dword [ebp - 0x50]
add esp, 0xc
cmp byte [ebp - 0x1e], 0
je 0x100221d4
movss xmm0, dword [edx + 0x1a34]
comiss xmm0, dword [0x10182dec]
ja 0x100221de
cmp byte [ebp - 0x1d], 0
je 0x1002240d
mov ecx, dword [ebp - 0x30]
mov eax, ecx
mov edi, dword [ebp - 0x34]
and eax, 1
add eax, 3
cmp byte [ebp - 0x1d], 0
mov dword [edx + 0x1df4], eax
je 0x10022413
mov eax, dword [ebp - 0x54]
mov dword [eax], ecx
movss xmm0, dword [edi + 0xc]
movss xmm7, dword [edi + 0x10]
test ecx, ecx
jne 0x1002223f
movss xmm1, dword [edx + 0xec]
subss xmm1, dword [edx + 0x1a64]
mov eax, dword [ebx + 0x14]
movss xmm2, dword [0x10183100]
movaps xmm3, xmm2
addss xmm1, dword [0x10182ee0]
movss xmm4, dword [eax + 0xc]
jmp 0x10022302
movss xmm4, dword [0x101830a8]
cmp ecx, 1
jne 0x10022283
movss xmm0, dword [edx + 0xe8]
movaps xmm1, xmm7
subss xmm0, dword [edx + 0x1a60]
mov eax, dword [ebx + 0x14]
movss xmm6, dword [0x10182e48]
movss xmm3, dword [0x10183100]
addss xmm0, dword [0x10182ee0]
movss xmm2, dword [eax]
jmp 0x10022305
movss xmm2, dword [0x10183100]
cmp ecx, 2
jne 0x100222bd
movss xmm1, dword [edx + 0xec]
xorps xmm6, xmm6
subss xmm1, dword [edx + 0x1a64]
mov eax, dword [ebx + 0x14]
movss xmm5, dword [0x10182e48]
addss xmm1, dword [0x10182ee0]
movss xmm3, dword [eax + 4]
jmp 0x10022308
movss xmm3, dword [0x10183100]
cmp ecx, 3
jne 0x100222ff
movss xmm0, dword [edx + 0xe8]
xorps xmm5, xmm5
mov eax, dword [ebx + 0x14]
xorps xmm6, xmm6
subss xmm0, dword [edx + 0x1a60]
movss dword [ebp - 0x24], xmm5
movss xmm1, dword [eax + 8]
movss dword [ebp - 0x4c], xmm1
movaps xmm1, xmm7
addss xmm0, dword [0x10182ee0]
jmp 0x1002231f
movaps xmm1, xmm7
xorps xmm6, xmm6
xorps xmm5, xmm5
movss dword [ebp - 0x24], xmm5
movss xmm5, dword [0x101830a8]
movss dword [ebp - 0x4c], xmm5
movss xmm5, dword [ebp - 0x24]
comiss xmm3, xmm1
movss dword [ebp - 0x2c], xmm6
ja 0x10022330
movaps xmm3, xmm4
minss xmm3, xmm1
comiss xmm2, xmm0
ja 0x1002233e
movss xmm2, dword [ebp - 0x4c]
minss xmm2, xmm0
movss xmm0, dword [edi + 0xc]
lea ecx, [ebp - 0x68]
movaps xmm4, xmm7
movaps xmm1, xmm0
addss xmm7, dword [edi + 0x18]
addss xmm0, dword [edi + 0x14]
subss xmm4, xmm3
mov edx, edi
subss xmm1, xmm2
mulss xmm4, xmm5
mulss xmm1, xmm6
addss xmm4, xmm3
subss xmm3, xmm7
addss xmm1, xmm2
subss xmm2, xmm0
movss dword [ebp - 0x3c], xmm4
mulss xmm3, xmm5
mulss xmm2, xmm6
addss xmm3, xmm7
movss dword [ebp - 0x38], xmm1
addss xmm2, xmm0
subss xmm3, xmm4
subss xmm2, xmm1
movss dword [ebp - 0x40], xmm3
push dword [ebp - 0x40]
movss dword [ebp - 0x44], xmm2
push dword [ebp - 0x44]
call fcn.10021570
movss xmm0, dword [ebp - 0x2c]
add esp, 8
xorps xmm2, xmm2
ucomiss xmm0, xmm2
movss xmm0, dword [ebp - 0x68]
movss dword [ebp - 0x48], xmm0
lahf
test ah, 0x44
jp 0x100223e0
subss xmm0, dword [ebp - 0x44]
movss xmm1, dword [ebp - 0x38]
subss xmm1, xmm0
movss dword [ebp - 0x38], xmm1
movss xmm0, dword [ebp - 0x24]
ucomiss xmm0, xmm2
movss xmm0, dword [ebp - 0x64]
movss dword [ebp - 0x24], xmm0
lahf
test ah, 0x44
jp 0x10022410
subss xmm0, dword [ebp - 0x40]
movss xmm1, dword [ebp - 0x3c]
subss xmm1, xmm0
movss dword [ebp - 0x3c], xmm1
jmp 0x10022410
mov edi, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x30]
inc ecx
mov dword [ebp - 0x30], ecx
cmp ecx, dword [ebp - 0x5c]
jl 0x10022121
mov edx, dword [0x10191030]
mov esi, dword [ebp - 0x50]
mov eax, dword [edx + 0x1a08]
dec dword [eax + 0xbc]
mov dword [edi + 0x134], 0
mov dword [edi + 0x138], 1
mov eax, dword [esi + 0x1c40]
test eax, eax
je 0x100225c2
cmp dword [eax + 0x31c], edi
jne 0x100225c2
mov eax, dword [esi + 0x1b68]
cmp eax, 3
jne 0x100224a1
cmp byte [esi + 0x101], 0
je 0x100225c2
xor edx, edx
lea ecx, [eax + 0x11]
call fcn.100286c0
lea ecx, [edx + 0x13]
movaps xmm6, xmm0
call fcn.100286c0
lea ecx, [edx + 0x12]
subss xmm6, xmm0
call fcn.100286c0
lea ecx, [edx + 0x11]
jmp 0x100224ce
cmp eax, 4
jne 0x100225c2
xor edx, edx
lea ecx, [eax + 3]
call fcn.100286c0
lea ecx, [edx + 6]
movaps xmm6, xmm0
call fcn.100286c0
lea ecx, [edx + 5]
subss xmm6, xmm0
call fcn.100286c0
lea ecx, [edx + 4]
xor edx, edx
movaps xmm5, xmm0
call fcn.100286c0
subss xmm5, xmm0
xorps xmm2, xmm2
addss xmm6, xmm2
addss xmm5, xmm2
ucomiss xmm5, xmm2
lahf
test ah, 0x44
jp 0x100224fd
ucomiss xmm6, xmm2
lahf
test ah, 0x44
jnp 0x100225cc
movss xmm1, dword [esi + 0xa8]
mov ecx, 0x20
movss xmm0, dword [esi + 0x18]
mulss xmm0, dword [0x10183068]
minss xmm1, dword [esi + 0xac]
mulss xmm1, xmm0
cvttss2si eax, xmm1
movss xmm1, dword [0x10182e48]
movd xmm7, eax
mov eax, dword [ebx + 0x14]
cvtdq2ps xmm7, xmm7
movss xmm0, dword [eax]
subss xmm0, dword [edi + 0xc]
mulss xmm5, xmm7
mulss xmm7, xmm6
subss xmm0, dword [edi + 0x14]
maxss xmm5, xmm0
movss xmm0, dword [eax + 4]
subss xmm0, dword [edi + 0x10]
movss dword [ebp - 0x54], xmm5
subss xmm0, dword [edi + 0x18]
mov byte [esi + 0x1c54], 0
mov byte [esi + 0x1b8b], 1
maxss xmm7, xmm0
call fcn.1001c670
mov ecx, dword [ebp - 0x60]
mov edx, edi
movss xmm0, dword [ebp - 0x54]
mov dword [ecx], eax
lea ecx, [ebp - 0x70]
addss xmm7, dword [edi + 0x20]
addss xmm0, dword [edi + 0x1c]
movss dword [ebp - 0x40], xmm7
push dword [ebp - 0x40]
movss dword [ebp - 0x44], xmm0
push dword [ebp - 0x44]
call fcn.10021570
add esp, 8
xorps xmm2, xmm2
movss xmm0, dword [eax]
movss dword [ebp - 0x48], xmm0
movss xmm0, dword [eax + 4]
jmp 0x100225d1
movss xmm0, dword [ebp - 0x24]
xorps xmm2, xmm2
jmp 0x100225d7
movss xmm0, dword [ebp - 0x24]
mov edx, dword [0x10191030]
movss xmm1, dword [0x101830a8]
movss xmm3, dword [ebp - 0x48]
ucomiss xmm3, xmm1
lahf
test ah, 0x44
jnp 0x10022612
test dword [edi + 8], 0x100
movss dword [edi + 0x1c], xmm3
movss dword [edi + 0x20], xmm0
jne 0x10022612
comiss xmm2, dword [edx + 0x2e04]
jb 0x10022612
mov eax, dword [edx + 0x1c]
mov dword [edx + 0x2e04], eax
movss xmm0, dword [ebp - 0x38]
ucomiss xmm0, xmm1
lahf
test ah, 0x44
jnp 0x1002265c
test dword [edi + 8], 0x100
cvttss2si eax, xmm0
movd xmm1, eax
cvttss2si eax, dword [ebp - 0x3c]
cvtdq2ps xmm1, xmm1
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [edi + 0xc], xmm1
movss dword [edi + 0x10], xmm0
jne 0x1002265c
comiss xmm2, dword [edx + 0x2e04]
jb 0x1002265c
mov ecx, dword [edx + 0x1c]
mov dword [edx + 0x2e04], ecx
mov ecx, dword [edi + 0x1c]
mov edx, dword [edi + 0x20]
mov al, byte [ebp - 0x25]
mov dword [edi + 0x14], ecx
mov dword [edi + 0x18], edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1013ad45
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.1013ad45
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret