// // sub_1004B3C48 from 0x1004b3c48 to 0x1004b3d58 (272 bytes) // // 1 xrefs: // > sub_1004AB2B8 @ 0x1004ab544 // // 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_1004B3C48(__int64 a1, int a2, int *a3, int *a4) { __int64 v8; // x23 __int64 v9; // x24 int v10; // w8 __int64 v11; // x8 int v13; // w8 if ( a2 < 1 ) return 31; v8 = 0; v9 = (unsigned int)a2; while ( (*(unsigned __int8 *)(a1 + v8) | 0x20) != 0x20 ) { if ( a2 == ++v8 ) return 31; } *(_BYTE *)(a1 + v8) = 0; if ( (unsigned int)sub_1004C6FC4(a1, "HTTP/1.0") ) { if ( (unsigned int)sub_1004C6FC4(a1, "HTTP/1.1") ) { if ( (unsigned int)sub_1004C6FC4(a1, "ICY") ) return 31; v10 = 2; } else { v10 = 1; } } else { v10 = 0; } *a3 = v10; if ( (int)v8 + 1 >= a2 ) return 31; v11 = v8 + 1; while ( (*(unsigned __int8 *)(a1 + v11) | 0x20) != 0x20 ) { if ( v9 == ++v11 ) return 31; } *(_BYTE *)(a1 + (unsigned int)v11) = 0; v13 = atoi((const char *)(a1 + v8 + 1)); *a4 = v13; return 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source