// // ThreadRequestPopup::ccTouchEnded from 0x1400ffee0 to 0x140100059 (377 bytes) // // 4 xrefs: // > @ 0x14072a0f8 // > @ 0x1408952c8 // > @ 0x1408952fc // > @ 0x140915638 // // 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:26:42 +0000 // __int64 __fastcall ThreadRequestPopup::ccTouchEnded(__int64 a1, __int64 a2, __int64 a3) { __int64 Location; // rax __int64 v7; // r8 int v8; // edi char *v9; // rax __int64 result; // rax char v11; // [rsp+50h] [rbp+8h] BYREF char v12; // [rsp+58h] [rbp+10h] BYREF if ( *(_DWORD *)(a1 + 320) != *(_DWORD *)(a2 + 56) ) { Location = cocos2d::CCTouch::getLocation(a2, &v12); cocos2d::CCNode::convertToNodeSpace(*(_QWORD *)(a1 + 264), &v11, Location); v7 = *(_QWORD *)(a1 + 360); v8 = 0; if ( (int)((*(_QWORD *)(a1 + 368) - v7) / 28) > 0 ) { while ( !cocos2d::CCRect::containsPoint( (cocos2d::CCRect *)(28LL * v8 + v7 + 8), (const struct cocos2d::CCPoint *)&v11) ) { v7 = *(_QWORD *)(a1 + 360); if ( ++v8 >= (int)((*(_QWORD *)(a1 + 368) - v7) / 28) ) goto LABEL_7; } v9 = LevelBadgePopup::create( *(_DWORD *)(*(_QWORD *)(a1 + 360) + 28LL * v8), *(_BYTE *)(*(_QWORD *)(a1 + 360) + 28LL * v8 + 4)); (*(void (__fastcall **)(char *))(*(_QWORD *)v9 + 1064LL))(v9); } } LABEL_7: result = *(unsigned int *)(a2 + 56); if ( *(_DWORD *)(a1 + 320) == (_DWORD)result ) { result = (*(__int64 (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)(*(_QWORD *)(a1 + 232) + 320LL) + 24LL))( *(_QWORD *)(a1 + 232) + 320LL, a2, a3); *(_DWORD *)(a1 + 320) = -1; } else if ( *(_DWORD *)(a1 + 312) == (_DWORD)result ) { result = (*(__int64 (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)(*(_QWORD *)(a1 + 304) + 320LL) + 24LL))( *(_QWORD *)(a1 + 304) + 320LL, a2, a3); *(_DWORD *)(a1 + 312) = -1; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source