{"type": "func", "start": 5371447472, "end": 5371447785, "name": "SetFolderPopup::valueChanged", "pseudocode": "// \n// SetFolderPopup::valueChanged from 0x14029c8b0 to 0x14029c9e9 (313 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0x140574f00\n// > <???> @ 0x1406d1e2c\n// > <???> @ 0x1406d1e38\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=4\nvoid SetFolderPopup::valueChanged(SetFolderPopup *a1)\n{\n  __int64 v2; // rcx\n  _QWORD *FolderName; // rax\n  size_t v4; // r8\n  void **v5; // rdx\n  void *v6; // rcx\n  void *v7; // [rsp+20h] [rbp-58h]\n  void *Block[2]; // [rsp+28h] [rbp-50h] BYREF\n  __int64 v9; // [rsp+38h] [rbp-40h]\n  unsigned __int64 v10; // [rsp+40h] [rbp-38h]\n  _QWORD v11[4]; // [rsp+48h] [rbp-30h] BYREF\n\n  if ( a1->m_titleLabel )\n  {\n    v2 = qword_1406C2EC0;\n    if ( !qword_1406C2EC0 )\n    {\n      v7 = operator new(0x3D0u);\n      qword_1406C2EC0 = sub_140141280((__int64)v7);\n      (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EC0 + 72LL))(qword_1406C2EC0);\n      v2 = qword_1406C2EC0;\n    }\n    FolderName = GameLevelManager::getFolderName(v2, v11, a1->m_value, a1->m_isCreated);\n    if ( FolderName[3] > 0xFu )\n      FolderName = (_QWORD *)*FolderName;\n    *(_OWORD *)Block = 0;\n    v9 = 0;\n    v10 = 0;\n    v4 = -1;\n    do\n      ++v4;\n    while ( *((_BYTE *)FolderName + v4) );\n    sub_14003A930(Block, FolderName, v4);\n    sub_14003A830((__int64)v11);\n    v5 = Block;\n    if ( v10 > 0xF )\n      v5 = (void **)Block[0];\n    a1->m_titleLabel->setString(&a1->m_titleLabel->cocos2d::CCLabelProtocol, (const char *)v5);\n    if ( v10 > 0xF )\n    {\n      v6 = Block[0];\n      if ( v10 + 1 >= 0x1000 )\n      {\n        v6 = *((void **)Block[0] - 1);\n        if ( (unsigned __int64)((char *)Block[0] - (char *)v6 - 8) > 0x1F )\n          invalid_parameter_noinfo_noreturn();\n      }\n      j_j_free(v6);\n    }\n  }\n}", "assembly": "; \n; SetFolderPopup::valueChanged from 0x14029c8b0 to 0x14029c9e9 (313 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0x140574f00\n; > <???> @ 0x1406d1e2c\n; > <???> @ 0x1406d1e38\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\npush    rbx                                                            ; +0x0, 0x14029c8b0\nsub     rsp, 70h                                                       ; +0x2, 0x14029c8b2\nmov     rax, cs:__security_cookie                                      ; +0x6, 0x14029c8b6\nxor     rax, rsp                                                       ; +0xd, 0x14029c8bd\nmov     [rsp+78h+var_10], rax                                          ; +0x10, 0x14029c8c0\nmov     rbx, rcx                                                       ; +0x15, 0x14029c8c5\ncmp     qword ptr [rcx+2B8h], 0                                        ; +0x18, 0x14029c8c8\njz      loc_14029C9D6                                                  ; +0x20, 0x14029c8d0\nmov     rcx, cs:qword_1406C2EC0                                        ; +0x26, 0x14029c8d6\ntest    rcx, rcx                                                       ; +0x2d, 0x14029c8dd\njnz     short loc_14029C911                                            ; +0x30, 0x14029c8e0\nmov     ecx, 3D0h; Size                                                ; +0x32, 0x14029c8e2\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x37, 0x14029c8e7\nmov     [rsp+78h+var_58], rax                                          ; +0x3c, 0x14029c8ec\nmov     rcx, rax                                                       ; +0x41, 0x14029c8f1\ncall    sub_140141280                                                  ; +0x44, 0x14029c8f4\nnop                                                                    ; +0x49, 0x14029c8f9\nmov     cs:qword_1406C2EC0, rax                                        ; +0x4a, 0x14029c8fa\nmov     rdx, [rax]                                                     ; +0x51, 0x14029c901\nmov     rcx, rax                                                       ; +0x54, 0x14029c904\ncall    qword ptr [rdx+48h]                                            ; +0x57, 0x14029c907\nmov     rcx, cs:qword_1406C2EC0                                        ; +0x5a, 0x14029c90a\nmovzx   r9d, byte ptr [rbx+2B0h]                                       ; +0x61, 0x14029c911\nmov     r8d, [rbx+288h]                                                ; +0x69, 0x14029c919\nlea     rdx, [rsp+78h+var_30]                                          ; +0x70, 0x14029c920\ncall    GameLevelManager__getFolderName                                ; +0x75, 0x14029c925\nnop                                                                    ; +0x7a, 0x14029c92a\ncmp     qword ptr [rax+18h], 0Fh                                       ; +0x7b, 0x14029c92b\njbe     short loc_14029C935                                            ; +0x80, 0x14029c930\nmov     rax, [rax]                                                     ; +0x82, 0x14029c932\nxorps   xmm0, xmm0                                                     ; +0x85, 0x14029c935\nmovups  xmmword ptr [rsp+78h+Block], xmm0                              ; +0x88, 0x14029c938\nxor     ecx, ecx                                                       ; +0x8d, 0x14029c93d\nmov     [rsp+78h+var_40], rcx                                          ; +0x8f, 0x14029c93f\nmov     [rsp+78h+var_38], rcx                                          ; +0x94, 0x14029c944\nmov     r8, 0FFFFFFFFFFFFFFFFh                                         ; +0x99, 0x14029c949\ninc     r8                                                             ; +0xa0, 0x14029c950\ncmp     [rax+r8], cl                                                   ; +0xa3, 0x14029c953\njnz     short loc_14029C950                                            ; +0xa7, 0x14029c957\nmov     rdx, rax                                                       ; +0xa9, 0x14029c959\nlea     rcx, [rsp+78h+Block]                                           ; +0xac, 0x14029c95c\ncall    sub_14003A930                                                  ; +0xb1, 0x14029c961\nnop                                                                    ; +0xb6, 0x14029c966\nlea     rcx, [rsp+78h+var_30]                                          ; +0xb7, 0x14029c967\ncall    sub_14003A830                                                  ; +0xbc, 0x14029c96c\nlea     rdx, [rsp+78h+Block]                                           ; +0xc1, 0x14029c971\ncmp     [rsp+78h+var_38], 0Fh                                          ; +0xc6, 0x14029c976\ncmova   rdx, [rsp+78h+Block]                                           ; +0xcc, 0x14029c97c\nmov     rcx, [rbx+2B8h]                                                ; +0xd2, 0x14029c982\nadd     rcx, 168h                                                      ; +0xd9, 0x14029c989\nmov     rax, [rcx]                                                     ; +0xe0, 0x14029c990\ncall    qword ptr [rax]                                                ; +0xe3, 0x14029c993\nnop                                                                    ; +0xe5, 0x14029c995\nmov     rdx, [rsp+78h+var_38]                                          ; +0xe6, 0x14029c996\ncmp     rdx, 0Fh                                                       ; +0xeb, 0x14029c99b\njbe     short loc_14029C9D6                                            ; +0xef, 0x14029c99f\ninc     rdx                                                            ; +0xf1, 0x14029c9a1\nmov     rcx, [rsp+78h+Block]; Block                                    ; +0xf4, 0x14029c9a4\nmov     rax, rcx                                                       ; +0xf9, 0x14029c9a9\ncmp     rdx, 1000h                                                     ; +0xfc, 0x14029c9ac\njb      short loc_14029C9D1                                            ; +0x103, 0x14029c9b3\nadd     rdx, 27h ; '''                                                 ; +0x105, 0x14029c9b5\nmov     rcx, [rcx-8]                                                   ; +0x109, 0x14029c9b9\nsub     rax, rcx                                                       ; +0x10d, 0x14029c9bd\nadd     rax, 0FFFFFFFFFFFFFFF8h                                        ; +0x110, 0x14029c9c0\ncmp     rax, 1Fh                                                       ; +0x114, 0x14029c9c4\njbe     short loc_14029C9D1                                            ; +0x118, 0x14029c9c8\ncall    cs:_invalid_parameter_noinfo_noreturn                          ; +0x11a, 0x14029c9ca\ndb 0CCh                                                                ; +0x120, 0x14029c9d0\ncall    j_j_free                                                       ; +0x121, 0x14029c9d1\nmov     rcx, [rsp+78h+var_10]                                          ; +0x126, 0x14029c9d6\nxor     rcx, rsp; StackCookie                                          ; +0x12b, 0x14029c9db\ncall    __security_check_cookie                                        ; +0x12e, 0x14029c9de\nadd     rsp, 70h                                                       ; +0x133, 0x14029c9e3\npop     rbx                                                            ; +0x137, 0x14029c9e7\nretn                                                                   ; +0x138, 0x14029c9e8", "xrefs": ["<???> @ 0x140574f00", "<???> @ 0x1406d1e2c", "<???> @ 0x1406d1e38"], "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"}