Function at 0x1002f1d0
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, 0x68
mov eax, dword [0x10103fe8]
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x34], edx
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x1c], eax
test byte [edi + 8], 0x42
jne 0x1002fd02
cmp byte [edi + 0xc0], 0
jg 0x1002fd02
cmp byte [edi + 0xc1], 0
jg 0x1002fd02
cmp byte [edi + 0xa7], 0
je 0x1002fd02
movss xmm2, dword [eax + 0x3bc8]
xor edx, edx
movss xmm0, dword [edi + 0x48]
movaps xmm1, xmm2
addss xmm0, dword [0x100f1ec4]
mulss xmm2, dword [0x100f1e68]
mov esi, 4
mov cl, byte [eax + 0x66]
mulss xmm1, dword [0x100f1efc]
test cl, cl
mov byte [ebp - 3], 0
addss xmm0, xmm2
cmovne edx, esi
mov dword [ebp - 0x3c], edx
maxss xmm1, xmm0
cvttss2si eax, xmm1
movd xmm0, eax
cvtdq2ps xmm0, xmm0
mulss xmm0, dword [0x100f1ea0]
cvttss2si esi, xmm0
mov dword [ebp - 0x30], esi
je 0x1002f298
movss xmm0, dword [0x100f1fa8]
jmp 0x1002f29b
xorps xmm0, xmm0
movss dword [ebp - 0x28], xmm0
mov ecx, str.RESIZE
movss xmm0, dword [0x100f206c]
movaps xmm1, xmm0
movss dword [ebp - 0x10], xmm0
movss dword [ebp - 0x14], xmm0
movss dword [ebp - 0x20], xmm1
movss dword [ebp - 8], xmm0
mov dword [edi + 0x144], 1
call fcn.10033880
xor edx, edx
mov dword [ebp - 0x18], edx
cmp dword [ebx + 0xc], edx
jle 0x1002f71a
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 - 0x2c], ecx
addss xmm2, dword [edi + 0x1c]
xorps xmm6, xmm6
cvtsi2ss xmm6, esi
subss xmm3, xmm0
subss xmm2, xmm1
mulss xmm3, dword [ecx*8 + 0x100ebfd8]
mulss xmm2, dword [ecx*8 + 0x100ebfdc]
addss xmm3, xmm0
movss xmm0, dword [ecx*8 + 0x100ebfe0]
movaps xmm5, xmm0
mulss xmm0, dword [ebp - 0x28]
addss xmm2, xmm1
mulss xmm5, xmm6
movss xmm1, dword [ecx*8 + 0x100ebfe4]
movaps xmm4, xmm1
mulss xmm1, dword [ebp - 0x28]
mulss xmm4, xmm6
addss xmm5, xmm3
subss xmm3, xmm0
addss xmm4, xmm2
subss xmm2, xmm1
movss dword [ebp - 0x60], xmm5
comiss xmm3, xmm5
movss dword [ebp - 0x68], xmm3
movss dword [ebp - 0x64], xmm2
movss dword [ebp - 0x5c], xmm4
jbe 0x1002f387
movss dword [ebp - 0x68], xmm5
movss dword [ebp - 0x60], xmm3
comiss xmm2, xmm4
jbe 0x1002f396
movss dword [ebp - 0x64], xmm4
movss dword [ebp - 0x5c], xmm2
mov ecx, dword [edi + 0xe0]
mov esi, 4
mov eax, dword [edi + 0xe8]
lea edi, [ebp - 0x38]
mov dword [ebp - 0x38], 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 + 0x100ec040]
sub esi, 1
jne 0x1002f3b3
mov eax, dword [0x10103fe8]
not edx
mov esi, dword [ebp - 0x30]
mov dword [ebp - 0x24], edx
cmp dword [eax + 0x3e6c], edx
jne 0x1002f3f9
push ecx
push dword [ebp - 0x18]
mov ecx, dword [ebp - 0x24]
mov edx, 4
call fcn.1003ce00
mov edx, dword [ebp - 0x24]
add esp, 8
push 8
push 0
lea ecx, [ebp - 0x68]
call fcn.10035a80
mov edx, dword [ebp - 0x24]
lea eax, [ebp - 1]
push 0x40800
push eax
lea eax, [ebp - 2]
push eax
lea ecx, [ebp - 0x68]
call fcn.10051e00
mov cl, byte [ebp - 2]
add esp, 0x14
test cl, cl
jne 0x1002f432
mov al, byte [ebp - 1]
test al, al
je 0x1002f6cd
mov edx, dword [ebp - 0x18]
mov eax, edx
mov ecx, dword [ebp - 0x1c]
not eax
and eax, 1
add eax, 5
mov dword [ecx + 0x4938], eax
mov al, byte [ebp - 1]
test al, al
je 0x1002f6d5
cmp word [ecx + 0x3702], 2
jne 0x1002f4a7
test edx, edx
jne 0x1002f4a7
push dword [ebp - 0x34]
mov edi, dword [ebp - 0xc]
lea ecx, [ebp - 0x58]
mov edx, edi
call fcn.1002eb90
add esp, 4
mov byte [ebp - 3], 1
movss xmm0, dword [eax]
movss dword [ebp - 0x20], xmm0
movss xmm0, dword [eax + 4]
movss dword [ebp - 8], xmm0
call fcn.1002b0c0
mov edx, dword [ebp - 0x18]
cmp byte [ebp - 1], 0
je 0x1002f6ef
mov ecx, 0x20
jmp 0x1002f6fa
mov edx, dword [ebp - 0x2c]
movss xmm3, dword [0x100f1ec4]
mov edi, dword [ebx + 0x14]
movss xmm2, dword [0x100f20ac]
movss xmm0, dword [edx*8 + 0x100ebfdc]
ucomiss xmm0, xmm3
lahf
test ah, 0x44
jp 0x1002f4d6
movss xmm7, dword [edi + 4]
jmp 0x1002f4d9
movaps xmm7, xmm2
movss xmm1, dword [edx*8 + 0x100ebfd8]
ucomiss xmm1, xmm3
lahf
test ah, 0x44
jp 0x1002f4f1
movss xmm5, dword [edi]
jmp 0x1002f4f4
movaps xmm5, xmm2
xorps xmm2, xmm2
ucomiss xmm0, xmm2
lahf
test ah, 0x44
jp 0x1002f514
movss xmm0, dword [edi + 0xc]
movss dword [ebp - 0x24], xmm0
movss xmm0, dword [0x100f206c]
jmp 0x1002f521
movss xmm0, dword [0x100f206c]
movss dword [ebp - 0x24], xmm0
ucomiss xmm1, xmm2
lahf
test ah, 0x44
jp 0x1002f52f
movss xmm0, dword [edi + 8]
movss xmm1, dword [edx*8 + 0x100ebfe0]
xorps xmm4, xmm4
movss xmm3, dword [edx*8 + 0x100ebfe4]
cvtsi2ss xmm4, esi
movss dword [ebp - 0x20], xmm0
movaps xmm2, xmm3
xorps xmm4, xmmword [0x100f28b0]
movaps xmm0, xmm1
mulss xmm0, dword [ebp - 0x28]
movaps xmm6, xmm4
mulss xmm2, dword [ebp - 0x28]
mulss xmm6, xmm1
movss xmm1, dword [edx*8 + 0x100ebfd8]
mulss xmm4, xmm3
subss xmm6, xmm0
subss xmm4, xmm2
mulss xmm6, xmm1
mulss xmm4, dword [edx*8 + 0x100ebfdc]
addss xmm6, xmm0
movss xmm0, dword [ecx + 0xdbc]
subss xmm0, dword [ecx + 0x3e98]
addss xmm4, xmm2
addss xmm6, xmm0
movss xmm0, dword [ecx + 0xdc0]
subss xmm0, dword [ecx + 0x3e9c]
addss xmm0, xmm4
comiss xmm7, xmm0
ja 0x1002f5cb
movss xmm7, dword [ebp - 0x24]
minss xmm7, xmm0
comiss xmm5, xmm6
ja 0x1002f5d9
movss xmm5, dword [ebp - 0x20]
minss xmm5, xmm6
mov edi, dword [ebp - 0xc]
lea eax, [ebp - 0x48]
movss xmm4, dword [edx*8 + 0x100ebfdc]
lea ecx, [ebp - 0x50]
push eax
movss xmm0, dword [edi + 0x10]
movaps xmm2, xmm0
addss xmm0, dword [edi + 0x18]
subss xmm2, xmm5
mulss xmm2, xmm1
movss xmm1, dword [edi + 0x14]
movaps xmm3, xmm1
addss xmm1, dword [edi + 0x1c]
subss xmm3, xmm7
addss xmm2, xmm5
subss xmm5, xmm0
mulss xmm3, xmm4
mulss xmm5, dword [edx*8 + 0x100ebfd8]
mov edx, edi
addss xmm3, xmm7
movss dword [ebp - 0x10], xmm2
subss xmm7, xmm1
addss xmm5, xmm0
movss dword [ebp - 0x14], xmm3
mulss xmm7, xmm4
subss xmm5, xmm2
addss xmm7, xmm1
movss dword [ebp - 0x48], xmm5
subss xmm7, xmm3
movss dword [ebp - 0x44], xmm7
call fcn.1002eb90
mov ecx, dword [ebp - 0x2c]
add esp, 4
xorps xmm2, xmm2
movss xmm0, dword [ecx*8 + 0x100ebfd8]
ucomiss xmm0, xmm2
movss xmm0, dword [ebp - 0x50]
movss dword [ebp - 0x20], xmm0
lahf
test ah, 0x44
jp 0x1002f696
subss xmm0, dword [ebp - 0x48]
movss xmm1, dword [ebp - 0x10]
subss xmm1, xmm0
movss dword [ebp - 0x10], xmm1
movss xmm0, dword [ecx*8 + 0x100ebfdc]
ucomiss xmm0, xmm2
movss xmm0, dword [ebp - 0x4c]
movss dword [ebp - 8], xmm0
lahf
test ah, 0x44
jp 0x1002f6c5
subss xmm0, dword [ebp - 0x44]
movss xmm1, dword [ebp - 0x14]
subss xmm1, xmm0
movss dword [ebp - 0x14], xmm1
mov edx, dword [ebp - 0x18]
mov al, byte [ebp - 1]
jmp 0x1002f6d8
mov edi, dword [ebp - 0xc]
mov edx, dword [ebp - 0x18]
jmp 0x1002f6db
mov edi, dword [ebp - 0xc]
mov cl, byte [ebp - 2]
test edx, edx
je 0x1002f493
test al, al
jne 0x1002f49d
test cl, cl
je 0x1002f70d
xor ecx, ecx
cmp byte [ebp - 2], cl
setne cl
add ecx, 0x1e
movss xmm1, dword [0x100f1ec4]
call fcn.10028de0
mov ecx, dword [ebx + 0x10]
mov dword [ecx + edx*4], eax
inc edx
mov dword [ebp - 0x18], edx
cmp edx, dword [ebx + 0xc]
jl 0x1002f2e1
xor edi, edi
mov dword [ebp - 0x38], edi
cmp dword [ebp - 0x3c], edi
jbe 0x1002f9f7
nop dword [eax + eax]
lea eax, [edi*8]
sub eax, edi
shl eax, 2
mov dword [ebp - 0x40], eax
test edi, edi
je 0x1002f762
cmp edi, 1
je 0x1002f762
mov dword [ebp - 0x2c], 3
lea eax, [ebp - 0x44]
mov dword [ebp - 0x24], 0xdc0
mov dword [ebp - 0x18], 0x3e9c
jmp 0x1002f77a
mov dword [ebp - 0x2c], 4
lea eax, [ebp - 0x48]
mov dword [ebp - 0x24], 0xdbc
mov dword [ebp - 0x18], 0x3e98
mov edx, dword [ebp - 0xc]
movd xmm0, esi
push ecx
cvtdq2ps xmm3, xmm0
mov dword [esp], 0x40800000
lea ecx, [ebp - 0x68]
push edi
mov dword [ebp - 0x34], eax
call fcn.1002f0b0
mov ecx, dword [edx + 0xe0]
lea eax, [edi + 4]
mov dword [ebp - 0x28], eax
lea esi, [ebp - 0x28]
mov eax, dword [edx + 0xe8]
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 + 0x100ec040]
sub edi, 1
jne 0x1002f7c0
mov eax, dword [0x10103fe8]
not edx
mov esi, dword [ebp - 0x30]
mov edi, dword [ebp - 0x38]
mov dword [ebp - 0x28], edx
cmp dword [eax + 0x3e6c], edx
jne 0x1002f80a
push ecx
mov ecx, dword [ebp - 0x28]
lea eax, [edi + 4]
push eax
mov edx, 4
call fcn.1003ce00
mov edx, dword [ebp - 0x28]
add esp, 8
push 8
push 0
lea ecx, [ebp - 0x68]
call fcn.10035a80
mov edx, dword [ebp - 0x28]
lea eax, [ebp - 1]
push 0x40800
push eax
lea eax, [ebp - 2]
push eax
lea ecx, [ebp - 0x68]
call fcn.10051e00
mov al, byte [ebp - 1]
add esp, 0x14
cmp byte [ebp - 2], 0
mov ecx, dword [ebp - 0x1c]
je 0x1002f84e
movss xmm0, dword [ecx + 0x3e7c]
comiss xmm0, dword [0x100f1e50]
ja 0x1002f856
test al, al
je 0x1002f9ea
mov edx, dword [ebp - 0x2c]
mov dword [ecx + 0x4938], edx
test al, al
je 0x1002f9ea
mov eax, dword [ebx + 8]
mov dword [eax], edi
cmp edi, 3
jne 0x1002fa6d
mov eax, dword [ebx + 0x14]
movss xmm3, dword [0x100f20ac]
movss xmm4, dword [eax + 4]
movss xmm1, dword [0x100f206c]
movss xmm2, dword [0x100f206c]
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x24]
movss xmm0, dword [eax + 0x10]
movss dword [ebp - 0x48], xmm0
movss xmm0, dword [eax + 0x14]
movss dword [ebp - 0x44], xmm0
movss xmm0, dword [edx + ecx]
mov edx, dword [ebp - 0x18]
subss xmm0, dword [edx + ecx]
mov ecx, dword [ebp - 0x34]
addss xmm0, dword [0x100f1fa8]
movss dword [ecx], xmm0
movss xmm0, dword [ebp - 0x44]
comiss xmm4, xmm0
ja 0x1002f8dc
movaps xmm4, xmm1
minss xmm4, xmm0
movss xmm0, dword [ebp - 0x48]
comiss xmm3, xmm0
ja 0x1002f8ed
movaps xmm3, xmm2
minss xmm3, xmm0
mov ecx, dword [ebp - 0x40]
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 + 0x100ebe24]
subss xmm5, xmm3
minss xmm7, dword [ecx + 0x100ebe2c]
movss xmm2, dword [ecx + 0x100ebe20]
movaps xmm6, xmm1
minss xmm2, dword [ecx + 0x100ebe28]
addss xmm1, dword [eax + 0x1c]
subss xmm6, xmm4
lea ecx, [ebp - 0x50]
movss dword [ebp - 0x38], xmm7
push ecx
mulss xmm5, xmm2
lea ecx, [ebp - 0x58]
mulss xmm6, xmm7
addss xmm5, xmm3
movss dword [ebp - 0x40], xmm2
subss xmm3, xmm0
addss xmm6, xmm4
subss xmm4, xmm1
movss dword [ebp - 0x10], xmm5
mulss xmm3, xmm2
mulss xmm4, xmm7
addss xmm3, xmm0
movss dword [ebp - 0x14], xmm6
addss xmm4, xmm1
subss xmm3, xmm5
subss xmm4, xmm6
movss dword [ebp - 0x50], xmm3
movss dword [ebp - 0x4c], xmm4
call fcn.1002eb90
movss xmm0, dword [ebp - 0x40]
add esp, 4
xorps xmm2, xmm2
ucomiss xmm0, xmm2
movss xmm0, dword [ebp - 0x58]
movss dword [ebp - 0x20], xmm0
lahf
test ah, 0x44
jp 0x1002f9bf
subss xmm0, dword [ebp - 0x50]
movss xmm1, dword [ebp - 0x10]
subss xmm1, xmm0
movss dword [ebp - 0x10], xmm1
movss xmm0, dword [ebp - 0x38]
ucomiss xmm0, xmm2
movss xmm0, dword [ebp - 0x54]
movss dword [ebp - 8], xmm0
lahf
test ah, 0x44
jp 0x1002f9ea
subss xmm0, dword [ebp - 0x4c]
movss xmm1, dword [ebp - 0x14]
subss xmm1, xmm0
movss dword [ebp - 0x14], xmm1
inc edi
mov dword [ebp - 0x38], edi
cmp edi, dword [ebp - 0x3c]
jl 0x1002f730
mov esi, dword [0x10103fe8]
mov edx, dword [ebp - 0xc]
mov edi, dword [ebp - 0x1c]
mov eax, dword [esi + 0x3e38]
dec dword [eax + 0xe0]
mov dword [edx + 0x144], 0
mov eax, dword [edi + 0x490c]
test eax, eax
je 0x1002fc46
cmp dword [eax + 0x2fc], edx
jne 0x1002fc46
mov eax, dword [edi + 0x47e8]
cmp eax, 2
jne 0x1002fabb
cmp byte [edi + 0xdd5], 0
je 0x1002fc46
movss xmm2, dword [esi + 0x2e08]
movss xmm3, dword [esi + 0x2e28]
subss xmm2, dword [esi + 0x2df8]
subss xmm3, dword [esi + 0x2e18]
jmp 0x1002fae4
movss xmm0, dword [0x100f20ac]
movaps xmm4, xmm0
cmp edi, 1
jne 0x1002fa89
mov eax, dword [ebx + 0x14]
movss xmm3, dword [eax]
jmp 0x1002f885
movaps xmm3, xmm0
cmp edi, 2
jne 0x1002fa9e
mov eax, dword [ebx + 0x14]
movss xmm1, dword [eax + 0xc]
jmp 0x1002f88d
movss xmm1, dword [0x100f206c]
test edi, edi
jne 0x1002f88d
mov eax, dword [ebx + 0x14]
movss xmm2, dword [eax + 8]
jmp 0x1002f895
cmp eax, 3
jne 0x1002fc46
movss xmm2, dword [esi + 0x34e8]
movss xmm3, dword [esi + 0x3508]
subss xmm2, dword [esi + 0x34d8]
subss xmm3, dword [esi + 0x34f8]
xorps xmm7, xmm7
ucomiss xmm2, xmm7
lahf
test ah, 0x44
jp 0x1002fafd
ucomiss xmm3, xmm7
lahf
test ah, 0x44
jnp 0x1002fc50
movss xmm1, dword [edi + 0x58]
mov ecx, 0x20
minss xmm1, dword [edi + 0x5c]
movss xmm0, dword [edi + 0x18]
mulss xmm0, dword [0x100f2034]
mov eax, dword [ebx + 0x14]
mulss xmm1, xmm0
mulss xmm2, xmm1
mulss xmm3, xmm1
addss xmm2, dword [edi + 0x492c]
movss xmm1, dword [0x100f1ec4]
addss xmm3, dword [edi + 0x4930]
movss dword [edi + 0x492c], xmm2
movss dword [edi + 0x4930], xmm3
movss xmm0, dword [eax]
subss xmm0, dword [edx + 0x10]
subss xmm0, dword [edx + 0x18]
maxss xmm2, xmm0
movss xmm0, dword [eax + 4]
subss xmm0, dword [edx + 0x14]
subss xmm0, dword [edx + 0x1c]
movss dword [edi + 0x492c], xmm2
mov byte [edi + 0x4920], 0
mov byte [edi + 0x47f3], 1
maxss xmm3, xmm0
movss dword [edi + 0x4930], xmm3
call fcn.10028de0
mov ecx, dword [ebx + 0x10]
mov dword [ecx], eax
cvttss2si esi, dword [edi + 0x492c]
cvttss2si edi, dword [edi + 0x4930]
movd xmm0, esi
cvtdq2ps xmm0, xmm0
movd xmm1, edi
ucomiss xmm0, xmm7
cvtdq2ps xmm1, xmm1
lahf
test ah, 0x44
jp 0x1002fbd1
ucomiss xmm1, xmm7
lahf
test ah, 0x44
jnp 0x1002fc57
addss xmm0, dword [edx + 0x20]
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x50]
movss dword [ebp - 0x58], xmm0
movaps xmm0, xmm1
addss xmm0, dword [edx + 0x24]
movss dword [ebp - 0x54], xmm0
call fcn.1002eb90
mov edx, dword [ebp - 0xc]
add esp, 4
xorps xmm7, xmm7
movss xmm1, dword [eax]
movss xmm2, dword [eax + 4]
mov eax, dword [ebp - 0x1c]
movss dword [ebp - 0x20], xmm1
movd xmm1, esi
cvtdq2ps xmm1, xmm1
movss xmm0, dword [eax + 0x492c]
subss xmm0, xmm1
movd xmm1, edi
cvtdq2ps xmm1, xmm1
movss dword [eax + 0x492c], xmm0
movss xmm0, dword [eax + 0x4930]
subss xmm0, xmm1
movss dword [eax + 0x4930], xmm0
jmp 0x1002fc5c
movss xmm2, dword [ebp - 8]
xorps xmm7, xmm7
jmp 0x1002fc62
movss xmm2, dword [ebp - 8]
jmp 0x1002fc62
movss xmm2, dword [ebp - 8]
mov esi, dword [0x10103fe8]
movss xmm1, dword [0x100f206c]
movss xmm0, dword [ebp - 0x20]
ucomiss xmm0, xmm1
lahf
test ah, 0x44
jnp 0x1002fc9d
test dword [edx + 8], 0x100
movss dword [edx + 0x20], xmm0
movss dword [edx + 0x24], xmm2
jne 0x1002fc9d
comiss xmm7, dword [esi + 0x5a0c]
jb 0x1002fc9d
mov eax, dword [esi + 0x1c]
mov dword [esi + 0x5a0c], eax
movss xmm0, dword [ebp - 0x10]
ucomiss xmm0, xmm1
lahf
test ah, 0x44
jnp 0x1002fce7
test dword [edx + 8], 0x100
cvttss2si eax, xmm0
movd xmm1, eax
cvttss2si eax, dword [ebp - 0x14]
cvtdq2ps xmm1, xmm1
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [edx + 0x10], xmm1
movss dword [edx + 0x14], xmm0
jne 0x1002fce7
comiss xmm7, dword [esi + 0x5a0c]
jb 0x1002fce7
mov ecx, dword [esi + 0x1c]
mov dword [esi + 0x5a0c], ecx
mov esi, dword [ebp - 0xc]
mov ecx, dword [edx + 0x20]
mov edx, dword [edx + 0x24]
mov al, byte [ebp - 3]
mov dword [esi + 0x18], ecx
mov dword [esi + 0x1c], edx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret