// // sub_100564A34 from 0x100564a34 to 0x100564de0 (940 bytes) // // 3 xrefs: // > sub_1005644C4 @ 0x100564540 // > sub_1005644C4 @ 0x100564774 // > sub_1005647A8 @ 0x1005648f8 // // 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 // size_t __fastcall sub_100564A34(size_t result, int a2, unsigned __int8 *a3, unsigned __int64 a4) { size_t v7; // x19 const char *v8; // x8 unsigned __int64 v9; // x25 unsigned __int8 *v10; // x8 unsigned int v11; // w22 unsigned int v12; // w23 unsigned int v13; // w8 int v14; // w8 unsigned __int64 v15; // x8 unsigned int v16; // w26 int v17; // w8 unsigned __int64 v18; // x8 unsigned int v19; // w23 __int64 v20; // [xsp+0h] [xbp-50h] v7 = result; if ( !*(_BYTE *)(result + 1320) ) return result; if ( !a2 ) { v9 = a4; goto LABEL_11; } v8 = "SENT"; if ( a2 == 60 ) v8 = "RCVD"; sub_1005524A4(result, "%s IAC SB ", v8); v9 = a4 - 2; if ( a4 < 3 ) { LABEL_11: if ( !v9 ) return sub_1005524A4(v7, "(Empty suboption?)"); goto LABEL_21; } v10 = &a3[a4]; v11 = a3[v9]; v12 = *(v10 - 1); if ( v11 != 255 || v12 != 240 ) { sub_1005524A4(v7, "(terminated by "); if ( v11 > 0x27 && v11 < 0xEC ) sub_1005524A4(v7, "%u "); else sub_1005524A4(v7, "%s "); if ( v12 > 0x27 && v12 < 0xEC ) sub_1005524A4(v7, "%d"); else sub_1005524A4(v7, "%s"); sub_1005524A4(v7, ", not IAC SE!) "); } LABEL_21: v13 = *a3; if ( v13 > 0x27 ) { result = sub_1005524A4(v7, "%d (unknown)"); } else if ( ((1LL << v13) & 0x8881000000LL) != 0 ) { result = sub_1005524A4(v7, "%s"); } else { result = sub_1005524A4(v7, "%s (unsupported)"); } if ( *a3 == 31 ) { if ( v9 >= 5 ) result = sub_1005524A4(v7, "Width: %hu ; Height: %hu"); } else { switch ( a3[1] ) { case 0u: result = sub_1005524A4(v7, " IS"); break; case 1u: result = sub_1005524A4(v7, " SEND"); break; case 2u: result = sub_1005524A4(v7, " INFO/REPLY"); break; case 3u: result = sub_1005524A4(v7, " NAME"); break; default: break; } v14 = *a3; if ( v14 == 24 || v14 == 35 ) { a3[v9] = 0; result = sub_1005524A4(v7, " \"%s\""); } else if ( v14 == 39 ) { if ( !a3[1] ) { result = sub_1005524A4(v7, " "); v15 = 3; if ( v9 >= 4 ) { v16 = 4; do { v17 = a3[v15]; if ( v17 == 1 ) { result = sub_1005524A4(v7, " = ", v20); } else if ( v17 ) { result = sub_1005524A4(v7, "%c"); } else { result = sub_1005524A4(v7, ", "); } v15 = v16++; } while ( v15 < v9 ); } } } else { v18 = 2; if ( v9 > 2 ) { v19 = 3; do { result = sub_1005524A4(v7, " %.2x", a3[v18]); v18 = v19++; } while ( v18 < v9 ); } } } if ( a2 ) return sub_1005524A4(v7, "\n"); return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source