Function at 0x418a20
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, 0x78
mov eax, dword [0x4af040]
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 - 0x54], eax
mov eax, dword [0x4af98c]
test byte [edi + 8], 0x42
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x2c], eax
jne 0x41936e
cmp dword [edi + 0x90], 0
jg 0x41936e
cmp dword [edi + 0x94], 0
jg 0x41936e
cmp byte [edi + 0x7b], 0
je 0x41936e
movss xmm2, dword [eax + 0x18c8]
xor edx, edx
movss xmm0, dword [edi + 0x3c]
movaps xmm1, xmm2
addss xmm0, dword [0x4a9f90]
mulss xmm2, dword [0x4a9f50]
mov esi, 4
mov cl, byte [eax + 0xaf]
mulss xmm1, dword [0x4a9f94]
test cl, cl
mov byte [ebp - 0x1d], 0
addss xmm0, xmm2
cmovne edx, esi
mov dword [ebp - 0x50], edx
maxss xmm1, xmm0
cvttss2si eax, xmm1
movd xmm0, eax
cvtdq2ps xmm0, xmm0
mulss xmm0, dword [0x4a9f7c]
cvttss2si esi, xmm0
mov dword [ebp - 0x48], esi
je 0x418afe
movss xmm0, dword [0x4a9fcc]
jmp 0x418b01
xorps xmm0, xmm0
movss dword [ebp - 0x18], xmm0
movss xmm0, dword [0x4aa054]
movss dword [ebp - 0x24], xmm0
movss dword [ebp - 0x28], xmm0
movss dword [ebp - 0x30], xmm0
movss dword [ebp - 0x1c], xmm0
mov dword [edi + 0x130], 1
mov dword [edi + 0x134], 2
call fcn.0041d220
xor edx, edx
mov dword [ebp - 0x14], edx
cmp dword [ebx + 0xc], edx
jle 0x418ec8
nop dword [eax]
movss xmm0, dword [edi + 0xc]
lea eax, [edx + edx*2]
movss xmm1, dword [edi + 0x10]
movaps xmm3, xmm0
addss xmm3, dword [edi + 0x14]
movaps xmm2, xmm1
mov dword [ebp - 0x44], eax
addss xmm2, dword [edi + 0x18]
xorps xmm6, xmm6
cvtsi2ss xmm6, esi
subss xmm3, xmm0
subss xmm2, xmm1
mulss xmm3, dword [eax*8 + 0x4af0b0]
mulss xmm2, dword [eax*8 + 0x4af0b4]
addss xmm3, xmm0
movss xmm0, dword [eax*8 + 0x4af0b8]
movaps xmm5, xmm0
mulss xmm0, dword [ebp - 0x18]
addss xmm2, xmm1
mulss xmm5, xmm6
movss xmm1, dword [eax*8 + 0x4af0bc]
movaps xmm4, xmm1
mulss xmm1, dword [ebp - 0x18]
mulss xmm4, xmm6
addss xmm5, xmm3
subss xmm3, xmm0
addss xmm4, xmm2
subss xmm2, xmm1
movss dword [ebp - 0x64], xmm5
comiss xmm3, xmm5
movss dword [ebp - 0x6c], xmm3
movss dword [ebp - 0x68], xmm2
movss dword [ebp - 0x60], xmm4
jbe 0x418bf6
movss dword [ebp - 0x6c], xmm5
movss dword [ebp - 0x64], xmm3
comiss xmm2, xmm4
jbe 0x418c05
movss dword [ebp - 0x68], xmm4
movss dword [ebp - 0x60], xmm2
mov ecx, dword [edi + 0x1c4]
lea esi, [ebp - 8]
mov eax, dword [edi + 0x1cc]
mov edi, 4
mov dword [ebp - 8], 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 + 0x4543f8]
sub edi, 1
jne 0x418c22
mov eax, dword [0x4af98c]
not edx
mov esi, dword [ebp - 0x48]
mov edi, dword [ebp - 0x4c]
cmp dword [eax + 0x19d0], edx
jne 0x418c57
mov dword [eax + 0x19d4], edx
cmp dword [eax + 0x19fc], edx
jne 0x418c66
mov byte [eax + 0x1a00], 1
push 0x2020
lea eax, [ebp - 0xe]
push eax
lea eax, [ebp - 0xd]
push eax
lea ecx, [ebp - 0x6c]
call fcn.00431ea0
mov cl, byte [ebp - 0xd]
add esp, 0xc
test cl, cl
jne 0x418c90
mov al, byte [ebp - 0xe]
test al, al
je 0x418ff1
mov edx, dword [ebp - 0x14]
mov eax, edx
mov ecx, dword [ebp - 0x2c]
not eax
and eax, 1
add eax, 5
mov dword [ecx + 0x1d14], eax
mov al, byte [ebp - 0xe]
test al, al
je 0x418e86
cmp byte [ecx + 0x3dd], 0
je 0x418d06
test edx, edx
jne 0x418d06
mov eax, dword [ebp - 0x34]
lea ecx, [ebp - 0x78]
mov edx, edi
push dword [eax + 4]
push dword [eax]
call fcn.00418420
add esp, 8
mov byte [ebp - 0x1d], 1
movss xmm3, dword [eax]
movss xmm2, dword [eax + 4]
movss dword [ebp - 0x30], xmm3
movss dword [ebp - 0x1c], xmm2
call fcn.00415140
mov edx, dword [ebp - 0x14]
cmp byte [ebp - 0xe], 0
je 0x418e9d
mov ecx, 0x20
jmp 0x418ea8
mov eax, dword [ebp - 0x44]
mov edx, edi
movss xmm7, dword [ecx + 0xe4]
subss xmm7, dword [ecx + 0x19f0]
movd xmm3, esi
movss xmm2, dword [eax*8 + 0x4af0bc]
movss xmm6, dword [eax*8 + 0x4af0b8]
movaps xmm1, xmm2
mulss xmm1, dword [ebp - 0x18]
movaps xmm0, xmm6
mulss xmm0, dword [ebp - 0x18]
movss xmm4, dword [eax*8 + 0x4af0b0]
movss xmm5, dword [eax*8 + 0x4af0b4]
cvtdq2ps xmm3, xmm3
xorps xmm3, xmmword [0x4aa2c0]
mulss xmm6, xmm3
mulss xmm2, xmm3
subss xmm6, xmm0
subss xmm2, xmm1
mulss xmm6, xmm4
mulss xmm2, xmm5
addss xmm6, xmm0
movss xmm0, dword [ecx + 0xe0]
subss xmm0, dword [ecx + 0x19ec]
addss xmm2, xmm1
movss xmm1, dword [edi + 0x10]
movaps xmm3, xmm1
lea ecx, [ebp - 0x5c]
addss xmm1, dword [edi + 0x18]
addss xmm6, xmm0
movss xmm0, dword [edi + 0xc]
addss xmm7, xmm2
movaps xmm2, xmm0
addss xmm0, dword [edi + 0x14]
subss xmm2, xmm6
subss xmm3, xmm7
mulss xmm2, xmm4
mulss xmm3, xmm5
addss xmm2, xmm6
subss xmm6, xmm0
addss xmm3, xmm7
subss xmm7, xmm1
movss dword [ebp - 0x24], xmm2
mulss xmm6, xmm4
mulss xmm7, xmm5
addss xmm6, xmm0
movss dword [ebp - 0x28], xmm3
addss xmm7, xmm1
subss xmm6, xmm2
subss xmm7, xmm3
movss dword [ebp - 0x40], xmm6
movss dword [ebp - 8], xmm6
movss dword [ebp - 0x3c], xmm7
push dword [ebp - 0x3c]
movss dword [ebp - 0xc], xmm7
push dword [ebp - 0x40]
call fcn.00418420
mov ecx, dword [ebp - 0x44]
add esp, 8
movss xmm3, dword [ebp - 0x5c]
xorps xmm1, xmm1
movss dword [ebp - 0x30], xmm3
movss xmm0, dword [ecx*8 + 0x4af0b0]
ucomiss xmm0, xmm1
lahf
test ah, 0x44
jp 0x418e4e
movss xmm2, dword [ebp - 0x24]
movaps xmm0, xmm3
subss xmm0, dword [ebp - 8]
subss xmm2, xmm0
movss dword [ebp - 0x24], xmm2
movss xmm0, dword [ecx*8 + 0x4af0b4]
movss xmm2, dword [ebp - 0x58]
ucomiss xmm0, xmm1
movss dword [ebp - 0x1c], xmm2
lahf
test ah, 0x44
jp 0x418e80
movss xmm1, dword [ebp - 0x28]
movaps xmm0, xmm2
subss xmm0, dword [ebp - 0xc]
subss xmm1, xmm0
movss dword [ebp - 0x28], xmm1
mov edx, dword [ebp - 0x14]
mov al, byte [ebp - 0xe]
mov cl, byte [ebp - 0xd]
test edx, edx
je 0x418cf2
test al, al
jne 0x418cfc
test cl, cl
je 0x418ebb
xor ecx, ecx
cmp byte [ebp - 0xd], cl
setne cl
add ecx, 0x1e
movss xmm1, dword [0x4a9f90]
call fcn.00413930
mov ecx, dword [ebp - 0x54]
mov dword [ecx + edx*4], eax
inc edx
mov dword [ebp - 0x14], edx
cmp edx, dword [ebx + 0xc]
jl 0x418b50
xor edx, edx
mov dword [ebp - 0x18], edx
cmp dword [ebp - 0x50], edx
jbe 0x419116
movd xmm0, esi
push ecx
cvtdq2ps xmm3, xmm0
mov dword [esp], 0x40800000
lea ecx, [ebp - 0x6c]
push edx
mov edx, edi
call fcn.00418900
mov eax, dword [ebp - 0x18]
lea esi, [ebp - 0xc]
mov ecx, dword [edi + 0x1c4]
add esp, 8
add eax, 4
mov dword [ebp - 0xc], eax
mov eax, dword [edi + 0x1cc]
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 + 0x4543f8]
sub edi, 1
jne 0x418f16
mov eax, dword [0x4af98c]
not edx
mov esi, dword [ebp - 0x48]
mov edi, dword [ebp - 0x4c]
cmp dword [eax + 0x19d0], edx
jne 0x418f4b
mov dword [eax + 0x19d4], edx
cmp dword [eax + 0x19fc], edx
jne 0x418f5a
mov byte [eax + 0x1a00], 1
push 0x20
lea eax, [ebp - 0xd]
push eax
lea eax, [ebp - 0xe]
push eax
lea ecx, [ebp - 0x6c]
call fcn.00431ea0
mov ecx, dword [ebp - 0x2c]
add esp, 0xc
cmp byte [ebp - 0xe], 0
je 0x418f89
movss xmm0, dword [ecx + 0x19c8]
comiss xmm0, dword [0x4a9f40]
ja 0x418f93
cmp byte [ebp - 0xd], 0
je 0x419106
mov edx, dword [ebp - 0x18]
mov eax, edx
and eax, 1
add eax, 3
cmp byte [ebp - 0xd], 0
mov dword [ecx + 0x1d14], eax
je 0x419109
mov eax, dword [ebp - 0x70]
xorps xmm4, xmm4
movss dword [ebp - 0x1c], xmm4
xorps xmm5, xmm5
movss dword [ebp - 0x14], xmm5
mov dword [eax], edx
movss xmm6, dword [edi + 0xc]
movss xmm7, dword [edi + 0x10]
movaps xmm0, xmm6
movaps xmm1, xmm7
test edx, edx
jne 0x418ff9
movss xmm1, dword [ecx + 0xe4]
subss xmm1, dword [ecx + 0x19f0]
addss xmm1, dword [0x4a9fcc]
jmp 0x419034
mov edx, dword [ebp - 0x14]
jmp 0x418e89
cmp edx, 1
jne 0x419008
movss xmm5, dword [0x4a9f90]
jmp 0x41901c
cmp edx, 2
jne 0x419017
movss xmm4, dword [0x4a9f90]
jmp 0x418fd7
cmp edx, 3
jne 0x41903e
movss xmm0, dword [ecx + 0xe0]
subss xmm0, dword [ecx + 0x19ec]
addss xmm0, dword [0x4a9fcc]
movss dword [ebp - 0x1c], xmm4
movss dword [ebp - 0x14], xmm5
movaps xmm3, xmm7
lea ecx, [ebp - 0x5c]
addss xmm7, dword [edi + 0x18]
subss xmm3, xmm1
movaps xmm2, xmm6
addss xmm6, dword [edi + 0x14]
subss xmm2, xmm0
mov edx, edi
mulss xmm3, xmm4
mulss xmm2, xmm5
addss xmm3, xmm1
subss xmm1, xmm7
addss xmm2, xmm0
subss xmm0, xmm6
movss dword [ebp - 0x28], xmm3
mulss xmm1, xmm4
mulss xmm0, xmm5
addss xmm1, xmm7
movss dword [ebp - 0x24], xmm2
addss xmm0, xmm6
subss xmm1, xmm3
subss xmm0, xmm2
movss dword [ebp - 0x34], xmm1
push dword [ebp - 0x34]
movss dword [ebp - 0x38], xmm0
push dword [ebp - 0x38]
call fcn.00418420
movss xmm0, dword [ebp - 0x14]
add esp, 8
xorps xmm1, xmm1
ucomiss xmm0, xmm1
movss xmm0, dword [ebp - 0x5c]
movss dword [ebp - 0x30], xmm0
lahf
test ah, 0x44
jp 0x4190db
subss xmm0, dword [ebp - 0x38]
movss xmm2, dword [ebp - 0x24]
subss xmm2, xmm0
movss dword [ebp - 0x24], xmm2
movss xmm0, dword [ebp - 0x1c]
ucomiss xmm0, xmm1
movss xmm0, dword [ebp - 0x58]
movss dword [ebp - 0x1c], xmm0
lahf
test ah, 0x44
jp 0x419106
subss xmm0, dword [ebp - 0x34]
movss xmm1, dword [ebp - 0x28]
subss xmm1, xmm0
movss dword [ebp - 0x28], xmm1
mov edx, dword [ebp - 0x18]
inc edx
mov dword [ebp - 0x18], edx
cmp edx, dword [ebp - 0x50]
jl 0x418ed6
mov esi, dword [0x4af98c]
xorps xmm5, xmm5
mov ecx, dword [ebp - 0x2c]
mov eax, dword [esi + 0x19ac]
dec dword [eax + 0x1c4]
mov eax, dword [ecx + 0x1af4]
test eax, eax
je 0x4192ae
cmp dword [eax + 0x2fc], edi
jne 0x4192ae
mov eax, dword [ecx + 0x1adc]
xorps xmm6, xmm6
movss dword [ebp - 0x14], xmm6
xorps xmm7, xmm7
movss dword [ebp - 0x18], xmm7
cmp eax, 3
jne 0x41919f
cmp byte [ecx + 0xf9], 0
je 0x4191f5
xor edx, edx
lea ecx, [eax + 0x10]
call fcn.0041eee0
lea ecx, [edx + 0x12]
movaps xmm7, xmm0
call fcn.0041eee0
subss xmm7, xmm0
lea ecx, [edx + 0x15]
addss xmm7, xmm5
movss dword [ebp - 0x18], xmm7
call fcn.0041eee0
lea ecx, [edx + 0x14]
jmp 0x4191db
movss dword [ebp - 0x14], xmm6
movss dword [ebp - 0x18], xmm7
cmp eax, 4
jne 0x4191f5
xor edx, edx
lea ecx, [eax + 1]
call fcn.0041eee0
lea ecx, [edx + 4]
movaps xmm7, xmm0
call fcn.0041eee0
subss xmm7, xmm0
lea ecx, [edx + 7]
addss xmm7, xmm5
movss dword [ebp - 0x18], xmm7
call fcn.0041eee0
lea ecx, [edx + 6]
xor edx, edx
movaps xmm6, xmm0
call fcn.0041eee0
mov ecx, dword [ebp - 0x2c]
subss xmm6, xmm0
addss xmm6, xmm5
movss dword [ebp - 0x14], xmm6
ucomiss xmm7, xmm5
lahf
test ah, 0x44
jp 0x41920b
ucomiss xmm6, xmm5
lahf
test ah, 0x44
jnp 0x4192ae
movss xmm2, dword [ecx + 0xa4]
movss xmm0, dword [ecx + 0x18]
minss xmm2, dword [ecx + 0xa8]
mulss xmm0, dword [0x4aa038]
mov byte [ecx + 0x1b08], 0
movss xmm1, dword [0x4a9f90]
mov byte [ecx + 0x1b17], 1
mov ecx, 0x20
mulss xmm2, xmm0
cvttss2si eax, xmm2
movd xmm7, eax
cvtdq2ps xmm7, xmm7
call fcn.00413930
mov edx, edi
mov ecx, dword [ebp - 0x54]
movss xmm0, dword [ebp - 0x18]
mulss xmm0, xmm7
mov dword [ecx], eax
lea ecx, [ebp - 0x78]
addss xmm0, dword [edi + 0x1c]
movss dword [ebp - 0x40], xmm0
movss xmm0, dword [ebp - 0x14]
mulss xmm0, xmm7
addss xmm0, dword [edi + 0x20]
movss dword [ebp - 0x3c], xmm0
push dword [ebp - 0x3c]
push dword [ebp - 0x40]
call fcn.00418420
mov esi, dword [0x4af98c]
add esp, 8
xorps xmm5, xmm5
movss xmm0, dword [eax]
movss dword [ebp - 0x30], xmm0
movss xmm0, dword [eax + 4]
jmp 0x4192b3
movss xmm0, dword [ebp - 0x1c]
movss xmm1, dword [ebp - 0x30]
movss xmm2, dword [0x4aa054]
ucomiss xmm1, xmm2
lahf
test ah, 0x44
jnp 0x4192ee
test dword [edi + 8], 0x100
movss dword [edi + 0x1c], xmm1
movss dword [edi + 0x20], xmm0
jne 0x4192ee
comiss xmm5, dword [esi + 0x2cf8]
jb 0x4192ee
mov eax, dword [esi + 0x1c]
mov dword [esi + 0x2cf8], eax
movss xmm0, dword [ebp - 0x24]
ucomiss xmm0, xmm2
lahf
test ah, 0x44
jnp 0x419338
test dword [edi + 8], 0x100
cvttss2si eax, xmm0
movd xmm1, eax
cvttss2si eax, dword [ebp - 0x28]
cvtdq2ps xmm1, xmm1
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [edi + 0xc], xmm1
movss dword [edi + 0x10], xmm0
jne 0x419338
comiss xmm5, dword [esi + 0x2cf8]
jb 0x419338
mov ecx, dword [esi + 0x1c]
mov dword [esi + 0x2cf8], ecx
mov ecx, dword [edi + 0x1c]
mov edx, dword [edi + 0x20]
mov al, byte [ebp - 0x1d]
mov dword [edi + 0x130], 0
mov dword [edi + 0x134], 1
mov dword [edi + 0x14], ecx
mov dword [edi + 0x18], edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043fbc2
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.0043fbc2
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret