{"type": "func", "start": 5371939856, "end": 5371940393, "name": "MoreSearchLayer::onCompleted", "pseudocode": "// \n// MoreSearchLayer::onCompleted from 0x140314c10 to 0x140314e29 (537 bytes)\n// \n// 2 xrefs:\n// > MoreSearchLayer::init @ 0x140313246\n// > <???> @ 0x1406d48d4\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 MoreSearchLayer::onCompleted(MoreSearchLayer *a1, cocos2d::CCObject *a2)\n{\n  __int64 v2; // rbx\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-58h]\n  void *v10; // [rsp+20h] [rbp-58h]\n  void *Block[2]; // [rsp+28h] [rbp-50h] BYREF\n  __int64 v12; // [rsp+38h] [rbp-40h]\n  unsigned __int64 v13; // [rsp+40h] [rbp-38h]\n  void *v14[2]; // [rsp+48h] [rbp-30h] BYREF\n  __int64 v15; // [rsp+58h] [rbp-20h]\n  unsigned __int64 v16; // [rsp+60h] [rbp-18h]\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  *(_OWORD *)Block = 0;\n  Block[0] = sub_14003AA10(0x20u);\n  v12 = 16;\n  v13 = 31;\n  strcpy((char *)Block[0], \"completed_filter\");\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  *(_OWORD *)v14 = 0;\n  v15 = 0;\n  v16 = 15;\n  v14[0] = sub_14003AA10(0x20u);\n  v15 = 16;\n  v16 = 31;\n  strcpy((char *)v14[0], \"completed_filter\");\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::onCompleted from 0x140314c10 to 0x140314e29 (537 bytes)\n; \n; 2 xrefs:\n; > MoreSearchLayer::init @ 0x140313246\n; > <???> @ 0x1406d48d4\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+arg_0], rbx                                               ; +0x0, 0x140314c10\npush    rdi                                                            ; +0x5, 0x140314c15\nsub     rsp, 70h                                                       ; +0x6, 0x140314c16\nmov     rax, cs:__security_cookie                                      ; +0xa, 0x140314c1a\nxor     rax, rsp                                                       ; +0x11, 0x140314c21\nmov     [rsp+78h+var_10], rax                                          ; +0x14, 0x140314c24\nmov     rbx, cs:qword_1406C2EC0                                        ; +0x19, 0x140314c29\ntest    rbx, rbx                                                       ; +0x20, 0x140314c30\njnz     short loc_140314C64                                            ; +0x23, 0x140314c33\nmov     ecx, 3D0h; Size                                                ; +0x25, 0x140314c35\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x2a, 0x140314c3a\nmov     [rsp+78h+var_58], rax                                          ; +0x2f, 0x140314c3f\nmov     rcx, rax                                                       ; +0x34, 0x140314c44\ncall    sub_140141280                                                  ; +0x37, 0x140314c47\nnop                                                                    ; +0x3c, 0x140314c4c\nmov     cs:qword_1406C2EC0, rax                                        ; +0x3d, 0x140314c4d\nmov     rdx, [rax]                                                     ; +0x44, 0x140314c54\nmov     rcx, rax                                                       ; +0x47, 0x140314c57\ncall    qword ptr [rdx+48h]                                            ; +0x4a, 0x140314c5a\nmov     rbx, cs:qword_1406C2EC0                                        ; +0x4d, 0x140314c5d\nxorps   xmm0, xmm0                                                     ; +0x54, 0x140314c64\nmovups  xmmword ptr [rsp+78h+Block], xmm0                              ; +0x57, 0x140314c67\nmov     [rsp+78h+var_40], 0                                            ; +0x5c, 0x140314c6c\nmov     [rsp+78h+var_38], 0Fh                                          ; +0x65, 0x140314c75\nmov     ecx, 20h ; ' '                                                 ; +0x6e, 0x140314c7e\ncall    sub_14003AA10                                                  ; +0x73, 0x140314c83\nmov     [rsp+78h+Block], rax                                           ; +0x78, 0x140314c88\nmov     [rsp+78h+var_40], 10h                                          ; +0x7d, 0x140314c8d\nmov     [rsp+78h+var_38], 1Fh                                          ; +0x86, 0x140314c96\nmovups  xmm0, cs:xmmword_14058AAA8                                     ; +0x8f, 0x140314c9f\nmovups  xmmword ptr [rax], xmm0                                        ; +0x96, 0x140314ca6\nmov     byte ptr [rax+10h], 0                                          ; +0x99, 0x140314ca9\nlea     rdx, [rsp+78h+Block]                                           ; +0x9d, 0x140314cad\nmov     rcx, [rbx+158h]                                                ; +0xa2, 0x140314cb2\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 &) ; +0xa9, 0x140314cb9\nmov     rcx, rax                                                       ; +0xaf, 0x140314cbf\ncall    cs:?boolValue@CCString@cocos2d@@QEBA_NXZ; cocos2d::CCString::boolValue(void) ; +0xb2, 0x140314cc2\nmovzx   edi, al                                                        ; +0xb8, 0x140314cc8\nmov     rdx, [rsp+78h+var_38]                                          ; +0xbb, 0x140314ccb\ncmp     rdx, 0Fh                                                       ; +0xc0, 0x140314cd0\njbe     short loc_140314D0B                                            ; +0xc4, 0x140314cd4\ninc     rdx                                                            ; +0xc6, 0x140314cd6\nmov     rcx, [rsp+78h+Block]; Block                                    ; +0xc9, 0x140314cd9\nmov     rax, rcx                                                       ; +0xce, 0x140314cde\ncmp     rdx, 1000h                                                     ; +0xd1, 0x140314ce1\njb      short loc_140314D06                                            ; +0xd8, 0x140314ce8\nadd     rdx, 27h ; '''                                                 ; +0xda, 0x140314cea\nmov     rcx, [rcx-8]                                                   ; +0xde, 0x140314cee\nsub     rax, rcx                                                       ; +0xe2, 0x140314cf2\nadd     rax, 0FFFFFFFFFFFFFFF8h                                        ; +0xe5, 0x140314cf5\ncmp     rax, 1Fh                                                       ; +0xe9, 0x140314cf9\njbe     short loc_140314D06                                            ; +0xed, 0x140314cfd\ncall    cs:_invalid_parameter_noinfo_noreturn                          ; +0xef, 0x140314cff\nalign 2                                                                ; +0xf5, 0x140314d05\ncall    j_j_free                                                       ; +0xf6, 0x140314d06\nmov     [rsp+78h+var_40], 0                                            ; +0xfb, 0x140314d0b\nmov     [rsp+78h+var_38], 0Fh                                          ; +0x104, 0x140314d14\nmov     byte ptr [rsp+78h+Block], 0                                    ; +0x10d, 0x140314d1d\nmov     rbx, cs:qword_1406C2EC0                                        ; +0x112, 0x140314d22\ntest    rbx, rbx                                                       ; +0x119, 0x140314d29\njnz     short loc_140314D5D                                            ; +0x11c, 0x140314d2c\nmov     ecx, 3D0h; Size                                                ; +0x11e, 0x140314d2e\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x123, 0x140314d33\nmov     [rsp+78h+var_58], rax                                          ; +0x128, 0x140314d38\nmov     rcx, rax                                                       ; +0x12d, 0x140314d3d\ncall    sub_140141280                                                  ; +0x130, 0x140314d40\nnop                                                                    ; +0x135, 0x140314d45\nmov     cs:qword_1406C2EC0, rax                                        ; +0x136, 0x140314d46\nmov     rdx, [rax]                                                     ; +0x13d, 0x140314d4d\nmov     rcx, rax                                                       ; +0x140, 0x140314d50\ncall    qword ptr [rdx+48h]                                            ; +0x143, 0x140314d53\nmov     rbx, cs:qword_1406C2EC0                                        ; +0x146, 0x140314d56\nxorps   xmm0, xmm0                                                     ; +0x14d, 0x140314d5d\nmovups  xmmword ptr [rsp+78h+var_30], xmm0                             ; +0x150, 0x140314d60\nmov     [rsp+78h+var_20], 0                                            ; +0x155, 0x140314d65\nmov     [rsp+78h+var_18], 0Fh                                          ; +0x15e, 0x140314d6e\nmov     ecx, 20h ; ' '                                                 ; +0x167, 0x140314d77\ncall    sub_14003AA10                                                  ; +0x16c, 0x140314d7c\nmov     [rsp+78h+var_30], rax                                          ; +0x171, 0x140314d81\nmov     [rsp+78h+var_20], 10h                                          ; +0x176, 0x140314d86\nmov     [rsp+78h+var_18], 1Fh                                          ; +0x17f, 0x140314d8f\nmovups  xmm0, cs:xmmword_14058AAA8                                     ; +0x188, 0x140314d98\nmovups  xmmword ptr [rax], xmm0                                        ; +0x18f, 0x140314d9f\nmov     byte ptr [rax+10h], 0                                          ; +0x192, 0x140314da2\nmov     edx, edi                                                       ; +0x196, 0x140314da6\nxor     edx, 1                                                         ; +0x198, 0x140314da8\nlea     rcx, aI_11; \"%i\"                                               ; +0x19b, 0x140314dab\ncall    cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0x1a2, 0x140314db2\nmov     rdx, rax                                                       ; +0x1a8, 0x140314db8\nlea     r8, [rsp+78h+var_30]                                           ; +0x1ab, 0x140314dbb\nmov     rcx, [rbx+158h]                                                ; +0x1b0, 0x140314dc0\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 &) ; +0x1b7, 0x140314dc7\nnop                                                                    ; +0x1bd, 0x140314dcd\nmov     rdx, [rsp+78h+var_18]                                          ; +0x1be, 0x140314dce\ncmp     rdx, 0Fh                                                       ; +0x1c3, 0x140314dd3\njbe     short loc_140314E0E                                            ; +0x1c7, 0x140314dd7\ninc     rdx                                                            ; +0x1c9, 0x140314dd9\nmov     rcx, [rsp+78h+var_30]; Block                                   ; +0x1cc, 0x140314ddc\nmov     rax, rcx                                                       ; +0x1d1, 0x140314de1\ncmp     rdx, 1000h                                                     ; +0x1d4, 0x140314de4\njb      short loc_140314E09                                            ; +0x1db, 0x140314deb\nadd     rdx, 27h ; '''                                                 ; +0x1dd, 0x140314ded\nmov     rcx, [rcx-8]                                                   ; +0x1e1, 0x140314df1\nsub     rax, rcx                                                       ; +0x1e5, 0x140314df5\nadd     rax, 0FFFFFFFFFFFFFFF8h                                        ; +0x1e8, 0x140314df8\ncmp     rax, 1Fh                                                       ; +0x1ec, 0x140314dfc\njbe     short loc_140314E09                                            ; +0x1f0, 0x140314e00\ncall    cs:_invalid_parameter_noinfo_noreturn                          ; +0x1f2, 0x140314e02\ndb 0CCh                                                                ; +0x1f8, 0x140314e08\ncall    j_j_free                                                       ; +0x1f9, 0x140314e09\nmov     rcx, [rsp+78h+var_10]                                          ; +0x1fe, 0x140314e0e\nxor     rcx, rsp; StackCookie                                          ; +0x203, 0x140314e13\ncall    __security_check_cookie                                        ; +0x206, 0x140314e16\nmov     rbx, [rsp+78h+arg_0]                                           ; +0x20b, 0x140314e1b\nadd     rsp, 70h                                                       ; +0x213, 0x140314e23\npop     rdi                                                            ; +0x217, 0x140314e27\nretn                                                                   ; +0x218, 0x140314e28", "xrefs": ["MoreSearchLayer::init @ 0x140313246", "<???> @ 0x1406d48d4"], "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"}