// // sub_10055C1A0 from 0x10055c1a0 to 0x10055c3ee (590 bytes) // // 1 xrefs: // > sub_10052FE70 @ 0x10053024b // // 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:07 +0000 // __int64 __fastcall sub_10055C1A0(__int64 a1, __int64 a2) { const char *v2; // r14 size_t v3; // rax size_t v4; // rbx char *v5; // r15 size_t v6; // r12 __int64 v7; // r14 unsigned int v8; // r15d __int64 v9; // rax const char *CString; // rbx size_t v11; // rax size_t v12; // r13 char *v13; // r12 char v14; // r14 __int64 v15; // rax size_t v16; // r14 void *v17; // rsi _QWORD *v18; // rax __int64 v19; // rbx __int64 v21; // [rsp+8h] [rbp-68h] __int128 v22; // [rsp+10h] [rbp-60h] BYREF void *v23; // [rsp+20h] [rbp-50h] __int64 v24; // [rsp+28h] [rbp-48h] __int128 __dst; // [rsp+30h] [rbp-40h] BYREF void *__p; // [rsp+40h] [rbp-30h] v24 = sub_1007FE900(a1); if ( (*(_BYTE *)a2 & 1) != 0 ) v2 = *(const char **)(a2 + 16); else v2 = (const char *)(a2 + 1); v3 = strlen(v2); if ( v3 >= 0xFFFFFFFFFFFFFFF8LL ) LABEL_37: sub_100003630(); v4 = v3; if ( v3 >= 0x17 ) { v6 = 26; if ( (v3 | 7) != 0x17 ) v6 = (v3 | 7) + 1; v5 = (char *)operator new(v6); __p = v5; *(_QWORD *)&__dst = v6 + 1; *((_QWORD *)&__dst + 1) = v4; goto LABEL_11; } LOBYTE(__dst) = 2 * v3; v5 = (char *)&__dst + 1; if ( v3 ) LABEL_11: memmove(v5, v2, v4); v5[v4] = 0; v7 = sub_10053FBE0((unsigned __int8 *)&__dst, "|"); if ( (__dst & 1) != 0 ) operator delete(__p); if ( (unsigned int)sub_1007FEF90(v7) ) { v8 = 0; v21 = v7; do { v9 = sub_1007FEFE0(v7, v8); CString = (const char *)cocos2d::CCString::getCString(v9); v11 = strlen(CString); if ( v11 >= 0xFFFFFFFFFFFFFFF8LL ) goto LABEL_37; v12 = v11; if ( v11 >= 0x17 ) { v15 = v11 | 7; v16 = 26; if ( (v12 | 7) != 0x17 ) v16 = v15 + 1; v13 = (char *)operator new(v16); __p = v13; *(_QWORD *)&__dst = v16 + 1; *((_QWORD *)&__dst + 1) = v12; } else { LOBYTE(__dst) = 2 * v11; v13 = (char *)&__dst + 1; if ( !v11 ) { BYTE1(__dst) = 0; v14 = __dst; if ( (__dst & 1) == 0 ) goto LABEL_22; goto LABEL_28; } } memmove(v13, CString, v12); v13[v12] = 0; v14 = __dst; if ( (__dst & 1) == 0 ) { LABEL_22: if ( !v14 ) goto LABEL_17; v23 = __p; v22 = __dst; goto LABEL_30; } LABEL_28: v17 = __p; if ( *((_QWORD *)&__dst + 1) ) { sub_10001AD30(&v22, __p, *((unsigned __int64 *)&__dst + 1)); LABEL_30: v18 = GameLevelManager::responseToDict((__int64)&v22, 0); v19 = GJEditorSoundConfig::create(v18); if ( (v22 & 1) != 0 ) operator delete(v23); if ( v19 ) sub_1007FEBF0(v24, v19); if ( (v14 & 1) == 0 ) goto LABEL_17; v17 = __p; } operator delete(v17); LABEL_17: ++v8; v7 = v21; } while ( v8 < (unsigned int)sub_1007FEF90(v21) ); } return v24; }
GD Web Decomp Icon

GD Web Decomp

Raw Source