// // sub_1004364A8 from 0x1004364a8 to 0x1004365fc (340 bytes) // // 1 xrefs: // > sub_1004364A4 @ 0x1004364a4 // // 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_1004364A8(_BYTE *a1, int a2, unsigned int *a3, int a4, int a5, int a6, int a7, int a8) { __int64 v12; // x22 _WORD *v13; // x0 size_t v14; // x1 unsigned int v15; // w8 int v16; // w0 unsigned __int64 v17; // x25 __int64 v18; // x8 __int64 v19; // x22 _WORD *v20; // x0 size_t v21; // x1 unsigned int v22; // w8 int v24; // w0 if ( a2 < 1 ) { v12 = 0; if ( !a4 ) goto LABEL_21; } else { *a1 = 123; v12 = 1; if ( !a4 ) goto LABEL_21; } if ( (int)v12 < a2 ) { v13 = &a1[(unsigned int)v12]; v14 = (unsigned int)(a2 - v12); v15 = *a3; if ( (int)v14 < 2 || v15 > 9 ) { v16 = sub_1004C7414((int)v13, v14, (int)"%u", a4, a5, a6, a7, a8, *a3); } else { *v13 = (unsigned __int8)(v15 + 48); v16 = 1; } v12 = (unsigned int)(v16 + v12); if ( a4 >= 2 && (int)v12 < a2 ) { v17 = 1; do { v18 = (int)v12; v19 = (int)v12 + 1LL; a1[v18] = 44; v20 = &a1[v19]; v21 = (unsigned int)(a2 - v19); v22 = a3[v17]; if ( (int)v21 < 2 || v22 > 9 ) { v24 = sub_1004C7414((int)v20, v21, (int)"%u", a4, a5, a6, a7, a8, a3[v17]); } else { *v20 = (unsigned __int8)(v22 + 48); v24 = 1; } v12 = (unsigned int)(v24 + v19); ++v17; } while ( v17 < (unsigned int)a4 && (int)v12 < a2 ); } } LABEL_21: if ( (int)v12 < a2 ) { a1[(int)v12] = 125; return (unsigned int)(v12 + 1); } return v12; }
GD Web Decomp Icon

GD Web Decomp

Raw Source