// Token: 0x06001948 RID: 6472 RVA: 0x000E483C File Offset: 0x000E2A3C public static byte[] ObjDataLoad(AppMain.OBS_DATA_WORK data_work, string filename, object archive) { byte[] array = null; AppMain.sFile = filename; if (data_work != null) { if (data_work.pData == null) { if (archive != null) { AmbChunk ambChunk = AmBind.Search((AMS_AMB_HEADER)archive, AppMain.sFile); array = new byte[ambChunk.length]; Buffer.BlockCopy(ambChunk.array, ambChunk.offset, array, 0, ambChunk.length); data_work.pData = array; data_work.num = 32768; data_work.num += 1; } else { byte[] pData; AmFs.amFsRead(AppMain.sFile, out pData); data_work.pData = pData; if (data_work.pData != null) { data_work.num += 1; } } } else { data_work.num += 1; } return(( byte[] )data_work.pData); } if (archive != null) { AmbChunk ambChunk2 = AmBind.Search((AMS_AMB_HEADER)archive, AppMain.sFile); array = new byte[ambChunk2.length]; Buffer.BlockCopy(ambChunk2.array, ambChunk2.offset, array, 0, ambChunk2.length); } else { AmFs.amFsRead(AppMain.sFile, out array); } return(array); }