{"type": "func", "start": 6442460784, "end": 6442460959, "name": "cocos2d::extension::AssetsManager::deleteVersion", "pseudocode": "// \n// cocos2d::extension::AssetsManager::deleteVersion from 0x180002670 to 0x18000271f (175 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x180032408\n// > <???> @ 0x18004b138\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 12:15:34 +0000\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+30h] [rbp-38h] BYREF\n  __m128i si128; // [rsp+40h] [rbp-28h]\n\n  *(_OWORD *)Block = 0;\n  si128 = _mm_load_si128((const __m128i *)&xmmword_18002BCB0);\n  LOBYTE(Block[0]) = 0;\n  v1 = cocos2d::CCUserDefault::sharedUserDefault(this);\n  cocos2d::CCUserDefault::setStringForKey(v1, \"current-version-code\", Block);\n  if ( si128.m128i_i64[1] > 0xFuLL )\n  {\n    v2 = Block[0];\n    if ( (unsigned __int64)(si128.m128i_i64[1] + 1) >= 0x1000 )\n    {\n      v2 = *((void **)Block[0] - 1);\n      if ( (unsigned __int64)((char *)Block[0] - (char *)v2 - 8) > 0x1F )\n        invoke_watson(nullptr, nullptr, nullptr, 0, 0);\n    }\n    j_j_free(v2);\n  }\n}", "assembly": "; \n; cocos2d::extension::AssetsManager::deleteVersion from 0x180002670 to 0x18000271f (175 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x180032408\n; > <???> @ 0x18004b138\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 12:15:34 +0000\n; \nsub     rsp, 68h                                                       ; +0x0, 0x180002670\nmov     rax, cs:__security_cookie                                      ; +0x4, 0x180002674\nxor     rax, rsp                                                       ; +0xb, 0x18000267b\nmov     [rsp+68h+var_18], rax                                          ; +0xe, 0x18000267e\nxorps   xmm0, xmm0                                                     ; +0x13, 0x180002683\nmovups  xmmword ptr [rsp+68h+Block], xmm0                              ; +0x16, 0x180002686\nmovdqa  xmm1, cs:xmmword_18002BCB0                                     ; +0x1b, 0x18000268b\nmovdqu  [rsp+68h+var_28], xmm1                                         ; +0x23, 0x180002693\nmov     byte ptr [rsp+68h+Block], 0                                    ; +0x29, 0x180002699\ncall    cs:?sharedUserDefault@CCUserDefault@cocos2d@@SAPEAV12@XZ; cocos2d::CCUserDefault::sharedUserDefault(void) ; +0x2e, 0x18000269e\nmov     rcx, rax                                                       ; +0x34, 0x1800026a4\nlea     r8, [rsp+68h+Block]                                            ; +0x37, 0x1800026a7\nlea     rdx, aCurrentVersion; \"current-version-code\"                   ; +0x3c, 0x1800026ac\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 &) ; +0x43, 0x1800026b3\nnop                                                                    ; +0x49, 0x1800026b9\nmov     rdx, qword ptr [rsp+68h+var_28+8]                              ; +0x4a, 0x1800026ba\ncmp     rdx, 0Fh                                                       ; +0x4f, 0x1800026bf\njbe     short loc_18000270D                                            ; +0x53, 0x1800026c3\ninc     rdx                                                            ; +0x55, 0x1800026c5\nmov     rcx, [rsp+68h+Block]; Block                                    ; +0x58, 0x1800026c8\nmov     rax, rcx                                                       ; +0x5d, 0x1800026cd\ncmp     rdx, 1000h                                                     ; +0x60, 0x1800026d0\njb      short loc_180002708                                            ; +0x67, 0x1800026d7\nadd     rdx, 27h ; '''                                                 ; +0x69, 0x1800026d9\nmov     rcx, [rcx-8]                                                   ; +0x6d, 0x1800026dd\nsub     rax, rcx                                                       ; +0x71, 0x1800026e1\nsub     rax, 8                                                         ; +0x74, 0x1800026e4\ncmp     rax, 1Fh                                                       ; +0x78, 0x1800026e8\njbe     short loc_180002708                                            ; +0x7c, 0x1800026ec\nmov     [rsp+68h+Reserved], 0; Reserved                                ; +0x7e, 0x1800026ee\nxor     r9d, r9d; LineNo                                               ; +0x87, 0x1800026f7\nxor     r8d, r8d; FileName                                             ; +0x8a, 0x1800026fa\nxor     edx, edx; FunctionName                                         ; +0x8d, 0x1800026fd\nxor     ecx, ecx; Expression                                           ; +0x8f, 0x1800026ff\ncall    cs:_invoke_watson                                              ; +0x91, 0x180002701\nalign 8                                                                ; +0x97, 0x180002707\ncall    j_j_free                                                       ; +0x98, 0x180002708\nmov     rcx, [rsp+68h+var_18]                                          ; +0x9d, 0x18000270d\nxor     rcx, rsp; StackCookie                                          ; +0xa2, 0x180002712\ncall    __security_check_cookie                                        ; +0xa5, 0x180002715\nadd     rsp, 68h                                                       ; +0xaa, 0x18000271a\nretn                                                                   ; +0xae, 0x18000271e", "xrefs": ["<???> @ 0x180032408", "<???> @ 0x18004b138"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}