{"type": "func", "start": 5371943536, "end": 5371944044, "name": "MoreSearchLayer::onNoStar", "pseudocode": "// \n// MoreSearchLayer::onNoStar from 0x140315a70 to 0x140315c6c (508 bytes)\n// \n// 3 xrefs:\n// > MoreSearchLayer::init @ 0x1403138d1\n// > <???> @ 0x1406d491c\n// > <???> @ 0x1406d4928\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\nvoid MoreSearchLayer::onNoStar(MoreSearchLayer *a1, cocos2d::CCObject *a2)\n{\n  __int64 v2; // rcx\n  cocos2d::CCString *v3; // rax\n  BOOL v4; // edi\n  void *v5; // rcx\n  __int64 v6; // rbx\n  struct cocos2d::CCString *v7; // rax\n  void *v8; // rcx\n  void *v9; // [rsp+20h] [rbp-50h]\n  void *v10; // [rsp+20h] [rbp-50h]\n  void *Block[2]; // [rsp+28h] [rbp-48h] BYREF\n  __int64 v12; // [rsp+38h] [rbp-38h]\n  unsigned __int64 v13; // [rsp+40h] [rbp-30h]\n  void *v14[2]; // [rsp+48h] [rbp-28h] BYREF\n  __int64 v15; // [rsp+58h] [rbp-18h]\n  unsigned __int64 v16; // [rsp+60h] [rbp-10h]\n\n  v2 = qword_1406C2EC0;\n  if ( !qword_1406C2EC0 )\n  {\n    v9 = operator new(0x3D0u);\n    qword_1406C2EC0 = sub_140141280((__int64)v9);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EC0 + 72LL))(qword_1406C2EC0);\n    v2 = qword_1406C2EC0;\n  }\n  v12 = 13;\n  v13 = 15;\n  strcpy((char *)Block, \"nostar_filter\");\n  HIWORD(Block[1]) = 0;\n  v3 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(*(_QWORD *)(v2 + 344), Block);\n  v4 = cocos2d::CCString::boolValue(v3);\n  if ( v13 > 0xF )\n  {\n    v5 = Block[0];\n    if ( v13 + 1 >= 0x1000 )\n    {\n      v5 = *((void **)Block[0] - 1);\n      if ( (unsigned __int64)((char *)Block[0] - (char *)v5 - 8) > 0x1F )\n        invalid_parameter_noinfo_noreturn();\n    }\n    j_j_free(v5);\n  }\n  v12 = 0;\n  v13 = 15;\n  LOBYTE(Block[0]) = 0;\n  v6 = qword_1406C2EC0;\n  if ( !qword_1406C2EC0 )\n  {\n    v10 = operator new(0x3D0u);\n    qword_1406C2EC0 = sub_140141280((__int64)v10);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EC0 + 72LL))(qword_1406C2EC0);\n    v6 = qword_1406C2EC0;\n  }\n  v15 = 13;\n  v16 = 15;\n  strcpy((char *)v14, \"nostar_filter\");\n  HIWORD(v14[1]) = 0;\n  v7 = cocos2d::CCString::createWithFormat(\"%i\", !v4);\n  cocos2d::CCDictionary::setObject(*(_QWORD *)(v6 + 344), v7, v14);\n  if ( v16 > 0xF )\n  {\n    v8 = v14[0];\n    if ( v16 + 1 >= 0x1000 )\n    {\n      v8 = *((void **)v14[0] - 1);\n      if ( (unsigned __int64)((char *)v14[0] - (char *)v8 - 8) > 0x1F )\n        invalid_parameter_noinfo_noreturn();\n    }\n    j_j_free(v8);\n  }\n}", "assembly": "; \n; MoreSearchLayer::onNoStar from 0x140315a70 to 0x140315c6c (508 bytes)\n; \n; 3 xrefs:\n; > MoreSearchLayer::init @ 0x1403138d1\n; > <???> @ 0x1406d491c\n; > <???> @ 0x1406d4928\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\nmov     [rsp-8+arg_0], rbx                                             ; +0x0, 0x140315a70\nmov     [rsp-8+arg_8], rdi                                             ; +0x5, 0x140315a75\npush    rbp                                                            ; +0xa, 0x140315a7a\nmov     rbp, rsp                                                       ; +0xb, 0x140315a7b\nsub     rsp, 70h                                                       ; +0xe, 0x140315a7e\nmov     rax, cs:__security_cookie                                      ; +0x12, 0x140315a82\nxor     rax, rsp                                                       ; +0x19, 0x140315a89\nmov     [rbp+var_8], rax                                               ; +0x1c, 0x140315a8c\nmov     rcx, cs:qword_1406C2EC0                                        ; +0x20, 0x140315a90\ntest    rcx, rcx                                                       ; +0x27, 0x140315a97\njnz     short loc_140315ACA                                            ; +0x2a, 0x140315a9a\nmov     ecx, 3D0h; Size                                                ; +0x2c, 0x140315a9c\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x31, 0x140315aa1\nmov     [rbp+var_50], rax                                              ; +0x36, 0x140315aa6\nmov     rcx, rax                                                       ; +0x3a, 0x140315aaa\ncall    sub_140141280                                                  ; +0x3d, 0x140315aad\nnop                                                                    ; +0x42, 0x140315ab2\nmov     cs:qword_1406C2EC0, rax                                        ; +0x43, 0x140315ab3\nmov     rdx, [rax]                                                     ; +0x4a, 0x140315aba\nmov     rcx, rax                                                       ; +0x4d, 0x140315abd\ncall    qword ptr [rdx+48h]                                            ; +0x50, 0x140315ac0\nmov     rcx, cs:qword_1406C2EC0                                        ; +0x53, 0x140315ac3\nxorps   xmm0, xmm0                                                     ; +0x5a, 0x140315aca\nmovups  xmmword ptr [rbp+Block], xmm0                                  ; +0x5d, 0x140315acd\nmov     [rbp+var_38], 0Dh                                              ; +0x61, 0x140315ad1\nmov     [rbp+var_30], 0Fh                                              ; +0x69, 0x140315ad9\nmovsd   xmm0, cs:qword_14058AC90                                       ; +0x71, 0x140315ae1\nmovsd   [rbp+Block], xmm0                                              ; +0x79, 0x140315ae9\nmov     eax, cs:dword_14058AC98                                        ; +0x7e, 0x140315aee\nmov     dword ptr [rbp+Block+8], eax                                   ; +0x84, 0x140315af4\nmovzx   eax, cs:byte_14058AC9C                                         ; +0x87, 0x140315af7\nmov     byte ptr [rbp+Block+0Ch], al                                   ; +0x8e, 0x140315afe\nmov     byte ptr [rbp+Block+0Dh], 0                                    ; +0x91, 0x140315b01\nlea     rdx, [rbp+Block]                                               ; +0x95, 0x140315b05\nmov     rcx, [rcx+158h]                                                ; +0x99, 0x140315b09\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 &) ; +0xa0, 0x140315b10\nmov     rcx, rax                                                       ; +0xa6, 0x140315b16\ncall    cs:?boolValue@CCString@cocos2d@@QEBA_NXZ; cocos2d::CCString::boolValue(void) ; +0xa9, 0x140315b19\nmovzx   edi, al                                                        ; +0xaf, 0x140315b1f\nmov     rdx, [rbp+var_30]                                              ; +0xb2, 0x140315b22\ncmp     rdx, 0Fh                                                       ; +0xb6, 0x140315b26\njbe     short loc_140315B60                                            ; +0xba, 0x140315b2a\ninc     rdx                                                            ; +0xbc, 0x140315b2c\nmov     rcx, [rbp+Block]; Block                                        ; +0xbf, 0x140315b2f\nmov     rax, rcx                                                       ; +0xc3, 0x140315b33\ncmp     rdx, 1000h                                                     ; +0xc6, 0x140315b36\njb      short loc_140315B5B                                            ; +0xcd, 0x140315b3d\nadd     rdx, 27h ; '''                                                 ; +0xcf, 0x140315b3f\nmov     rcx, [rcx-8]                                                   ; +0xd3, 0x140315b43\nsub     rax, rcx                                                       ; +0xd7, 0x140315b47\nadd     rax, 0FFFFFFFFFFFFFFF8h                                        ; +0xda, 0x140315b4a\ncmp     rax, 1Fh                                                       ; +0xde, 0x140315b4e\njbe     short loc_140315B5B                                            ; +0xe2, 0x140315b52\ncall    cs:_invalid_parameter_noinfo_noreturn                          ; +0xe4, 0x140315b54\ndb 0CCh                                                                ; +0xea, 0x140315b5a\ncall    j_j_free                                                       ; +0xeb, 0x140315b5b\nmov     [rbp+var_38], 0                                                ; +0xf0, 0x140315b60\nmov     [rbp+var_30], 0Fh                                              ; +0xf8, 0x140315b68\nmov     byte ptr [rbp+Block], 0                                        ; +0x100, 0x140315b70\nmov     rbx, cs:qword_1406C2EC0                                        ; +0x104, 0x140315b74\ntest    rbx, rbx                                                       ; +0x10b, 0x140315b7b\njnz     short loc_140315BAE                                            ; +0x10e, 0x140315b7e\nmov     ecx, 3D0h; Size                                                ; +0x110, 0x140315b80\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x115, 0x140315b85\nmov     [rbp+var_50], rax                                              ; +0x11a, 0x140315b8a\nmov     rcx, rax                                                       ; +0x11e, 0x140315b8e\ncall    sub_140141280                                                  ; +0x121, 0x140315b91\nnop                                                                    ; +0x126, 0x140315b96\nmov     cs:qword_1406C2EC0, rax                                        ; +0x127, 0x140315b97\nmov     rdx, [rax]                                                     ; +0x12e, 0x140315b9e\nmov     rcx, rax                                                       ; +0x131, 0x140315ba1\ncall    qword ptr [rdx+48h]                                            ; +0x134, 0x140315ba4\nmov     rbx, cs:qword_1406C2EC0                                        ; +0x137, 0x140315ba7\nxorps   xmm0, xmm0                                                     ; +0x13e, 0x140315bae\nmovups  xmmword ptr [rbp+var_28], xmm0                                 ; +0x141, 0x140315bb1\nmov     [rbp+var_18], 0Dh                                              ; +0x145, 0x140315bb5\nmov     [rbp+var_10], 0Fh                                              ; +0x14d, 0x140315bbd\nmovsd   xmm0, cs:qword_14058AC90                                       ; +0x155, 0x140315bc5\nmovsd   [rbp+var_28], xmm0                                             ; +0x15d, 0x140315bcd\nmov     eax, cs:dword_14058AC98                                        ; +0x162, 0x140315bd2\nmov     dword ptr [rbp+var_28+8], eax                                  ; +0x168, 0x140315bd8\nmovzx   eax, cs:byte_14058AC9C                                         ; +0x16b, 0x140315bdb\nmov     byte ptr [rbp+var_28+0Ch], al                                  ; +0x172, 0x140315be2\nmov     byte ptr [rbp+var_28+0Dh], 0                                   ; +0x175, 0x140315be5\nmov     edx, edi                                                       ; +0x179, 0x140315be9\nxor     edx, 1                                                         ; +0x17b, 0x140315beb\nlea     rcx, aI_11; \"%i\"                                               ; +0x17e, 0x140315bee\ncall    cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0x185, 0x140315bf5\nmov     rdx, rax                                                       ; +0x18b, 0x140315bfb\nlea     r8, [rbp+var_28]                                               ; +0x18e, 0x140315bfe\nmov     rcx, [rbx+158h]                                                ; +0x192, 0x140315c02\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 &) ; +0x199, 0x140315c09\nnop                                                                    ; +0x19f, 0x140315c0f\nmov     rdx, [rbp+var_10]                                              ; +0x1a0, 0x140315c10\ncmp     rdx, 0Fh                                                       ; +0x1a4, 0x140315c14\njbe     short loc_140315C4E                                            ; +0x1a8, 0x140315c18\ninc     rdx                                                            ; +0x1aa, 0x140315c1a\nmov     rcx, [rbp+var_28]; Block                                       ; +0x1ad, 0x140315c1d\nmov     rax, rcx                                                       ; +0x1b1, 0x140315c21\ncmp     rdx, 1000h                                                     ; +0x1b4, 0x140315c24\njb      short loc_140315C49                                            ; +0x1bb, 0x140315c2b\nadd     rdx, 27h ; '''                                                 ; +0x1bd, 0x140315c2d\nmov     rcx, [rcx-8]                                                   ; +0x1c1, 0x140315c31\nsub     rax, rcx                                                       ; +0x1c5, 0x140315c35\nadd     rax, 0FFFFFFFFFFFFFFF8h                                        ; +0x1c8, 0x140315c38\ncmp     rax, 1Fh                                                       ; +0x1cc, 0x140315c3c\njbe     short loc_140315C49                                            ; +0x1d0, 0x140315c40\ncall    cs:_invalid_parameter_noinfo_noreturn                          ; +0x1d2, 0x140315c42\ndb 0CCh                                                                ; +0x1d8, 0x140315c48\ncall    j_j_free                                                       ; +0x1d9, 0x140315c49\nmov     rcx, [rbp+var_8]                                               ; +0x1de, 0x140315c4e\nxor     rcx, rsp; StackCookie                                          ; +0x1e2, 0x140315c52\ncall    __security_check_cookie                                        ; +0x1e5, 0x140315c55\nlea     r11, [rsp+70h+var_s0]                                          ; +0x1ea, 0x140315c5a\nmov     rbx, [r11+10h]                                                 ; +0x1ef, 0x140315c5f\nmov     rdi, [r11+18h]                                                 ; +0x1f3, 0x140315c63\nmov     rsp, r11                                                       ; +0x1f7, 0x140315c67\npop     rbp                                                            ; +0x1fa, 0x140315c6a\nretn                                                                   ; +0x1fb, 0x140315c6b", "xrefs": ["MoreSearchLayer::init @ 0x1403138d1", "<???> @ 0x1406d491c", "<???> @ 0x1406d4928"], "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"}