// // sub_63B690 from 0x63b690 to 0x63b7aa (282 bytes) // // 1 xrefs: // > sub_616E88 @ 0x617ec6 // // 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_63B690(int *a1, int a2) { int v2; // r6 size_t v4; // r8 int result; // r0 int v6; // r4 const char *v7; // r5 int v8; // r3 int v9; // t1 const char *v10; // r9 size_t v11; // r0 int v12; // r3 const char *v13; // r8 int v14; // r3 int v15; // t1 bool v16; // zf size_t v17; // r0 void *v18; // r0 int v19; // [sp+4h] [bp-8h] BYREF v2 = *a1; v19 = 0; v4 = sub_62AC7C("CSeq:", (_BYTE *)a2, 5); if ( v4 ) { if ( sscanf((const char *)(a2 + 4), ": %ld", &v19) == 1 ) { v12 = v19; *(_DWORD *)(*(_DWORD *)(v2 + 332) + 100) = v19; *(_DWORD *)(v2 + 34704) = v12; return 0; } else { sub_6180F8(v2, "Unable to read the CSeq header: [%s]", (const char *)a2); return 85; } } else { result = sub_62AC7C("Session:", (_BYTE *)a2, 8); if ( result ) { v6 = *(unsigned __int8 *)(a2 + 8); v7 = (const char *)(a2 + 8); if ( v6 ) { v8 = ctype_ + v6; while ( (*(_BYTE *)(v8 + 1) & 8) != 0 ) { v9 = *(unsigned __int8 *)++v7; v6 = v9; v8 = ctype_ + v9; if ( !v9 ) goto LABEL_10; } v10 = *(const char **)(v2 + 1148); if ( v10 ) { v11 = strlen(*(const char **)(v2 + 1148)); result = strncmp(v7, v10, v11); if ( result ) { sub_6180F8(v2, "Got RTSP Session ID Line [%s], but wanted ID [%s]", v7, v10); return 86; } } else { if ( v6 == 59 ) { v17 = 1; } else { v13 = v7; do { v15 = *(unsigned __int8 *)++v13; v14 = v15; v16 = v15 == 59; if ( v15 != 59 ) v16 = v14 == 0; } while ( !v16 && (*(_BYTE *)(ctype_ + v14 + 1) & 8) == 0 ); v4 = v13 - v7; v17 = v4 + 1; } v18 = off_ABAEAC(v17); *(_DWORD *)(v2 + 1148) = v18; if ( v18 ) { memcpy(v18, v7, v4); *(_BYTE *)(*(_DWORD *)(v2 + 1148) + v4) = 0; return 0; } else { return 27; } } } else { LABEL_10: sub_6180F8(v2, "Got a blank Session ID"); return 0; } } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source