Function at 0x1004f160
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 [0x10105adc]
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x10], eax
test byte [edi + 8], 0x42
jne 0x1004fa53
cmp dword [edi + 0x98], 0
jg 0x1004fa53
cmp dword [edi + 0x9c], 0
jg 0x1004fa53
cmp byte [edi + 0x83], 0
je 0x1004fa53
movss xmm2, dword [eax + 0x18b8]
xor edx, edx
movss xmm0, dword [edi + 0x4c]
movaps xmm1, xmm2
addss xmm0, dword [0x100cab58]
mulss xmm2, dword [0x100caad8]
mov esi, 4
mov cl, byte [eax + 0xb7]
mulss xmm1, dword [0x100cab6c]
test cl, cl
addss xmm0, xmm2
cmovne edx, esi
mov dword [ebp - 0x30], edx
maxss xmm1, xmm0
cvttss2si eax, xmm1
movd xmm0, eax
cvtdq2ps xmm0, xmm0
mulss xmm0, dword [0x100cab24]
cvttss2si esi, xmm0
mov dword [ebp - 0x28], esi
je 0x1004f227
movss xmm0, dword [0x100caf4c]
jmp 0x1004f22a
xorps xmm0, xmm0
movss dword [ebp - 0x1c], xmm0
mov ecx, str.RESIZE
movss xmm0, dword [0x100cb524]
movss dword [ebp - 8], xmm0
movss dword [ebp - 0xc], xmm0
movss dword [ebp - 0x20], xmm0
movss dword [ebp - 0x14], xmm0
call fcn.10053c70
xor edx, edx
mov dword [ebp - 0x18], edx
cmp dword [ebx + 0xc], edx
jle 0x1004f5d7
movss xmm0, dword [edi + 0xc]
lea eax, [edx + edx*2]
movss xmm1, dword [edi + 0x10]
movaps xmm3, xmm0
addss xmm3, dword [edi + 0x1c]
movaps xmm2, xmm1
mov dword [ebp - 0x24], eax
addss xmm2, dword [edi + 0x20]
xorps xmm6, xmm6
cvtsi2ss xmm6, esi
subss xmm3, xmm0
subss xmm2, xmm1
mulss xmm3, dword [eax*8 + 0x10103bd8]
mulss xmm2, dword [eax*8 + 0x10103bdc]
addss xmm3, xmm0
movss xmm0, dword [eax*8 + 0x10103be0]
movaps xmm5, xmm0
mulss xmm0, dword [ebp - 0x1c]
addss xmm2, xmm1
mulss xmm5, xmm6
movss xmm1, dword [eax*8 + 0x10103be4]
movaps xmm4, xmm1
mulss xmm1, dword [ebp - 0x1c]
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 0x1004f309
movss dword [ebp - 0x68], xmm5
movss dword [ebp - 0x60], xmm3
comiss xmm2, xmm4
jbe 0x1004f318
movss dword [ebp - 0x64], xmm4
movss dword [ebp - 0x5c], xmm2
mov ecx, dword [edi + 0x1c8]
lea esi, [ebp - 0x34]
mov eax, dword [edi + 0x1d0]
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 + 0x100a0be8]
sub edi, 1
jne 0x1004f335
mov eax, dword [0x10105adc]
not edx
mov esi, dword [ebp - 0x28]
mov edi, dword [ebp - 0x2c]
cmp dword [eax + 0x19bc], edx
jne 0x1004f36a
mov dword [eax + 0x19c4], edx
cmp dword [eax + 0x19c0], edx
jne 0x1004f379
mov byte [eax + 0x19d0], 1
push 0x2020
lea eax, [ebp - 1]
push eax
lea eax, [ebp - 2]
push eax
lea ecx, [ebp - 0x68]
call fcn.100689f0
mov cl, byte [ebp - 2]
add esp, 0xc
test cl, cl
jne 0x1004f3a3
mov al, byte [ebp - 1]
test al, al
je 0x1004f700
mov edx, dword [ebp - 0x18]
mov eax, edx
mov ecx, dword [ebp - 0x10]
not eax
and eax, 1
add eax, 5
mov dword [ecx + 0x1c74], eax
mov al, byte [ebp - 1]
test al, al
je 0x1004f595
cmp byte [ecx + 0x3dd], 0
je 0x1004f415
test edx, edx
jne 0x1004f415
mov eax, dword [ebp - 0x38]
lea ecx, [ebp - 0x58]
mov edx, edi
push dword [eax + 4]
push dword [eax]
call fcn.1004eac0
add esp, 8
movss xmm3, dword [eax]
movss xmm2, dword [eax + 4]
movss dword [ebp - 0x20], xmm3
movss dword [ebp - 0x14], xmm2
call fcn.1004af80
mov edx, dword [ebp - 0x18]
cmp byte [ebp - 1], 0
je 0x1004f5ac
mov ecx, 0x20
jmp 0x1004f5b7
mov eax, dword [ebp - 0x24]
mov edx, edi
movss xmm7, dword [ecx + 0xec]
subss xmm7, dword [ecx + 0x19e0]
movd xmm3, esi
movss xmm2, dword [eax*8 + 0x10103be4]
movss xmm6, dword [eax*8 + 0x10103be0]
movaps xmm1, xmm2
mulss xmm1, dword [ebp - 0x1c]
movaps xmm0, xmm6
mulss xmm0, dword [ebp - 0x1c]
movss xmm4, dword [eax*8 + 0x10103bd8]
movss xmm5, dword [eax*8 + 0x10103bdc]
cvtdq2ps xmm3, xmm3
xorps xmm3, xmmword [0x100cba30]
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 + 0xe8]
subss xmm0, dword [ecx + 0x19dc]
addss xmm2, xmm1
movss xmm1, dword [edi + 0x10]
movaps xmm3, xmm1
lea ecx, [ebp - 0x50]
addss xmm1, dword [edi + 0x20]
addss xmm6, xmm0
movss xmm0, dword [edi + 0xc]
addss xmm7, xmm2
movaps xmm2, xmm0
addss xmm0, dword [edi + 0x1c]
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 - 8], xmm2
mulss xmm6, xmm4
mulss xmm7, xmm5
addss xmm6, xmm0
movss dword [ebp - 0xc], xmm3
addss xmm7, xmm1
subss xmm6, xmm2
subss xmm7, xmm3
movss dword [ebp - 0x48], xmm6
movss dword [ebp - 0x34], xmm6
movss dword [ebp - 0x44], xmm7
push dword [ebp - 0x44]
movss dword [ebp - 0x40], xmm7
push dword [ebp - 0x48]
call fcn.1004eac0
mov ecx, dword [ebp - 0x24]
add esp, 8
movss xmm3, dword [ebp - 0x50]
xorps xmm1, xmm1
movss dword [ebp - 0x20], xmm3
movss xmm0, dword [ecx*8 + 0x10103bd8]
ucomiss xmm0, xmm1
lahf
test ah, 0x44
jp 0x1004f55d
movss xmm2, dword [ebp - 8]
movaps xmm0, xmm3
subss xmm0, dword [ebp - 0x34]
subss xmm2, xmm0
movss dword [ebp - 8], xmm2
movss xmm0, dword [ecx*8 + 0x10103bdc]
movss xmm2, dword [ebp - 0x4c]
ucomiss xmm0, xmm1
movss dword [ebp - 0x14], xmm2
lahf
test ah, 0x44
jp 0x1004f58f
movss xmm1, dword [ebp - 0xc]
movaps xmm0, xmm2
subss xmm0, dword [ebp - 0x40]
subss xmm1, xmm0
movss dword [ebp - 0xc], xmm1
mov edx, dword [ebp - 0x18]
mov al, byte [ebp - 1]
mov cl, byte [ebp - 2]
test edx, edx
je 0x1004f401
test al, al
jne 0x1004f40b
test cl, cl
je 0x1004f5ca
xor ecx, ecx
cmp byte [ebp - 2], cl
setne cl
add ecx, 0x1e
movss xmm1, dword [0x100cab58]
call fcn.10049540
mov ecx, dword [ebx + 0x10]
mov dword [ecx + edx*4], eax
inc edx
mov dword [ebp - 0x18], edx
cmp edx, dword [ebx + 0xc]
jl 0x1004f263
xor edx, edx
mov dword [ebp - 0x1c], edx
cmp dword [ebp - 0x30], edx
jbe 0x1004f825
movd xmm0, esi
push ecx
cvtdq2ps xmm3, xmm0
mov dword [esp], 0x40800000
lea ecx, [ebp - 0x68]
push edx
mov edx, edi
call fcn.1004f040
mov eax, dword [ebp - 0x1c]
lea esi, [ebp - 0x40]
mov ecx, dword [edi + 0x1c8]
add esp, 8
add eax, 4
mov dword [ebp - 0x40], eax
mov eax, dword [edi + 0x1d0]
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 + 0x100a0be8]
sub edi, 1
jne 0x1004f625
mov eax, dword [0x10105adc]
not edx
mov esi, dword [ebp - 0x28]
mov edi, dword [ebp - 0x2c]
cmp dword [eax + 0x19bc], edx
jne 0x1004f65a
mov dword [eax + 0x19c4], edx
cmp dword [eax + 0x19c0], edx
jne 0x1004f669
mov byte [eax + 0x19d0], 1
push 0x20
lea eax, [ebp - 2]
push eax
lea eax, [ebp - 1]
push eax
lea ecx, [ebp - 0x68]
call fcn.100689f0
mov ecx, dword [ebp - 0x10]
add esp, 0xc
cmp byte [ebp - 1], 0
je 0x1004f698
movss xmm0, dword [ecx + 0x19b4]
comiss xmm0, dword [0x100caaa0]
ja 0x1004f6a2
cmp byte [ebp - 2], 0
je 0x1004f815
mov edx, dword [ebp - 0x1c]
mov eax, edx
and eax, 1
add eax, 3
cmp byte [ebp - 2], 0
mov dword [ecx + 0x1c74], eax
je 0x1004f818
mov eax, dword [ebx + 8]
xorps xmm4, xmm4
movss xmm6, dword [edi + 0xc]
xorps xmm5, xmm5
movss xmm7, dword [edi + 0x10]
movaps xmm0, xmm6
movss dword [ebp - 0x14], xmm4
movaps xmm1, xmm7
mov dword [eax], edx
movss dword [ebp - 0x18], xmm5
test edx, edx
jne 0x1004f708
movss xmm1, dword [ecx + 0xec]
subss xmm1, dword [ecx + 0x19e0]
addss xmm1, dword [0x100caf4c]
jmp 0x1004f743
mov edx, dword [ebp - 0x18]
jmp 0x1004f598
cmp edx, 1
jne 0x1004f717
movss xmm5, dword [0x100cab58]
jmp 0x1004f72b
cmp edx, 2
jne 0x1004f726
movss xmm4, dword [0x100cab58]
jmp 0x1004f6e6
cmp edx, 3
jne 0x1004f74d
movss xmm0, dword [ecx + 0xe8]
subss xmm0, dword [ecx + 0x19dc]
addss xmm0, dword [0x100caf4c]
movss dword [ebp - 0x14], xmm4
movss dword [ebp - 0x18], xmm5
movaps xmm3, xmm7
lea ecx, [ebp - 0x50]
addss xmm7, dword [edi + 0x20]
subss xmm3, xmm1
movaps xmm2, xmm6
addss xmm6, dword [edi + 0x1c]
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 - 0xc], xmm3
mulss xmm1, xmm4
mulss xmm0, xmm5
addss xmm1, xmm7
movss dword [ebp - 8], xmm2
addss xmm0, xmm6
subss xmm1, xmm3
subss xmm0, xmm2
movss dword [ebp - 0x38], xmm1
push dword [ebp - 0x38]
movss dword [ebp - 0x3c], xmm0
push dword [ebp - 0x3c]
call fcn.1004eac0
movss xmm0, dword [ebp - 0x18]
add esp, 8
xorps xmm1, xmm1
ucomiss xmm0, xmm1
movss xmm0, dword [ebp - 0x50]
movss dword [ebp - 0x20], xmm0
lahf
test ah, 0x44
jp 0x1004f7ea
subss xmm0, dword [ebp - 0x3c]
movss xmm2, dword [ebp - 8]
subss xmm2, xmm0
movss dword [ebp - 8], xmm2
movss xmm0, dword [ebp - 0x14]
ucomiss xmm0, xmm1
movss xmm0, dword [ebp - 0x4c]
movss dword [ebp - 0x14], xmm0
lahf
test ah, 0x44
jp 0x1004f815
subss xmm0, dword [ebp - 0x38]
movss xmm1, dword [ebp - 0xc]
subss xmm1, xmm0
movss dword [ebp - 0xc], xmm1
mov edx, dword [ebp - 0x1c]
inc edx
mov dword [ebp - 0x1c], edx
cmp edx, dword [ebp - 0x30]
jl 0x1004f5e5
mov esi, dword [0x10105adc]
xorps xmm5, xmm5
mov ecx, dword [ebp - 0x10]
mov eax, dword [esi + 0x199c]
dec dword [eax + 0x1c8]
mov eax, dword [ecx + 0x1aec]
test eax, eax
je 0x1004f9bd
cmp dword [eax + 0x2f8], edi
jne 0x1004f9bd
mov eax, dword [ecx + 0x1ad4]
xorps xmm6, xmm6
movss dword [ebp - 0x18], xmm6
xorps xmm7, xmm7
movss dword [ebp - 0x1c], xmm7
cmp eax, 3
jne 0x1004f8ae
cmp byte [ecx + 0x101], 0
je 0x1004f904
xor edx, edx
lea ecx, [eax + 0xf]
call fcn.10055a00
lea ecx, [edx + 0x11]
movaps xmm7, xmm0
call fcn.10055a00
subss xmm7, xmm0
lea ecx, [edx + 0x14]
addss xmm7, xmm5
movss dword [ebp - 0x1c], xmm7
call fcn.10055a00
lea ecx, [edx + 0x13]
jmp 0x1004f8ea
movss dword [ebp - 0x18], xmm6
movss dword [ebp - 0x1c], xmm7
cmp eax, 4
jne 0x1004f904
xor edx, edx
lea ecx, [eax + 1]
call fcn.10055a00
lea ecx, [edx + 4]
movaps xmm7, xmm0
call fcn.10055a00
subss xmm7, xmm0
lea ecx, [edx + 7]
addss xmm7, xmm5
movss dword [ebp - 0x1c], xmm7
call fcn.10055a00
lea ecx, [edx + 6]
xor edx, edx
movaps xmm6, xmm0
call fcn.10055a00
mov ecx, dword [ebp - 0x10]
subss xmm6, xmm0
addss xmm6, xmm5
movss dword [ebp - 0x18], xmm6
ucomiss xmm7, xmm5
lahf
test ah, 0x44
jp 0x1004f91a
ucomiss xmm6, xmm5
lahf
test ah, 0x44
jnp 0x1004f9bd
movss xmm2, dword [ecx + 0xac]
movss xmm0, dword [ecx + 0x20]
minss xmm2, dword [ecx + 0xb0]
mulss xmm0, dword [0x100cb4cc]
mov byte [ecx + 0x1b00], 0
movss xmm1, dword [0x100cab58]
mov byte [ecx + 0x1b0f], 1
mov ecx, 0x20
mulss xmm2, xmm0
cvttss2si eax, xmm2
movd xmm7, eax
cvtdq2ps xmm7, xmm7
call fcn.10049540
mov edx, edi
mov ecx, dword [ebx + 0x10]
movss xmm0, dword [ebp - 0x1c]
mulss xmm0, xmm7
mov dword [ecx], eax
lea ecx, [ebp - 0x58]
addss xmm0, dword [edi + 0x24]
movss dword [ebp - 0x48], xmm0
movss xmm0, dword [ebp - 0x18]
mulss xmm0, xmm7
addss xmm0, dword [edi + 0x28]
movss dword [ebp - 0x44], xmm0
push dword [ebp - 0x44]
push dword [ebp - 0x48]
call fcn.1004eac0
mov esi, dword [0x10105adc]
add esp, 8
xorps xmm5, xmm5
movss xmm0, dword [eax]
movss dword [ebp - 0x20], xmm0
movss xmm0, dword [eax + 4]
jmp 0x1004f9c2
movss xmm0, dword [ebp - 0x14]
movss xmm1, dword [ebp - 0x20]
movss xmm2, dword [0x100cb524]
ucomiss xmm1, xmm2
lahf
test ah, 0x44
jnp 0x1004f9fd
test dword [edi + 8], 0x100
movss dword [edi + 0x24], xmm1
movss dword [edi + 0x28], xmm0
jne 0x1004f9fd
comiss xmm5, dword [esi + 0x2c8c]
jb 0x1004f9fd
mov eax, dword [esi + 0x24]
mov dword [esi + 0x2c8c], eax
movss xmm0, dword [ebp - 8]
ucomiss xmm0, xmm2
lahf
test ah, 0x44
jnp 0x1004fa47
test dword [edi + 8], 0x100
cvttss2si eax, xmm0
movd xmm1, eax
cvttss2si eax, dword [ebp - 0xc]
cvtdq2ps xmm1, xmm1
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [edi + 0xc], xmm1
movss dword [edi + 0x10], xmm0
jne 0x1004fa47
comiss xmm5, dword [esi + 0x2c8c]
jb 0x1004fa47
mov eax, dword [esi + 0x24]
mov dword [esi + 0x2c8c], eax
mov eax, dword [edi + 0x24]
mov ecx, dword [edi + 0x28]
mov dword [edi + 0x1c], eax
mov dword [edi + 0x20], ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret