// // sub_180018420 from 0x180018420 to 0x1800184a1 (129 bytes) // // 4 xrefs: // > cocos2d::extension::CCHttpClient::~CCHttpClient @ 0x180017764 // > int `std::locale::_Locimp::_Makeloc @ 0x180020da5 // > @ 0x18002f106 // > @ 0x18004aad0 // // 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 // void __fastcall sub_180018420(__int64 a1) { _QWORD *v2; // rcx _QWORD *v3; // rdx _QWORD *i; // rax v2 = *(_QWORD **)a1; if ( v2 ) { v3 = *(_QWORD **)(a1 + 8); for ( i = v2; i != v3; i += 2 ) { if ( *((_DWORD *)i + 2) ) terminate(); } if ( ((*(_QWORD *)(a1 + 16) - (_QWORD)v2) & 0xFFFFFFFFFFFFFFF0uLL) >= 0x1000 ) { if ( (unsigned __int64)v2 - *(v2 - 1) - 8 > 0x1F ) invalid_parameter_noinfo_noreturn(); v2 = (_QWORD *)*(v2 - 1); } j_j_free(v2); *(_QWORD *)a1 = 0; *(_QWORD *)(a1 + 8) = 0; *(_QWORD *)(a1 + 16) = 0; } }