// // GJSearchObject::createFromKey from 0x100538f00 to 0x100539548 (1608 bytes) // // 1 xrefs: // > GameLevelManager::getSearchScene @ 0x100538ee7 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // GJSearchObject *__fastcall GJSearchObject::createFromKey(const char *a1) { double v1; // xmm0_8 size_t v2; // rax size_t v3; // rbx char *v4; // r15 size_t v5; // r12 cocos2d::CCArray *v6; // r14 GJSearchObject *v7; // rbx cocos2d::CCString *v8; // rax int v9; // r12d cocos2d::CCString *v10; // rax const char *CString; // r15 size_t v12; // rax size_t v13; // rbx char *v14; // r12 size_t v15; // r13 cocos2d::CCString *v16; // rax const char *v17; // rbx size_t v18; // rax size_t v19; // r15 char *v20; // r12 size_t v21; // r13 cocos2d::CCString *v22; // rax const char *v23; // rbx size_t v24; // rax size_t v25; // r15 char *v26; // r12 size_t v27; // r13 cocos2d::CCString *v28; // rax int v29; // r12d cocos2d::CCString *v30; // rax bool v31; // bl cocos2d::CCString *v32; // rax char v33; // r15 cocos2d::CCString *v34; // rax char v35; // r13 cocos2d::CCString *v36; // rax cocos2d::CCString *v37; // rax cocos2d::CCString *v38; // rax cocos2d::CCString *v39; // rax cocos2d::CCString *v40; // rax cocos2d::CCString *v41; // rax cocos2d::CCString *v42; // rax cocos2d::CCString *v43; // rax cocos2d::CCString *v44; // rax cocos2d::CCString *v45; // rax cocos2d::CCString *v46; // rax cocos2d::CCString *v47; // rax cocos2d::CCString *v48; // rax cocos2d::CCString *v49; // rax int v50; // r14d char v51; // r12 __int128 v53; // [rsp+80h] [rbp-F0h] BYREF void *v54; // [rsp+90h] [rbp-E0h] __int128 v55; // [rsp+A0h] [rbp-D0h] BYREF void *v56; // [rsp+B0h] [rbp-C0h] __int128 v57; // [rsp+C0h] [rbp-B0h] BYREF void *v58; // [rsp+D0h] [rbp-A0h] int v59; // [rsp+DCh] [rbp-94h] int v60; // [rsp+E0h] [rbp-90h] int v61; // [rsp+E4h] [rbp-8Ch] int v62; // [rsp+E8h] [rbp-88h] int v63; // [rsp+ECh] [rbp-84h] __int128 v64; // [rsp+F0h] [rbp-80h] BYREF void *v65; // [rsp+100h] [rbp-70h] __int128 v66; // [rsp+108h] [rbp-68h] BYREF void *v67; // [rsp+118h] [rbp-58h] __int128 __dst; // [rsp+120h] [rbp-50h] BYREF void *__p; // [rsp+130h] [rbp-40h] char v70; // [rsp+13Ch] [rbp-34h] char v71; // [rsp+13Dh] [rbp-33h] char v72; // [rsp+13Eh] [rbp-32h] char v73; // [rsp+13Fh] [rbp-31h] char v74; // [rsp+140h] [rbp-30h] char v75; // [rsp+141h] [rbp-2Fh] char v76; // [rsp+142h] [rbp-2Eh] char v77; // [rsp+143h] [rbp-2Dh] char v78; // [rsp+144h] [rbp-2Ch] char v79; // [rsp+145h] [rbp-2Bh] char v80; // [rsp+146h] [rbp-2Ah] char v81; // [rsp+147h] [rbp-29h] v2 = strlen(a1); if ( v2 >= 0xFFFFFFFFFFFFFFF8LL ) goto LABEL_60; v3 = v2; if ( v2 >= 0x17 ) { v5 = 26; if ( (v2 | 7) != 0x17 ) v5 = (v2 | 7) + 1; v4 = (char *)operator new(v5); __p = v4; *(_QWORD *)&__dst = v5 + 1; *((_QWORD *)&__dst + 1) = v3; goto LABEL_8; } LOBYTE(__dst) = 2 * v2; v4 = (char *)&__dst + 1; if ( v2 ) LABEL_8: memcpy(v4, a1, v3); v4[v3] = 0; v6 = (cocos2d::CCArray *)sub_10052DD30((unsigned __int8 *)&__dst, "_", v1); if ( (__dst & 1) != 0 ) operator delete(__p); if ( (unsigned int)sub_100720070(v6) >= 0x12 ) { v8 = (cocos2d::CCString *)sub_1007200C0(v6, 0); v9 = cocos2d::CCString::intValue(v8); v10 = (cocos2d::CCString *)sub_1007200C0(v6, 1); CString = cocos2d::CCString::getCString(v10); v12 = strlen(CString); if ( v12 < 0xFFFFFFFFFFFFFFF8LL ) { v13 = v12; v59 = v9; if ( v12 >= 0x17 ) { v15 = 26; if ( (v12 | 7) != 0x17 ) v15 = (v12 | 7) + 1; v14 = (char *)operator new(v15); __p = v14; *(_QWORD *)&__dst = v15 + 1; *((_QWORD *)&__dst + 1) = v13; } else { LOBYTE(__dst) = 2 * v12; v14 = (char *)&__dst + 1; if ( !v12 ) { LABEL_21: v14[v13] = 0; v16 = (cocos2d::CCString *)sub_1007200C0(v6, 2); v17 = cocos2d::CCString::getCString(v16); v18 = strlen(v17); if ( v18 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100006BF0(v1); v19 = v18; if ( v18 >= 0x17 ) { v21 = 26; if ( (v18 | 7) != 0x17 ) v21 = (v18 | 7) + 1; v20 = (char *)operator new(v21); v65 = v20; *(_QWORD *)&v64 = v21 | 1; *((_QWORD *)&v64 + 1) = v19; } else { LOBYTE(v64) = 2 * v18; v20 = (char *)&v64 + 1; if ( !v18 ) { LABEL_29: v20[v19] = 0; v22 = (cocos2d::CCString *)sub_1007200C0(v6, 3); v23 = cocos2d::CCString::getCString(v22); v24 = strlen(v23); if ( v24 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100006BF0(v1); v25 = v24; if ( v24 >= 0x17 ) { v27 = 26; if ( (v24 | 7) != 0x17 ) v27 = (v24 | 7) + 1; v26 = (char *)operator new(v27); v67 = v26; *(_QWORD *)&v66 = v27 | 1; *((_QWORD *)&v66 + 1) = v25; } else { LOBYTE(v66) = 2 * v24; v26 = (char *)&v66 + 1; if ( !v24 ) { LABEL_37: v26[v25] = 0; v28 = (cocos2d::CCString *)sub_1007200C0(v6, 4); v29 = cocos2d::CCString::intValue(v28); v30 = (cocos2d::CCString *)sub_1007200C0(v6, 5); v31 = cocos2d::CCString::boolValue(v30); v32 = (cocos2d::CCString *)sub_1007200C0(v6, 6); v33 = cocos2d::CCString::boolValue(v32); v34 = (cocos2d::CCString *)sub_1007200C0(v6, 7); v35 = cocos2d::CCString::boolValue(v34); v36 = (cocos2d::CCString *)sub_1007200C0(v6, 8); v60 = cocos2d::CCString::intValue(v36); v37 = (cocos2d::CCString *)sub_1007200C0(v6, 9); v70 = cocos2d::CCString::boolValue(v37); v38 = (cocos2d::CCString *)sub_1007200C0(v6, 10); v71 = cocos2d::CCString::boolValue(v38); v39 = (cocos2d::CCString *)sub_1007200C0(v6, 11); v72 = cocos2d::CCString::boolValue(v39); v40 = (cocos2d::CCString *)sub_1007200C0(v6, 12); v73 = cocos2d::CCString::boolValue(v40); v41 = (cocos2d::CCString *)sub_1007200C0(v6, 13); v74 = cocos2d::CCString::boolValue(v41); v42 = cocos2d::CCArray::stringAtIndex(v6, 0xEu); v75 = cocos2d::CCString::boolValue(v42); v43 = cocos2d::CCArray::stringAtIndex(v6, 0xFu); v76 = cocos2d::CCString::boolValue(v43); v44 = cocos2d::CCArray::stringAtIndex(v6, 0x10u); v77 = cocos2d::CCString::boolValue(v44); v45 = cocos2d::CCArray::stringAtIndex(v6, 0x11u); v78 = cocos2d::CCString::boolValue(v45); v46 = cocos2d::CCArray::stringAtIndex(v6, 0x12u); v79 = cocos2d::CCString::boolValue(v46); v47 = cocos2d::CCArray::stringAtIndex(v6, 0x13u); v61 = cocos2d::CCString::intValue(v47); v48 = cocos2d::CCArray::stringAtIndex(v6, 0x14u); v62 = cocos2d::CCString::intValue(v48); v49 = cocos2d::CCArray::stringAtIndex(v6, 0x15u); v50 = cocos2d::CCString::intValue(v49); v80 = __dst; if ( (__dst & 1) != 0 ) { sub_100006B70(&v53, __p, *((unsigned __int64 *)&__dst + 1), v1); } else { v54 = __p; v1 = *(double *)&__dst; v53 = __dst; } v81 = v64; v63 = v29; if ( (v64 & 1) != 0 ) { sub_100006B70(&v55, v65, *((unsigned __int64 *)&v64 + 1), v1); } else { v56 = v65; v1 = *(double *)&v64; v55 = v64; } v51 = v66; if ( (v66 & 1) != 0 ) { sub_100006B70(&v57, v67, *((unsigned __int64 *)&v66 + 1), v1); } else { v58 = v67; v57 = v66; } v7 = (GJSearchObject *)GJSearchObject::create( v59, (unsigned int)&v53, (unsigned int)&v55, (unsigned int)&v57, v63, v31, v33, v35, v60, v70, v71, v72, v73, v74, v75, v76, v77, v78, v79, v61, v62, v50); if ( (v57 & 1) != 0 ) { operator delete(v58); if ( (v55 & 1) == 0 ) { LABEL_48: if ( (v53 & 1) == 0 ) goto LABEL_49; goto LABEL_56; } } else if ( (v55 & 1) == 0 ) { goto LABEL_48; } operator delete(v56); if ( (v53 & 1) == 0 ) { LABEL_49: if ( (v51 & 1) == 0 ) goto LABEL_50; goto LABEL_57; } LABEL_56: operator delete(v54); if ( (v51 & 1) == 0 ) { LABEL_50: if ( (v81 & 1) == 0 ) goto LABEL_51; goto LABEL_58; } LABEL_57: operator delete(v67); if ( (v81 & 1) == 0 ) { LABEL_51: if ( (v80 & 1) == 0 ) return v7; LABEL_52: operator delete(__p); return v7; } LABEL_58: operator delete(v65); if ( (v80 & 1) == 0 ) return v7; goto LABEL_52; } } memmove(v26, v23, v25); goto LABEL_37; } } memmove(v20, v17, v19); goto LABEL_29; } } memmove(v14, CString, v13); goto LABEL_21; } LABEL_60: sub_100006BF0(v1); } return nullptr; }
GD Web Decomp Icon

GD Web Decomp

Raw Source