// // cocos2d::extension::AssetsManager::checkUpdate from 0x1800017a0 to 0x1800019b6 (534 bytes) // // 3 xrefs: // > @ 0x1800259e0 // > @ 0x180032408 // > @ 0x18004b078 // // This function is hookable on this platform (idp: pc, 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 12:15:34 +0000 // // Hidden C++ exception states: #wind=1 char __fastcall cocos2d::extension::AssetsManager::checkUpdate(cocos2d::extension::AssetsManager *this) { __int64 v2; // rax _BYTE *v3; // rax _QWORD *v4; // rax __int64 v6; // rax char *v7; // rdx void **v8; // rcx _QWORD *v9; // rax char v10; // bl __int64 v11; // [rsp+20h] [rbp-38h] __int64 v12; // [rsp+20h] [rbp-38h] void *Buf1[2]; // [rsp+28h] [rbp-30h] BYREF size_t Size; // [rsp+38h] [rbp-20h] unsigned __int64 v15; // [rsp+40h] [rbp-18h] if ( !*((_QWORD *)this + 15) ) return 0; v2 = curl_easy_init(); *((_QWORD *)this + 21) = v2; if ( !v2 ) return 0; *((_QWORD *)this + 7) = 0; v3 = (char *)this + 40; if ( *((_QWORD *)this + 8) > 0xFu ) v3 = *((_BYTE **)this + 5); *v3 = 0; curl_easy_setopt(*((_QWORD *)this + 21), 10002); curl_easy_setopt(*((_QWORD *)this + 21), 64); curl_easy_setopt(*((_QWORD *)this + 21), 20011); curl_easy_setopt(*((_QWORD *)this + 21), 10001); if ( *((_DWORD *)this + 48) ) curl_easy_setopt(*((_QWORD *)this + 21), 78); if ( (unsigned int)curl_easy_perform(*((_QWORD *)this + 21)) ) { v11 = sub_18001F040(0x10u); *(_QWORD *)(v11 + 8) = 0; *(_DWORD *)v11 = 3; v4 = (_QWORD *)sub_18001F040(0x10u); *v4 = 1; v4[1] = this; *(_QWORD *)(v11 + 8) = v4; sub_180002890(*((_QWORD *)this + 22), v11); curl_easy_cleanup(*((_QWORD *)this + 21)); return 0; } v6 = cocos2d::CCUserDefault::sharedUserDefault(); cocos2d::CCUserDefault::getStringForKey(v6, Buf1, "current-version-code"); v7 = (char *)this + 40; if ( *((_QWORD *)this + 8) > 0xFu ) v7 = *((char **)this + 5); v8 = Buf1; if ( v15 > 0xF ) v8 = (void **)Buf1[0]; if ( Size == *((_QWORD *)this + 7) && (!Size || !memcmp(v8, v7, Size)) ) { v12 = sub_18001F040(0x10u); *(_QWORD *)(v12 + 8) = 0; *(_DWORD *)v12 = 3; v9 = (_QWORD *)sub_18001F040(0x10u); *v9 = 2; v9[1] = this; *(_QWORD *)(v12 + 8) = v9; sub_180002890(*((_QWORD *)this + 22), v12); cocos2d::extension::AssetsManager::setSearchPath(this); v10 = 0; } else { v10 = 1; } sub_180003700(Buf1); return v10; }