Function at 0x4959a0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x28
push ebp
xor ebp, ebp
push ebp
push 0x6a2d18
mov dword [esp + 0x18], ebp
call sym.convertifd.exe_PointToEntity
mov dword [esp + 0x30], eax
mov eax, dword [0x6a29ec]
add esp, 8
cmp eax, ebp
jg 0x4959cc
xor eax, eax
pop ebp
add esp, 0x28
ret
push edi
push eax
push 0x6a2d18
call sym.convertifd.exe_PointToEntity
mov edi, eax
add esp, 8
cmp edi, ebp
mov dword [esp + 0x18], edi
jne 0x4959ed
pop edi
xor eax, eax
pop ebp
add esp, 0x28
ret
mov eax, dword [edi + 4]
push ebx
push esi
push eax
push 0x6a2d18
call sym.convertifd.exe_PointToEntity
mov ecx, dword [edi + 0x20]
push ecx
mov ebx, eax
push 0x6a2d18
mov dword [esp + 0x3c], ebx
call sym.convertifd.exe_PointToEntity
mov edx, dword [edi + 0x1c]
push edx
push 0x6a2d18
mov esi, eax
call sym.convertifd.exe_PointToEntity
add esp, 0x18
cmp dword [esp + 0x3c], ebp
mov dword [esp + 0x30], eax
mov dword [esp + 0x10], ebp
jle 0x495a6d
xor edi, edi
cmp dword [esi + 0x20], edi
jle 0x495a6d
mov ecx, dword [esi + 0x24]
lea esp, [esp]
mov edx, dword [0x6a2d18]
mov eax, dword [ecx]
mov eax, dword [edx + eax*8 + 4]
cdq
xor eax, edx
sub eax, edx
cmp eax, 1
jne 0x495a5e
add edi, eax
cmp edi, dword [esp + 0x3c]
je 0x495a69
add ebp, 1
add ecx, 4
cmp ebp, dword [esi + 0x20]
jl 0x495a40
mov dword [esp + 0x10], ebp
mov eax, dword [esi + 0x20]
cmp ebp, eax
jge 0x495e27
lea edi, [ebp + 1]
cmp edi, eax
mov dword [esp + 0x24], edi
mov dword [esp + 0x14], edi
jge 0x495ae2
mov eax, dword [esi + 0x24]
mov eax, dword [eax + edi*4]
cdq
mov ecx, eax
xor ecx, edx
sub ecx, edx
mov edx, dword [0x6a2d18]
mov eax, dword [edx + ecx*8 + 4]
cdq
xor eax, edx
sub eax, edx
cmp eax, 2
jne 0x495ac1
push ecx
push 0x6a2d18
call sym.convertifd.exe_PointToEntity
mov ecx, dword [eax + 8]
add esp, 8
sub ecx, dword [eax]
mov dword [esp + 0x1c], ecx
jmp 0x495ac6
cmp eax, 1
je 0x495ad0
add edi, 1
cmp edi, dword [esi + 0x20]
jl 0x495a87
jmp 0x495ade
cmp dword [esp + 0x3c], 0
mov dword [esp + 0x14], edi
jle 0x495ae2
sub edi, 1
mov dword [esp + 0x14], edi
mov eax, dword [esi + 0x20]
add eax, 0xffffffff
cmp edi, eax
jl 0x495af2
mov dword [esp + 0x14], eax
mov edi, eax
call sym.convertifd.exe_ClearPickList
mov eax, dword [0x6a29ec]
push 0
push 0x6a2d18
push eax
call sym.convertifd.exe_EraseEntity
add esp, 0xc
cmp dword [esp + 0x40], 0
je 0x495b16
lea ebp, [edi + 1]
mov ecx, dword [esp + 0x20]
cmp dword [ecx + 0x14], 1
jne 0x495c1f
mov eax, dword [esi + 0x20]
mov edx, dword [esi + 0x24]
add eax, 1
push eax
lea ecx, [esp + 0x1c]
push ecx
mov dword [esp + 0x20], edx
call sym.convertifd.exe_UtATable
add esp, 8
test eax, eax
je 0x495e1d
mov eax, dword [esi + 0x20]
sub eax, 1
cmp eax, ebp
jl 0x495b63
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx + eax*4]
mov dword [ecx + eax*4 + 4], edx
sub eax, 1
cmp eax, ebp
jge 0x495b51
mov eax, dword [esp + 0x18]
add dword [esi + 0x20], 1
push 0x6a2d18
push 1
push 0
mov dword [esi + 0x24], eax
call sym.convertifd.exe_AddEntity
mov ecx, dword [esi + 0x24]
mov dword [ecx + ebp*4], eax
mov edx, dword [esi + 0x24]
mov eax, dword [edx + ebp*4]
add esp, 0xc
test eax, eax
jl 0x495e27
push eax
push 0x6a2d18
call sym.convertifd.exe_PointToEntity
mov ecx, dword [0x6a2d00]
mov ecx, dword [ecx + 0x7c]
xor edx, edx
test ecx, ecx
setl dl
push 1
push 0x6a2d18
sub edx, 1
and ecx, edx
mov dword [eax + 0x14], ecx
mov ecx, dword [0x6a2d00]
mov edx, dword [ecx + 0x80]
mov dword [eax + 0x10], edx
mov ecx, dword [0x6a2d00]
mov edx, dword [ecx + 0xa4]
mov dword [eax + 0x1c], edx
mov ecx, dword [ebx + 8]
sub ecx, dword [ebx]
mov dword [eax + 4], 0
mov dword [eax + 8], ecx
mov dword [eax], ecx
mov ecx, dword [ebx + 0xc]
sub ecx, dword [ebx + 4]
mov dword [eax + 0xc], ecx
mov edx, dword [esi + 0x24]
mov eax, dword [edx + ebp*4]
push eax
call sym.convertifd.exe_HideEntity
add esp, 0x14
cmp dword [esp + 0x40], 0
je 0x495c10
add ebp, 1
jmp 0x495c1f
mov ecx, dword [esp + 0x24]
add edi, 1
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edi
mov ebx, dword [esp + 0x10]
cmp ebx, edi
jg 0x495d68
jmp 0x495c30
mov edx, dword [esi + 0x24]
mov eax, dword [edx + ebx*4]
cdq
mov edi, eax
mov eax, dword [0x6a2d18]
xor edi, edx
sub edi, edx
mov eax, dword [eax + edi*8 + 4]
cdq
xor eax, edx
sub eax, edx
push edi
push 0x6a2d18
mov dword [esp + 0x2c], eax
call sym.convertifd.exe_PointToEntity
mov edx, dword [esi + 0x20]
mov ecx, dword [esi + 0x24]
add edx, 1
mov dword [esp + 0x30], eax
push edx
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x28], ecx
call sym.convertifd.exe_UtATable
add esp, 0x10
test eax, eax
je 0x495e1d
mov eax, dword [esi + 0x20]
sub eax, 1
cmp eax, ebp
jl 0x495ca2
jmp 0x495c90
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx + eax*4]
mov dword [ecx + eax*4 + 4], edx
sub eax, 1
cmp eax, ebp
jge 0x495c90
mov eax, dword [esp + 0x18]
add dword [esi + 0x20], 1
push 0x6a2d18
push edi
push 0x6a2d18
mov dword [esi + 0x24], eax
call sym.convertifd.exe_CopyEntity
mov ecx, dword [esi + 0x24]
mov dword [ecx + ebp*4], eax
mov edx, dword [esi + 0x24]
mov eax, dword [edx + ebp*4]
add esp, 0xc
test eax, eax
jle 0x495e1d
cmp dword [esp + 0x24], 5
jne 0x495d42
push eax
push 0x6a2d18
call sym.convertifd.exe_PointToEntity
mov edi, eax
mov eax, dword [esp + 0x30]
add esp, 8
cmp byte [eax + 8], 1
jne 0x495d2b
mov ecx, dword [edi + 0x40]
push ecx
push 0x6a2d18
call sym.convertifd.exe_PointToFieldData
mov edi, eax
call sym.convertifd.exe_SetAutoFieldName
movzx edx, word [edi]
push edx
call sym.convertifd.exe_IpDeleteAtom
mov eax, dword [0x6a2d00]
add eax, 0xec
push eax
call sym.convertifd.exe_IpAddAtom
add esp, 0x10
mov word [edi], ax
jmp 0x495d42
mov eax, dword [edi + 0x30]
test eax, eax
je 0x495d42
push eax
call sym.convertifd.exe_UtFTable
add esp, 4
mov dword [edi + 0x30], 0
cmp dword [esp + 0x40], 0
jne 0x495d58
mov eax, 1
add dword [esp + 0x14], eax
add dword [esp + 0x10], eax
add ebx, eax
add ebx, 1
add ebp, 1
cmp ebx, dword [esp + 0x14]
jle 0x495c30
cmp dword [esp + 0x40], 0
jne 0x495d73
mov ebx, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
mov ebp, 1
cmp dword [ecx + 0x14], ebp
jne 0x495d83
add ebx, ebp
cmp ebx, dword [esi + 0x20]
jge 0x495db7
jmp 0x495d90
mov eax, dword [esi + 0x24]
mov eax, dword [eax + ebx*4]
mov edx, dword [esp + 0x1c]
push 0
push edx
cdq
xor eax, edx
sub eax, edx
push 0x6a2d18
push eax
call sym.convertifd.exe_MoveEntity
add ebx, ebp
add esp, 0x10
cmp ebx, dword [esi + 0x20]
jl 0x495d90
mov ebx, dword [esp + 0x1c]
mov eax, dword [esp + 0x2c]
mov edi, dword [esp + 0x30]
add dword [eax + 8], ebx
xor esi, esi
cmp dword [edi + 0x20], esi
jle 0x495df3
lea ecx, [ecx]
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
add dword [eax + 8], ebx
add esi, ebp
add esp, 8
cmp esi, dword [edi + 0x20]
jl 0x495dd0
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x20]
mov dword [edx + 0x20], 0
add dword [eax + 0x14], ebp
mov eax, dword [0x6a29ec]
push eax
call sym.convertifd.exe_PickNewEntity
add esp, 4
pop esi
pop ebx
pop edi
mov eax, ebp
pop ebp
add esp, 0x28
ret
push 0xfffffffffffffff9
call sym.convertifd.exe_IpMessage
add esp, 4
pop esi
pop ebx
pop edi
xor eax, eax
pop ebp
add esp, 0x28
ret