// // sub_10059E0F0 from 0x10059e0f0 to 0x10059e250 (352 bytes) // // 2 xrefs: // > cocos2d::CCMouseDispatcher::dispatchScrollMSG @ 0x10059e0cc // > sub_10059E250 @ 0x10059e30c // // 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:32:32 +0000 // __int64 __fastcall sub_10059E0F0(__int64 a1) { __int64 result; // rax __int64 v2; // rbx unsigned int *v3; // rdi __int64 v4; // rax unsigned __int64 v5; // r15 unsigned int *v6; // rax __int64 v7; // r12 __int64 *v8; // r13 __int64 *v9; // rbx __int64 v10; // r14 unsigned int *v11; // rdi unsigned __int64 v12; // r14 _QWORD *v13; // rax __int64 v14; // [rsp+0h] [rbp-30h] v2 = a1; if ( *(_BYTE *)(a1 + 66) == 1 ) { *(_BYTE *)(a1 + 66) = 0; v3 = *(unsigned int **)(a1 + 80); if ( *v3 ) { v4 = *(_QWORD *)(v2 + 56); if ( v4 ) { v14 = v2; v5 = 0; LABEL_5: v6 = *(unsigned int **)(v4 + 56); if ( !*v6 ) goto LABEL_12; v7 = *(_QWORD *)(*((_QWORD *)v3 + 2) + 8 * v5); v8 = *((__int64 **)v6 + 2); v9 = &v8[*v6 - 1]; do { v10 = *v8; if ( !*v8 ) break; if ( cocos2d::CCMouseHandler::getDelegate(*v8) == v7 ) { sub_1007FF140(*(_QWORD *)(v14 + 56), v10, 1); break; } ++v8; } while ( v8 <= v9 ); LABEL_12: while ( 1 ) { ++v5; v2 = v14; v3 = *(unsigned int **)(v14 + 80); if ( v5 >= *v3 ) break; v4 = *(_QWORD *)(v14 + 56); if ( v4 ) goto LABEL_5; } } } result = sub_1007477D0(); } if ( *(_BYTE *)(v2 + 65) == 1 ) { *(_BYTE *)(v2 + 65) = 0; v11 = *(unsigned int **)(v2 + 72); if ( *v11 ) { v12 = 0; do { v13 = cocos2d::CCMouseHandler::handlerWithDelegate(*(void **)(*((_QWORD *)v11 + 2) + 8 * v12)); if ( v13 ) sub_1007FEBF0(*(_QWORD *)(v2 + 56), v13); ++v12; v11 = *(unsigned int **)(v2 + 72); } while ( v12 < *v11 ); } return sub_1007477D0(); } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source