// // sub_60FC0C from 0x60fc0c to 0x60fd52 (326 bytes) // // 12 xrefs: // > sub_614770 @ 0x614932 // > sub_614770 @ 0x614a42 // > sub_63FF34 @ 0x63ffc8 // > sub_63FFE8 @ 0x640028 // > sub_640044 @ 0x640084 // > sub_6400CC @ 0x640194 // > sub_6402D4 @ 0x640800 // > sub_640C38 @ 0x640ed0 // > sub_641154 @ 0x6411d6 // > sub_6411F0 @ 0x641b0e // > sub_641B74 @ 0x641baa // > sub_645D44 @ 0x645dfc // // 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 // int __fastcall sub_60FC0C(int a1, char *a2, size_t a3, const char **a4, size_t *a5) { size_t v5; // r7 char *v7; // r9 const char *v9; // r0 const char *v10; // r8 unsigned int v11; // r4 const char *v12; // r0 int v13; // r12 unsigned int v14; // r3 unsigned int v15; // r5 bool v16; // zf int v17; // lr unsigned int v18; // r4 const char *v19; // r5 const char *v20; // [sp+14h] [bp-8h] v5 = a3; v7 = a2; *a4 = nullptr; *a5 = 0; if ( !a3 ) v5 = strlen(a2); if ( v5 >= 0x40000000 ) return 27; v9 = (const char *)off_ABAEAC(4 * v5 / 3 + 4); v20 = v9; if ( !v9 ) return 27; if ( v5 ) { v10 = v9; while ( 1 ) { v11 = (unsigned __int8)*v7; v12 = v10; v13 = v11 & 3; v14 = v11 >> 2; if ( v5 == 1 ) { sub_624640( v10, 5, "%c%c==", (unsigned __int8)aAbcdefghijklmn_5[v11 >> 2], (unsigned __int8)aAbcdefghijklmn_5[16 * (v11 & 3)]); goto LABEL_14; } v15 = (unsigned __int8)v7[1]; v16 = v5 == 2; v5 -= 3; v17 = v15 & 0xF; if ( v16 ) break; v18 = (unsigned __int8)v7[2]; v10 += 4; v7 += 3; sub_624640( v12, 5, "%c%c%c%c", (unsigned __int8)aAbcdefghijklmn_5[v14], (unsigned __int8)aAbcdefghijklmn_5[(v15 >> 4) | (16 * v13)], (unsigned __int8)aAbcdefghijklmn_5[(v18 >> 6) | (4 * v17)], (unsigned __int8)aAbcdefghijklmn_5[v18 & 0x3F]); if ( !v5 ) goto LABEL_11; } sub_624640( v10, 5, "%c%c%c=", (unsigned __int8)aAbcdefghijklmn_5[v11 >> 2], (unsigned __int8)aAbcdefghijklmn_5[(v15 >> 4) | (16 * v13)], (unsigned __int8)aAbcdefghijklmn_5[4 * v17]); LABEL_14: v10 += 4; LABEL_11: v19 = v20; } else { v10 = v9; v19 = v9; } *v10 = 0; *a4 = v19; off_ABAEB0(nullptr); *a5 = strlen(v19); return 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source