// // GJSearchObject::getSearchKey from 0x140270440 to 0x1402709aa (1386 bytes) // // 3 xrefs: // > GJSearchObject::getKey @ 0x1402702c0 // > LevelBrowserLayer::loadPage @ 0x1403e453f // > @ 0x14091cae4 // // 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:28:54 +0000 // // Hidden C++ exception states: #wind=6 const char *__fastcall GJSearchObject::getSearchKey( int a1, const char *a2, const char *a3, __int64 a4, int a5, unsigned __int8 a6, unsigned __int8 a7, unsigned __int8 a8, int a9, unsigned __int8 a10, unsigned __int8 a11, unsigned __int8 a12, unsigned __int8 a13, unsigned __int8 a14, unsigned __int8 a15, unsigned __int8 a16, unsigned __int8 a17, unsigned __int8 a18, unsigned __int8 a19, int a20, int a21, int a22) { unsigned __int8 v25; // bl unsigned __int8 v26; // r11 unsigned __int8 v27; // r10 unsigned __int8 v28; // dl const char *v30; // r8 cocos2d::CCString *v31; // rax const char *CString; // rbx __int64 v33; // rcx int v34; // ecx int v35; // ecx int v36; // ebx _DWORD *v37; // rcx int v38; // ebx const char *v39; // r9 cocos2d::CCString *v40; // rax const char *v41; // rax size_t v42; // rbx size_t v43; // r8 _DWORD *v44; // rdx int v45; // edx cocos2d::CCString *v46; // rax char *v47; // rax cocos2d::CCString *v48; // rax void *v49; // r8 char v51; // [rsp+C0h] [rbp-D8h] int v52; // [rsp+CCh] [rbp-CCh] void *v53; // [rsp+D0h] [rbp-C8h] const char *v54; // [rsp+D0h] [rbp-C8h] void *v55; // [rsp+D0h] [rbp-C8h] const char *v57; // [rsp+F0h] [rbp-A8h] void *Block[2]; // [rsp+128h] [rbp-70h] BYREF __int64 v62; // [rsp+138h] [rbp-60h] unsigned __int64 v63; // [rsp+140h] [rbp-58h] v25 = a14; v26 = a15; v27 = a16; v28 = a17; if ( a1 == 14 ) { v30 = a2; if ( *((_QWORD *)a2 + 3) > 0xFu ) v30 = *(const char **)a2; v31 = cocos2d::CCString::createWithFormat("%i_%s_%i", 14, v30, a5); CString = cocos2d::CCString::getCString(v31); sub_14003D310((__int64)a2); sub_14003D310((__int64)a3); v33 = a4; goto LABEL_49; } v34 = a1 - 32; if ( !v34 ) { v36 = 0; goto LABEL_12; } v35 = v34 - 1; if ( !v35 ) { v36 = 1; goto LABEL_12; } if ( v35 == 1 ) { v36 = 2; LABEL_12: v52 = v36; v51 = 1; v37 = *(_DWORD **)&qword_14090BFB0; if ( !*(_QWORD *)&qword_14090BFB0 ) { v53 = operator new(0x690u); *(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager((__int64)v53); (*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0); v37 = *(_DWORD **)&qword_14090BFB0; v26 = a15; v27 = a16; v28 = a17; } if ( v36 ) { v38 = v36 - 1; if ( v38 ) { if ( v38 == 1 ) a21 = v37[246]; else a21 = 0; } else { a21 = v37[243]; } } else { a21 = v37[240]; } v25 = a14; goto LABEL_22; } v51 = 0; LABEL_22: v57 = (const char *)a4; if ( *(_QWORD *)(a4 + 24) > 0xFu ) v57 = *(const char **)a4; v39 = a3; if ( *((_QWORD *)a3 + 3) > 0xFu ) v39 = *(const char **)a3; v54 = a2; if ( *((_QWORD *)a2 + 3) > 0xFu ) v54 = *(const char **)a2; v40 = cocos2d::CCString::createWithFormat( "%i_%s_%s_%s_%i_%i_%i_%i_%i_%i_%i_%i_%i_%i_%i_%i_%i_%i_%i_%i_%i_%i", a1, v54, v39, v57, a5, a6, a7, a8, a9, a10, a11, a12, a13, v25, v26, v27, v28, a18, a19, a20, a21, a22); v41 = cocos2d::CCString::getCString(v40); *(_OWORD *)Block = 0; v62 = 0; v63 = 0; v42 = -1; v43 = -1; do ++v43; while ( v41[v43] ); sub_14003D230(Block, v41, v43); if ( v51 ) { v44 = *(_DWORD **)&qword_14090BFB0; if ( !*(_QWORD *)&qword_14090BFB0 ) { v55 = operator new(0x690u); *(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager((__int64)v55); (*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0); v44 = *(_DWORD **)&qword_14090BFB0; } if ( v52 ) { if ( v52 == 1 ) { v45 = v44[242]; } else if ( v52 == 2 ) { v45 = v44[245]; } else { v45 = 0; } } else { v45 = v44[239]; } v46 = cocos2d::CCString::createWithFormat("_%i", v45); v47 = (char *)cocos2d::CCString::getCString(v46); do ++v42; while ( v47[v42] ); sub_140044D80(Block, v47, v42); } v48 = (cocos2d::CCString *)cocos2d::CCString::create(Block); CString = cocos2d::CCString::getCString(v48); if ( v63 > 0xF ) { v49 = Block[0]; if ( v63 + 1 >= 0x1000 ) { v49 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v49 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v49); } v62 = 0; v63 = 15; LOBYTE(Block[0]) = 0; sub_14003D310((__int64)a2); sub_14003D310((__int64)a3); v33 = a4; LABEL_49: sub_14003D310(v33); return CString; }
GD Web Decomp Icon

GD Web Decomp

Raw Source