// // GameLevelManager::getLengthStr from 0x100557890 to 0x100557fd3 (1859 bytes) // // 2 xrefs: // > LevelSearchLayer::getSearchObject @ 0x100708fb6 // > LevelSearchLayer::getLevelLenKey @ 0x10070941f // // 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:06 +0000 // size_t *__fastcall GameLevelManager::getLengthStr( size_t *a1, __int64 a2, char a3, char a4, char a5, char a6, char a7, char a8) { __int64 v11; // rax const std::string::value_type *CString; // rax int v13; // ebx __int64 v14; // rax const std::string::value_type *v15; // rax int v16; // ebx __int64 v17; // rax const std::string::value_type *v18; // rax __int64 v19; // rax const std::string::value_type *v20; // rax int v21; // ebx __int64 v22; // rax const std::string::value_type *v23; // rax __int64 v24; // rax const std::string::value_type *v25; // rax __int64 v26; // rax const std::string::value_type *v27; // rax __int64 v28; // rax const std::string::value_type *v29; // rax __int64 v30; // rax const std::string::value_type *v31; // rax __int64 v32; // rax const std::string::value_type *v33; // rax int v34; // r14d __int64 v35; // rax const std::string::value_type *v36; // rax __int64 v37; // rax const std::string::value_type *v38; // rax __int64 v39; // rax const std::string::value_type *v40; // rax __int64 v41; // rax const std::string::value_type *v42; // rax int v43; // ebx __int64 v44; // rax const std::string::value_type *v45; // rax __int64 v46; // rax const std::string::value_type *v47; // rax int v48; // ebx __int64 v49; // rax const std::string::value_type *v50; // rax __int64 v51; // rax const std::string::value_type *v52; // rax __int64 v53; // rax size_t *v54; // rbx const char *v55; // r14 size_t v56; // rax size_t v57; // r15 _BYTE *v58; // r12 size_t v59; // r13 __int64 v60; // rax const std::string::value_type *v61; // rax __int64 v62; // rax const std::string::value_type *v63; // rax __int64 v64; // rax const std::string::value_type *v65; // rax std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0 v66; // al char v68; // [rsp+0h] [rbp-50h] char v69; // [rsp+0h] [rbp-50h] std::string v70; // [rsp+10h] [rbp-40h] BYREF *(_WORD *)&v70.__r_.__value_.__l.0 = 0; if ( a8 ) { if ( a3 ) { v11 = sub_10088E820("%i", v68); CString = (const std::string::value_type *)cocos2d::CCString::getCString(v11); std::string::append(&v70, CString); v13 = 1; if ( !a4 ) { LABEL_11: if ( !a5 ) { LABEL_23: if ( !a6 ) { LABEL_26: if ( !a7 ) { LABEL_29: std::string::append(&v70, ","); goto LABEL_30; } std::string::append(&v70, ","); LABEL_28: v28 = sub_10088E820("%i", v68); v29 = (const std::string::value_type *)cocos2d::CCString::getCString(v28); std::string::append(&v70, v29); ++v13; goto LABEL_29; } std::string::append(&v70, ","); LABEL_25: v26 = sub_10088E820("%i", v68); v27 = (const std::string::value_type *)cocos2d::CCString::getCString(v26); std::string::append(&v70, v27); ++v13; goto LABEL_26; } std::string::append(&v70, ","); LABEL_22: v24 = sub_10088E820("%i", v68); v25 = (const std::string::value_type *)cocos2d::CCString::getCString(v24); std::string::append(&v70, v25); ++v13; goto LABEL_23; } v13 = 2; std::string::append(&v70, ","); } else { v13 = 1; if ( !a4 ) { v13 = 0; if ( !a5 ) { v13 = 0; if ( !a6 ) { v13 = 0; if ( !a7 ) { LABEL_30: v30 = sub_10088E820("%i", v68); v31 = (const std::string::value_type *)cocos2d::CCString::getCString(v30); std::string::append(&v70, v31); if ( v13 ) goto LABEL_79; LABEL_60: v53 = sub_10088E820("%i", v69); v54 = a1; v55 = (const char *)cocos2d::CCString::getCString(v53); v56 = strlen(v55); if ( v56 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100003630(); v57 = v56; if ( v56 >= 0x17 ) { v59 = 26; if ( (v56 | 7) != 0x17 ) v59 = (v56 | 7) + 1; v58 = operator new(v59); a1[2] = (size_t)v58; *a1 = v59 | 1; a1[1] = v57; } else { *(_BYTE *)a1 = 2 * v56; v58 = (char *)a1 + 1; if ( !v56 ) { LABEL_68: v58[v57] = 0; if ( (*(_BYTE *)&v70.__r_.__value_.__s.0 & 1) == 0 ) return v54; goto LABEL_84; } } memmove(v58, v55, v57); goto LABEL_68; } goto LABEL_28; } goto LABEL_25; } goto LABEL_22; } } v17 = sub_10088E820("%i", v68); v18 = (const std::string::value_type *)cocos2d::CCString::getCString(v17); std::string::append(&v70, v18); goto LABEL_11; } if ( a7 ) { if ( a3 ) { v14 = sub_10088E820("%i", v68); v15 = (const std::string::value_type *)cocos2d::CCString::getCString(v14); std::string::append(&v70, v15); v16 = 1; if ( !a4 ) { LABEL_19: if ( !a5 ) { LABEL_42: if ( !a6 ) { LABEL_45: std::string::append(&v70, ","); goto LABEL_46; } std::string::append(&v70, ","); LABEL_44: v39 = sub_10088E820("%i", v68); v40 = (const std::string::value_type *)cocos2d::CCString::getCString(v39); std::string::append(&v70, v40); ++v16; goto LABEL_45; } std::string::append(&v70, ","); LABEL_41: v37 = sub_10088E820("%i", v68); v38 = (const std::string::value_type *)cocos2d::CCString::getCString(v37); std::string::append(&v70, v38); ++v16; goto LABEL_42; } v16 = 2; std::string::append(&v70, ","); } else { v16 = 1; if ( !a4 ) { v16 = 0; if ( !a5 ) { v16 = 0; if ( !a6 ) { LABEL_46: v41 = sub_10088E820("%i", v68); v42 = (const std::string::value_type *)cocos2d::CCString::getCString(v41); std::string::append(&v70, v42); if ( !v16 ) goto LABEL_60; goto LABEL_79; } goto LABEL_44; } goto LABEL_41; } } v22 = sub_10088E820("%i", v68); v23 = (const std::string::value_type *)cocos2d::CCString::getCString(v22); std::string::append(&v70, v23); goto LABEL_19; } if ( !a6 ) { if ( !a5 ) { if ( !a4 ) { if ( !a3 ) goto LABEL_79; v64 = sub_10088E820("%i", v68); v65 = (const std::string::value_type *)cocos2d::CCString::getCString(v64); std::string::append(&v70, v65); goto LABEL_60; } v43 = 1; if ( a3 ) { v44 = sub_10088E820("%i", v68); v45 = (const std::string::value_type *)cocos2d::CCString::getCString(v44); std::string::append(&v70, v45); v43 = 2; std::string::append(&v70, ","); } v46 = sub_10088E820("%i", v68); v47 = (const std::string::value_type *)cocos2d::CCString::getCString(v46); std::string::append(&v70, v47); LABEL_59: if ( v43 != 1 ) goto LABEL_79; goto LABEL_60; } if ( a3 ) { v32 = sub_10088E820("%i", v68); v33 = (const std::string::value_type *)cocos2d::CCString::getCString(v32); std::string::append(&v70, v33); v34 = 1; if ( !a4 ) { LABEL_57: std::string::append(&v70, ","); v48 = v34; goto LABEL_58; } v34 = 2; std::string::append(&v70, ","); } else { v48 = 0; v34 = 1; if ( !a4 ) { LABEL_58: v51 = sub_10088E820("%i", v68); v52 = (const std::string::value_type *)cocos2d::CCString::getCString(v51); std::string::append(&v70, v52); v43 = v48 + 1; goto LABEL_59; } } v49 = sub_10088E820("%i", v68); v50 = (const std::string::value_type *)cocos2d::CCString::getCString(v49); std::string::append(&v70, v50); goto LABEL_57; } if ( a3 ) { v19 = sub_10088E820("%i", v68); v20 = (const std::string::value_type *)cocos2d::CCString::getCString(v19); std::string::append(&v70, v20); v21 = 1; if ( !a4 ) goto LABEL_38; v21 = 2; std::string::append(&v70, ","); } else { v21 = 1; if ( !a4 ) { v21 = 0; if ( !a5 ) goto LABEL_73; goto LABEL_71; } } v35 = sub_10088E820("%i", v68); v36 = (const std::string::value_type *)cocos2d::CCString::getCString(v35); std::string::append(&v70, v36); LABEL_38: if ( a5 ) { std::string::append(&v70, ","); LABEL_71: v60 = sub_10088E820("%i", v68); v61 = (const std::string::value_type *)cocos2d::CCString::getCString(v60); std::string::append(&v70, v61); ++v21; } std::string::append(&v70, ","); LABEL_73: v62 = sub_10088E820("%i", v68); v63 = (const std::string::value_type *)cocos2d::CCString::getCString(v62); std::string::append(&v70, v63); if ( !v21 ) goto LABEL_60; LABEL_79: v66 = v70.__r_.__value_.__s.0; if ( (*(_BYTE *)&v70.__r_.__value_.__s.0 & 1) == 0 ) { v54 = a1; if ( *(_BYTE *)&v70.__r_.__value_.__l.0 >> 1 ) goto LABEL_81; goto LABEL_83; } v54 = a1; if ( !v70.__r_.__value_.__l.__size_ ) { LABEL_83: *(_WORD *)v54 = 11522; *((_BYTE *)v54 + 2) = 0; if ( (*(_BYTE *)&v66 & 1) == 0 ) return v54; LABEL_84: operator delete(v70.__r_.__value_.__l.__data_); return v54; } LABEL_81: *(std::string *)v54 = v70; return v54; }
GD Web Decomp Icon

GD Web Decomp

Raw Source