// // sub_1004C74E0 from 0x1004c74e0 to 0x1004c762c (332 bytes) // // 7 xrefs: // > FLAlertLayer::ownedTouchPrio @ 0x1004956b4 // > sub_1004C74E0 @ 0x1004c75bb // > sub_1004C7640 @ 0x1004c7684 // > cocos2d::CCTouchDispatcher::addPrioTargetedDelegate @ 0x1004c76f3 // > cocos2d::CCTouchDispatcher::addTargetedDelegate @ 0x1004c7795 // > ProfilePage::setupCommentsBrowser @ 0x10089f210 // > sub_10092CE30 @ 0x10092cfab // // 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:31:08 +0000 // char __fastcall sub_1004C74E0(__int64 *a1, unsigned int *a2, _DWORD *a3) { __int64 v3; // rax char v4; // r12 unsigned int *v6; // rbx __int64 v7; // rax __int64 v8; // rax bool v9; // al int v11; // r13d __int64 v12; // rax int v13; // r13d __int64 v14; // r15 _DWORD *v15; // r14 _DWORD v16[11]; // [rsp+0h] [rbp-2Ch] BYREF v16[0] = HIDWORD(v3); v6 = a2; if ( !(unsigned int)cocos2d::CCDictionary::count(a1[18]) ) return 0; if ( a2 ) { while ( 1 ) { v7 = cocos2d::CCDictionary::objectForKey_1(a1[18], v6[2]); if ( v7 ) { *a3 = *(_DWORD *)(v7 + 56); v9 = 1; v4 = 1; return v4 & v9; } v8 = cocos2d::CCDictionary::objectForKey_1(a1[19], v6[2]); if ( v8 ) break; v9 = cocos2d::CCDictionary::objectForKey_1(a1[17], v6[2]) != 0; if ( v9 ) goto LABEL_8; v6 = (unsigned int *)(*(__int64 (__fastcall **)(unsigned int *))(*(_QWORD *)v6 + 512LL))(v6); if ( !v6 ) { v9 = 0; LABEL_8: v4 = 0; return v4 & v9; } } v11 = *(_DWORD *)(v8 + 56); cocos2d::CCDictionary::removeObjectForKey_1(a1[19], v6[2]); v16[0] = 0; v12 = (*(__int64 (__fastcall **)(unsigned int *))(*(_QWORD *)v6 + 512LL))(v6); v4 = sub_1004C74E0(a1, v12, v16); if ( v4 ) { v13 = v16[0] - v11; *a3 = v13; v14 = a1[18]; v15 = operator new(0x40u); cocos2d::CCObject::CCObject((__int64)v15); *(_QWORD *)v15 = off_100ABB920; v15[14] = v13; cocos2d::CCObject::autorelease((__int64)v15); cocos2d::CCDictionary::setObject_1(v14, (__int64)v15, v6[2]); } v9 = 1; } else { v9 = 0; } return v4 & v9; }
GD Web Decomp Icon

GD Web Decomp

Raw Source