// // sub_1005D9DB0 from 0x1005d9db0 to 0x1005d9ec0 (272 bytes) // // 1 xrefs: // > sub_1005D1420 @ 0x1005d16ac // // This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 11:09:36 +0000 // __int64 __fastcall sub_1005D9DB0(__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_1005ED12C(a1, "HTTP/1.0") ) { if ( (unsigned int)sub_1005ED12C(a1, "HTTP/1.1") ) { if ( (unsigned int)sub_1005ED12C(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