{"type": "func", "start": 6442461536, "end": 6442461696, "name": "cocos2d::extension::AssetsManager::deleteVersion", "pseudocode": "// \n// cocos2d::extension::AssetsManager::deleteVersion from 0x180002960 to 0x180002a00 (160 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x18002fdf8\n// > <???> @ 0x180049168\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\n// Hidden C++ exception states: #wind=1\nvoid __fastcall cocos2d::extension::AssetsManager::deleteVersion(cocos2d::extension::AssetsManager *this)\n{\n  __int64 v1; // rax\n  void *v2; // rcx\n  void *Block[2]; // [rsp+20h] [rbp-38h] BYREF\n  __int64 v4; // [rsp+30h] [rbp-28h]\n  unsigned __int64 v5; // [rsp+38h] [rbp-20h]\n\n  *(_OWORD *)Block = 0;\n  v4 = 0;\n  v5 = 15;\n  LOBYTE(Block[0]) = 0;\n  v1 = cocos2d::CCUserDefault::sharedUserDefault(this);\n  cocos2d::CCUserDefault::setStringForKey(v1, \"current-version-code\", Block);\n  if ( v5 > 0xF )\n  {\n    v2 = Block[0];\n    if ( v5 + 1 >= 0x1000 )\n    {\n      v2 = *((void **)Block[0] - 1);\n      if ( (unsigned __int64)((char *)Block[0] - (char *)v2 - 8) > 0x1F )\n        invalid_parameter_noinfo_noreturn();\n    }\n    j_j_free(v2);\n  }\n}", "assembly": "; \n; cocos2d::extension::AssetsManager::deleteVersion from 0x180002960 to 0x180002a00 (160 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x18002fdf8\n; > <???> @ 0x180049168\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nsub     rsp, 58h                                                       ; +0x0, 0x180002960\nmov     rax, cs:__security_cookie                                      ; +0x4, 0x180002964\nxor     rax, rsp                                                       ; +0xb, 0x18000296b\nmov     [rsp+58h+var_18], rax                                          ; +0xe, 0x18000296e\nxorps   xmm0, xmm0                                                     ; +0x13, 0x180002973\nmovups  xmmword ptr [rsp+58h+Block], xmm0                              ; +0x16, 0x180002976\nmov     [rsp+58h+var_28], 0                                            ; +0x1b, 0x18000297b\nmov     [rsp+58h+var_20], 0Fh                                          ; +0x24, 0x180002984\nmov     byte ptr [rsp+58h+Block], 0                                    ; +0x2d, 0x18000298d\ncall    cs:?sharedUserDefault@CCUserDefault@cocos2d@@SAPEAV12@XZ; cocos2d::CCUserDefault::sharedUserDefault(void) ; +0x32, 0x180002992\nmov     rcx, rax                                                       ; +0x38, 0x180002998\nlea     r8, [rsp+58h+Block]                                            ; +0x3b, 0x18000299b\nlea     rdx, aCurrentVersion; \"current-version-code\"                   ; +0x40, 0x1800029a0\ncall    cs:?setStringForKey@CCUserDefault@cocos2d@@QEAAXPEBDAEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z; cocos2d::CCUserDefault::setStringForKey(char const *,std::string const &) ; +0x47, 0x1800029a7\nnop                                                                    ; +0x4d, 0x1800029ad\nmov     rdx, [rsp+58h+var_20]                                          ; +0x4e, 0x1800029ae\ncmp     rdx, 0Fh                                                       ; +0x53, 0x1800029b3\njbe     short loc_1800029EE                                            ; +0x57, 0x1800029b7\ninc     rdx                                                            ; +0x59, 0x1800029b9\nmov     rcx, [rsp+58h+Block]; Block                                    ; +0x5c, 0x1800029bc\nmov     rax, rcx                                                       ; +0x61, 0x1800029c1\ncmp     rdx, 1000h                                                     ; +0x64, 0x1800029c4\njb      short loc_1800029E9                                            ; +0x6b, 0x1800029cb\nadd     rdx, 27h ; '''                                                 ; +0x6d, 0x1800029cd\nmov     rcx, [rcx-8]                                                   ; +0x71, 0x1800029d1\nsub     rax, rcx                                                       ; +0x75, 0x1800029d5\nadd     rax, 0FFFFFFFFFFFFFFF8h                                        ; +0x78, 0x1800029d8\ncmp     rax, 1Fh                                                       ; +0x7c, 0x1800029dc\njbe     short loc_1800029E9                                            ; +0x80, 0x1800029e0\ncall    cs:_invalid_parameter_noinfo_noreturn                          ; +0x82, 0x1800029e2\ndb 0CCh                                                                ; +0x88, 0x1800029e8\ncall    j_j_free                                                       ; +0x89, 0x1800029e9\nmov     rcx, [rsp+58h+var_18]                                          ; +0x8e, 0x1800029ee\nxor     rcx, rsp; StackCookie                                          ; +0x93, 0x1800029f3\ncall    __security_check_cookie                                        ; +0x96, 0x1800029f6\nadd     rsp, 58h                                                       ; +0x9b, 0x1800029fb\nretn                                                                   ; +0x9f, 0x1800029ff", "xrefs": ["<???> @ 0x18002fdf8", "<???> @ 0x180049168"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}