// // sub_BB2160 from 0xbb2160 to 0xbb2288 (296 bytes) // // 2 xrefs: // > sub_BAE9F0 @ 0xbaee18 // > sub_BAEE2C @ 0xbaf250 // // 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 // __int64 __fastcall sub_BB2160(__int64 a1, char *a2, const char *a3, const char **a4, size_t *a5) { unsigned __int64 v10; // x19 __int64 v11; // x20 size_t v12; // x0 size_t v13; // x25 size_t v15; // x2 size_t v16; // x26 char *v17; // x0 char *v18; // x28 unsigned int v19; // w19 *a5 = 0; *a4 = nullptr; v10 = strlen(a2); v11 = 2 * v10; v12 = strlen(a3); v13 = v12; if ( v10 > 2 * v10 ) return 27; v15 = v11 + v12; if ( v12 > v11 + v12 ) return 27; v16 = v15 + 2; if ( v15 + 2 <= 1 ) return 27; v17 = (char *)off_1231000(v15 + 2); v18 = v17; if ( !v17 ) return 27; memcpy(v17, a2, v10); v18[v10] = 0; memcpy(&v18[v10 + 1], a2, v10); v18[v11 + 1] = 0; memcpy(&v18[v11 + 2], a3, v13); v19 = sub_B71094(a1, v18, v16, a4, a5); off_1231008(v18); return v19; }
GD Web Decomp Icon

GD Web Decomp

Raw Source