{"type": "func", "start": 5369553568, "end": 5369553915, "name": "AutoBackupOptionsPopup::valueDidChange", "pseudocode": "// \n// AutoBackupOptionsPopup::valueDidChange from 0x1400ce2a0 to 0x1400ce3fb (347 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x140726148\n// > <???> @ 0x14091412c\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 11:26:24 +0000\n// \n\n// Hidden C++ exception states: #wind=2\nvoid __fastcall AutoBackupOptionsPopup::valueDidChange(__int64 a1, int a2, float a3)\n{\n  int v3; // edi\n  __int64 v4; // rbx\n  __int64 v5; // rbx\n  struct cocos2d::CCString *v6; // rax\n  void *v7; // rcx\n  void *v8; // [rsp+30h] [rbp-38h]\n  void *Block[2]; // [rsp+38h] [rbp-30h] BYREF\n  __int64 v10; // [rsp+48h] [rbp-20h]\n  unsigned __int64 v11; // [rsp+50h] [rbp-18h]\n\n  if ( a2 == -1 )\n  {\n    v3 = (int)a3;\n    if ( (int)a3 > 1000 )\n      v3 = 1000;\n    if ( v3 < 0 )\n      v3 = 0;\n    v4 = qword_14090BFD0;\n    if ( !qword_14090BFD0 )\n    {\n      v8 = operator new(0x6E8u);\n      qword_14090BFD0 = GameManager::GameManager(v8);\n      (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);\n      v4 = qword_14090BFD0;\n    }\n    *(_OWORD *)Block = 0;\n    v10 = 3;\n    v11 = 15;\n    LODWORD(Block[0]) = 6256231;\n    sub_140044D80(Block, \"0236\", 4u);\n    v5 = *(_QWORD *)(v4 + 432);\n    v6 = cocos2d::CCString::createWithFormat((const char *)&word_1406ED6F8, (unsigned int)(v3 + 1));\n    cocos2d::CCDictionary::setObject(v5, v6, Block);\n    if ( v11 > 0xF )\n    {\n      v7 = Block[0];\n      if ( v11 + 1 >= 0x1000 )\n      {\n        v7 = *((void **)Block[0] - 1);\n        if ( (unsigned __int64)((char *)Block[0] - (char *)v7 - 8) > 0x1F )\n          invoke_watson(nullptr, nullptr, nullptr, 0, 0);\n      }\n      j_j_free(v7);\n    }\n  }\n}", "assembly": "; \n; AutoBackupOptionsPopup::valueDidChange from 0x1400ce2a0 to 0x1400ce3fb (347 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x140726148\n; > <???> @ 0x14091412c\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 11:26:24 +0000\n; \ncmp     edx, 0FFFFFFFFh                                                ; +0x0, 0x1400ce2a0\njnz     locret_1400CE3FA                                               ; +0x3, 0x1400ce2a3\nmov     [rsp+arg_0], rbx                                               ; +0x9, 0x1400ce2a9\nmov     [rsp+arg_8], rsi                                               ; +0xe, 0x1400ce2ae\npush    rdi                                                            ; +0x13, 0x1400ce2b3\nsub     rsp, 60h                                                       ; +0x14, 0x1400ce2b4\nmov     rax, cs:__security_cookie                                      ; +0x18, 0x1400ce2b8\nxor     rax, rsp                                                       ; +0x1f, 0x1400ce2bf\nmov     [rsp+68h+var_10], rax                                          ; +0x22, 0x1400ce2c2\ncvttss2si edi, xmm2                                                    ; +0x27, 0x1400ce2c7\nmov     eax, 3E8h                                                      ; +0x2b, 0x1400ce2cb\ncmp     edi, eax                                                       ; +0x30, 0x1400ce2d0\ncmovg   edi, eax                                                       ; +0x32, 0x1400ce2d2\nxor     esi, esi                                                       ; +0x35, 0x1400ce2d5\ntest    edi, edi                                                       ; +0x37, 0x1400ce2d7\ncmovs   edi, esi                                                       ; +0x39, 0x1400ce2d9\nmov     rbx, cs:qword_14090BFD0                                        ; +0x3c, 0x1400ce2dc\ntest    rbx, rbx                                                       ; +0x43, 0x1400ce2e3\njnz     short loc_1400CE31A                                            ; +0x46, 0x1400ce2e6\nmov     ecx, 6E8h; Size                                                ; +0x48, 0x1400ce2e8\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x4d, 0x1400ce2ed\nmov     [rsp+68h+var_38], rax                                          ; +0x52, 0x1400ce2f2\nmov     rcx, rax                                                       ; +0x57, 0x1400ce2f7\ncall    GameManager__GameManager                                       ; +0x5a, 0x1400ce2fa\nnop                                                                    ; +0x5f, 0x1400ce2ff\nmov     cs:qword_14090BFD0, rax                                        ; +0x60, 0x1400ce300\nmov     rcx, [rax]                                                     ; +0x67, 0x1400ce307\nmov     rdx, [rcx+48h]                                                 ; +0x6a, 0x1400ce30a\nmov     rcx, rax                                                       ; +0x6e, 0x1400ce30e\ncall    rdx                                                            ; +0x71, 0x1400ce311\nmov     rbx, cs:qword_14090BFD0                                        ; +0x73, 0x1400ce313\nxorps   xmm0, xmm0                                                     ; +0x7a, 0x1400ce31a\nmovups  xmmword ptr [rsp+68h+Block], xmm0                              ; +0x7d, 0x1400ce31d\nmov     [rsp+68h+var_20], 3                                            ; +0x82, 0x1400ce322\nmov     [rsp+68h+var_18], 0Fh                                          ; +0x8b, 0x1400ce32b\nmov     eax, cs:dword_140757618                                        ; +0x94, 0x1400ce334\nmov     word ptr [rsp+68h+Block], ax                                   ; +0x9a, 0x1400ce33a\nmovzx   eax, byte ptr cs:dword_140757618+2                             ; +0x9f, 0x1400ce33f\nmov     byte ptr [rsp+68h+Block+2], al                                 ; +0xa6, 0x1400ce346\nmov     byte ptr [rsp+68h+Block+3], 0                                  ; +0xaa, 0x1400ce34a\nmov     r8d, 4; Size                                                   ; +0xaf, 0x1400ce34f\nlea     rdx, a0236; \"0236\"                                             ; +0xb5, 0x1400ce355\nlea     rcx, [rsp+68h+Block]; Src                                      ; +0xbc, 0x1400ce35c\ncall    sub_140044D80                                                  ; +0xc1, 0x1400ce361\nmov     rbx, [rbx+1B0h]                                                ; +0xc6, 0x1400ce366\nlea     edx, [rdi+1]                                                   ; +0xcd, 0x1400ce36d\nlea     rcx, word_1406ED6F8                                            ; +0xd0, 0x1400ce370\ncall    cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0xd7, 0x1400ce377\nmov     rdx, rax                                                       ; +0xdd, 0x1400ce37d\nlea     r8, [rsp+68h+Block]                                            ; +0xe0, 0x1400ce380\nmov     rcx, rbx                                                       ; +0xe5, 0x1400ce385\ncall    cs:?setObject@CCDictionary@cocos2d@@QEAAXPEAVCCObject@2@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z; cocos2d::CCDictionary::setObject(cocos2d::CCObject *,std::string const &) ; +0xe8, 0x1400ce388\nnop                                                                    ; +0xee, 0x1400ce38e\nmov     rdx, [rsp+68h+var_18]                                          ; +0xef, 0x1400ce38f\ncmp     rdx, 0Fh                                                       ; +0xf4, 0x1400ce394\njbe     short loc_1400CE3DE                                            ; +0xf8, 0x1400ce398\ninc     rdx                                                            ; +0xfa, 0x1400ce39a\nmov     rcx, [rsp+68h+Block]; Block                                    ; +0xfd, 0x1400ce39d\nmov     rax, rcx                                                       ; +0x102, 0x1400ce3a2\ncmp     rdx, 1000h                                                     ; +0x105, 0x1400ce3a5\njb      short loc_1400CE3D9                                            ; +0x10c, 0x1400ce3ac\nadd     rdx, 27h ; '''                                                 ; +0x10e, 0x1400ce3ae\nmov     rcx, [rcx-8]                                                   ; +0x112, 0x1400ce3b2\nsub     rax, rcx                                                       ; +0x116, 0x1400ce3b6\nsub     rax, 8                                                         ; +0x119, 0x1400ce3b9\ncmp     rax, 1Fh                                                       ; +0x11d, 0x1400ce3bd\njbe     short loc_1400CE3D9                                            ; +0x121, 0x1400ce3c1\nmov     [rsp+68h+Reserved], rsi; Reserved                              ; +0x123, 0x1400ce3c3\nxor     r9d, r9d; LineNo                                               ; +0x128, 0x1400ce3c8\nxor     r8d, r8d; FileName                                             ; +0x12b, 0x1400ce3cb\nxor     edx, edx; FunctionName                                         ; +0x12e, 0x1400ce3ce\nxor     ecx, ecx; Expression                                           ; +0x130, 0x1400ce3d0\ncall    cs:_invoke_watson                                              ; +0x132, 0x1400ce3d2\ndb 0CCh                                                                ; +0x138, 0x1400ce3d8\ncall    j_j_free                                                       ; +0x139, 0x1400ce3d9\nmov     rcx, [rsp+68h+var_10]                                          ; +0x13e, 0x1400ce3de\nxor     rcx, rsp; StackCookie                                          ; +0x143, 0x1400ce3e3\ncall    __security_check_cookie                                        ; +0x146, 0x1400ce3e6\nmov     rbx, [rsp+68h+arg_0]                                           ; +0x14b, 0x1400ce3eb\nmov     rsi, [rsp+68h+arg_8]                                           ; +0x150, 0x1400ce3f0\nadd     rsp, 60h                                                       ; +0x155, 0x1400ce3f5\npop     rdi                                                            ; +0x159, 0x1400ce3f9\nretn                                                                   ; +0x15a, 0x1400ce3fa", "xrefs": ["<???> @ 0x140726148", "<???> @ 0x14091412c"], "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"}