SHARE
TWEET

Untitled

a guest Sep 14th, 2017 106 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //----- (00000001405BD108) ----------------------------------------------------
  2. __int64 *__cdecl MountCVehicleColsFile(const char *filename)
  3. {
  4.   const char *v1; // rbx@1
  5.   int index; // er12@1
  6.   int itemCount_1; // ebp@2
  7.   unsigned int v4; // er14@2
  8.   unsigned int v5; // er15@2
  9.   int newCount; // esi@2
  10.   int v7; // edi@2
  11.   int v8; // ebx@2
  12.   __int64 v9; // rdi@2
  13.   signed __int64 v10; // rsi@2
  14.   int itemCount; // ebx@3
  15.   unsigned int newItemCount; // eax@3
  16.   __int64 v14; // [sp+28h] [bp-1A0h]@0
  17.   char v15; // [sp+40h] [bp-188h]@1
  18.   char v16; // [sp+78h] [bp-150h]@2
  19.   char v17; // [sp+88h] [bp-140h]@2
  20.   __int64 carColsItems; // [sp+98h] [bp-130h]@2
  21.   char v19[264]; // [sp+A8h] [bp-120h]@3
  22.                                                 // data file mounter load function
  23.   v1 = filename;
  24.   CVehicleModelInfoVarGlobal::Ctor((__int64)&v15);
  25.   index = 0;
  26.   LOBYTE(v14) = 1;
  27.   if ( sub_141210368(metadataFileDevice, (__int64)v1, (__int64)"meta", qword_141BC2FB8, (__int64)&v15, v14, 0i64) )
  28.   {
  29.     itemCount_1 = g_carcolsData->modKits.itemCount;
  30.     v4 = g_carcolsData->unkCollection3.itemCount;
  31.     v5 = g_carcolsData->unkCollection4.itemCount;
  32.     newCount = sub_1405AD374((__int64)&g_carcolsData->modKits, (CVehicleModelInfoVarCollection *)&carColsItems, 255);
  33.     v7 = sub_1405AD2BC((__int64)&g_carcolsData->unkCollection3, (__int64)&v16, 255i64);
  34.     v8 = sub_1405AD204((__int64)&g_carcolsData->unkCollection4, (__int64)&v17, 255);
  35.     CVehicleModelInfoVarGlobal::UpdateModKitIndexes((__int64)g_carcolsData, itemCount_1, newCount);
  36.     sub_14061D498((__int64)g_carcolsData, v4, v7);
  37.     sub_14061F440((__int64)g_carcolsData, v5, v8);
  38.     v9 = 0i64;
  39.     v10 = 0x70i64;
  40.     do
  41.     {
  42.       itemCount = *(_WORD *)((char *)&g_carcolsData->vfTable + v10);
  43.       newItemCount = CopyModelInfoVarItems(
  44.                        (CVehicleModelInfoVarCollection *)((char *)&g_carcolsData->modKitInfo + v9),
  45.                        (CVehicleModelInfoVarCollection *)&v19[v9],
  46.                        0xFFFFFFFFi64);
  47.       sub_140620C94(g_carcolsData, index++, itemCount, newItemCount);
  48.       v9 += 0x10i64;
  49.       v10 += 0x10i64;
  50.     }
  51.     while ( index < 13 );
  52.   }
  53.   return (__int64 *)sub_1405B5FFC((__int64)&v15);
  54. }
RAW Paste Data
Top