// // MoreSearchLayer::onClose from 0x140440750 to 0x140440b94 (1092 bytes) // // 3 xrefs: // > MoreSearchLayer::keyBackClicked @ 0x140440ba9 // > MoreSearchLayer::init @ 0x14043bbc6 // > @ 0x140927074 // // 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:32:21 +0000 // // Hidden C++ exception states: #wind=5 __int64 __fastcall MoreSearchLayer::onClose(_QWORD **a1) { __int64 v2; // rcx _BYTE *v3; // rax size_t v4; // r8 const char *v5; // rcx unsigned int v6; // r14d char *v7; // r8 __int64 v8; // rbx cocos2d::CCString *v9; // rax bool v10; // si void *v11; // r8 __int64 v12; // rbx cocos2d::CCString *v13; // rax bool v14; // bl char *v15; // r8 __int64 v16; // rbx __int64 v17; // rbx struct cocos2d::CCString *v18; // rax void *v19; // rcx __int64 v20; // rdx void *v22; // [rsp+30h] [rbp-50h] void *v23; // [rsp+30h] [rbp-50h] void *v24; // [rsp+30h] [rbp-50h] char *String[2]; // [rsp+38h] [rbp-48h] BYREF __int64 v26; // [rsp+48h] [rbp-38h] unsigned __int64 v27; // [rsp+50h] [rbp-30h] void *Block[2]; // [rsp+58h] [rbp-28h] BYREF __int64 v29; // [rsp+68h] [rbp-18h] unsigned __int64 v30; // [rsp+70h] [rbp-10h] (*(void (__fastcall **)(_QWORD *, _QWORD))(*a1[88] + 1032LL))(a1[88], 0); v2 = a1[88][74] + 600LL; v3 = (_BYTE *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v2 + 8LL))(v2); *(_OWORD *)String = 0; v26 = 0; v27 = 0; v4 = -1; do ++v4; while ( v3[v4] ); sub_14003D230(String, v3, v4); v5 = (const char *)String; if ( v27 > 0xF ) v5 = String[0]; v6 = atoi(v5); if ( v27 > 0xF ) { v7 = String[0]; if ( v27 + 1 >= 0x1000 ) { v7 = *((char **)String[0] - 1); if ( (unsigned __int64)(String[0] - v7 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v7); } v26 = 0; v27 = 15; LOBYTE(String[0]) = 0; v8 = *(_QWORD *)&qword_14090BFB0; if ( !*(_QWORD *)&qword_14090BFB0 ) { v22 = operator new(0x690u); *(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager((__int64)v22); (*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0); v8 = *(_QWORD *)&qword_14090BFB0; } *(_OWORD *)Block = 0; v29 = 0; v30 = 0; Block[0] = sub_14003D460(0x20u); v29 = 17; v30 = 31; strcpy((char *)Block[0], "customsong_filter"); v9 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(*(_QWORD *)(v8 + 848), Block); v10 = cocos2d::CCString::boolValue(v9); if ( v30 > 0xF ) { v11 = Block[0]; if ( v30 + 1 >= 0x1000 ) { v11 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v11 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v11); } v29 = 0; v30 = 15; LOBYTE(Block[0]) = 0; v12 = *(_QWORD *)&qword_14090BFB0; if ( !*(_QWORD *)&qword_14090BFB0 ) { v23 = operator new(0x690u); *(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager((__int64)v23); (*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0); v12 = *(_QWORD *)&qword_14090BFB0; } *(_OWORD *)String = 0; v26 = 0; v27 = 0; String[0] = (char *)sub_14003D460(0x20u); v26 = 17; v27 = 31; strcpy(String[0], "enable_songFilter"); v13 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(*(_QWORD *)(v12 + 848), String); v14 = cocos2d::CCString::boolValue(v13); if ( v27 > 0xF ) { v15 = String[0]; if ( v27 + 1 >= 0x1000 ) { v15 = *((char **)String[0] - 1); if ( (unsigned __int64)(String[0] - v15 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v15); } v26 = 0; v27 = 15; LOBYTE(String[0]) = 0; if ( v14 && v10 ) { v16 = *(_QWORD *)&qword_14090BFB0; if ( !*(_QWORD *)&qword_14090BFB0 ) { v24 = operator new(0x690u); *(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager((__int64)v24); (*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0); v16 = *(_QWORD *)&qword_14090BFB0; } v29 = 11; v30 = 15; Block[0] = (void *)0x6C69665F676E6F73LL; Block[1] = (void *)7497076; v17 = *(_QWORD *)(v16 + 848); v18 = cocos2d::CCString::createWithFormat((const char *)&word_1406ED6F8, v6); cocos2d::CCDictionary::setObject(v17, v18, Block); if ( v30 > 0xF ) { v19 = Block[0]; if ( v30 + 1 >= 0x1000 ) { v19 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v19 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v19); } } ((void (__fastcall *)(_QWORD **, _QWORD))(*a1)[124])(a1, 0); LOBYTE(v20) = 1; return ((__int64 (__fastcall *)(_QWORD **, __int64))(*a1)[65])(a1, v20); }
GD Web Decomp Icon

GD Web Decomp

Raw Source