Guest User

Untitled

a guest
Dec 2nd, 2020
156
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.01 KB | None | 0 0
  1. bool __thiscall rJson::load(rJson *this,MtStream *param_1)
  2.  
  3. {
  4. uint uVar1;
  5. uchar *puVar2;
  6. uchar *puVar3;
  7. int iVar4;
  8. int iVar5;
  9. int iVar6;
  10. bool bVar7;
  11. MtDataReader aMStack1240 [24];
  12. MtMemoryStream aMStack1216 [24];
  13. MtDataReader aMStack1192 [4];
  14. int *local_4a4;
  15. MtDataWriter aMStack1168 [808];
  16. MtCipher aMStack360 [320];
  17. int iStack40;
  18.  
  19. iStack40 = (int)__stack_chk_guard;
  20. MtDataReader::MtDataReader(aMStack1192,param_1,0x1000);
  21. uVar1 = (**(code **)(*local_4a4 + 0x48))();
  22. puVar2 = (uchar *)(**(code **)(**(int **)(MtMemory::mpInstance + 0x128) + 0x1c))
  23. (*(int **)(MtMemory::mpInstance + 0x128),uVar1,0x10);
  24. puVar3 = (uchar *)(**(code **)(**(int **)(MtMemory::mpInstance + 0x128) + 0x1c))
  25. (*(int **)(MtMemory::mpInstance + 0x128),uVar1 + 0x400,0x10);
  26. MtDataReader::read(aMStack1192,puVar2,uVar1);
  27. MtCipher::MtCipher(aMStack360);
  28. MtCipher::setKeyString(aMStack360,"VMmpt7L9vQE8");
  29. MtCipher::initializeBF(aMStack360);
  30. MtCipher::decryptBF(aMStack360,puVar2,puVar3,uVar1);
  31. MtMemoryStream::MtMemoryStream(aMStack1216,puVar3,uVar1,3);
  32. MtDataReader::MtDataReader(aMStack1240,(MtStream *)aMStack1216,0x1000);
  33. iVar4 = MtDataReader::readU32(aMStack1240);
  34. iVar5 = MtDataReader::readU32(aMStack1240);
  35. MtDataReader::readU32(aMStack1240);
  36. if (iVar4 == 0x4e4f534a) {
  37. MtDataWriter::MtDataWriter(aMStack1168,(MtStream *)aMStack1216,uVar1,0x1000);
  38. *(undefined4 *)(puVar3 + 4) = 0;
  39. iVar4 = MtCRC::getCRC(puVar3,uVar1,0xffffffff);
  40. if (iVar4 != iVar5) {
  41. MtDebug::crashLog((MtDebug *)MtDebug::mInstance,
  42.  
  43. "C:\\app\\jenkins\\workspace\\guns_android_na\\BNE\\client\\App\\AndroidGUNSBoot\\guns\\src\\resource\\json\\rJson.cpp"
  44. ,0x9d,"E",&DAT_01380819);
  45. }
  46. else {
  47. iVar6 = MtDataReader::getPosition(aMStack1240);
  48. MtString::operator=((MtString *)(this + 0xa0),(char *)(puVar3 + iVar6));
  49. (**(code **)(**(int **)(MtMemory::mpInstance + 0x128) + 0x28))
  50. (*(int **)(MtMemory::mpInstance + 0x128),puVar2);
  51. (**(code **)(**(int **)(MtMemory::mpInstance + 0x128) + 0x28))
  52. (*(int **)(MtMemory::mpInstance + 0x128),puVar3);
  53. }
  54. bVar7 = iVar4 == iVar5;
  55. MtDataWriter::~MtDataWriter(aMStack1168);
  56. }
  57. else {
  58. MtDebug::crashLog((MtDebug *)MtDebug::mInstance,
  59.  
  60. "C:\\app\\jenkins\\workspace\\guns_android_na\\BNE\\client\\App\\AndroidGUNSBoot\\guns\\src\\resource\\json\\rJson.cpp"
  61. ,0x93,"E",&DAT_013807e1);
  62. bVar7 = false;
  63. }
  64. MtDataReader::~MtDataReader(aMStack1240);
  65. MtMemoryStream::~MtMemoryStream(aMStack1216);
  66. MtCipher::~MtCipher(aMStack360);
  67. MtDataReader::~MtDataReader(aMStack1192);
  68. if ((int)__stack_chk_guard != iStack40) {
  69. /* WARNING: Subroutine does not return */
  70. __stack_chk_fail();
  71. }
  72. return bVar7;
  73. }
  74.  
Advertisement
Add Comment
Please, Sign In to add comment