Advertisement
Guest User

Codede

a guest
Aug 21st, 2019
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.27 KB | None | 0 0
  1. signed int __fastcall cocos2d::Image::decode(cocos2d::Image *this, const unsigned __int8 *a2, int a3)
  2. {
  3. int v3; // r2@1
  4. const unsigned __int8 *v4; // r5@1
  5. const unsigned __int8 *v5; // r1@1
  6. int v6; // r3@1
  7. int v7; // r2@1
  8. bool v8; // zf@1
  9. int v9; // r2@3
  10. signed int v10; // r3@4
  11. int v11; // r1@8
  12. signed int result; // r0@11
  13. char *v13; // r10@12
  14. int v14; // [sp+0h] [bp-38h]@12
  15. char v15; // [sp+4h] [bp-34h]@12
  16. int v16; // [sp+Ch] [bp-2Ch]@12
  17. int v17; // [sp+10h] [bp-28h]@12
  18. int v18; // [sp+14h] [bp-24h]@10
  19.  
  20. v3 = a3 - 8;
  21. v4 = a2;
  22. v5 = &a2[v3];
  23. v6 = v4[v3];
  24. v7 = v5[1];
  25. v8 = v7 == 82;
  26. if ( v7 == 82 )
  27. v8 = v6 == 67;
  28. v9 = v5[3];
  29. v10 = !v8;
  30. if ( v5[2] != 80 )
  31. v10 |= 1u;
  32. v11 = v5[5];
  33. if ( v9 != 84 )
  34. v10 |= 1u;
  35. v18 = _stack_chk_guard;
  36. if ( v10 )
  37. {
  38. result = 0;
  39. }
  40. else
  41. {
  42. v13 = off_1385B44[2 * v11 + 1];
  43. sub_10FFD74(&v16, off_1385B44[2 * v11], &v14);
  44. sub_10FFD74(&v17, v13, &v15);
  45. cocos2d::Image::deCrypt();
  46. if ( (_UNKNOWN *)(v17 - 12) != &unk_1477320 )
  47. sub_D7EBAC();
  48. if ( (_UNKNOWN *)(v16 - 12) != &unk_1477320 )
  49. sub_D7EBAC();
  50. result = 1;
  51. }
  52. if ( v18 != _stack_chk_guard )
  53. _stack_chk_fail(result);
  54. return result;
  55. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement