Function at 0x1004e480
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [0x10240b04]
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x14], eax
test byte [ebx + 8], 0x42
jne 0x1004ea85
cmp byte [ebx + 0xa4], 0
jg 0x1004ea85
cmp byte [ebx + 0xa5], 0
jg 0x1004ea85
cmp byte ds:[ebx + 0x8b], 0
je 0x1004ea85
movss xmm1, dword [eax + 0x1a70]
xor ecx, ecx
movss xmm0, dword [ebx + 0x44]
movaps xmm2, xmm1
addss xmm0, dword [0x10157560]
mulss xmm1, dword [0x10157fcc]
mov edx, 4
cmp byte [eax + 0xb4], cl
mulss xmm2, dword [0x1015d7b0]
push esi
addss xmm0, xmm1
mov dword [ebx + 0x144], 1
push edi
cmovne ecx, edx
push str.RESIZE
mov dword [ebp - 0x2c], ecx
maxss xmm2, xmm0
cvttss2si eax, xmm2
movd xmm0, eax
cvtdq2ps xmm0, xmm0
mulss xmm0, dword [0x1015d7a0]
cvttss2si esi, xmm0
movss xmm0, dword [0x1015d7d4]
mov dword [ebp - 0x34], esi
movss dword [ebp - 0xc], xmm0
movss dword [ebp - 0x10], xmm0
movss dword [ebp - 0x18], xmm0
movss dword [ebp - 8], xmm0
call fcn.10038e40
xor edi, edi
add esp, 4
cmp dword [ebp - 0x2c], edi
jbe 0x1004e8a9
nop dword [eax]
lea eax, ds:[edi*8]
sub eax, edi
shl eax, 2
mov dword [ebp - 0x38], eax
test edi, edi
je 0x1004e5a3
cmp edi, 1
je 0x1004e5a3
mov dword [ebp - 0x1c], 3
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x20], 0xe8
mov dword [ebp - 0x24], 0x1d3c
jmp 0x1004e5bb
mov dword [ebp - 0x1c], 4
lea eax, [ebp - 0x40]
mov dword [ebp - 0x20], 0xe4
mov dword [ebp - 0x24], 0x1d38
sub esp, 8
movd xmm0, esi
cvtdq2ps xmm0, xmm0
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x60]
mov dword [esp + 4], 0x40800000
movss dword [esp], xmm0
push edi
push ebx
push eax
call fcn.10049900
mov ecx, dword [ebx + 0xc4]
lea eax, [edi + 4]
mov dword [ebp - 0x30], eax
add esp, 0x14
mov eax, dword [ebx + 0xcc]
mov esi, 4
lea ebx, [ebp - 0x30]
mov edx, dword [eax + ecx*4 - 4]
not edx
nop dword [eax + eax]
movzx eax, byte [ebx]
lea ebx, [ebx + 1]
movzx ecx, dl
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x1015ca00]
sub esi, 1
jne 0x1004e610
mov eax, dword [0x10240b04]
not edx
mov esi, dword [ebp - 0x34]
cmp dword [eax + 0x1d14], edx
jne 0x1004e642
mov dword [eax + 0x1d18], edx
cmp dword [eax + 0x1d4c], edx
jne 0x1004e651
mov byte [eax + 0x1d50], 1
push 0x800
lea eax, [ebp - 2]
push eax
lea eax, [ebp - 1]
push eax
push edx
lea eax, [ebp - 0x60]
push eax
call fcn.1007a220
mov al, byte [ebp - 2]
add esp, 0x14
cmp byte [ebp - 1], 0
mov ecx, dword [ebp - 0x14]
je 0x1004e688
movss xmm0, dword [ecx + 0x1d0c]
comiss xmm0, dword [0x1015d778]
ja 0x1004e690
test al, al
je 0x1004e895
mov edx, dword ds:[ebp - 0x1c]
mov dword [ecx + 0x1f80], edx
test al, al
je 0x1004e895
mov eax, dword [ebp + 0x10]
mov dword [eax], edi
cmp edi, 3
jne 0x1004e83a
mov eax, dword [ebp + 0x14]
movss xmm4, dword [0x1015c874]
movss xmm3, dword [eax + 4]
movss xmm1, dword [0x1015d7d4]
movss xmm5, dword [0x1015d7d4]
mov ebx, dword [ebp + 8]
mov eax, dword [ebp - 0x20]
movss xmm0, dword [ebx + 0xc]
movss dword [ebp - 0x40], xmm0
movss xmm0, dword [ebx + 0x10]
movss dword [ebp - 0x3c], xmm0
movss xmm0, dword [eax + ecx]
mov eax, dword [ebp - 0x24]
subss xmm0, dword [eax + ecx]
mov eax, dword [ebp - 0x28]
addss xmm0, dword [0x1015c870]
movss dword [eax], xmm0
movss xmm0, dword [ebp - 0x3c]
comiss xmm3, xmm0
ja 0x1004e71d
movaps xmm3, xmm1
minss xmm3, xmm0
movss xmm0, dword [ebp - 0x40]
comiss xmm4, xmm0
ja 0x1004e72e
movaps xmm4, xmm5
minss xmm4, xmm0
mov eax, dword [ebp - 0x38]
movss xmm1, dword [ebx + 0xc]
movss xmm0, dword [ebx + 0x10]
movaps xmm5, xmm1
addss xmm1, dword [ebx + 0x14]
movss xmm7, dword [eax + 0x1023e724]
subss xmm5, xmm4
minss xmm7, dword [eax + 0x1023e72c]
movss xmm2, dword [eax + 0x1023e720]
movaps xmm6, xmm0
minss xmm2, dword [eax + 0x1023e728]
addss xmm0, dword [ebx + 0x18]
subss xmm6, xmm3
lea eax, [ebp - 0x48]
movss dword [ebp - 0x28], xmm7
push eax
mulss xmm5, xmm2
lea eax, [ebp - 0x50]
push ebx
mulss xmm6, xmm7
push eax
addss xmm5, xmm4
movss dword [ebp - 0x38], xmm2
subss xmm4, xmm1
addss xmm6, xmm3
subss xmm3, xmm0
movss dword [ebp - 0xc], xmm5
mulss xmm4, xmm2
mulss xmm3, xmm7
addss xmm4, xmm1
movss dword [ebp - 0x10], xmm6
addss xmm3, xmm0
subss xmm4, xmm5
subss xmm3, xmm6
movss dword [ebp - 0x30], xmm4
movss dword [ebp - 0x48], xmm4
movss dword [ebp - 0x24], xmm3
movss dword [ebp - 0x44], xmm3
call fcn.10049120
movss xmm0, dword [ebp - 0x38]
add esp, 0xc
xorps xmm2, xmm2
ucomiss xmm0, xmm2
movss xmm0, dword [ebp - 0x50]
movss dword [ebp - 0x18], xmm0
lahf
test ah, 0x44
jp 0x1004e80a
subss xmm0, dword [ebp - 0x30]
movss xmm1, dword [ebp - 0xc]
subss xmm1, xmm0
movss dword [ebp - 0xc], xmm1
movss xmm0, dword ds:[ebp - 0x28]
ucomiss xmm0, xmm2
movss xmm0, dword [ebp - 0x4c]
movss dword [ebp - 8], xmm0
lahf
test ah, 0x44
jp 0x1004e898
subss xmm0, dword [ebp - 0x24]
movss xmm1, dword [ebp - 0x10]
subss xmm1, xmm0
movss dword [ebp - 0x10], xmm1
jmp 0x1004e898
movss xmm1, dword [0x1015c874]
movaps xmm3, xmm1
movaps xmm0, xmm3
cmp edi, 1
jne 0x1004e859
mov eax, dword [ebp + 0x14]
movss xmm4, dword [eax]
jmp 0x1004e6c6
movaps xmm4, xmm1
movaps xmm2, xmm4
cmp edi, 2
jne 0x1004e872
mov eax, dword [ebp + 0x14]
movss xmm1, dword [eax + 0xc]
jmp 0x1004e6ce
movss xmm1, dword [0x1015d7d4]
nop word [eax + eax]
test edi, edi
jne 0x1004e6ce
mov eax, dword [ebp + 0x14]
movss xmm5, dword [eax + 8]
jmp 0x1004e6d6
mov ebx, dword [ebp + 8]
inc edi
cmp edi, dword [ebp - 0x2c]
jl 0x1004e570
mov eax, dword [0x10240b04]
mov esi, dword [ebp - 0x14]
mov eax, dword [eax + 0x1cdc]
dec dword [eax + 0xc4]
mov dword [ebx + 0x144], 0
mov eax, dword [esi + 0x1f48]
test eax, eax
je 0x1004ea11
nop word [eax + eax]
cmp dword [eax + 0x31c], ebx
jne 0x1004ea11
mov eax, dword [esi + 0x1e70]
cmp eax, 2
jne 0x1004e91e
cmp byte ds:[esi + 0xfd], 0
je 0x1004ea11
sub esp, 8
mov dword [esp + 4], 0
mov dword [esp], 0
push 0
push 1
jmp 0x1004e93f
nop
cmp eax, 3
jne 0x1004ea11
sub esp, 8
mov dword [esp + 4], 0
mov dword [esp], 0
push 0
push 2
lea eax, [ebp - 0x50]
push eax
call fcn.10044b60
add esp, 0x14
xorps xmm0, xmm0
movss xmm4, dword [eax]
movss xmm3, dword [eax + 4]
ucomiss xmm4, xmm0
lahf
test ah, 0x44
jp 0x1004e972
ucomiss xmm3, xmm0
lahf
test ah, 0x44
jnp 0x1004ea11
movss xmm1, dword [esi + 0xa8]
minss xmm1, dword [esi + 0xac]
movss xmm0, dword [esi + 0x18]
mulss xmm0, dword [0x1015d7cc]
mulss xmm0, xmm1
cvttss2si eax, xmm0
movd xmm2, eax
mov eax, dword [ebp + 0x14]
cvtdq2ps xmm2, xmm2
movss xmm1, dword [eax]
movss xmm0, dword [eax + 4]
lea eax, [ebp - 0x50]
subss xmm1, dword [ebx + 0xc]
subss xmm0, dword [ebx + 0x10]
mulss xmm3, xmm2
push eax
mulss xmm4, xmm2
lea eax, [ebp - 0x48]
push ebx
subss xmm1, dword [ebx + 0x14]
subss xmm0, dword [ebx + 0x18]
mov byte [esi + 0x1f5c], 0
mov byte [esi + 0x1e93], 1
push eax
maxss xmm4, xmm1
maxss xmm3, xmm0
addss xmm4, dword [ebx + 0x1c]
addss xmm3, dword [ebx + 0x20]
movss dword [ebp - 0x50], xmm4
movss dword [ebp - 0x4c], xmm3
call fcn.10049120
add esp, 0xc
movss xmm0, dword [eax]
movss dword [ebp - 0x18], xmm0
movss xmm0, dword [eax + 4]
jmp 0x1004ea16
movss xmm0, dword [ebp - 8]
movss xmm1, dword [ebp - 0x18]
ucomiss xmm1, dword [0x1015d7d4]
pop edi
pop esi
lahf
test ah, 0x44
jnp 0x1004ea3d
push ebx
movss dword [ebx + 0x1c], xmm1
movss dword [ebx + 0x20], xmm0
call fcn.100421c0
add esp, 4
movss xmm0, dword [ebp - 0xc]
ucomiss xmm0, dword [0x1015d7d4]
lahf
test ah, 0x44
jnp 0x1004ea79
cvttss2si eax, xmm0
push ebx
movd xmm1, eax
cvttss2si eax, dword [ebp - 0x10]
cvtdq2ps xmm1, xmm1
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [ebx + 0xc], xmm1
movss dword [ebx + 0x10], xmm0
call fcn.100421c0
add esp, 4
mov eax, dword [ebx + 0x1c]
mov ecx, dword [ebx + 0x20]
mov dword [ebx + 0x14], eax
mov dword [ebx + 0x18], ecx
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret