Function at 0x1014a350
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x50
mov eax, dword [0x102a0600]
xor eax, esp
mov dword [esp + 0x4c], eax
push edi
mov edi, ecx
mov dword [esp + 0x4c], edi
cmp dword [edi + 0xc44], 1
jb 0x1014ab47
mov ecx, dword [edi + 0xc48]
lea edx, [edi + 0xc40]
mov eax, dword [edx]
push esi
mov dword [esp + 0x30], ecx
xor esi, esi
mov ecx, dword [esp + 0x5c]
mov dword [esp + 8], edx
mov dword [esp + 0x4c], eax
mov dword [esp + 0x2c], esi
test ecx, ecx
je 0x1014ab2b
lea eax, [edi + 0x1c]
mov dword [esp + 0xc], eax
add eax, 0x200
mov dword [esp + 0x10], eax
nop
mov eax, ecx
mov edx, 0x80
mov ecx, dword [edi + 0x18]
sub eax, esi
sub edx, ecx
mov dword [esp + 0x3c], ecx
cmp edx, eax
cmova edx, eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x14], edx
lea ecx, [eax + ecx*4]
mov eax, dword [esp + 0x60]
lea eax, [eax + esi*4]
lea esi, [edx*4]
mov dword [esp + 0x20], esi
test edx, edx
je 0x1014a3f8
push esi
push eax
push ecx
call fcn.10086560
mov eax, dword [edi + 0x18]
add esp, 0xc
jmp 0x1014a400
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x20], esi
mov ecx, dword [esp + 0x30]
mov edi, eax
mov dword [esp + 0x3c], 0
cmp dword [ecx], 0
jbe 0x1014a620
mov edx, dword [esp + 0x50]
mov esi, dword [esp + 0x2c]
mov eax, dword [edx + 0x428]
mov dword [esp + 0x40], eax
mov eax, dword [edx + 0x41c]
mov dword [esp + 0x44], eax
mov eax, ecx
mov ecx, dword [esp + 0x2c]
add ecx, 4
lea ecx, [eax + ecx*4]
lea eax, [eax + esi*4]
mov dword [esp + 0x38], ecx
add eax, 0x10
add eax, dword [esp + 0x20]
mov dword [esp + 0x28], eax
jmp 0x1014a457
mov eax, dword [esp + 0x28]
lea edi, [edi + 8]
mov esi, ecx
lea edi, [edx + edi*4]
cmp ecx, eax
je 0x1014a4bf
mov edx, dword [esp + 0x44]
xorps xmm3, xmm3
sub edx, edi
nop dword [eax]
movaps xmm2, xmm3
mov eax, edi
mov ecx, 0x20
nop word [eax + eax]
movups xmm0, xmmword [eax]
movups xmm1, xmmword [edx + eax]
add eax, 0x10
mulps xmm1, xmm0
addps xmm2, xmm1
sub ecx, 1
jne 0x1014a480
movaps xmm1, xmm2
add edi, 4
shufps xmm1, xmm2, 0x1b
sub edx, 4
addps xmm1, xmm2
movaps xmm0, xmm1
movhlps xmm0, xmm1
addps xmm0, xmm1
movss dword [esi], xmm0
add esi, 4
cmp esi, dword [esp + 0x28]
jne 0x1014a470
mov edx, dword [esp + 0x50]
mov eax, dword [edx + 0x18]
mov ecx, dword [esp + 0x40]
mov edi, dword [esp + 0x20]
mov esi, dword [esp + 0x38]
mov dword [esp + 0x24], 0
lea ecx, [ecx + eax*4]
mov dword [esp + 0x18], 0
lea edx, [edi + ecx]
shr edi, 2
mov dword [esp + 0x48], edx
mov edx, esi
cmp ecx, dword [esp + 0x48]
cmova edi, dword [esp + 0x24]
mov dword [esp + 0x1c], edi
cmp dword [esp + 0x1c], 0
mov edi, dword [esp + 0x50]
mov edi, dword [edi + 0x18]
je 0x1014a5b5
mov edi, dword [esp + 0x50]
mov eax, dword [edi + 0x18]
mov edi, dword [esp + 0x1c]
cmp edi, 0x10
jb 0x1014a5b3
mov eax, esi
lea eax, [eax + edi*4]
add eax, 0xfffffffc
mov dword [esp + 0x24], eax
lea eax, [edi - 1]
lea eax, [ecx + eax*4]
cmp esi, eax
ja 0x1014a547
mov edi, dword [esp + 0x50]
mov eax, dword [edi + 0x18]
mov edi, dword [esp + 0x1c]
cmp dword [esp + 0x24], ecx
jae 0x1014a5b3
mov eax, dword [esp + 0x24]
cmp dword [esp + 0x38], eax
ja 0x1014a55c
mov eax, dword [esp + 0x50]
mov edi, dword [eax + 0x18]
mov eax, edi
jmp 0x1014a5b5
mov eax, dword [esp + 0x18]
and edi, 0xfffffff0
movups xmm0, xmmword [ecx]
add eax, 0x10
movups xmm1, xmmword [edx]
addps xmm1, xmm0
movups xmmword [esi], xmm1
movups xmm0, xmmword [ecx + 0x10]
movups xmm1, xmmword [edx + 0x10]
addps xmm1, xmm0
movups xmmword [esi + 0x10], xmm1
movups xmm0, xmmword [ecx + 0x20]
movups xmm1, xmmword [edx + 0x20]
addps xmm1, xmm0
movups xmmword [esi + 0x20], xmm1
movups xmm1, xmmword [edx + 0x30]
add edx, 0x40
movups xmm0, xmmword [ecx + 0x30]
add ecx, 0x40
addps xmm1, xmm0
movups xmmword [esi + 0x30], xmm1
add esi, 0x40
cmp eax, edi
jne 0x1014a563
mov eax, dword [esp + 0x50]
mov eax, dword [eax + 0x18]
mov edi, eax
cmp ecx, dword [esp + 0x48]
je 0x1014a5e1
mov eax, dword [esp + 0x48]
sub esi, edx
movss xmm0, dword [edx]
addss xmm0, dword [ecx]
add ecx, 4
movss dword [edx + esi], xmm0
add edx, 4
cmp ecx, eax
jne 0x1014a5c1
mov edx, dword [esp + 0x50]
mov eax, dword [edx + 0x18]
mov edi, eax
mov edx, dword [esp + 0x30]
mov esi, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
inc esi
add dword [esp + 0x28], 0x10a0
add ecx, 0x10a0
add dword [esp + 0x44], 0x200
add dword [esp + 0x40], 0x400
cmp esi, dword [edx]
mov edx, dword [esp + 0x50]
mov dword [esp + 0x3c], esi
mov dword [esp + 0x38], ecx
jb 0x1014a453
mov ecx, dword [esp + 0x14]
add eax, ecx
mov edi, dword [esp + 0x50]
add dword [esp + 0x2c], ecx
mov dword [edi + 0x18], eax
cmp eax, 0x80
jb 0x1014ab1d
push 0x200
push dword [esp + 0x14]
lea eax, [edi + 0x1c]
mov dword [edi + 0x18], 0
push eax
call fcn.10086560
mov edx, dword [esp + 0x18]
lea esi, [edi + 0x440]
mov ecx, esi
mov dword [esp + 0x4c], esi
add esp, 0xc
mov edi, 0x7f
mov eax, dword [edx]
mov dword [ecx], eax
mov dword [ecx + 4], 0
add ecx, 8
nop dword [eax + eax]
mov eax, dword [edx + 4]
lea edx, [edx + 4]
mov dword [ecx], eax
mov dword [ecx + 4], 0
add ecx, 8
sub edi, 1
jne 0x1014a680
mov edx, dword [esp + 8]
mov edi, dword [esp + 0x50]
cmp ecx, edx
je 0x1014a6c7
add ecx, 4
nop word [eax + eax]
mov dword [ecx - 4], 0
mov dword [ecx], 0
add ecx, 8
lea eax, [ecx - 4]
cmp eax, edx
jne 0x1014a6b0
push ecx
lea eax, [esi + 0x800]
mov dword [esp], 0xbf800000
push eax
push esi
mov dword [esp + 0x24], eax
call fcn.10156920
imul ecx, dword [esp + 0x58], 0x408
mov eax, dword [edi + 0xc4c]
push 0x408
push esi
add eax, ecx
mov dword [esp + 0x28], ecx
push eax
call fcn.10086560
imul eax, dword [edi + 0xc44], 0x408
add esp, 0x18
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x3c], 0
add eax, dword [edi + 0xc4c]
cmp dword [ecx], 0
mov dword [esp + 0x48], eax
jbe 0x1014aaf8
mov dword [esp + 0x44], 0
mov edi, dword [esp + 0x40]
xorps xmm0, xmm0
movss dword [esi], xmm0
add edi, 8
movss dword [esi + 4], xmm0
mov ecx, 0x100
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x50]
mov esi, dword [esp + 0x4c]
mov edi, esi
mov edx, dword [ecx + 0xc4c]
add edx, dword [esp + 0x14]
cmp esi, dword [ecx + 0xc44]
jae 0x1014a7e5
nop
mov ecx, dword [esp + 0x40]
mov esi, 0x81
nop dword [eax]
movss xmm5, dword [edx]
movss xmm3, dword [edx + 4]
add edx, 8
movss xmm4, dword [eax]
movss xmm2, dword [eax + 4]
movaps xmm1, xmm4
movaps xmm0, xmm2
mulss xmm1, xmm5
add eax, 8
mulss xmm4, xmm3
mulss xmm0, xmm3
mulss xmm2, xmm5
subss xmm1, xmm0
addss xmm4, xmm2
addss xmm1, dword [ecx]
addss xmm4, dword [ecx + 4]
movss dword [ecx], xmm1
movss dword [ecx + 4], xmm4
add ecx, 8
sub esi, 1
jne 0x1014a780
mov ecx, dword [esp + 0x50]
inc edi
mov dword [esp + 0x48], eax
cmp edi, dword [ecx + 0xc44]
jb 0x1014a770
mov esi, dword [esp + 0x4c]
mov edi, dword [esp + 0x50]
mov edx, dword [edi + 0xc4c]
test esi, esi
je 0x1014a866
mov edi, esi
nop dword [eax]
mov ecx, dword [esp + 0x40]
mov esi, 0x81
nop dword [eax]
movss xmm4, dword [eax]
movss xmm2, dword [eax + 4]
movaps xmm1, xmm4
mulss xmm1, dword [edx]
movaps xmm0, xmm2
add eax, 8
mulss xmm4, dword [edx + 4]
mulss xmm0, dword [edx + 4]
mulss xmm2, dword [edx]
add edx, 8
subss xmm1, xmm0
addss xmm4, xmm2
addss xmm1, dword [ecx]
addss xmm4, dword [ecx + 4]
movss dword [ecx], xmm1
movss dword [ecx + 4], xmm4
add ecx, 8
sub esi, 1
jne 0x1014a810
mov dword [esp + 0x48], eax
sub edi, 1
jne 0x1014a800
mov edi, dword [esp + 0x50]
movss xmm2, dword [0x1016a3a0]
lea eax, [edi + 0x854]
lea ecx, [edi + 0x834]
mov edx, 0xf
nop
movss xmm1, dword [ecx + 8]
lea eax, [eax + 0x40]
movss xmm0, dword [ecx + 4]
xorps xmm1, xmm2
movss dword [eax - 0x48], xmm1
lea ecx, [ecx - 0x40]
movss dword [eax - 0x4c], xmm0
movss xmm1, dword [ecx + 0x40]
movss xmm0, dword [ecx + 0x3c]
xorps xmm1, xmm2
movss dword [eax - 0x40], xmm1
movss dword [eax - 0x44], xmm0
movss xmm1, dword [ecx + 0x38]
movss xmm0, dword [ecx + 0x34]
xorps xmm1, xmm2
movss dword [eax - 0x38], xmm1
movss dword [eax - 0x3c], xmm0
movss xmm1, dword [ecx + 0x30]
movss xmm0, dword [ecx + 0x2c]
xorps xmm1, xmm2
movss dword [eax - 0x30], xmm1
movss dword [eax - 0x34], xmm0
movss xmm1, dword [ecx + 0x28]
movss xmm0, dword [ecx + 0x24]
xorps xmm1, xmm2
movss dword [eax - 0x28], xmm1
movss dword [eax - 0x2c], xmm0
movss xmm1, dword [ecx + 0x20]
movss xmm0, dword [ecx + 0x1c]
xorps xmm1, xmm2
movss dword [eax - 0x20], xmm1
movss dword [eax - 0x24], xmm0
movss xmm1, dword [ecx + 0x18]
movss xmm0, dword [ecx + 0x14]
xorps xmm1, xmm2
movss dword [eax - 0x18], xmm1
movss dword [eax - 0x1c], xmm0
movss xmm1, dword [ecx + 0x10]
movss xmm0, dword [ecx + 0xc]
xorps xmm1, xmm2
movss dword [eax - 0x14], xmm0
movss dword [eax - 0x10], xmm1
sub edx, 1
jne 0x1014a880
lea eax, [edi + 0xc08]
mov edx, 7
lea ecx, [edi + 0x478]
nop dword [eax + eax]
movss xmm1, dword [ecx + 4]
lea eax, [eax + 8]
movss xmm0, dword [ecx]
xorps xmm1, xmm2
sub ecx, 8
movss dword [eax - 8], xmm0
movss dword [eax - 4], xmm1
sub edx, 1
jne 0x1014a960
push ecx
mov dword [esp], 0x3f800000
lea eax, [edi + 0x440]
push dword [esp + 0x1c]
push eax
call fcn.10156920
mov eax, dword [edi + 0x428]
lea ecx, [edi + 0x448]
mov esi, dword [esp + 0x50]
add eax, 0x204
movss xmm1, dword [0x10221854]
add esp, 0xc
add eax, esi
mov edx, 0x10
movss xmm0, dword [ecx - 8]
addss xmm0, dword [eax - 4]
mulss xmm0, xmm1
movss dword [eax - 0x204], xmm0
movss xmm0, dword [eax]
addss xmm0, dword [ecx]
mulss xmm0, xmm1
movss dword [eax - 0x200], xmm0
movss xmm0, dword [ecx + 8]
addss xmm0, dword [eax + 4]
mulss xmm0, xmm1
movss dword [eax - 0x1fc], xmm0
movss xmm0, dword [ecx + 0x10]
addss xmm0, dword [eax + 8]
mulss xmm0, xmm1
movss dword [eax - 0x1f8], xmm0
movss xmm0, dword [ecx + 0x18]
addss xmm0, dword [eax + 0xc]
mulss xmm0, xmm1
movss dword [eax - 0x1f4], xmm0
movss xmm0, dword [ecx + 0x20]
addss xmm0, dword [eax + 0x10]
mulss xmm0, xmm1
movss dword [eax - 0x1f0], xmm0
movss xmm0, dword [ecx + 0x28]
addss xmm0, dword [eax + 0x14]
mulss xmm0, xmm1
movss dword [eax - 0x1ec], xmm0
movss xmm0, dword [ecx + 0x30]
add ecx, 0x40
addss xmm0, dword [eax + 0x18]
mulss xmm0, xmm1
movss dword [eax - 0x1e8], xmm0
add eax, 0x20
sub edx, 1
jne 0x1014a9c0
mov edx, dword [edi + 0x428]
lea ecx, [edi + 0x848]
add esi, 0x204
add edx, esi
mov esi, 0x10
mov eax, dword [ecx - 8]
lea edx, [edx + 0x20]
mov dword [edx - 0x24], eax
lea ecx, [ecx + 0x40]
mov eax, dword [ecx - 0x40]
mov dword [edx - 0x20], eax
mov eax, dword [ecx - 0x38]
mov dword [edx - 0x1c], eax
mov eax, dword [ecx - 0x30]
mov dword [edx - 0x18], eax
mov eax, dword [ecx - 0x28]
mov dword [edx - 0x14], eax
mov eax, dword [ecx - 0x20]
mov dword [edx - 0x10], eax
mov eax, dword [ecx - 0x18]
mov dword [edx - 0xc], eax
mov eax, dword [ecx - 0x10]
mov dword [edx - 8], eax
sub esi, 1
jne 0x1014aa96
mov eax, dword [esp + 0x3c]
lea esi, [edi + 0x440]
mov ecx, dword [esp + 0x30]
inc eax
add dword [esp + 0x44], 0x400
mov dword [esp + 0x3c], eax
cmp eax, dword [ecx]
mov eax, dword [esp + 0x48]
jb 0x1014a734
mov eax, dword [esp + 0x4c]
test eax, eax
jne 0x1014ab06
mov eax, dword [edi + 0xc44]
mov esi, dword [esp + 0x2c]
dec eax
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0x4c], eax
cmp esi, ecx
jb 0x1014a3b0
jmp 0x1014ab21
mov ecx, dword [esp + 0x5c]
mov eax, dword [esp + 0x4c]
lea edx, [edi + 0xc40]
push ecx
push dword [esp + 0x70]
mov ecx, dword [edi + 0xc54]
push dword [esp + 0x70]
mov dword [edx], eax
add ecx, edi
mov eax, dword [edi + 0xc50]
call eax
pop esi
mov ecx, dword [esp + 0x50]
pop edi
xor ecx, esp
call fcn.10084465
add esp, 0x50
ret 0x14