Function at 0x409a80
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 [0x444090]
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x18], eax
test byte [edi + 8], 0x42
jne 0x40a517
cmp byte [edi + 0xa4], 0
jg 0x40a517
cmp byte [edi + 0xa5], 0
jg 0x40a517
cmp byte [edi + 0x8b], 0
je 0x40a517
movss xmm2, dword [eax + 0x1930]
xor edx, edx
movss xmm0, dword [edi + 0x44]
movaps xmm1, xmm2
addss xmm0, dword [0x43fe6c]
mulss xmm2, dword [0x43fe18]
mov esi, 4
mov cl, byte [eax + 0xb4]
mulss xmm1, dword [0x43fe78]
test cl, cl
mov byte [ebp - 3], 0
addss xmm0, xmm2
cmovne edx, esi
mov dword [ebp - 0x38], edx
maxss xmm1, xmm0
cvttss2si eax, xmm1
movd xmm0, eax
cvtdq2ps xmm0, xmm0
mulss xmm0, dword [0x43fe4c]
cvttss2si esi, xmm0
mov dword [ebp - 0x2c], esi
je 0x409b4b
movss xmm0, dword [0x43febc]
jmp 0x409b4e
xorps xmm0, xmm0
movss dword [ebp - 0x20], xmm0
mov ecx, str.RESIZE
movss xmm0, dword [0x43ff20]
movss dword [ebp - 0xc], xmm0
movss dword [ebp - 0x10], xmm0
movss dword [ebp - 0x1c], xmm0
movss dword [ebp - 8], xmm0
mov dword [edi + 0x144], 1
call fcn.0040de80
xor edx, edx
mov dword [ebp - 0x14], edx
cmp dword [ebx + 0xc], edx
jle 0x409faf
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 - 0x28], ecx
addss xmm2, dword [edi + 0x18]
xorps xmm6, xmm6
cvtsi2ss xmm6, esi
subss xmm3, xmm0
subss xmm2, xmm1
mulss xmm3, dword [ecx*8 + 0x4430d8]
mulss xmm2, dword [ecx*8 + 0x4430dc]
addss xmm3, xmm0
movss xmm0, dword [ecx*8 + 0x4430e0]
movaps xmm5, xmm0
mulss xmm0, dword [ebp - 0x20]
addss xmm2, xmm1
mulss xmm5, xmm6
movss xmm1, dword [ecx*8 + 0x4430e4]
movaps xmm4, xmm1
mulss xmm1, dword [ebp - 0x20]
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 0x409c37
movss dword [ebp - 0x68], xmm5
movss dword [ebp - 0x60], xmm3
comiss xmm2, xmm4
jbe 0x409c46
movss dword [ebp - 0x64], xmm4
movss dword [ebp - 0x5c], xmm2
mov ecx, dword [edi + 0xc4]
lea esi, [ebp - 0x34]
mov eax, dword [edi + 0xcc]
mov edi, 4
mov dword [ebp - 0x34], edx
mov edx, dword [eax + ecx*4 - 4]
not edx
movzx eax, byte [esi]
lea esi, [esi + 1]
movzx ecx, dl
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x43b618]
sub edi, 1
jne 0x409c63
mov eax, dword [0x444090]
not edx
mov esi, dword [ebp - 0x2c]
mov edi, dword [ebp - 0x24]
cmp dword [eax + 0x1bd4], edx
jne 0x409c98
mov dword [eax + 0x1bd8], edx
cmp dword [eax + 0x1c0c], edx
jne 0x409ca7
mov byte [eax + 0x1c10], 1
push 0x40800
lea eax, [ebp - 1]
push eax
lea eax, [ebp - 2]
push eax
lea ecx, [ebp - 0x68]
call fcn.00426750
mov cl, byte [ebp - 2]
add esp, 0xc
test cl, cl
jne 0x409cd1
mov al, byte [ebp - 1]
test al, al
je 0x409ff2
mov edx, dword [ebp - 0x14]
mov eax, edx
mov ecx, dword [ebp - 0x18]
not eax
and eax, 1
add eax, 5
mov dword [ecx + 0x1e40], eax
mov al, byte [ebp - 1]
test al, al
je 0x409f6d
cmp byte [ecx + 0x3dd], 0
je 0x409d42
test edx, edx
jne 0x409d42
push dword [ebp - 0x30]
mov edx, edi
lea ecx, [ebp - 0x58]
call fcn.004093d0
add esp, 4
mov byte [ebp - 3], 1
movss xmm3, dword [eax]
movss xmm2, dword [eax + 4]
movss dword [ebp - 0x1c], xmm3
movss dword [ebp - 8], xmm2
call fcn.00404c30
mov edx, dword [ebp - 0x14]
cmp byte [ebp - 1], 0
je 0x409f84
mov ecx, 0x20
jmp 0x409f8f
mov edx, dword [ebp - 0x28]
movss xmm3, dword [0x43fe6c]
movss xmm2, dword [0x43ff54]
movss xmm0, dword [edx*8 + 0x4430dc]
ucomiss xmm0, xmm3
lahf
test ah, 0x44
jp 0x409d71
mov eax, dword [ebx + 0x14]
movss xmm6, dword [eax + 4]
jmp 0x409d74
movaps xmm6, xmm2
movss xmm1, dword [edx*8 + 0x4430d8]
ucomiss xmm1, xmm3
lahf
test ah, 0x44
jp 0x409d8f
mov eax, dword [ebx + 0x14]
movss xmm5, dword [eax]
jmp 0x409d92
movaps xmm5, xmm2
xorps xmm2, xmm2
ucomiss xmm0, xmm2
lahf
test ah, 0x44
jp 0x409db5
mov eax, dword [ebx + 0x14]
movss xmm0, dword [eax + 0xc]
movss dword [ebp - 0x1c], xmm0
movss xmm0, dword [0x43ff20]
jmp 0x409dc2
movss xmm0, dword [0x43ff20]
movss dword [ebp - 0x1c], xmm0
ucomiss xmm1, xmm2
lahf
test ah, 0x44
jp 0x409dd5
mov eax, dword [ebx + 0x14]
movss xmm7, dword [eax + 8]
jmp 0x409dd8
movaps xmm7, xmm0
movss xmm4, dword [edx*8 + 0x4430e0]
xorps xmm3, xmm3
movss xmm2, dword [edx*8 + 0x4430e4]
movaps xmm0, xmm4
mulss xmm0, dword [ebp - 0x20]
movaps xmm1, xmm2
mulss xmm1, dword [ebp - 0x20]
cvtsi2ss xmm3, esi
xorps xmm3, xmmword [0x4402a0]
mulss xmm4, xmm3
mulss xmm2, xmm3
subss xmm4, xmm0
subss xmm2, xmm1
mulss xmm4, dword [edx*8 + 0x4430d8]
mulss xmm2, dword [edx*8 + 0x4430dc]
addss xmm4, xmm0
movss xmm0, dword [ecx + 0xe4]
subss xmm0, dword [ecx + 0x1bf8]
addss xmm2, xmm1
addss xmm4, xmm0
movss xmm0, dword [ecx + 0xe8]
subss xmm0, dword [ecx + 0x1bfc]
addss xmm0, xmm2
comiss xmm6, xmm0
ja 0x409e68
movss xmm6, dword [ebp - 0x1c]
minss xmm6, xmm0
comiss xmm5, xmm4
ja 0x409e74
movaps xmm5, xmm7
minss xmm5, xmm4
movss xmm0, dword [edi + 0xc]
lea eax, [ebp - 0x48]
movss xmm1, dword [edi + 0x10]
lea ecx, [ebp - 0x50]
movss xmm4, dword [edx*8 + 0x4430d8]
movaps xmm2, xmm0
movss xmm7, dword [edx*8 + 0x4430dc]
subss xmm2, xmm5
addss xmm0, dword [edi + 0x14]
movaps xmm3, xmm1
mov edx, edi
addss xmm1, dword [edi + 0x18]
subss xmm3, xmm6
mulss xmm2, xmm4
push eax
mulss xmm3, xmm7
addss xmm2, xmm5
subss xmm5, xmm0
addss xmm3, xmm6
subss xmm6, xmm1
movss dword [ebp - 0xc], xmm2
mulss xmm5, xmm4
movss dword [ebp - 0x10], xmm3
mulss xmm6, xmm7
addss xmm5, xmm0
addss xmm6, xmm1
subss xmm5, xmm2
subss xmm6, xmm3
movss dword [ebp - 0x48], xmm5
movss dword [ebp - 0x44], xmm6
call fcn.004093d0
mov ecx, dword [ebp - 0x28]
add esp, 4
movss xmm3, dword [ebp - 0x50]
xorps xmm2, xmm2
movss dword [ebp - 0x1c], xmm3
movss xmm0, dword [ecx*8 + 0x4430d8]
ucomiss xmm0, xmm2
lahf
test ah, 0x44
jp 0x409f35
movss xmm1, dword [ebp - 0xc]
movaps xmm0, xmm3
subss xmm0, dword [ebp - 0x48]
subss xmm1, xmm0
movss dword [ebp - 0xc], xmm1
movss xmm0, dword [ecx*8 + 0x4430dc]
ucomiss xmm0, xmm2
movss xmm2, dword [ebp - 0x4c]
movss dword [ebp - 8], xmm2
lahf
test ah, 0x44
jp 0x409f67
movss xmm1, dword [ebp - 0x10]
movaps xmm0, xmm2
subss xmm0, dword [ebp - 0x44]
subss xmm1, xmm0
movss dword [ebp - 0x10], xmm1
mov edx, dword [ebp - 0x14]
mov al, byte [ebp - 1]
mov cl, byte [ebp - 2]
test edx, edx
je 0x409d2e
test al, al
jne 0x409d38
test cl, cl
je 0x409fa2
xor ecx, ecx
cmp byte [ebp - 2], cl
setne cl
add ecx, 0x1e
movss xmm1, dword [0x43fe6c]
call fcn.004036c0
mov ecx, dword [ebx + 0x10]
mov dword [ecx + edx*4], eax
inc edx
mov dword [ebp - 0x14], edx
cmp edx, dword [ebx + 0xc]
jl 0x409b91
xor edi, edi
mov dword [ebp - 0x34], edi
cmp dword [ebp - 0x38], edi
jbe 0x40a275
nop dword [eax]
lea eax, [edi*8]
sub eax, edi
shl eax, 2
mov dword [ebp - 0x40], eax
test edi, edi
je 0x409ffa
cmp edi, 1
je 0x409ffa
mov dword [ebp - 0x28], 3
lea eax, [ebp - 0x44]
mov dword [ebp - 0x20], 0xe8
mov dword [ebp - 0x14], 0x1bfc
jmp 0x40a012
mov edx, dword [ebp - 0x14]
jmp 0x409f70
mov dword [ebp - 0x28], 4
lea eax, [ebp - 0x48]
mov dword [ebp - 0x20], 0xe4
mov dword [ebp - 0x14], 0x1bf8
mov edx, dword [ebp - 0x24]
movd xmm0, esi
push ecx
cvtdq2ps xmm3, xmm0
mov dword [esp], 0x40800000
lea ecx, [ebp - 0x68]
push edi
mov dword [ebp - 0x30], eax
call fcn.00409960
mov ecx, dword [edx + 0xc4]
lea eax, [edi + 4]
mov dword [ebp - 0x3c], eax
lea esi, [ebp - 0x3c]
mov eax, dword [edx + 0xcc]
add esp, 8
mov edi, 4
mov edx, dword [eax + ecx*4 - 4]
not edx
movzx eax, byte [esi]
lea esi, [esi + 1]
movzx ecx, dl
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x43b618]
sub edi, 1
jne 0x40a053
mov eax, dword [0x444090]
not edx
mov esi, dword [ebp - 0x2c]
mov edi, dword [ebp - 0x34]
cmp dword [eax + 0x1bd4], edx
jne 0x40a088
mov dword [eax + 0x1bd8], edx
cmp dword [eax + 0x1c0c], edx
jne 0x40a097
mov byte [eax + 0x1c10], 1
push 0x800
lea eax, [ebp - 1]
push eax
lea eax, [ebp - 2]
push eax
lea ecx, [ebp - 0x68]
call fcn.00426750
mov al, byte [ebp - 1]
add esp, 0xc
cmp byte [ebp - 2], 0
mov edx, dword [ebp - 0x18]
je 0x40a0cc
movss xmm0, dword [edx + 0x1bcc]
comiss xmm0, dword [0x43fe00]
ja 0x40a0d4
test al, al
je 0x40a268
mov ecx, dword [ebp - 0x28]
mov dword [edx + 0x1e40], ecx
test al, al
je 0x40a268
mov eax, dword [ebx + 8]
mov dword [eax], edi
cmp edi, 3
jne 0x40a2f6
mov eax, dword [ebx + 0x14]
movss xmm4, dword [0x43ff54]
movss xmm3, dword [eax + 4]
movss xmm1, dword [0x43ff20]
movss xmm5, dword [0x43ff20]
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x20]
movss xmm0, dword [eax + 0xc]
movss dword [ebp - 0x48], xmm0
movss xmm0, dword [eax + 0x10]
movss dword [ebp - 0x44], xmm0
movss xmm0, dword [ecx + edx]
mov ecx, dword [ebp - 0x14]
subss xmm0, dword [ecx + edx]
mov ecx, dword [ebp - 0x30]
addss xmm0, dword [0x43febc]
movss dword [ecx], xmm0
movss xmm0, dword [ebp - 0x44]
comiss xmm3, xmm0
ja 0x40a15a
movaps xmm3, xmm1
minss xmm3, xmm0
movss xmm0, dword [ebp - 0x48]
comiss xmm4, xmm0
ja 0x40a16b
movaps xmm4, xmm5
minss xmm4, xmm0
mov ecx, dword [ebp - 0x40]
mov edx, eax
movss xmm0, dword [eax + 0xc]
movss xmm1, dword [eax + 0x10]
movaps xmm5, xmm0
addss xmm0, dword [eax + 0x14]
movss xmm7, dword [ecx + 0x443144]
subss xmm5, xmm4
minss xmm7, dword [ecx + 0x44314c]
movss xmm2, dword [ecx + 0x443140]
movaps xmm6, xmm1
minss xmm2, dword [ecx + 0x443148]
addss xmm1, dword [eax + 0x18]
subss xmm6, xmm3
lea ecx, [ebp - 0x50]
movss dword [ebp - 0x3c], xmm7
push ecx
mulss xmm5, xmm2
lea ecx, [ebp - 0x58]
mulss xmm6, xmm7
addss xmm5, xmm4
movss dword [ebp - 0x40], xmm2
subss xmm4, xmm0
addss xmm6, xmm3
subss xmm3, xmm1
movss dword [ebp - 0xc], xmm5
mulss xmm4, xmm2
mulss xmm3, xmm7
addss xmm4, xmm0
movss dword [ebp - 0x10], xmm6
addss xmm3, xmm1
subss xmm4, xmm5
subss xmm3, xmm6
movss dword [ebp - 0x50], xmm4
movss dword [ebp - 0x4c], xmm3
call fcn.004093d0
movss xmm0, dword [ebp - 0x40]
add esp, 4
xorps xmm2, xmm2
ucomiss xmm0, xmm2
movss xmm0, dword [ebp - 0x58]
movss dword [ebp - 0x1c], xmm0
lahf
test ah, 0x44
jp 0x40a23d
subss xmm0, dword [ebp - 0x50]
movss xmm1, dword [ebp - 0xc]
subss xmm1, xmm0
movss dword [ebp - 0xc], xmm1
movss xmm0, dword [ebp - 0x3c]
ucomiss xmm0, xmm2
movss xmm0, dword [ebp - 0x54]
movss dword [ebp - 8], xmm0
lahf
test ah, 0x44
jp 0x40a268
subss xmm0, dword [ebp - 0x4c]
movss xmm1, dword [ebp - 0x10]
subss xmm1, xmm0
movss dword [ebp - 0x10], xmm1
inc edi
mov dword [ebp - 0x34], edi
cmp edi, dword [ebp - 0x38]
jl 0x409fc0
mov edi, dword [0x444090]
mov esi, dword [ebp - 0x24]
mov eax, dword [edi + 0x1b9c]
dec dword [eax + 0xc4]
mov eax, dword [ebp - 0x18]
mov dword [esi + 0x144], 0
mov ecx, dword [eax + 0x1e08]
test ecx, ecx
je 0x40a472
cmp dword [ecx + 0x31c], esi
jne 0x40a472
mov ecx, dword [eax + 0x1d30]
cmp ecx, 2
jne 0x40a34a
cmp byte [eax + 0xfd], 0
je 0x40a472
xor edx, edx
lea ecx, [edx + 0x14]
call fcn.00410300
lea ecx, [edx + 0x13]
movaps xmm7, xmm0
call fcn.00410300
lea ecx, [edx + 0x12]
subss xmm7, xmm0
call fcn.00410300
lea ecx, [edx + 0x11]
jmp 0x40a377
movss xmm1, dword [0x43ff54]
movaps xmm3, xmm1
movaps xmm0, xmm3
cmp edi, 1
jne 0x40a315
mov eax, dword [ebx + 0x14]
movss xmm4, dword [eax]
jmp 0x40a103
movaps xmm4, xmm1
movaps xmm2, xmm4
cmp edi, 2
jne 0x40a32d
mov eax, dword [ebx + 0x14]
movss xmm1, dword [eax + 0xc]
jmp 0x40a10b
movss xmm1, dword [0x43ff20]
test edi, edi
jne 0x40a10b
mov eax, dword [ebx + 0x14]
movss xmm5, dword [eax + 8]
jmp 0x40a113
cmp ecx, 3
jne 0x40a472
xor edx, edx
lea ecx, [edx + 7]
call fcn.00410300
lea ecx, [edx + 6]
movaps xmm7, xmm0
call fcn.00410300
lea ecx, [edx + 5]
subss xmm7, xmm0
call fcn.00410300
lea ecx, [edx + 4]
xor edx, edx
movaps xmm5, xmm0
call fcn.00410300
subss xmm5, xmm0
xorps xmm3, xmm3
addss xmm7, xmm3
addss xmm5, xmm3
ucomiss xmm5, xmm3
lahf
test ah, 0x44
jp 0x40a3a6
ucomiss xmm7, xmm3
lahf
test ah, 0x44
jnp 0x40a475
mov ecx, dword [ebp - 0x18]
movss xmm1, dword [ecx + 0xa8]
movss xmm0, dword [ecx + 0x18]
mulss xmm0, dword [0x43fefc]
minss xmm1, dword [ecx + 0xac]
mulss xmm1, xmm0
cvttss2si eax, xmm1
movss xmm1, dword [0x43fe6c]
movd xmm2, eax
mov eax, dword [ebx + 0x14]
cvtdq2ps xmm2, xmm2
movss xmm0, dword [eax]
subss xmm0, dword [esi + 0xc]
mulss xmm5, xmm2
mulss xmm7, xmm2
subss xmm0, dword [esi + 0x14]
maxss xmm5, xmm0
movss xmm0, dword [eax + 4]
subss xmm0, dword [esi + 0x10]
movss dword [ebp - 0x40], xmm5
subss xmm0, dword [esi + 0x18]
mov byte [ecx + 0x1e1c], 0
mov byte [ecx + 0x1d53], 1
mov ecx, 0x20
maxss xmm7, xmm0
call fcn.004036c0
mov ecx, dword [ebx + 0x10]
mov edx, esi
movss xmm0, dword [ebp - 0x40]
mov dword [ecx], eax
lea eax, [ebp - 0x58]
addss xmm0, dword [esi + 0x1c]
addss xmm7, dword [esi + 0x20]
push eax
lea ecx, [ebp - 0x50]
movss dword [ebp - 0x58], xmm0
movss dword [ebp - 0x54], xmm7
call fcn.004093d0
mov edi, dword [0x444090]
add esp, 4
xorps xmm3, xmm3
movss xmm0, dword [eax]
movss dword [ebp - 0x1c], xmm0
movss xmm0, dword [eax + 4]
jmp 0x40a47a
xorps xmm3, xmm3
movss xmm0, dword [ebp - 8]
movss xmm1, dword [0x43ff20]
movss xmm2, dword [ebp - 0x1c]
ucomiss xmm2, xmm1
lahf
test ah, 0x44
jnp 0x40a4b5
test dword [esi + 8], 0x100
movss dword [esi + 0x1c], xmm2
movss dword [esi + 0x20], xmm0
jne 0x40a4b5
comiss xmm3, dword [edi + 0x2ea0]
jb 0x40a4b5
mov eax, dword [edi + 0x1c]
mov dword [edi + 0x2ea0], eax
movss xmm0, dword [ebp - 0xc]
ucomiss xmm0, xmm1
lahf
test ah, 0x44
jnp 0x40a4ff
test dword [esi + 8], 0x100
cvttss2si eax, xmm0
movd xmm1, eax
cvttss2si eax, dword [ebp - 0x10]
cvtdq2ps xmm1, xmm1
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [esi + 0xc], xmm1
movss dword [esi + 0x10], xmm0
jne 0x40a4ff
comiss xmm3, dword [edi + 0x2ea0]
jb 0x40a4ff
mov ecx, dword [edi + 0x1c]
mov dword [edi + 0x2ea0], ecx
mov ecx, dword [esi + 0x1c]
mov edx, dword [esi + 0x20]
mov al, byte [ebp - 3]
mov dword [esi + 0x14], ecx
mov dword [esi + 0x18], 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