; ; cocos2d::CCImage::initWithImageData from 0x18007fbe0 to 0x18007fcc5 (229 bytes) ; ; 6 xrefs: ; > cocos2d::CCRenderTexture::newCCImage @ 0x1800626be ; > sub_180065EE0 @ 0x180065f68 ; > cocos2d::CCParticleSystem::initWithDictionary @ 0x18006a9a2 ; > cocos2d::CCSprite::setTexture @ 0x18008fd48 ; > @ 0x18014cf68 ; > @ 0x1801bf118 ; ; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True! ; ; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA ; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings ; Generated at Fri, 27 Nov 2026 11:22:01 +0000 ; sub rsp, 48h ; +0x0, 0x18007fbe0 xor al, al ; +0x4, 0x18007fbe4 test rdx, rdx ; +0x6, 0x18007fbe6 jz loc_18007FCC0 ; +0x9, 0x18007fbe9 test r8d, r8d ; +0xf, 0x18007fbef jle loc_18007FCC0 ; +0x12, 0x18007fbf2 cmp r9d, 1 ; +0x18, 0x18007fbf8 jz short loc_18007FC72 ; +0x1c, 0x18007fbfc test r9d, r9d ; +0x1e, 0x18007fbfe jz loc_18007FCB7 ; +0x21, 0x18007fc01 cmp r9d, 2 ; +0x27, 0x18007fc07 jz loc_18007FCA2 ; +0x2b, 0x18007fc0b cmp r9d, 4 ; +0x31, 0x18007fc11 jnz short loc_18007FC3D ; +0x35, 0x18007fc15 mov r9d, [rsp+48h+arg_20]; int ; +0x37, 0x18007fc17 mov [rsp+48h+var_18], al; bool ; +0x3c, 0x18007fc1c mov eax, [rsp+48h+arg_30] ; +0x40, 0x18007fc20 mov [rsp+48h+var_20], eax; int ; +0x47, 0x18007fc27 mov eax, [rsp+48h+arg_28] ; +0x4b, 0x18007fc2b mov [rsp+48h+var_28], eax; int ; +0x4f, 0x18007fc2f call ?_initWithRawData@CCImage@cocos2d@@IEAA_NPEAXHHHH_N@Z; cocos2d::CCImage::_initWithRawData(void *,int,int,int,int,bool) ; +0x53, 0x18007fc33 add rsp, 48h ; +0x58, 0x18007fc38 retn ; +0x5c, 0x18007fc3c cmp r8d, 8 ; +0x5d, 0x18007fc3d jle short loc_18007FC7B ; +0x61, 0x18007fc41 cmp byte ptr [rdx], 89h ; +0x63, 0x18007fc43 jnz short loc_18007FC81 ; +0x66, 0x18007fc46 cmp byte ptr [rdx+1], 50h ; 'P' ; +0x68, 0x18007fc48 jnz short loc_18007FC81 ; +0x6c, 0x18007fc4c cmp byte ptr [rdx+2], 4Eh ; 'N' ; +0x6e, 0x18007fc4e jnz short loc_18007FC81 ; +0x72, 0x18007fc52 cmp byte ptr [rdx+3], 47h ; 'G' ; +0x74, 0x18007fc54 jnz short loc_18007FC81 ; +0x78, 0x18007fc58 cmp byte ptr [rdx+4], 0Dh ; +0x7a, 0x18007fc5a jnz short loc_18007FC81 ; +0x7e, 0x18007fc5e cmp byte ptr [rdx+5], 0Ah ; +0x80, 0x18007fc60 jnz short loc_18007FC81 ; +0x84, 0x18007fc64 cmp byte ptr [rdx+6], 1Ah ; +0x86, 0x18007fc66 jnz short loc_18007FC81 ; +0x8a, 0x18007fc6a cmp byte ptr [rdx+7], 0Ah ; +0x8c, 0x18007fc6c jnz short loc_18007FC81 ; +0x90, 0x18007fc70 add rsp, 48h ; +0x92, 0x18007fc72 jmp ?_initWithPngData@CCImage@cocos2d@@IEAA_NPEAXH@Z; cocos2d::CCImage::_initWithPngData(void *,int) ; +0x96, 0x18007fc76 cmp r8d, 2 ; +0x9b, 0x18007fc7b jle short loc_18007FCC0 ; +0x9f, 0x18007fc7f movzx r9d, byte ptr [rdx] ; +0xa1, 0x18007fc81 cmp r9b, 49h ; 'I' ; +0xa5, 0x18007fc85 jnz short loc_18007FC96 ; +0xa9, 0x18007fc89 cmp [rdx+1], r9b ; +0xab, 0x18007fc8b jz short loc_18007FCA2 ; +0xaf, 0x18007fc8f add rsp, 48h ; +0xb1, 0x18007fc91 retn ; +0xb5, 0x18007fc95 cmp r9b, 4Dh ; 'M' ; +0xb6, 0x18007fc96 jnz short loc_18007FCAB ; +0xba, 0x18007fc9a cmp [rdx+1], r9b ; +0xbc, 0x18007fc9c jnz short loc_18007FCC0 ; +0xc0, 0x18007fca0 add rsp, 48h ; +0xc2, 0x18007fca2 jmp ?_initWithTiffData@CCImage@cocos2d@@IEAA_NPEAXH@Z; cocos2d::CCImage::_initWithTiffData(void *,int) ; +0xc6, 0x18007fca6 cmp r9b, 0FFh ; +0xcb, 0x18007fcab jnz short loc_18007FCC0 ; +0xcf, 0x18007fcaf cmp byte ptr [rdx+1], 0D8h ; +0xd1, 0x18007fcb1 jnz short loc_18007FCC0 ; +0xd5, 0x18007fcb5 add rsp, 48h ; +0xd7, 0x18007fcb7 jmp ?_initWithJpgData@CCImage@cocos2d@@IEAA_NPEAXH@Z; cocos2d::CCImage::_initWithJpgData(void *,int) ; +0xdb, 0x18007fcbb add rsp, 48h ; +0xe0, 0x18007fcc0 retn ; +0xe4, 0x18007fcc4