Function at 0x4e8c80
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
push ebx
push esi
push edi
mov ecx, dword [ebp + 0x20]
mov edx, dword [ebp + 0xc]
mov esi, 8
mov ebx, dword [ecx]
mov ecx, dword [ebp + 0x24]
mov eax, dword [ebp + 8]
mov edx, dword [edx]
mov ecx, dword [ecx]
mov edi, edx
mov dword [ebp - 8], ecx
mov ecx, ebx
shl ecx, 3
mov eax, dword [eax]
mov dword [ebp - 0xc], ecx
imul ecx, dword [ebp - 8]
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 8]
inc ecx
imul ecx, ebx
add edi, 3
lea esi, [esi + ecx*8]
mov ecx, 0x18
mov dword [ebp - 0x14], esi
mov esi, 0xfffffffc
lea ecx, [ecx + eax*8]
mov dword [ebp - 0x18], ecx
imul edi, dword [ebp - 0x18]
add eax, 3
sub esi, edx
mov edx, dword [ebp + 0x48]
imul esi, eax
mov dword [ebp - 0x1c], edi
mov edi, dword [edx]
shl esi, 3
sub esi, 8
cmp edi, ebx
jg 0x4e91be
mov ebx, dword [ebp + 0x38]
mov eax, edi
mov ebx, dword [ebx]
shl ebx, 3
add ebx, dword [ebp + 0x44]
neg eax
mov ebx, dword [ebx - 8]
mov dword [ebp - 0x20], ebx
cmp ebx, 1
jne 0x4e8d16
mov eax, edi
mov edx, dword [ebp + 0x3c]
mov dword [ebp - 0x24], eax
mov eax, dword [edx]
mov dword [ebp - 0x28], eax
shl eax, 3
add eax, dword [ebp + 0x44]
mov ebx, dword [eax - 8]
mov eax, dword [eax - 4]
mov dword [ebp - 0x2c], ebx
sub eax, dword [ebp - 0x2c]
mov ebx, dword [ebp + 0x44]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x40]
mov eax, dword [eax]
mov edx, dword [ebx + eax*8 - 8]
mov ebx, dword [ebx + eax*8 - 4]
mov dword [ebp - 0x34], edx
sub ebx, dword [ebp - 0x34]
test edi, edi
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x3c], edi
jle 0x4e91b5
lea eax, [eax*4 + 0x5981c0]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp + 0x14]
dec edi
sub eax, esi
mov dword [ebp - 0x48], eax
mov eax, dword [ebp + 0x18]
sub eax, esi
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp + 0x1c]
sub eax, esi
mov dword [ebp - 0x40], 8
mov dword [ebp - 0x50], eax
mov esi, dword [ebp - 0x24]
mov dword [ebp - 0x54], edi
xor esi, dword [ebp - 0x54]
mov eax, dword [ebp + 0x38]
mov eax, dword [eax]
sar esi, 0x1f
xor edi, esi
sub edi, esi
mov esi, dword [ebp - 8]
add edi, dword [ebp - 0x20]
mov dword [ebp - 0x58], esi
test esi, esi
mov dword [eax*4 + 0x5981bc], edi
jle 0x4e9197
mov eax, dword [ebp - 0xc]
mov esi, 0
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp + 0x28]
mov eax, dword [eax]
mov dword [ebp - 0x60], eax
xor eax, eax
cmp dword [ebp - 0x60], 5
setle al
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x68], esi
xor eax, dword [ebp - 0x68]
mov edi, dword [ebp - 0x5c]
sar eax, 0x1f
xor esi, eax
sub esi, eax
mov eax, dword [ebp - 0x28]
add esi, dword [ebp - 0x2c]
mov dword [eax*4 + 0x5981bc], esi
mov esi, dword [ebp - 0x60]
mov dword [ebp - 0x6c], esi
test esi, esi
mov esi, dword [ebp + 0x2c]
jle 0x4e9179
sub esi, dword [ebp - 0x14]
add edi, dword [ebp - 0x10]
lea ebx, [esi + edi]
mov esi, dword [ebp - 0x40]
add esi, ebx
mov ebx, dword [ebp + 0x30]
sub ebx, dword [ebp - 0x14]
mov dword [ebp - 0x70], esi
lea edx, [ebx + edi]
mov ebx, dword [ebp - 0x40]
add ebx, edx
mov edx, dword [ebp + 0x34]
sub edx, dword [ebp - 0x14]
mov dword [ebp - 0x74], ebx
lea ecx, [edx + edi]
mov edi, dword [ebp - 0x40]
add edi, ecx
mov ecx, 0
cmp dword [ebp - 0x64], 0
jne 0x4e9102
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x78], ecx
xor eax, dword [ebp - 0x78]
mov edx, dword [ebp - 0x44]
mov esi, dword [ebp - 0x70]
mov ebx, dword [ebp - 0x74]
sar eax, 0x1f
xor ecx, eax
sub ecx, eax
add ecx, dword [ebp - 0x34]
mov dword [edx - 4], ecx
mov eax, dword [0x5981c8]
imul eax, dword [ebp - 0x1c]
mov ecx, dword [0x5981c4]
mov edx, dword [ebp - 0x10]
imul ecx, dword [ebp - 0x18]
add eax, ecx
mov ecx, dword [0x5981c0]
lea eax, [eax + ecx*8]
mov ecx, dword [ebp - 0x48]
mov dword [ebp - 0x7c], ecx
fld qword [ecx + eax]
mov ecx, dword [ebp - 0x4c]
fstp qword [esi]
mov dword [ebp - 0x7c], ecx
fld qword [ecx + eax]
mov ecx, dword [ebp - 0x50]
fstp qword [ebx]
mov dword [ebp - 0x7c], ecx
fld qword [ecx + eax]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x10]
fstp qword [edi]
add esi, eax
add ebx, edx
mov eax, dword [ebp - 0x78]
add edi, ecx
inc eax
mov edx, dword [ebp - 0x38]
xor edx, eax
mov ecx, dword [ebp - 0x44]
mov dword [ebp - 0x74], ebx
mov ebx, dword [ebp - 0x4c]
mov dword [ebp - 0x70], esi
sar edx, 0x1f
xor eax, edx
sub eax, edx
add eax, dword [ebp - 0x34]
mov dword [ecx - 4], eax
mov edx, dword [0x5981c8]
imul edx, dword [ebp - 0x1c]
mov ecx, dword [0x5981c4]
mov eax, dword [0x5981c0]
imul ecx, dword [ebp - 0x18]
add edx, ecx
mov ecx, dword [ebp - 0x48]
lea eax, [edx + eax*8]
mov edx, dword [ebp - 0x38]
fld qword [ecx + eax]
mov ecx, dword [ebp - 0x74]
fstp qword [esi]
mov esi, dword [ebp - 0x10]
fld qword [ebx + eax]
mov ebx, dword [ebp - 0x50]
fstp qword [ecx]
mov ecx, dword [ebp - 0x10]
fld qword [ebx + eax]
mov ebx, dword [ebp - 0x10]
add ecx, dword [ebp - 0x70]
fstp qword [edi]
add ebx, dword [ebp - 0x74]
mov eax, dword [ebp - 0x78]
add edi, esi
add eax, 2
xor edx, eax
mov dword [ebp - 0x70], ecx
mov ecx, dword [ebp - 0x44]
mov dword [ebp - 0x74], ebx
sar edx, 0x1f
xor eax, edx
sub eax, edx
add eax, dword [ebp - 0x34]
mov dword [ecx - 4], eax
mov ebx, dword [0x5981c8]
imul ebx, dword [ebp - 0x1c]
mov esi, dword [0x5981c4]
mov edx, dword [0x5981c0]
mov ecx, dword [ebp - 0x48]
mov eax, dword [ebp - 0x78]
imul esi, dword [ebp - 0x18]
add ebx, esi
mov esi, dword [ebp - 0x70]
lea ebx, [ebx + edx*8]
mov edx, dword [ebp - 0x74]
fld qword [ecx + ebx]
mov ecx, dword [ebp - 0x10]
fstp qword [esi]
mov esi, dword [ebp - 0x4c]
add ecx, dword [ebp - 0x70]
fld qword [esi + ebx]
mov esi, dword [ebp - 0x50]
mov dword [ebp - 0x70], ecx
fstp qword [edx]
mov edx, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x44]
fld qword [esi + ebx]
mov ebx, dword [ebp - 0x10]
mov esi, dword [ebp - 0x10]
fstp qword [edi]
add ebx, dword [ebp - 0x74]
add edi, esi
add eax, 3
xor edx, eax
mov dword [ebp - 0x74], ebx
sar edx, 0x1f
xor eax, edx
sub eax, edx
add eax, dword [ebp - 0x34]
mov dword [ecx - 4], eax
mov ebx, dword [0x5981c8]
imul ebx, dword [ebp - 0x1c]
mov esi, dword [0x5981c4]
mov edx, dword [0x5981c0]
mov ecx, dword [ebp - 0x48]
mov eax, dword [ebp - 0x78]
imul esi, dword [ebp - 0x18]
add ebx, esi
mov esi, dword [ebp - 0x70]
lea ebx, [ebx + edx*8]
mov edx, dword [ebp - 0x74]
fld qword [ecx + ebx]
mov ecx, dword [ebp - 0x10]
fstp qword [esi]
mov esi, dword [ebp - 0x4c]
add ecx, dword [ebp - 0x70]
fld qword [esi + ebx]
mov esi, dword [ebp - 0x50]
mov dword [ebp - 0x70], ecx
fstp qword [edx]
mov edx, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x44]
fld qword [esi + ebx]
mov ebx, dword [ebp - 0x10]
mov esi, dword [ebp - 0x10]
fstp qword [edi]
add ebx, dword [ebp - 0x74]
add edi, esi
add eax, 4
xor edx, eax
mov dword [ebp - 0x74], ebx
sar edx, 0x1f
xor eax, edx
sub eax, edx
add eax, dword [ebp - 0x34]
mov dword [ecx - 4], eax
mov ebx, dword [0x5981c8]
imul ebx, dword [ebp - 0x1c]
mov esi, dword [0x5981c4]
mov edx, dword [0x5981c0]
mov ecx, dword [ebp - 0x48]
mov eax, dword [ebp - 0x78]
imul esi, dword [ebp - 0x18]
add ebx, esi
mov esi, dword [ebp - 0x70]
lea ebx, [ebx + edx*8]
mov edx, dword [ebp - 0x74]
fld qword [ecx + ebx]
mov ecx, dword [ebp - 0x10]
fstp qword [esi]
mov esi, dword [ebp - 0x4c]
add ecx, dword [ebp - 0x70]
fld qword [esi + ebx]
mov esi, dword [ebp - 0x50]
mov dword [ebp - 0x70], ecx
fstp qword [edx]
mov edx, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x44]
fld qword [esi + ebx]
mov ebx, dword [ebp - 0x10]
mov esi, dword [ebp - 0x10]
fstp qword [edi]
add ebx, dword [ebp - 0x74]
add edi, esi
add eax, 5
xor edx, eax
mov dword [ebp - 0x74], ebx
sar edx, 0x1f
xor eax, edx
sub eax, edx
add eax, dword [ebp - 0x34]
mov dword [ecx - 4], eax
mov ebx, dword [0x5981c8]
imul ebx, dword [ebp - 0x1c]
mov esi, dword [0x5981c4]
mov edx, dword [0x5981c0]
mov ecx, dword [ebp - 0x48]
mov eax, dword [ebp - 0x78]
imul esi, dword [ebp - 0x18]
add ebx, esi
mov esi, dword [ebp - 0x70]
lea ebx, [ebx + edx*8]
mov edx, dword [ebp - 0x74]
fld qword [ecx + ebx]
mov ecx, dword [ebp - 0x10]
fstp qword [esi]
mov esi, dword [ebp - 0x4c]
add ecx, dword [ebp - 0x70]
fld qword [esi + ebx]
mov esi, dword [ebp - 0x50]
mov dword [ebp - 0x70], ecx
fstp qword [edx]
mov edx, dword [ebp - 0x6c]
fld qword [esi + ebx]
mov ebx, dword [ebp - 0x10]
mov esi, dword [ebp - 0x10]
fstp qword [edi]
add ebx, dword [ebp - 0x74]
add edi, esi
add eax, 6
sub edx, 6
mov dword [ebp - 0x74], ebx
mov ecx, eax
mov dword [ebp - 0x6c], edx
cmp edx, 5
jg 0x4e8e40
test edx, edx
jle 0x4e9179
mov esi, dword [ebp - 0x38]
mov eax, ecx
xor esi, ecx
mov edx, dword [ebp - 0x44]
sar esi, 0x1f
xor eax, esi
sub eax, esi
add eax, dword [ebp - 0x34]
mov dword [edx - 4], eax
mov ebx, dword [0x5981c8]
imul ebx, dword [ebp - 0x1c]
mov esi, dword [0x5981c4]
mov eax, dword [0x5981c0]
mov edx, dword [ebp - 0x48]
imul esi, dword [ebp - 0x18]
add ebx, esi
mov esi, dword [ebp - 0x70]
lea ebx, [ebx + eax*8]
mov eax, dword [ebp - 0x74]
fld qword [edx + ebx]
mov edx, dword [ebp - 0x10]
fstp qword [esi]
mov esi, dword [ebp - 0x4c]
add edx, dword [ebp - 0x70]
fld qword [esi + ebx]
mov esi, dword [ebp - 0x50]
mov dword [ebp - 0x70], edx
fstp qword [eax]
mov eax, dword [ebp - 0x6c]
fld qword [esi + ebx]
mov ebx, dword [ebp - 0x10]
mov esi, dword [ebp - 0x10]
fstp qword [edi]
add ebx, dword [ebp - 0x74]
add edi, esi
inc ecx
dec eax
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x6c], eax
test eax, eax
jg 0x4e9102
mov ebx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x68]
add ebx, dword [ebp - 0x5c]
mov edx, dword [ebp - 0x58]
inc eax
dec edx
mov dword [ebp - 0x5c], ebx
mov esi, eax
mov dword [ebp - 0x58], edx
test edx, edx
jg 0x4e8dd0
mov ecx, dword [ebp - 0x54]
mov ebx, dword [ebp - 0x40]
dec ecx
mov edx, dword [ebp - 0x3c]
add ebx, 8
dec edx
mov edi, ecx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], edx
test edx, edx
jg 0x4e8d84
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x44
xor edx, edx
lea eax, str.GV2_COPY_XYZ:_TOO_MANY_LAYERS:
mov dword [ebp - 0x48], 0x1e
mov dword [ebp - 0x44], eax
lea ecx, [ebp - 0x48]
lea esi, [ebp - 0x3c]
mov dword [ebp - 0x3c], edx
sub esp, 4
lea edx, [0x57b10c]
push ecx
push edx
push 0x384ff00
push 1
push esi
call fcn.005376f0
add esp, 0x18
mov dword [ebp - 0x48], edi
sub esp, 4
lea edi, [ebp - 0x48]
lea esi, [0x57b144]
lea eax, [ebp - 0x3c]
push edi
lea edi, [ebp - 0x48]
push esi
push eax
call fcn.00537d50
add esp, 0x10
mov dword [ebp - 0x48], ebx
sub esp, 4
lea esi, [0x57b104]
lea eax, [ebp - 0x3c]
lea ebx, [0x57b100]
push edi
push esi
push eax
call fcn.00537d50
add esp, 0x10
sub esp, 4
push 0
push 0
push 0x384ff00
push 0
push ebx
call fcn.0053bd00
add esp, 0x18