Function at 0x1014c820
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x10259b00]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x20]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x1c]
push esi
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], ecx
push edi
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x30], edi
test al, 3
je 0x1014c86e
push 0xda
push str.F:_vcpkg_2024.05.24_buildtreesopus_src_v1.5.1_cfcae413d5.cleanceltcelt_lpc.c
push str.assertion_failed:__ord3_0
call fcn.1012fae0
mov eax, dword [ebp - 0x18]
add esp, 0xc
shl eax, 2
call fcn.100a0ef0
mov eax, dword [ebp - 0x18]
mov esi, esp
mov dword [ebp - 0x2c], esi
lea eax, [eax + edi]
shl eax, 2
call fcn.100a0ef0
mov ecx, dword [ebp - 0x18]
xor edi, edi
mov dword [ebp - 0x28], esp
cmp ecx, 4
jl 0x1014c8db
mov edx, dword [ebp + 0xc]
lea eax, [ecx - 4]
add edx, 0xfffffff8
shr eax, 2
add esi, 8
inc eax
lea edx, [edx + ecx*4]
mov ecx, eax
lea edi, [eax*4]
mov eax, dword [edx + 4]
lea esi, [esi + 0x10]
mov dword [esi - 0x18], eax
lea edx, [edx - 0x10]
mov eax, dword [edx + 0x10]
mov dword [esi - 0x14], eax
mov eax, dword [edx + 0xc]
mov dword [esi - 0x10], eax
mov eax, dword [edx + 8]
mov dword [esi - 0xc], eax
sub ecx, 1
jne 0x1014c8b2
mov ecx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x2c]
cmp edi, ecx
jge 0x1014c8fd
mov edx, dword [ebp + 0xc]
mov eax, ecx
sub eax, edi
lea edx, [edx + eax*4]
add edx, 0xfffffffc
nop dword [eax]
mov eax, dword [edx]
lea edx, [edx - 4]
mov dword [esi + edi*4], eax
inc edi
cmp edi, ecx
jl 0x1014c8f0
movss xmm1, dword [0x1017ea10]
xor edx, edx
cmp ecx, 4
jl 0x1014c96f
mov eax, dword [ebp - 0x3c]
lea edi, [ecx - 4]
mov esi, dword [ebp - 0x28]
shr edi, 2
add esi, 8
lea eax, [eax + ecx*4]
add eax, 0xfffffff8
inc edi
lea edx, [edi*4]
nop dword [eax]
movss xmm0, dword [eax + 4]
lea esi, [esi + 0x10]
lea eax, [eax - 0x10]
xorps xmm0, xmm1
movss dword [esi - 0x18], xmm0
movss xmm0, dword [eax + 0x10]
xorps xmm0, xmm1
movss dword [esi - 0x14], xmm0
movss xmm0, dword [eax + 0xc]
xorps xmm0, xmm1
movss dword [esi - 0x10], xmm0
movss xmm0, dword [eax + 8]
xorps xmm0, xmm1
movss dword [esi - 0xc], xmm0
sub edi, 1
jne 0x1014c930
cmp edx, ecx
jge 0x1014c999
mov esi, dword [ebp - 0x3c]
mov eax, ecx
sub eax, edx
sub esi, 4
lea eax, [esi + eax*4]
mov esi, dword [ebp - 0x28]
movss xmm0, dword [eax]
lea eax, [eax - 4]
xorps xmm0, xmm1
movss dword [esi + edx*4], xmm0
inc edx
cmp edx, ecx
jl 0x1014c983
jmp 0x1014c99c
mov esi, dword [ebp - 0x28]
mov eax, dword [ebp - 0x30]
lea edi, [ecx + eax]
cmp edx, edi
jge 0x1014c9b7
sub edi, edx
xor eax, eax
mov ecx, edi
lea edi, [esi + edx*4]
rep stosd dword es:[edi], eax
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x30]
xor esi, esi
lea edi, [eax - 3]
mov dword [ebp - 0x38], esi
test edi, edi
jle 0x1014cb09
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x34]
and dword [ebp - 0x1c], 7
add edx, 0xc
mov dword [ebp - 0x40], eax
lea eax, [eax + ecx*4]
mov dword [ebp - 0x48], edx
mov edx, dword [ebp + 8]
add eax, 4
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x34]
sub eax, edx
mov dword [ebp - 0x44], eax
lea esi, [edx + 8]
lea eax, [edi - 1]
mov dword [ebp - 0x20], esi
mov edi, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x20]
shr eax, 2
inc eax
mov dword [ebp - 0x24], eax
lea esi, [eax*4]
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x38], esi
mov esi, dword [ebp - 0x4c]
movups xmm0, xmmword [edx - 8]
push ecx
lea ecx, [ebp - 0x14]
push ecx
push eax
mov eax, dword [ebp - 0x1c]
push edi
movups xmmword [ebp - 0x14], xmm0
mov eax, dword [eax*4 + 0x1024311c]
call eax
mov eax, dword [ebp + 0xc]
add esp, 0x10
movss xmm1, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x48]
movaps xmm0, xmm1
movss xmm2, dword [0x1017ea10]
xorps xmm0, xmm2
mov edx, dword [ebp - 0x20]
movss dword [esi - 4], xmm0
movss dword [ecx - 0xc], xmm1
movss xmm1, dword [eax]
mulss xmm1, dword [esi - 4]
mov edi, dword [ebp - 0x44]
addss xmm1, dword [ebp - 0x10]
movaps xmm0, xmm1
xorps xmm0, xmm2
movss dword [esi], xmm0
movss dword [ecx - 8], xmm1
movss xmm1, dword [eax]
mulss xmm1, dword [esi]
movss xmm0, dword [esi - 4]
mulss xmm0, dword [eax + 4]
addss xmm1, dword [ebp - 0xc]
addss xmm1, xmm0
movaps xmm0, xmm1
xorps xmm0, xmm2
movss dword [esi + 4], xmm0
movss dword [edi + edx], xmm1
add edx, 0x10
movss xmm1, dword [eax]
mulss xmm1, dword [esi + 4]
mov edi, dword [ebp - 0x2c]
movss xmm0, dword [esi]
mulss xmm0, dword [eax + 4]
mov dword [ebp - 0x20], edx
addss xmm1, dword [ebp - 8]
addss xmm1, xmm0
movss xmm0, dword [eax + 8]
mulss xmm0, dword [esi - 4]
mov eax, dword [ebp - 0x40]
add eax, 0x10
mov dword [ebp - 0x40], eax
addss xmm1, xmm0
movaps xmm0, xmm1
xorps xmm0, xmm2
movss dword [esi + 8], xmm0
add esi, 0x10
movss dword [ecx], xmm1
add ecx, 0x10
sub dword [ebp - 0x24], 1
mov dword [ebp - 0x48], ecx
mov ecx, dword [ebp - 0x18]
jne 0x1014ca14
mov esi, dword [ebp - 0x38]
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x18]
cmp esi, eax
jge 0x1014cc13
mov eax, dword [ebp - 0x34]
mov edi, dword [ebp - 0x28]
lea edx, [eax + esi*4]
lea eax, [ecx + esi]
mov dword [ebp - 0x24], edx
lea eax, [edi + eax*4]
lea edi, [edi + esi*4]
mov dword [ebp - 0x1c], eax
add edi, 8
mov dword [ebp - 0x20], edi
mov edi, dword [ebp - 0x34]
sub dword [ebp + 8], edi
mov edi, dword [ebp - 0x2c]
nop dword [eax + eax]
mov eax, dword [ebp + 8]
movss xmm1, dword [eax + edx]
xor edx, edx
mov eax, dword [ebp - 0x1c]
cmp ecx, 4
jl 0x1014cbba
mov esi, dword [ebp - 0x18]
lea eax, [edi + 8]
mov ecx, dword [ebp - 0x20]
lea esi, [esi - 4]
shr esi, 2
inc esi
lea edx, [esi*4]
nop dword [eax]
movss xmm0, dword [ecx - 8]
mulss xmm0, dword [eax - 8]
subss xmm1, xmm0
movss xmm0, dword [ecx - 4]
mulss xmm0, dword [eax - 4]
subss xmm1, xmm0
movss xmm0, dword [eax]
mulss xmm0, dword [ecx]
subss xmm1, xmm0
movss xmm0, dword [ecx + 4]
mulss xmm0, dword [eax + 4]
add ecx, 0x10
add eax, 0x10
subss xmm1, xmm0
sub esi, 1
jne 0x1014cb70
mov ecx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x38]
mov eax, dword [ebp - 0x1c]
cmp edx, ecx
jge 0x1014cbe8
mov edi, dword [ebp - 0x28]
lea eax, [edx + esi]
lea eax, [edi + eax*4]
mov edi, dword [ebp - 0x2c]
nop word [eax + eax]
movss xmm0, dword [edi + edx*4]
inc edx
mulss xmm0, dword [eax]
add eax, 4
subss xmm1, xmm0
cmp edx, ecx
jl 0x1014cbd0
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x24]
inc esi
add dword [ebp - 0x20], 4
movss dword [eax], xmm1
add eax, 4
mov dword [ebp - 0x38], esi
movss dword [edx], xmm1
add edx, 4
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x24], edx
cmp esi, dword [ebp - 0x30]
jl 0x1014cb40
mov eax, dword [ebp - 0x30]
xor edi, edi
cmp ecx, 4
jl 0x1014cc66
mov edx, dword [ebp - 0x34]
mov esi, dword [ebp - 0x3c]
add esi, 8
lea edx, [edx + eax*4]
lea eax, [ecx - 4]
add edx, 0xfffffff8
shr eax, 2
inc eax
mov dword [ebp - 0x44], eax
mov ecx, eax
lea edi, [eax*4]
nop dword [eax]
mov eax, dword [edx + 4]
lea esi, [esi + 0x10]
mov dword [esi - 0x18], eax
lea edx, [edx - 0x10]
mov eax, dword [edx + 0x10]
mov dword [esi - 0x14], eax
mov eax, dword [edx + 0xc]
mov dword [esi - 0x10], eax
mov eax, dword [edx + 8]
mov dword [esi - 0xc], eax
sub ecx, 1
jne 0x1014cc40
mov ecx, dword [ebp - 0x18]
cmp edi, ecx
jge 0x1014cc8d
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0x34]
sub eax, edi
mov esi, dword [ebp - 0x3c]
lea edx, [edx + eax*4]
add edx, 0xfffffffc
nop dword [eax + eax]
mov eax, dword [edx]
lea edx, [edx - 4]
mov dword [esi + edi*4], eax
inc edi
cmp edi, ecx
jl 0x1014cc80
lea esp, [ebp - 0x54]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1009fd88
mov esp, ebp
pop ebp
ret