Function at 0x410250
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 [0x508040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebx + 8]
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x80], eax
mov eax, dword [ebx + 0x10]
mov dword [ebp - 0x7c], eax
mov eax, dword [0x57ecb0]
test byte [edi + 8], 0x42
mov dword [ebp - 0x50], edx
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x48], eax
jne 0x410d19
cmp byte [edi + 0xa8], 0
jg 0x410d19
cmp byte [edi + 0xa9], 0
jg 0x410d19
cmp byte [edi + 0x8f], 0
je 0x410d19
movss xmm2, dword [eax + 0x3be8]
xor edx, edx
movss xmm0, dword [edi + 0x48]
movaps xmm1, xmm2
addss xmm0, dword [0x4fb928]
mulss xmm2, dword [0x4fb8c0]
mov esi, 4
mov cl, byte [eax + 0x5d]
mulss xmm1, dword [0x4fb938]
test cl, cl
mov byte [ebp - 0x27], 0
addss xmm0, xmm2
cmovne edx, esi
mov dword [ebp - 0x78], edx
maxss xmm1, xmm0
cvttss2si eax, xmm1
movd xmm0, eax
cvtdq2ps xmm0, xmm0
mulss xmm0, dword [0x4fb904]
cvttss2si esi, xmm0
mov dword [ebp - 0x74], esi
je 0x410331
movss xmm0, dword [0x4fb978]
jmp 0x410334
xorps xmm0, xmm0
movss dword [ebp - 0x44], xmm0
movss xmm0, dword [0x4fba48]
movss dword [ebp - 0x3c], xmm0
movss dword [ebp - 0x40], xmm0
movss dword [ebp - 0x4c], xmm0
movss dword [ebp - 0x30], xmm0
mov dword [edi + 0x12c], 1
call fcn.00414d00
xor edx, edx
mov dword [ebp - 0x2c], edx
cmp dword [ebx + 0xc], edx
jle 0x4107bd
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 - 0x20], ecx
addss xmm2, dword [edi + 0x1c]
xorps xmm6, xmm6
cvtsi2ss xmm6, esi
subss xmm3, xmm0
subss xmm2, xmm1
mulss xmm3, dword [ecx*8 + 0x4f5b88]
mulss xmm2, dword [ecx*8 + 0x4f5b8c]
addss xmm3, xmm0
movss xmm0, dword [ecx*8 + 0x4f5b90]
movaps xmm5, xmm0
mulss xmm0, dword [ebp - 0x44]
addss xmm2, xmm1
mulss xmm5, xmm6
movss xmm1, dword [ecx*8 + 0x4f5b94]
movaps xmm4, xmm1
mulss xmm1, dword [ebp - 0x44]
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 0x410418
movss dword [ebp - 0x68], xmm5
movss dword [ebp - 0x60], xmm3
comiss xmm2, xmm4
jbe 0x410427
movss dword [ebp - 0x64], xmm4
movss dword [ebp - 0x5c], xmm2
mov ecx, dword [edi + 0xc8]
mov esi, 4
mov eax, dword [edi + 0xd0]
lea edi, [ebp - 0x24]
mov dword [ebp - 0x24], 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 + 0x4f5be8]
sub esi, 1
jne 0x410444
mov eax, dword [0x57ecb0]
not edx
mov esi, dword [ebp - 0x74]
mov dword [ebp - 0x34], edx
cmp dword [eax + 0x3e78], edx
jne 0x41048f
push ecx
push dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x34]
mov edx, 4
call fcn.0041b610
mov eax, dword [0x57ecb0]
add esp, 8
mov edx, dword [ebp - 0x34]
cmp dword [eax + 0x3e90], edx
jne 0x41049d
mov dword [eax + 0x3e94], edx
cmp dword [eax + 0x3eb8], edx
jne 0x4104ac
mov byte [eax + 0x3ebc], 1
push 0x40800
lea eax, [ebp - 0x25]
push eax
lea eax, [ebp - 0x26]
push eax
lea ecx, [ebp - 0x68]
call fcn.004317c0
mov cl, byte [ebp - 0x26]
add esp, 0xc
test cl, cl
jne 0x4104d6
mov al, byte [ebp - 0x25]
test al, al
je 0x410770
mov edx, dword [ebp - 0x2c]
mov eax, edx
mov ecx, dword [ebp - 0x48]
not eax
and eax, 1
add eax, 5
mov dword [ecx + 0x4180], eax
mov al, byte [ebp - 0x25]
test al, al
je 0x410778
cmp word [ecx + 0x367a], 2
jne 0x41054f
test edx, edx
jne 0x41054f
push dword [ebp - 0x50]
mov edi, dword [ebp - 0x38]
lea ecx, [ebp - 0x70]
mov edx, edi
call fcn.0040fb70
add esp, 4
mov byte [ebp - 0x27], 1
xor edx, edx
xor ecx, ecx
movss xmm0, dword [eax]
movss dword [ebp - 0x4c], xmm0
movss xmm0, dword [eax + 4]
movss dword [ebp - 0x30], xmm0
call fcn.0040a840
mov edx, dword [ebp - 0x2c]
cmp byte [ebp - 0x25], 0
je 0x410792
mov ecx, 0x20
jmp 0x41079d
mov edx, dword [ebp - 0x20]
movss xmm3, dword [0x4fb928]
mov edi, dword [ebx + 0x14]
movss xmm2, dword [0x4fba64]
movss xmm0, dword [edx*8 + 0x4f5b8c]
ucomiss xmm0, xmm3
lahf
test ah, 0x44
jp 0x41057e
movss xmm6, dword [edi + 4]
jmp 0x410581
movaps xmm6, xmm2
movss xmm1, dword [edx*8 + 0x4f5b88]
ucomiss xmm1, xmm3
lahf
test ah, 0x44
jp 0x410599
movss xmm5, dword [edi]
jmp 0x41059c
movaps xmm5, xmm2
xorps xmm2, xmm2
ucomiss xmm0, xmm2
lahf
test ah, 0x44
jp 0x4105bc
movss xmm0, dword [edi + 0xc]
movss dword [ebp - 0x34], xmm0
movss xmm0, dword [0x4fba48]
jmp 0x4105c9
movss xmm0, dword [0x4fba48]
movss dword [ebp - 0x34], xmm0
ucomiss xmm1, xmm2
lahf
test ah, 0x44
jp 0x4105d9
movss xmm7, dword [edi + 8]
jmp 0x4105dc
movaps xmm7, xmm0
movss xmm4, dword [edx*8 + 0x4f5b90]
xorps xmm3, xmm3
movss xmm2, dword [edx*8 + 0x4f5b94]
movaps xmm0, xmm4
mulss xmm0, dword [ebp - 0x44]
movaps xmm1, xmm2
mulss xmm1, dword [ebp - 0x44]
cvtsi2ss xmm3, esi
xorps xmm3, xmmword [0x4fbe70]
mulss xmm4, xmm3
mulss xmm2, xmm3
subss xmm4, xmm0
subss xmm2, xmm1
mulss xmm4, dword [edx*8 + 0x4f5b88]
mulss xmm2, dword [edx*8 + 0x4f5b8c]
addss xmm4, xmm0
movss xmm0, dword [ecx + 0xd50]
subss xmm0, dword [ecx + 0x3ea4]
addss xmm2, xmm1
addss xmm4, xmm0
movss xmm0, dword [ecx + 0xd54]
subss xmm0, dword [ecx + 0x3ea8]
addss xmm0, xmm2
comiss xmm6, xmm0
ja 0x41066c
movss xmm6, dword [ebp - 0x34]
minss xmm6, xmm0
comiss xmm5, xmm4
ja 0x410678
movaps xmm5, xmm7
minss xmm5, xmm4
mov edi, dword [ebp - 0x38]
lea eax, [ebp - 0xc]
movss xmm4, dword [edx*8 + 0x4f5b88]
lea ecx, [ebp - 0x58]
movss xmm7, dword [edx*8 + 0x4f5b8c]
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 - 0x3c], xmm2
mulss xmm5, xmm4
mulss xmm6, xmm7
addss xmm5, xmm0
movss dword [ebp - 0x40], xmm3
addss xmm6, xmm1
subss xmm5, xmm2
subss xmm6, xmm3
movss dword [ebp - 0xc], xmm5
movss dword [ebp - 8], xmm6
call fcn.0040fb70
mov ecx, dword [ebp - 0x20]
add esp, 4
xorps xmm2, xmm2
movss xmm0, dword [ecx*8 + 0x4f5b88]
ucomiss xmm0, xmm2
movss xmm0, dword [ebp - 0x58]
movss dword [ebp - 0x4c], xmm0
lahf
test ah, 0x44
jp 0x410739
subss xmm0, dword [ebp - 0xc]
movss xmm1, dword [ebp - 0x3c]
subss xmm1, xmm0
movss dword [ebp - 0x3c], xmm1
movss xmm0, dword [ecx*8 + 0x4f5b8c]
ucomiss xmm0, xmm2
movss xmm0, dword [ebp - 0x54]
movss dword [ebp - 0x30], xmm0
lahf
test ah, 0x44
jp 0x410768
subss xmm0, dword [ebp - 8]
movss xmm1, dword [ebp - 0x40]
subss xmm1, xmm0
movss dword [ebp - 0x40], xmm1
mov edx, dword [ebp - 0x2c]
mov al, byte [ebp - 0x25]
jmp 0x41077b
mov edi, dword [ebp - 0x38]
mov edx, dword [ebp - 0x2c]
jmp 0x41077e
mov edi, dword [ebp - 0x38]
mov cl, byte [ebp - 0x26]
test edx, edx
je 0x41053b
test al, al
jne 0x410545
test cl, cl
je 0x4107b0
xor ecx, ecx
cmp byte [ebp - 0x26], cl
setne cl
add ecx, 0x1e
movss xmm1, dword [0x4fb928]
call fcn.00409070
mov ecx, dword [ebp - 0x7c]
mov dword [ecx + edx*4], eax
inc edx
mov dword [ebp - 0x2c], edx
cmp edx, dword [ebx + 0xc]
jl 0x410372
xor edi, edi
mov dword [ebp - 0x24], edi
cmp dword [ebp - 0x78], edi
jbe 0x410aaa
nop dword [eax + eax]
lea eax, [edi*8]
sub eax, edi
shl eax, 2
mov dword [ebp - 0x5c], eax
test edi, edi
je 0x410802
cmp edi, 1
je 0x410802
mov dword [ebp - 0x34], 3
lea eax, [ebp - 8]
mov dword [ebp - 0x44], 0xd54
mov dword [ebp - 0x2c], 0x3ea8
jmp 0x41081a
mov dword [ebp - 0x34], 4
lea eax, [ebp - 0xc]
mov dword [ebp - 0x44], 0xd50
mov dword [ebp - 0x2c], 0x3ea4
mov edx, dword [ebp - 0x38]
movd xmm0, esi
push ecx
cvtdq2ps xmm3, xmm0
mov dword [esp], 0x40800000
lea ecx, [ebp - 0x1c]
push edi
mov dword [ebp - 0x50], eax
call fcn.00410130
mov ecx, dword [edx + 0xc8]
lea eax, [edi + 4]
mov dword [ebp - 0x20], eax
lea esi, [ebp - 0x20]
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 + 0x4f5be8]
sub edi, 1
jne 0x410860
mov eax, dword [0x57ecb0]
not edx
mov esi, dword [ebp - 0x74]
mov edi, dword [ebp - 0x24]
mov dword [ebp - 0x20], edx
cmp dword [eax + 0x3e78], edx
jne 0x4108af
push ecx
mov ecx, dword [ebp - 0x20]
lea eax, [edi + 4]
push eax
mov edx, 4
call fcn.0041b610
mov eax, dword [0x57ecb0]
add esp, 8
mov edx, dword [ebp - 0x20]
cmp dword [eax + 0x3e90], edx
jne 0x4108bd
mov dword [eax + 0x3e94], edx
cmp dword [eax + 0x3eb8], edx
jne 0x4108cc
mov byte [eax + 0x3ebc], 1
push 0x40800
lea eax, [ebp - 0x25]
push eax
lea eax, [ebp - 0x26]
push eax
lea ecx, [ebp - 0x1c]
call fcn.004317c0
mov al, byte [ebp - 0x25]
add esp, 0xc
cmp byte [ebp - 0x26], 0
mov edx, dword [ebp - 0x48]
je 0x410901
movss xmm0, dword [edx + 0x3e88]
comiss xmm0, dword [0x4fb8ac]
ja 0x410909
test al, al
je 0x410a9d
mov ecx, dword [ebp - 0x34]
mov dword [edx + 0x4180], ecx
test al, al
je 0x410a9d
mov eax, dword [ebp - 0x80]
mov dword [eax], edi
cmp edi, 3
jne 0x410b06
mov eax, dword [ebx + 0x14]
movss xmm4, dword [0x4fba64]
movss xmm3, dword [eax + 4]
movss xmm1, dword [0x4fba48]
movss xmm5, dword [0x4fba48]
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x44]
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 - 0x2c]
subss xmm0, dword [ecx + edx]
mov ecx, dword [ebp - 0x50]
addss xmm0, dword [0x4fb978]
movss dword [ecx], xmm0
movss xmm0, dword [ebp - 8]
comiss xmm3, xmm0
ja 0x41098f
movaps xmm3, xmm1
minss xmm3, xmm0
movss xmm0, dword [ebp - 0xc]
comiss xmm4, xmm0
ja 0x4109a0
movaps xmm4, xmm5
minss xmm4, xmm0
mov ecx, dword [ebp - 0x5c]
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 + 0x4f59f4]
subss xmm5, xmm4
minss xmm7, dword [ecx + 0x4f59fc]
movss xmm2, dword [ecx + 0x4f59f0]
movaps xmm6, xmm1
minss xmm2, dword [ecx + 0x4f59f8]
addss xmm1, dword [eax + 0x1c]
subss xmm6, xmm3
lea ecx, [ebp - 0x58]
movss dword [ebp - 0x24], xmm7
push ecx
mulss xmm5, xmm2
lea ecx, [ebp - 0x70]
mulss xmm6, xmm7
addss xmm5, xmm4
movss dword [ebp - 0x5c], xmm2
subss xmm4, xmm0
addss xmm6, xmm3
subss xmm3, xmm1
movss dword [ebp - 0x3c], xmm5
mulss xmm4, xmm2
mulss xmm3, xmm7
addss xmm4, xmm0
movss dword [ebp - 0x40], xmm6
addss xmm3, xmm1
subss xmm4, xmm5
subss xmm3, xmm6
movss dword [ebp - 0x58], xmm4
movss dword [ebp - 0x54], xmm3
call fcn.0040fb70
movss xmm0, dword [ebp - 0x5c]
add esp, 4
xorps xmm2, xmm2
ucomiss xmm0, xmm2
movss xmm0, dword [ebp - 0x70]
movss dword [ebp - 0x4c], xmm0
lahf
test ah, 0x44
jp 0x410a72
subss xmm0, dword [ebp - 0x58]
movss xmm1, dword [ebp - 0x3c]
subss xmm1, xmm0
movss dword [ebp - 0x3c], xmm1
movss xmm0, dword [ebp - 0x24]
ucomiss xmm0, xmm2
movss xmm0, dword [ebp - 0x6c]
movss dword [ebp - 0x30], xmm0
lahf
test ah, 0x44
jp 0x410a9d
subss xmm0, dword [ebp - 0x54]
movss xmm1, dword [ebp - 0x40]
subss xmm1, xmm0
movss dword [ebp - 0x40], xmm1
inc edi
mov dword [ebp - 0x24], edi
cmp edi, dword [ebp - 0x78]
jl 0x4107d0
mov edi, dword [0x57ecb0]
mov esi, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x48]
mov eax, dword [edi + 0x3e58]
dec dword [eax + 0xc8]
mov dword [esi + 0x12c], 0
mov eax, dword [ecx + 0x4164]
test eax, eax
je 0x410c6a
cmp dword [eax + 0x2e8], esi
jne 0x410c6a
mov eax, dword [ecx + 0x4048]
cmp eax, 2
jne 0x410b5a
cmp byte [ecx + 0xd69], 0
je 0x410c6a
lea edx, [eax - 1]
lea ecx, [ebp - 0x58]
jmp 0x410b69
movss xmm1, dword [0x4fba64]
movaps xmm3, xmm1
movaps xmm0, xmm3
cmp edi, 1
jne 0x410b25
mov eax, dword [ebx + 0x14]
movss xmm4, dword [eax]
jmp 0x410938
movaps xmm4, xmm1
movaps xmm2, xmm4
cmp edi, 2
jne 0x410b3d
mov eax, dword [ebx + 0x14]
movss xmm1, dword [eax + 0xc]
jmp 0x410940
movss xmm1, dword [0x4fba48]
test edi, edi
jne 0x410940
mov eax, dword [ebx + 0x14]
movss xmm5, dword [eax + 8]
jmp 0x410948
cmp eax, 3
jne 0x410c6a
lea edx, [eax + 1]
lea ecx, [ebp - 0xc]
sub esp, 8
xorps xmm3, xmm3
mov dword [esp + 4], 0
call fcn.00418100
add esp, 8
xorps xmm5, xmm5
movss xmm4, dword [eax]
movss xmm3, dword [eax + 4]
ucomiss xmm4, xmm5
lahf
test ah, 0x44
jp 0x410ba1
ucomiss xmm3, xmm5
lahf
test ah, 0x44
jnp 0x410c6d
mov ecx, dword [ebp - 0x48]
movss xmm1, dword [ecx + 0x50]
movss xmm0, dword [ecx + 0x18]
mulss xmm0, dword [0x4fba2c]
minss xmm1, dword [ecx + 0x54]
mulss xmm1, xmm0
cvttss2si eax, xmm1
movss xmm1, dword [0x4fb928]
movd xmm2, eax
mov eax, dword [ebx + 0x14]
cvtdq2ps xmm2, xmm2
movss xmm0, dword [eax]
subss xmm0, dword [esi + 0x10]
movaps xmm7, xmm2
mulss xmm3, xmm2
mulss xmm7, xmm4
subss xmm0, dword [esi + 0x18]
maxss xmm7, xmm0
movss xmm0, dword [eax + 4]
subss xmm0, dword [esi + 0x14]
subss xmm0, dword [esi + 0x1c]
mov byte [ecx + 0x4178], 0
mov byte [ecx + 0x4053], 1
mov ecx, 0x20
maxss xmm3, xmm0
movss dword [ebp - 0x5c], xmm3
call fcn.00409070
mov ecx, dword [ebp - 0x7c]
mov edx, esi
movss xmm0, dword [ebp - 0x5c]
mov dword [ecx], eax
lea eax, [ebp - 0x70]
addss xmm7, dword [esi + 0x20]
addss xmm0, dword [esi + 0x24]
push eax
lea ecx, [ebp - 0x60]
movss dword [ebp - 0x70], xmm7
movss dword [ebp - 0x6c], xmm0
call fcn.0040fb70
mov edi, dword [0x57ecb0]
add esp, 4
xorps xmm5, xmm5
movss xmm0, dword [eax]
movss dword [ebp - 0x4c], xmm0
movss xmm0, dword [eax + 4]
jmp 0x410c72
xorps xmm5, xmm5
movss xmm0, dword [ebp - 0x30]
movss xmm1, dword [0x4fba48]
movss xmm2, dword [ebp - 0x4c]
ucomiss xmm2, xmm1
lahf
test ah, 0x44
jnp 0x410cad
test dword [esi + 8], 0x100
movss dword [esi + 0x20], xmm2
movss dword [esi + 0x24], xmm0
jne 0x410cad
comiss xmm5, dword [edi + 0x5234]
jb 0x410cad
mov eax, dword [edi + 0x1c]
mov dword [edi + 0x5234], eax
movss xmm0, dword [ebp - 0x3c]
ucomiss xmm0, xmm1
lahf
test ah, 0x44
jnp 0x410cf7
test dword [esi + 8], 0x100
cvttss2si eax, xmm0
movd xmm1, eax
cvttss2si eax, dword [ebp - 0x40]
cvtdq2ps xmm1, xmm1
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [esi + 0x10], xmm1
movss dword [esi + 0x14], xmm0
jne 0x410cf7
comiss xmm5, dword [edi + 0x5234]
jb 0x410cf7
mov ecx, dword [edi + 0x1c]
mov dword [edi + 0x5234], ecx
mov ecx, dword [esi + 0x20]
mov edx, dword [esi + 0x24]
mov al, byte [ebp - 0x27]
mov dword [esi + 0x18], ecx
mov dword [esi + 0x1c], edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004af2b0
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.004af2b0
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret