// // GameLevelManager::getDifficultyStr from 0x1005572b0 to 0x100557867 (1463 bytes) // // 1 xrefs: // > LevelSearchLayer::getSearchDiffKey @ 0x10070935a // // 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:05 +0000 // __int64 __fastcall GameLevelManager::getDifficultyStr( __int64 a1, __int64 a2, int a3, char a4, char a5, char a6, char a7, char a8, char a9, char a10) { __int64 v13; // rax const std::string::value_type *CString; // rax int v15; // r13d __int64 v16; // rax const std::string::value_type *v17; // rax __int64 v18; // rax const std::string::value_type *v19; // rax __int64 v20; // rax const std::string::value_type *v21; // rax int v22; // r14d __int64 v23; // rax const std::string::value_type *v24; // rax __int64 v25; // rax const std::string::value_type *v26; // rax __int64 v27; // rax const std::string::value_type *v28; // rax int v29; // r13d __int64 v30; // rax const std::string::value_type *v31; // rax __int64 v32; // rax const std::string::value_type *v33; // rax __int64 v34; // rax const std::string::value_type *v35; // rax __int64 v36; // rax const std::string::value_type *v37; // rax __int64 v38; // rax const std::string::value_type *v39; // rax __int64 v40; // rax const char *v41; // r14 size_t v42; // rax size_t v43; // r15 _BYTE *v44; // r12 size_t v45; // r13 __int64 v46; // rax const std::string::value_type *v47; // rax std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0 v48; // al std::string v49; // [rsp+0h] [rbp-40h] BYREF if ( !a3 ) { if ( a9 ) { *(_BYTE *)a1 = 4; *(_WORD *)(a1 + 1) = 12845; goto LABEL_7; } if ( a10 ) { *(_BYTE *)a1 = 4; *(_WORD *)(a1 + 1) = 13101; goto LABEL_7; } *(_WORD *)&v49.__r_.__value_.__l.0 = 0; if ( a8 ) { if ( a4 ) { v13 = sub_10088E820("%i", *(_BYTE *)&v49.__r_.__value_.__l.0); CString = (const std::string::value_type *)cocos2d::CCString::getCString(v13); std::string::append(&v49, CString); v15 = 1; if ( !a5 ) { LABEL_19: if ( !a6 ) goto LABEL_31; std::string::append(&v49, ","); LABEL_30: v25 = sub_10088E820("%i", *(_BYTE *)&v49.__r_.__value_.__l.0); v26 = (const std::string::value_type *)cocos2d::CCString::getCString(v25); std::string::append(&v49, v26); ++v15; LABEL_31: if ( a7 ) { std::string::append(&v49, ","); LABEL_33: v27 = sub_10088E820("%i", *(_BYTE *)&v49.__r_.__value_.__l.0); v28 = (const std::string::value_type *)cocos2d::CCString::getCString(v27); std::string::append(&v49, v28); ++v15; } LABEL_45: std::string::append(&v49, ","); goto LABEL_46; } v15 = 2; std::string::append(&v49, ","); } else { v15 = 1; if ( !a5 ) { v15 = 0; if ( !a6 ) { v15 = 0; if ( !a7 ) goto LABEL_46; goto LABEL_33; } goto LABEL_30; } } v18 = sub_10088E820("%i", *(_BYTE *)&v49.__r_.__value_.__l.0); v19 = (const std::string::value_type *)cocos2d::CCString::getCString(v18); std::string::append(&v49, v19); goto LABEL_19; } if ( a7 ) { if ( a4 ) { v16 = sub_10088E820("%i", *(_BYTE *)&v49.__r_.__value_.__l.0); v17 = (const std::string::value_type *)cocos2d::CCString::getCString(v16); std::string::append(&v49, v17); v15 = 1; if ( !a5 ) { LABEL_27: if ( !a6 ) goto LABEL_45; std::string::append(&v49, ","); LABEL_44: v36 = sub_10088E820("%i", *(_BYTE *)&v49.__r_.__value_.__l.0); v37 = (const std::string::value_type *)cocos2d::CCString::getCString(v36); std::string::append(&v49, v37); ++v15; goto LABEL_45; } v15 = 2; std::string::append(&v49, ","); } else { v15 = 1; if ( !a5 ) { v15 = 0; if ( !a6 ) { LABEL_46: v38 = sub_10088E820("%i", *(_BYTE *)&v49.__r_.__value_.__l.0); v39 = (const std::string::value_type *)cocos2d::CCString::getCString(v38); std::string::append(&v49, v39); v29 = v15 + 1; goto LABEL_47; } goto LABEL_44; } } v23 = sub_10088E820("%i", *(_BYTE *)&v49.__r_.__value_.__l.0); v24 = (const std::string::value_type *)cocos2d::CCString::getCString(v23); std::string::append(&v49, v24); goto LABEL_27; } if ( !a6 ) { if ( !a5 ) { if ( a4 ) { v46 = sub_10088E820("%i", *(_BYTE *)&v49.__r_.__value_.__l.0); v47 = (const std::string::value_type *)cocos2d::CCString::getCString(v46); std::string::append(&v49, v47); LABEL_48: v40 = sub_10088E820("%i", *(_BYTE *)&v49.__r_.__value_.__l.0); v41 = (const char *)cocos2d::CCString::getCString(v40); v42 = strlen(v41); if ( v42 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100003630(); v43 = v42; if ( v42 >= 0x17 ) { v45 = 26; if ( (v42 | 7) != 0x17 ) v45 = (v42 | 7) + 1; v44 = operator new(v45); *(_QWORD *)(a1 + 16) = v44; *(_QWORD *)a1 = v45 | 1; *(_QWORD *)(a1 + 8) = v43; } else { *(_BYTE *)a1 = 2 * v42; v44 = (_BYTE *)(a1 + 1); if ( !v42 ) { LABEL_56: v44[v43] = 0; if ( (*(_BYTE *)&v49.__r_.__value_.__s.0 & 1) == 0 ) return a1; LABEL_67: operator delete(v49.__r_.__value_.__l.__data_); return a1; } } memmove(v44, v41, v43); goto LABEL_56; } LABEL_62: v48 = v49.__r_.__value_.__s.0; if ( (*(_BYTE *)&v49.__r_.__value_.__s.0 & 1) != 0 ) { if ( v49.__r_.__value_.__l.__size_ ) { LABEL_64: *(std::string *)a1 = v49; return a1; } } else if ( *(_BYTE *)&v49.__r_.__value_.__l.0 >> 1 ) { goto LABEL_64; } *(_WORD *)a1 = 11522; *(_BYTE *)(a1 + 2) = 0; if ( (*(_BYTE *)&v48 & 1) == 0 ) return a1; goto LABEL_67; } v29 = 1; if ( a4 ) { v30 = sub_10088E820("%i", *(_BYTE *)&v49.__r_.__value_.__l.0); v31 = (const std::string::value_type *)cocos2d::CCString::getCString(v30); std::string::append(&v49, v31); v29 = 2; std::string::append(&v49, ","); } v32 = sub_10088E820("%i", *(_BYTE *)&v49.__r_.__value_.__l.0); v33 = (const std::string::value_type *)cocos2d::CCString::getCString(v32); std::string::append(&v49, v33); LABEL_47: if ( v29 == 1 ) goto LABEL_48; goto LABEL_62; } if ( a4 ) { v20 = sub_10088E820("%i", *(_BYTE *)&v49.__r_.__value_.__l.0); v21 = (const std::string::value_type *)cocos2d::CCString::getCString(v20); std::string::append(&v49, v21); v22 = 1; if ( !a5 ) { LABEL_41: std::string::append(&v49, ","); v15 = v22; goto LABEL_46; } v22 = 2; std::string::append(&v49, ","); } else { v15 = 0; v22 = 1; if ( !a5 ) goto LABEL_46; } v34 = sub_10088E820("%i", *(_BYTE *)&v49.__r_.__value_.__l.0); v35 = (const std::string::value_type *)cocos2d::CCString::getCString(v34); std::string::append(&v49, v35); goto LABEL_41; } *(_BYTE *)a1 = 4; *(_WORD *)(a1 + 1) = 12589; LABEL_7: *(_BYTE *)(a1 + 3) = 0; return a1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source