{"type": "func", "start": 5373156640, "end": 5373157220, "name": "MoreSearchLayer::onFeatured", "pseudocode": "// \n// MoreSearchLayer::onFeatured from 0x14043dd20 to 0x14043df64 (580 bytes)\n// \n// 2 xrefs:\n// > MoreSearchLayer::init @ 0x14043c83c\n// > <???> @ 0x140926fa8\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:32:20 +0000\n// \n\n// Hidden C++ exception states: #wind=4\nvoid MoreSearchLayer::onFeatured()\n{\n  __int64 v0; // rcx\n  cocos2d::CCString *v1; // rax\n  BOOL v2; // esi\n  void *v3; // r8\n  __int64 v4; // rbx\n  __int64 v5; // rbx\n  struct cocos2d::CCString *v6; // rax\n  void *v7; // rcx\n  void *v8; // [rsp+30h] [rbp-50h]\n  void *v9; // [rsp+30h] [rbp-50h]\n  void *Block[2]; // [rsp+38h] [rbp-48h] BYREF\n  __int64 v11; // [rsp+48h] [rbp-38h]\n  unsigned __int64 v12; // [rsp+50h] [rbp-30h]\n  _QWORD v13[3]; // [rsp+58h] [rbp-28h] BYREF\n  unsigned __int64 v14; // [rsp+70h] [rbp-10h]\n\n  v0 = *(_QWORD *)&qword_14090BFB0;\n  if ( !*(_QWORD *)&qword_14090BFB0 )\n  {\n    v8 = operator new(0x690u);\n    *(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager((__int64)v8);\n    (*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0);\n    v0 = *(_QWORD *)&qword_14090BFB0;\n  }\n  v11 = 15;\n  v12 = 15;\n  strcpy((char *)Block, \"featured_filter\");\n  v1 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(*(_QWORD *)(v0 + 848), Block);\n  v2 = cocos2d::CCString::boolValue(v1);\n  if ( v12 > 0xF )\n  {\n    v3 = Block[0];\n    if ( v12 + 1 >= 0x1000 )\n    {\n      v3 = *((void **)Block[0] - 1);\n      if ( (unsigned __int64)((char *)Block[0] - (char *)v3 - 8) > 0x1F )\n        invoke_watson(nullptr, nullptr, nullptr, 0, 0);\n    }\n    j_j_free(v3);\n  }\n  v11 = 0;\n  v12 = 15;\n  LOBYTE(Block[0]) = 0;\n  v4 = *(_QWORD *)&qword_14090BFB0;\n  if ( !*(_QWORD *)&qword_14090BFB0 )\n  {\n    v9 = operator new(0x690u);\n    *(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager((__int64)v9);\n    (*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0);\n    v4 = *(_QWORD *)&qword_14090BFB0;\n  }\n  v13[2] = 15;\n  v14 = 15;\n  strcpy((char *)v13, \"featured_filter\");\n  v5 = *(_QWORD *)(v4 + 848);\n  v6 = cocos2d::CCString::createWithFormat((const char *)&word_1406ED6F8, !v2);\n  cocos2d::CCDictionary::setObject(v5, v6, v13);\n  if ( v14 > 0xF )\n  {\n    v7 = (void *)v13[0];\n    if ( v14 + 1 >= 0x1000 )\n    {\n      v7 = *(void **)(v13[0] - 8LL);\n      if ( (unsigned __int64)(v13[0] - (_QWORD)v7 - 8LL) > 0x1F )\n        invoke_watson(nullptr, nullptr, nullptr, 0, 0);\n    }\n    j_j_free(v7);\n  }\n}", "assembly": "; \n; MoreSearchLayer::onFeatured from 0x14043dd20 to 0x14043df64 (580 bytes)\n; \n; 2 xrefs:\n; > MoreSearchLayer::init @ 0x14043c83c\n; > <???> @ 0x140926fa8\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:32:20 +0000\n; \nmov     [rsp-8+arg_0], rbx                                             ; +0x0, 0x14043dd20\nmov     [rsp-8+arg_8], rsi                                             ; +0x5, 0x14043dd25\npush    rbp                                                            ; +0xa, 0x14043dd2a\nmov     rbp, rsp                                                       ; +0xb, 0x14043dd2b\nsub     rsp, 80h                                                       ; +0xe, 0x14043dd2e\nmov     rax, cs:__security_cookie                                      ; +0x15, 0x14043dd35\nxor     rax, rsp                                                       ; +0x1c, 0x14043dd3c\nmov     [rbp+var_8], rax                                               ; +0x1f, 0x14043dd3f\nmov     rcx, cs:qword_14090BFB0                                        ; +0x23, 0x14043dd43\ntest    rcx, rcx                                                       ; +0x2a, 0x14043dd4a\njnz     short loc_14043DD80                                            ; +0x2d, 0x14043dd4d\nmov     ecx, 690h; Size                                                ; +0x2f, 0x14043dd4f\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x34, 0x14043dd54\nmov     [rbp+var_50], rax                                              ; +0x39, 0x14043dd59\nmov     rcx, rax                                                       ; +0x3d, 0x14043dd5d\ncall    GameLevelManager__GameLevelManager                             ; +0x40, 0x14043dd60\nnop                                                                    ; +0x45, 0x14043dd65\nmov     cs:qword_14090BFB0, rax                                        ; +0x46, 0x14043dd66\nmov     rcx, [rax]                                                     ; +0x4d, 0x14043dd6d\nmov     rdx, [rcx+48h]                                                 ; +0x50, 0x14043dd70\nmov     rcx, rax                                                       ; +0x54, 0x14043dd74\ncall    rdx                                                            ; +0x57, 0x14043dd77\nmov     rcx, cs:qword_14090BFB0                                        ; +0x59, 0x14043dd79\nmov     [rbp+var_39], 0                                                ; +0x60, 0x14043dd80\nmov     [rbp+var_38], 0Fh                                              ; +0x64, 0x14043dd84\nmov     [rbp+var_30], 0Fh                                              ; +0x6c, 0x14043dd8c\nmovsd   xmm0, cs:qword_140790250                                       ; +0x74, 0x14043dd94\nmovsd   [rbp+Block], xmm0                                              ; +0x7c, 0x14043dd9c\nmov     eax, cs:dword_140790258                                        ; +0x81, 0x14043dda1\nmov     [rbp+var_40], eax                                              ; +0x87, 0x14043dda7\nmovzx   eax, cs:word_14079025C                                         ; +0x8a, 0x14043ddaa\nmov     [rbp+var_3C], ax                                               ; +0x91, 0x14043ddb1\nmovzx   eax, cs:byte_14079025E                                         ; +0x95, 0x14043ddb5\nmov     [rbp+var_3A], al                                               ; +0x9c, 0x14043ddbc\nmov     [rbp+var_39], 0                                                ; +0x9f, 0x14043ddbf\nlea     rdx, [rbp+Block]                                               ; +0xa3, 0x14043ddc3\nmov     rcx, [rcx+350h]                                                ; +0xa7, 0x14043ddc7\ncall    cs:?valueForKey@CCDictionary@cocos2d@@QEAAPEBVCCString@2@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z; cocos2d::CCDictionary::valueForKey(std::string const &) ; +0xae, 0x14043ddce\nmov     rcx, rax                                                       ; +0xb4, 0x14043ddd4\ncall    cs:?boolValue@CCString@cocos2d@@QEBA_NXZ; cocos2d::CCString::boolValue(void) ; +0xb7, 0x14043ddd7\nmovzx   esi, al                                                        ; +0xbd, 0x14043dddd\nmov     rdx, [rbp+var_30]                                              ; +0xc0, 0x14043dde0\ncmp     rdx, 0Fh                                                       ; +0xc4, 0x14043dde4\njbe     short loc_14043DE34                                            ; +0xc8, 0x14043dde8\ninc     rdx                                                            ; +0xca, 0x14043ddea\nmov     r8, [rbp+Block]                                                ; +0xcd, 0x14043dded\nmov     rcx, r8                                                        ; +0xd1, 0x14043ddf1\ncmp     rdx, 1000h                                                     ; +0xd4, 0x14043ddf4\njb      short loc_14043DE2C                                            ; +0xdb, 0x14043ddfb\nadd     rdx, 27h ; '''                                                 ; +0xdd, 0x14043ddfd\nmov     r8, [r8-8]                                                     ; +0xe1, 0x14043de01\nsub     rcx, r8                                                        ; +0xe5, 0x14043de05\nsub     rcx, 8                                                         ; +0xe8, 0x14043de08\ncmp     rcx, 1Fh                                                       ; +0xec, 0x14043de0c\njbe     short loc_14043DE2C                                            ; +0xf0, 0x14043de10\nmov     [rsp+80h+Reserved], 0; Reserved                                ; +0xf2, 0x14043de12\nxor     r9d, r9d; LineNo                                               ; +0xfb, 0x14043de1b\nxor     r8d, r8d; FileName                                             ; +0xfe, 0x14043de1e\nxor     edx, edx; FunctionName                                         ; +0x101, 0x14043de21\nxor     ecx, ecx; Expression                                           ; +0x103, 0x14043de23\ncall    cs:_invoke_watson                                              ; +0x105, 0x14043de25\nalign 4                                                                ; +0x10b, 0x14043de2b\nmov     rcx, r8; Block                                                 ; +0x10c, 0x14043de2c\ncall    j_j_free                                                       ; +0x10f, 0x14043de2f\nmov     [rbp+var_38], 0                                                ; +0x114, 0x14043de34\nmov     [rbp+var_30], 0Fh                                              ; +0x11c, 0x14043de3c\nmov     byte ptr [rbp+Block], 0                                        ; +0x124, 0x14043de44\nmov     rbx, cs:qword_14090BFB0                                        ; +0x128, 0x14043de48\ntest    rbx, rbx                                                       ; +0x12f, 0x14043de4f\njnz     short loc_14043DE85                                            ; +0x132, 0x14043de52\nmov     ecx, 690h; Size                                                ; +0x134, 0x14043de54\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x139, 0x14043de59\nmov     [rbp+var_50], rax                                              ; +0x13e, 0x14043de5e\nmov     rcx, rax                                                       ; +0x142, 0x14043de62\ncall    GameLevelManager__GameLevelManager                             ; +0x145, 0x14043de65\nnop                                                                    ; +0x14a, 0x14043de6a\nmov     cs:qword_14090BFB0, rax                                        ; +0x14b, 0x14043de6b\nmov     rcx, [rax]                                                     ; +0x152, 0x14043de72\nmov     rdx, [rcx+48h]                                                 ; +0x155, 0x14043de75\nmov     rcx, rax                                                       ; +0x159, 0x14043de79\ncall    rdx                                                            ; +0x15c, 0x14043de7c\nmov     rbx, cs:qword_14090BFB0                                        ; +0x15e, 0x14043de7e\nmov     [rbp+var_28+0Fh], 0                                            ; +0x165, 0x14043de85\nmov     [rbp+var_18], 0Fh                                              ; +0x169, 0x14043de89\nmov     [rbp+var_10], 0Fh                                              ; +0x171, 0x14043de91\nmovsd   xmm0, cs:qword_140790250                                       ; +0x179, 0x14043de99\nmovsd   qword ptr [rbp+var_28], xmm0                                   ; +0x181, 0x14043dea1\nmov     eax, cs:dword_140790258                                        ; +0x186, 0x14043dea6\nmov     dword ptr [rbp+var_28+8], eax                                  ; +0x18c, 0x14043deac\nmovzx   eax, cs:word_14079025C                                         ; +0x18f, 0x14043deaf\nmov     word ptr [rbp+var_28+0Ch], ax                                  ; +0x196, 0x14043deb6\nmovzx   eax, cs:byte_14079025E                                         ; +0x19a, 0x14043deba\nmov     [rbp+var_28+0Eh], al                                           ; +0x1a1, 0x14043dec1\nmov     [rbp+var_28+0Fh], 0                                            ; +0x1a4, 0x14043dec4\nmov     rbx, [rbx+350h]                                                ; +0x1a8, 0x14043dec8\nmov     edx, esi                                                       ; +0x1af, 0x14043decf\nxor     edx, 1                                                         ; +0x1b1, 0x14043ded1\nlea     rcx, word_1406ED6F8                                            ; +0x1b4, 0x14043ded4\ncall    cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0x1bb, 0x14043dedb\nmov     rdx, rax                                                       ; +0x1c1, 0x14043dee1\nlea     r8, [rbp+var_28]                                               ; +0x1c4, 0x14043dee4\nmov     rcx, rbx                                                       ; +0x1c8, 0x14043dee8\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 &) ; +0x1cb, 0x14043deeb\nnop                                                                    ; +0x1d1, 0x14043def1\nmov     rdx, [rbp+var_10]                                              ; +0x1d2, 0x14043def2\ncmp     rdx, 0Fh                                                       ; +0x1d6, 0x14043def6\njbe     short loc_14043DF43                                            ; +0x1da, 0x14043defa\ninc     rdx                                                            ; +0x1dc, 0x14043defc\nmov     rcx, qword ptr [rbp+var_28]; Block                             ; +0x1df, 0x14043deff\nmov     rax, rcx                                                       ; +0x1e3, 0x14043df03\ncmp     rdx, 1000h                                                     ; +0x1e6, 0x14043df06\njb      short loc_14043DF3E                                            ; +0x1ed, 0x14043df0d\nadd     rdx, 27h ; '''                                                 ; +0x1ef, 0x14043df0f\nmov     rcx, [rcx-8]                                                   ; +0x1f3, 0x14043df13\nsub     rax, rcx                                                       ; +0x1f7, 0x14043df17\nsub     rax, 8                                                         ; +0x1fa, 0x14043df1a\ncmp     rax, 1Fh                                                       ; +0x1fe, 0x14043df1e\njbe     short loc_14043DF3E                                            ; +0x202, 0x14043df22\nmov     [rsp+80h+Reserved], 0; Reserved                                ; +0x204, 0x14043df24\nxor     r9d, r9d; LineNo                                               ; +0x20d, 0x14043df2d\nxor     r8d, r8d; FileName                                             ; +0x210, 0x14043df30\nxor     edx, edx; FunctionName                                         ; +0x213, 0x14043df33\nxor     ecx, ecx; Expression                                           ; +0x215, 0x14043df35\ncall    cs:_invoke_watson                                              ; +0x217, 0x14043df37\nalign 2                                                                ; +0x21d, 0x14043df3d\ncall    j_j_free                                                       ; +0x21e, 0x14043df3e\nmov     rcx, [rbp+var_8]                                               ; +0x223, 0x14043df43\nxor     rcx, rsp; StackCookie                                          ; +0x227, 0x14043df47\ncall    __security_check_cookie                                        ; +0x22a, 0x14043df4a\nlea     r11, [rsp+80h+var_s0]                                          ; +0x22f, 0x14043df4f\nmov     rbx, [r11+10h]                                                 ; +0x237, 0x14043df57\nmov     rsi, [r11+18h]                                                 ; +0x23b, 0x14043df5b\nmov     rsp, r11                                                       ; +0x23f, 0x14043df5f\npop     rbp                                                            ; +0x242, 0x14043df62\nretn                                                                   ; +0x243, 0x14043df63", "xrefs": ["MoreSearchLayer::init @ 0x14043c83c", "<???> @ 0x140926fa8"], "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"}