// // GJSearchObject::getSearchKey from 0x10058da50 to 0x10058de43 (1011 bytes) // // 2 xrefs: // > GJSearchObject::getKey @ 0x100559385 // > GJSearchObject::getNextPageKey @ 0x10058e0a5 // // 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:25 +0000 // __int64 __fastcall GJSearchObject::getSearchKey( int a1, __int64 a2, __int64 a3, __int64 a4, int a5, int a6, char a7, char a8, int a9, char a10, char a11, char a12, char a13, char a14, char a15, char a16, char a17, char a18, char a19, int a20, int a21, int a22) { int v25; // esi int v26; // r15d __int64 v27; // rax int v28; // r15d __int64 v29; // rax int v30; // r15d __int64 v31; // rax __int64 v32; // r14 __int64 v33; // rax __int64 result; // rax __int64 v35; // r13 bool v36; // zf __int64 v37; // r12 __int64 v38; // rax const char *CString; // r14 size_t v40; // rax std::string::size_type v41; // rbx char *data; // r15 size_t v43; // r12 __int64 v44; // rax const std::string::value_type *v45; // rax __int64 v46; // rax __int64 v47; // rbx char v48; // [rsp+0h] [rbp-120h] char v49; // [rsp+0h] [rbp-120h] std::string __dst; // [rsp+98h] [rbp-88h] BYREF int v51; // [rsp+B0h] [rbp-70h] int v52; // [rsp+B4h] [rbp-6Ch] int v53; // [rsp+B8h] [rbp-68h] int v54; // [rsp+BCh] [rbp-64h] __int64 v55; // [rsp+C0h] [rbp-60h] __int64 v56; // [rsp+C8h] [rbp-58h] __int64 v57; // [rsp+D0h] [rbp-50h] int v58; // [rsp+DCh] [rbp-44h] int v59; // [rsp+E0h] [rbp-40h] int v60; // [rsp+E4h] [rbp-3Ch] char v61; // [rsp+EBh] [rbp-35h] char v62; // [rsp+ECh] [rbp-34h] char v63; // [rsp+EDh] [rbp-33h] char v64; // [rsp+EEh] [rbp-32h] char v65; // [rsp+EFh] [rbp-31h] int v66; // [rsp+F0h] [rbp-30h] char v67; // [rsp+F6h] [rbp-2Ah] char v68; // [rsp+F7h] [rbp-29h] v51 = a22; v61 = a19; v62 = a18; LOBYTE(v55) = a16; v63 = a15; v64 = a12; v65 = a11; LOBYTE(v56) = a8; LOBYTE(v57) = a7; v59 = a21; v53 = a20; v52 = a9; v25 = 0; switch ( a1 ) { case 14: v33 = sub_10088E820("%i_%s_%i", v48); return cocos2d::CCString::getCString(v33); case 15: case 16: case 17: case 18: case 19: case 20: case 21: case 22: case 23: case 24: case 25: case 26: case 27: case 28: case 29: case 30: case 31: goto LABEL_6; case 32: LOBYTE(v66) = a17; v60 = a6; v28 = a5; v67 = a14; v68 = a13; v29 = GameLevelManager::sharedState(); a5 = v28; LOBYTE(a6) = v60; v59 = *(_DWORD *)(v29 + 864); v58 = 0; goto LABEL_5; case 33: LOBYTE(v66) = a17; v60 = a6; v26 = a5; v67 = a14; v68 = a13; v27 = GameLevelManager::sharedState(); a5 = v26; LOBYTE(a6) = v60; v59 = *(_DWORD *)(v27 + 876); v58 = 1; goto LABEL_5; case 34: LOBYTE(v66) = a17; v60 = a6; v30 = a5; v67 = a14; v68 = a13; v31 = GameLevelManager::sharedState(); a5 = v30; LOBYTE(a6) = v60; v59 = *(_DWORD *)(v31 + 888); v58 = 2; LABEL_5: LOBYTE(v25) = 1; LABEL_6: if ( (*(_BYTE *)a2 & 1) == 0 ) goto LABEL_7; goto LABEL_10; default: if ( (*(_BYTE *)a2 & 1) != 0 ) LABEL_10: v32 = *(_QWORD *)(a2 + 16); else LABEL_7: v32 = a2 + 1; if ( (*(_BYTE *)a3 & 1) != 0 ) v35 = *(_QWORD *)(a3 + 16); else v35 = a3 + 1; v36 = (*(_BYTE *)a4 & 1) == 0; v66 = v25; v54 = a5; v55 = v35; v56 = v32; if ( v36 ) v37 = a4 + 1; else v37 = *(_QWORD *)(a4 + 16); v57 = v37; v38 = sub_10088E820("%i_%s_%s_%s_%i_%i_%i_%i_%i_%i_%i_%i_%i_%i_%i_%i_%i_%i_%i_%i_%i_%i", a6); CString = (const char *)cocos2d::CCString::getCString(v38); v40 = strlen(CString); if ( v40 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100003630(); v41 = v40; if ( v40 >= 0x17 ) { v43 = 26; if ( (v40 | 7) != 0x17 ) v43 = (v40 | 7) + 1; data = (char *)operator new(v43); __dst.__r_.__value_.__r.__words[2] = (std::string::size_type)data; __dst.__r_.__value_.__r.__words[0] = v43 + 1; __dst.__r_.__value_.__l.__size_ = v41; } else { __dst.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)(2 * v40); data = __dst.__r_.__value_.__s.__data_; if ( !v40 ) { __dst.__r_.__value_.__s.__data_[0] = 0; if ( !(_BYTE)v66 ) goto LABEL_27; goto LABEL_26; } } memmove(data, CString, v41); data[v41] = 0; if ( !(_BYTE)v66 ) goto LABEL_27; LABEL_26: GameLevelManager::sharedState(); v44 = sub_10088E820("_%i", v49); v45 = (const std::string::value_type *)cocos2d::CCString::getCString(v44); std::string::append(&__dst, v45); LABEL_27: v46 = sub_10088E600(&__dst); result = cocos2d::CCString::getCString(v46); if ( (*(_BYTE *)&__dst.__r_.__value_.__s.0 & 1) != 0 ) { v47 = result; operator delete(__dst.__r_.__value_.__l.__data_); return v47; } return result; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source