// // sub_9D4B4 from 0x9d4b4 to 0x9d6e4 (560 bytes) // // 1 xrefs: // > sub_9D010 @ 0x9d02c // // 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_9D4B4(__int64 a1, char *a2, unsigned int a3, __int64 a4) { unsigned int v7; // w21 int v8; // w8 char *v9; // x8 __int16 v10; // w9 __int16 v11; // w11 __int16 v12; // w12 __int16 v13; // w13 char *v15; // x8 __int16 v16; // w9 __int16 v17; // w11 __int16 v18; // w12 __int16 v19; // w13 __int16 v20; // w14 __int16 v21; // w15 __int64 v22; // x0 int v23; // w8 __int64 v24; // x22 __int64 i; // x25 const char *v26; // x8 const char *j; // x23 const char *v28; // x24 void (__fastcall *v29)(__int64, __int64, const char *, const char *, _QWORD, __int64, __int64); // x27 int v30; // w0 unsigned int v31; // [xsp+Ch] [xbp-44h] BYREF sub_8A454(a3, &v31, *(_QWORD *)(a1 + 8)); v7 = sub_FA55C(a1, a1 + 376, a2, v31, 0, 2, 1, 0); if ( (int)v7 <= 0 ) { if ( v7 != -3 ) { if ( v7 == -131 ) return 31; if ( v7 == -139 ) return 38; return 16; } v7 = 0; } v8 = *(_DWORD *)(*(_QWORD *)(a1 + 8) + 12LL); if ( v8 == 8 ) { v15 = &a2[v7]; while ( v15 > a2 ) { v16 = *((_WORD *)a2 + 1); v17 = *((_WORD *)a2 + 3); v18 = *((_WORD *)a2 + 4); v19 = *((_WORD *)a2 + 5); v20 = *((_WORD *)a2 + 7); v21 = *((_WORD *)a2 + 6); *((_WORD *)a2 + 1) = *((_WORD *)a2 + 2); *((_WORD *)a2 + 2) = v16; *((_WORD *)a2 + 3) = v20; *((_WORD *)a2 + 4) = v19; *((_WORD *)a2 + 5) = v21; *((_WORD *)a2 + 6) = v17; *((_WORD *)a2 + 7) = v18; a2 += 16; } } else if ( v8 == 6 ) { v9 = &a2[v7]; while ( v9 > a2 ) { v10 = *((_WORD *)a2 + 1); v11 = *((_WORD *)a2 + 3); v12 = *((_WORD *)a2 + 5); v13 = *((_WORD *)a2 + 4); *((_WORD *)a2 + 1) = *((_WORD *)a2 + 2); *((_WORD *)a2 + 2) = v10; *((_WORD *)a2 + 3) = v12; *((_WORD *)a2 + 4) = v11; *((_WORD *)a2 + 5) = v13; a2 += 12; } } v22 = sub_FA1B0(a1 + 376, 0xFFFFFFFFLL); if ( v22 ) { v23 = *(_DWORD *)(v22 + 16); v24 = v22; if ( v23 ) { for ( i = 0; i < v23; ++i ) { v26 = *(const char **)(*(_QWORD *)v24 + 8 * i); for ( j = v26 + 1; ; ++j ) { if ( !*(j - 1) ) { v28 = "NONAME"; j = *(const char **)(*(_QWORD *)v24 + 8 * i); goto LABEL_24; } if ( *(j - 1) == 61 ) break; } *((_BYTE *)j - 1) = 0; v28 = v26; LABEL_24: v29 = **(void (__fastcall ***)(__int64, __int64, const char *, const char *, _QWORD, __int64, __int64))(a1 + 16); v30 = sub_E3BB0(j); v29(a1, 3, v28, j, (unsigned int)(v30 + 1), 6, 1); v23 = *(_DWORD *)(v24 + 16); } sub_F5858(a1, v24); } } if ( a4 ) sub_9D6E4(v7, a4, *(_QWORD *)(a1 + 8)); return 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source