- Joined
- Apr 11, 2008
- Messages
- 31
- Reaction score
- 0
So... i am currently trying to RE the MapCRC using the KMST leak so i can properly calculate the movement packet CRC without having to manually log it every patch.
Currently im having trouble with what's displayed in
I understand up to half way where all of the foothold data are looped into the CRC32 function to be calculated. As for the second half? I believe it has something to do with the LadderRope tree within the map? But ladderrope has no correlation with the footholds. Unless i am not seeing the relationship between them. The part of the code in question is posted below.
Your help is very much appreciated.
Currently im having trouble with what's displayed in
Code:
CWvsPhysicalSpace2D::Load
I understand up to half way where all of the foothold data are looped into the CRC32 function to be calculated. As for the second half? I believe it has something to do with the LadderRope tree within the map? But ladderrope has no correlation with the footholds. Unless i am not seeing the relationship between them. The part of the code in question is posted below.
Code:
if ( p.m_pInterface ) {
v189 = (int)v5->m_aLadderOrRope.a + hr;
v226[12] = 0;
v226[11] = (volatile LONG *)i;
nVRRight = &v226[11];
v226[10] = (volatile LONG *)3758;
v226[9] = (volatile LONG *)&v226[11];
*(_DWORD *)v189 = i;
v190 = StringPool::GetInstance();
StringPool::GetBSTR(v190, (Ztl_bstr_t *)v226[9], (unsigned int)v226[10]);
LOBYTE(v277) = 78;
if ( !v187 )
goto LABEL_4;
LOBYTE(v277) = 77;
v191 = IWzProperty::Getitem(v187, (Ztl_variant_t *)&v248, (Ztl_bstr_t)v226[11]);
LOBYTE(v277) = 79;
pData = (char *)(v189 + 4);
v192 = get_int32(v191, (int)v226[12]);
v36 = v248 == 8;
*(_DWORD *)pData = v192 != 0;
LOBYTE(v277) = 77;
if ( v36 )
{
v248 = 0;
if ( v249 )
dword_27BD538(v249 - 4, v226[13], v226[14], v226[15], v226[16]);
}
else
{
VariantClear((VARIANTARG *)&v248);
}
v226[12] = 0;
v226[11] = v193;
nVRRight = &v226[11];
v226[10] = (volatile LONG *)3759;
v226[9] = (volatile LONG *)&v226[11];
v194 = StringPool::GetInstance();
StringPool::GetBSTR(v194, (Ztl_bstr_t *)v226[9], (unsigned int)v226[10]);
LOBYTE(v277) = 77;
v195 = IWzProperty::Getitem(v187, (Ztl_variant_t *)&v252, (Ztl_bstr_t)v226[11]);
LOBYTE(v277) = 81;
xMax = (const char *)(v189 + 8);
v196 = get_int32(v195, (int)v226[12]);
v36 = v252 == 8;
*(_DWORD *)xMax = v196 != 0;
LOBYTE(v277) = 77;
if ( v36 )
{
v252 = 0;
if ( v253 )
dword_27BD538(v253 - 4, v226[13], v226[14], v226[15], v226[16]);
}
else
{
VariantClear((VARIANTARG *)&v252);
}
v226[12] = 0;
v226[11] = v197;
nVRRight = &v226[11];
v226[10] = (volatile LONG *)1682;
v226[9] = (volatile LONG *)&v226[11];
v198 = StringPool::GetInstance();
StringPool::GetBSTR(v198, (Ztl_bstr_t *)v226[9], (unsigned int)v226[10]);
LOBYTE(v277) = 77;
v199 = IWzProperty::Getitem(v187, (Ztl_variant_t *)&v256, (Ztl_bstr_t)v226[11]);
LOBYTE(v277) = 83;
dwSNPrev = (volatile LONG *)(v189 + 12);
v200 = get_int32(v199, (int)v226[12]);
v36 = v256 == 8;
*dwSNPrev = v200;
LOBYTE(v277) = 77;
if ( v36 )
{
v256 = 0;
if ( v257 )
dword_27BD538(v257 - 4, v226[13], v226[14], v226[15], v226[16]);
}
else
{
VariantClear((VARIANTARG *)&v256);
}
v226[12] = 0;
v226[11] = v201;
nVRRight = &v226[11];
v226[10] = (volatile LONG *)3756;
v226[9] = (volatile LONG *)&v226[11];
v202 = StringPool::GetInstance();
StringPool::GetBSTR(v202, (Ztl_bstr_t *)v226[9], (unsigned int)v226[10]);
LOBYTE(v277) = 77;
v203 = IWzProperty::Getitem(v187, (Ztl_variant_t *)&v250, (Ztl_bstr_t)v226[11]);
LOBYTE(v277) = 85;
dwSNNext = (int *)(v189 + 16);
v204 = get_int32(v203, (int)v226[12]);
v36 = v250 == 8;
*dwSNNext = v204;
LOBYTE(v277) = 77;
if ( v36 )
{
v250 = 0;
if ( v251 )
dword_27BD538(v251 - 4, v226[13], v226[14], v226[15], v226[16]);
}
else
{
VariantClear((VARIANTARG *)&v250);
}
v226[12] = 0;
v226[11] = v205;
nVRRight = &v226[11];
v226[10] = (volatile LONG *)3757;
v226[9] = (volatile LONG *)&v226[11];
v206 = StringPool::GetInstance();
StringPool::GetBSTR(v206, (Ztl_bstr_t *)v226[9], (unsigned int)v226[10]);
LOBYTE(v277) = 77;
v207 = IWzProperty::Getitem(v187, (Ztl_variant_t *)&v258, (Ztl_bstr_t)v226[11]);
LOBYTE(v277) = 87;
cantThrough = (const char *)(v189 + 20);
v208 = get_int32(v207, (int)v226[12]);
v36 = v258 == 8;
*(_DWORD *)cantThrough = v208;
LOBYTE(v277) = 77;
if ( v36 )
{
v258 = 0;
if ( v259 )
dword_27BD538(v259 - 4, v226[13], v226[14], v226[15], v226[16]);
}
else
{
VariantClear((VARIANTARG *)&v258);
}
v226[12] = 0;
v226[11] = v209;
nVRRight = &v226[11];
v226[10] = (volatile LONG *)2859;
v226[9] = (volatile LONG *)&v226[11];
v210 = StringPool::GetInstance();
StringPool::GetBSTR(v210, (Ztl_bstr_t *)v226[9], (unsigned int)v226[10]);
LOBYTE(v277) = 77;
v211 = IWzProperty::Getitem(v187, (Ztl_variant_t *)&v254, (Ztl_bstr_t)v226[11]);
LOBYTE(v277) = 89;
forbidFallDown = (volatile LONG *)(v189 + 24);
v212 = get_int32(v211, (int)v226[12]);
v36 = v254 == 8;
*forbidFallDown = v212;
LOBYTE(v277) = 77;
if ( v36 )
{
v254 = 0;
if ( v255 )
dword_27BD538(v255 - 4, v226[13], v226[14], v226[15], v226[16]);
}
else
{
VariantClear((VARIANTARG *)&v254);
}
v213 = (volatile LONG *)CCrc32::GetCrc32((const char *)v189, 4u, v5->m_dwCRC, 0, 0, 0, 0);
v226[5] = 0;
v226[4] = 0;
v226[3] = 0;
v226[2] = 0;
v226[1] = v213;
v226[0] = (volatile LONG *)4;
v214 = pData;
v5->m_dwCRC = (unsigned int)v213;
v215 = CCrc32::GetCrc32(
v214,
(unsigned int)v226[0],
(unsigned int)v226[1],
(int)v226[2],
(unsigned int *)v226[3],
(int)v226[4],
(int)v226[5]);
v5->m_dwCRC = v215;
v216 = (volatile LONG *)CCrc32::GetCrc32(xMax, 4u, v215, 0, 0, 0, 0);
v226[12] = 0;
v226[11] = 0;
v226[10] = 0;
v226[9] = 0;
v226[8] = v216;
v226[7] = (volatile LONG *)4;
v226[6] = dwSNPrev;
v5->m_dwCRC = (unsigned int)v216;
v217 = (volatile LONG *)CCrc32::GetCrc32(
(const char *)v226[6],
(unsigned int)v226[7],
(unsigned int)v226[8],
(int)v226[9],
(unsigned int *)v226[10],
(int)v226[11],
(int)v226[12]);
v226[5] = 0;
v226[4] = 0;
v226[3] = 0;
v226[2] = 0;
v226[1] = v217;
v226[0] = (volatile LONG *)4;
v218 = (const char *)dwSNNext;
v5->m_dwCRC = (unsigned int)v217;
v219 = CCrc32::GetCrc32(
v218,
(unsigned int)v226[0],
(unsigned int)v226[1],
(int)v226[2],
(unsigned int *)v226[3],
(int)v226[4],
(int)v226[5]);
v5->m_dwCRC = v219;
v220 = (volatile LONG *)CCrc32::GetCrc32(cantThrough, 4u, v219, 0, 0, 0, 0);
v226[12] = 0;
v226[11] = 0;
v226[10] = 0;
v226[9] = 0;
v226[8] = v220;
v226[7] = (volatile LONG *)4;
v226[6] = forbidFallDown;
v5->m_dwCRC = (unsigned int)v220;
v5->m_dwCRC = CCrc32::GetCrc32(
(const char *)v226[6],
(unsigned int)v226[7],
(unsigned int)v226[8],
(int)v226[9],
(unsigned int *)v226[10],
(int)v226[11],
(int)v226[12]);
v221 = (void (*)(void))v187->baseclass_0.baseclass_0.vfptr->Release;
v226[12] = (volatile LONG *)v187;
LOBYTE(v277) = 7;
v221();
v180 = i;
}
else
{
LOBYTE(v277) = 7;
if ( p.m_pInterface )
{
v188 = (void (*)(void))p.m_pInterface->baseclass_0.baseclass_0.vfptr->Release;
v226[12] = (volatile LONG *)p.m_pInterface;
v188();
}
}
hr += 32;
i = ++v180;
}
Your help is very much appreciated.

