// // sub_1002618F0 from 0x1002618f0 to 0x1002619a7 (183 bytes) // // 22 xrefs: // > @ 0x100ab6a70 // > @ 0x100ab9d88 // > @ 0x100ae57e0 // > @ 0x100af0068 // > @ 0x100af56e0 // > @ 0x100af5c38 // > @ 0x100b14730 // > @ 0x100b1cd40 // > @ 0x100b33c88 // > @ 0x100b34168 // > @ 0x100b34660 // > @ 0x100b34b70 // > @ 0x100b35080 // > @ 0x100b35590 // > @ 0x100b35a88 // > @ 0x100b72e60 // > @ 0x100b73318 // > @ 0x100b7fc90 // > @ 0x100b92478 // > @ 0x100b95570 // > @ 0x100b95a08 // > @ 0x100ba2c08 // // 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 12:27:31 +0000 // __int64 __fastcall sub_1002618F0(_BYTE *a1, int a2) { __int64 result; // rax const void **v3; // r12 unsigned __int64 v4; // r13 result = (unsigned int)(int)((double)(a2 * (unsigned __int8)a1[9]) / 255.0); a1[8] = result; if ( a1[17] == 1 ) { result = *((_QWORD *)a1 - 14); if ( result ) { result = *(_QWORD *)(result + 56); if ( *(_DWORD *)result ) { v3 = *(const void ***)(result + 16); v4 = (unsigned __int64)&v3[*(unsigned int *)result - 1]; do { if ( !*v3 ) break; result = (__int64)__dynamic_cast( *v3, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCObject, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCRGBAProtocol, -2); if ( result ) result = (*(__int64 (__fastcall **)(__int64, _QWORD))(*(_QWORD *)result + 104LL))( result, (unsigned __int8)a1[8]); ++v3; } while ( (unsigned __int64)v3 <= v4 ); } } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source