Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- signed int __fastcall cocos2d::Image::decode(cocos2d::Image *this, const unsigned __int8 *a2, int a3)
- {
- int v3; // r2@1
- const unsigned __int8 *v4; // r5@1
- const unsigned __int8 *v5; // r1@1
- int v6; // r3@1
- int v7; // r2@1
- bool v8; // zf@1
- int v9; // r2@3
- signed int v10; // r3@4
- int v11; // r1@8
- signed int result; // r0@11
- char *v13; // r10@12
- int v14; // [sp+0h] [bp-38h]@12
- char v15; // [sp+4h] [bp-34h]@12
- int v16; // [sp+Ch] [bp-2Ch]@12
- int v17; // [sp+10h] [bp-28h]@12
- int v18; // [sp+14h] [bp-24h]@10
- v3 = a3 - 8;
- v4 = a2;
- v5 = &a2[v3];
- v6 = v4[v3];
- v7 = v5[1];
- v8 = v7 == 82;
- if ( v7 == 82 )
- v8 = v6 == 67;
- v9 = v5[3];
- v10 = !v8;
- if ( v5[2] != 80 )
- v10 |= 1u;
- v11 = v5[5];
- if ( v9 != 84 )
- v10 |= 1u;
- v18 = _stack_chk_guard;
- if ( v10 )
- {
- result = 0;
- }
- else
- {
- v13 = off_1385B44[2 * v11 + 1];
- sub_10FFD74(&v16, off_1385B44[2 * v11], &v14);
- sub_10FFD74(&v17, v13, &v15);
- cocos2d::Image::deCrypt();
- if ( (_UNKNOWN *)(v17 - 12) != &unk_1477320 )
- sub_D7EBAC();
- if ( (_UNKNOWN *)(v16 - 12) != &unk_1477320 )
- sub_D7EBAC();
- result = 1;
- }
- if ( v18 != _stack_chk_guard )
- _stack_chk_fail(result);
- return result;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement