Function at 0x496a10
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x14
push ebx
xor ebx, ebx
push ebx
push 0x6a2d18
mov dword [esp + 0xc], ebx
call sym.convertifd.exe_PointToEntity
mov dword [esp + 0x18], eax
mov eax, dword [0x6a29ec]
add esp, 8
cmp eax, ebx
jg 0x496a3c
xor eax, eax
pop ebx
add esp, 0x14
ret
push edi
push eax
push 0x6a2d18
call sym.convertifd.exe_PointToEntity
mov edi, eax
add esp, 8
cmp edi, ebx
mov dword [esp + 0x18], edi
je 0x496c5d
cmp dword [edi + 0x14], 1
jle 0x496c5d
mov eax, dword [edi + 4]
push ebp
push esi
push eax
push 0x6a2d18
call sym.convertifd.exe_PointToEntity
mov ecx, dword [edi + 0x20]
push ecx
push 0x6a2d18
mov dword [esp + 0x24], eax
call sym.convertifd.exe_PointToEntity
mov edx, dword [edi + 0x1c]
push edx
push 0x6a2d18
mov esi, eax
call sym.convertifd.exe_PointToEntity
mov ebp, dword [0x6a2d18]
add esp, 0x18
cmp dword [esp + 0x28], ebx
mov dword [esp + 0x18], eax
jle 0x496ad5
xor edi, edi
cmp dword [esi + 0x20], ebx
jle 0x496ad5
mov ecx, dword [esi + 0x24]
mov eax, dword [ecx]
mov eax, dword [ebp + eax*8 + 4]
cdq
xor eax, edx
sub eax, edx
cmp eax, 1
jne 0x496aca
add edi, eax
cmp edi, dword [esp + 0x28]
je 0x496ad5
add ebx, 1
add ecx, 4
cmp ebx, dword [esi + 0x20]
jl 0x496ab2
mov eax, dword [esi + 0x20]
cmp ebx, eax
jl 0x496ae6
pop esi
pop ebp
pop edi
xor eax, eax
pop ebx
add esp, 0x14
ret
lea edi, [ebx + 1]
cmp edi, eax
jge 0x496b43
lea ecx, [ecx]
mov ecx, dword [esi + 0x24]
mov eax, dword [ecx + edi*4]
cdq
mov ecx, eax
xor ecx, edx
sub ecx, edx
mov eax, dword [ebp + ecx*8 + 4]
cdq
xor eax, edx
sub eax, edx
cmp eax, 2
jne 0x496b2a
push ecx
push 0x6a2d18
call sym.convertifd.exe_PointToEntity
mov ecx, dword [eax + 8]
mov ebp, dword [0x6a2d18]
add esp, 8
sub ecx, dword [eax]
mov dword [esp + 0x10], ecx
jmp 0x496b2f
cmp eax, 1
je 0x496b39
add edi, 1
cmp edi, dword [esi + 0x20]
jl 0x496af0
jmp 0x496b43
cmp dword [esp + 0x28], 0
jle 0x496b43
sub edi, 1
mov eax, dword [esi + 0x20]
add eax, 0xffffffff
cmp edi, eax
jl 0x496b4f
mov edi, eax
call sym.convertifd.exe_ClearPickHandles
mov edx, dword [0x6a29ec]
push 0
push 0x6a2d18
push edx
call sym.convertifd.exe_EraseEntity
add esp, 0xc
cmp edi, ebx
jl 0x496bae
mov edi, edi
mov eax, dword [esi + 0x24]
mov eax, dword [eax + edi*4]
cdq
xor eax, edx
sub eax, edx
push 0x6a2d18
push eax
call sym.convertifd.exe_DeleteEntity
add dword [esi + 0x20], 0xffffffff
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x24]
sub eax, edi
add eax, eax
lea ecx, [ecx + edi*4]
add eax, eax
push eax
lea edx, [ecx + 4]
push edx
push ecx
call fcn.005154f0
sub edi, 1
add esp, 0x14
cmp edi, ebx
jge 0x496b70
cmp ebx, dword [esi + 0x20]
mov ebp, dword [esp + 0x10]
mov edi, ebx
jge 0x496be4
mov ebx, ebp
neg ebx
lea ecx, [ecx]
mov eax, dword [esi + 0x24]
mov eax, dword [eax + edi*4]
cdq
push 0
push ebx
xor eax, edx
sub eax, edx
push 0x6a2d18
push eax
call sym.convertifd.exe_MoveEntity
add edi, 1
add esp, 0x10
cmp edi, dword [esi + 0x20]
jl 0x496bc0
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
sub dword [eax + 8], ebp
xor esi, esi
cmp dword [edi + 0x20], esi
jle 0x496c1a
mov ecx, dword [edi + 0x24]
mov eax, dword [ecx + esi*4]
cdq
xor eax, edx
sub eax, edx
push eax
push 0x6a2d18
call sym.convertifd.exe_PointToEntity
sub dword [eax + 8], ebp
add esi, 1
add esp, 8
cmp esi, dword [edi + 0x20]
jl 0x496bf6
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
mov dword [edx + 0x20], 0
add dword [eax + 0x14], 0xffffffff
mov eax, dword [eax + 0x14]
push eax
mov eax, dword [0x6a29ec]
push 0x6a2d18
push eax
call sym.convertifd.exe_CreateColumnEntities
mov ecx, dword [0x6a29ec]
push ecx
call sym.convertifd.exe_PickNewEntity
add esp, 0x10
pop esi
pop ebp
pop edi
mov eax, 1
pop ebx
add esp, 0x14
ret
pop edi
xor eax, eax
pop ebx
add esp, 0x14
ret