// // sub_1005492B4 from 0x1005492b4 to 0x1005494c4 (528 bytes) // // 1 xrefs: // > sub_1005492A8 @ 0x1005492b0 // // 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_1005492B4(int a1, char *__s, size_t a3, const char **a4, size_t *a5) { size_t v7; // x27 char *v8; // x22 const char *v9; // x0 const char *v10; // x23 const char *v11; // x25 int v12; // w11 v7 = a3; v8 = __s; *a4 = nullptr; *a5 = 0; if ( !a3 ) v7 = strlen(__s); v9 = (const char *)off_10085DEB0(4 * v7 / 3 + 4); v10 = v9; if ( !v9 ) return 27; v11 = v9; if ( v7 ) { v11 = v9; do { if ( v7 == 1 ) { v7 = 0; v12 = 1; ++v8; } else if ( v7 == 2 ) { v7 = 0; v8 += 2; v12 = 2; } else { v8 += 3; v7 -= 3LL; v12 = 3; } if ( v12 == 1 ) { sub_100562884(v11, 5, "%c%c=="); } else if ( v12 == 2 ) { sub_100562884(v11, 5, "%c%c%c="); } else { sub_100562884(v11, 5, "%c%c%c%c"); } v11 += 4; } while ( v7 ); } *v11 = 0; *a4 = v10; off_10085DEB8(nullptr); *a5 = strlen(v10); return 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source