{"type": "func", "start": 5371939296, "end": 5371939855, "name": "MoreSearchLayer::onUncompleted", "pseudocode": "// \n// MoreSearchLayer::onUncompleted from 0x1403149e0 to 0x140314c0f (559 bytes)\n// \n// 3 xrefs:\n// > MoreSearchLayer::init @ 0x1403130e7\n// > <???> @ 0x1406d48bc\n// > <???> @ 0x1406d48c8\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::onUncompleted(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 = 18;\n  v13 = 31;\n  strcpy((char *)Block[0], \"uncompleted_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 = 18;\n  v16 = 31;\n  strcpy((char *)v14[0], \"uncompleted_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::onUncompleted from 0x1403149e0 to 0x140314c0f (559 bytes)\n; \n; 3 xrefs:\n; > MoreSearchLayer::init @ 0x1403130e7\n; > <???> @ 0x1406d48bc\n; > <???> @ 0x1406d48c8\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, 0x1403149e0\npush    rdi                                                            ; +0x5, 0x1403149e5\nsub     rsp, 70h                                                       ; +0x6, 0x1403149e6\nmov     rax, cs:__security_cookie                                      ; +0xa, 0x1403149ea\nxor     rax, rsp                                                       ; +0x11, 0x1403149f1\nmov     [rsp+78h+var_10], rax                                          ; +0x14, 0x1403149f4\nmov     rbx, cs:qword_1406C2EC0                                        ; +0x19, 0x1403149f9\ntest    rbx, rbx                                                       ; +0x20, 0x140314a00\njnz     short loc_140314A34                                            ; +0x23, 0x140314a03\nmov     ecx, 3D0h; Size                                                ; +0x25, 0x140314a05\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x2a, 0x140314a0a\nmov     [rsp+78h+var_58], rax                                          ; +0x2f, 0x140314a0f\nmov     rcx, rax                                                       ; +0x34, 0x140314a14\ncall    sub_140141280                                                  ; +0x37, 0x140314a17\nnop                                                                    ; +0x3c, 0x140314a1c\nmov     cs:qword_1406C2EC0, rax                                        ; +0x3d, 0x140314a1d\nmov     rdx, [rax]                                                     ; +0x44, 0x140314a24\nmov     rcx, rax                                                       ; +0x47, 0x140314a27\ncall    qword ptr [rdx+48h]                                            ; +0x4a, 0x140314a2a\nmov     rbx, cs:qword_1406C2EC0                                        ; +0x4d, 0x140314a2d\nxorps   xmm0, xmm0                                                     ; +0x54, 0x140314a34\nmovups  xmmword ptr [rsp+78h+Block], xmm0                              ; +0x57, 0x140314a37\nmov     [rsp+78h+var_40], 0                                            ; +0x5c, 0x140314a3c\nmov     [rsp+78h+var_38], 0Fh                                          ; +0x65, 0x140314a45\nmov     ecx, 20h ; ' '                                                 ; +0x6e, 0x140314a4e\ncall    sub_14003AA10                                                  ; +0x73, 0x140314a53\nmov     [rsp+78h+Block], rax                                           ; +0x78, 0x140314a58\nmov     [rsp+78h+var_40], 12h                                          ; +0x7d, 0x140314a5d\nmov     [rsp+78h+var_38], 1Fh                                          ; +0x86, 0x140314a66\nmovups  xmm0, cs:xmmword_14058AAC0                                     ; +0x8f, 0x140314a6f\nmovups  xmmword ptr [rax], xmm0                                        ; +0x96, 0x140314a76\nmovzx   ecx, cs:word_14058AAD0                                         ; +0x99, 0x140314a79\nmov     [rax+10h], cx                                                  ; +0xa0, 0x140314a80\nmov     byte ptr [rax+12h], 0                                          ; +0xa4, 0x140314a84\nlea     rdx, [rsp+78h+Block]                                           ; +0xa8, 0x140314a88\nmov     rcx, [rbx+158h]                                                ; +0xad, 0x140314a8d\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 &) ; +0xb4, 0x140314a94\nmov     rcx, rax                                                       ; +0xba, 0x140314a9a\ncall    cs:?boolValue@CCString@cocos2d@@QEBA_NXZ; cocos2d::CCString::boolValue(void) ; +0xbd, 0x140314a9d\nmovzx   edi, al                                                        ; +0xc3, 0x140314aa3\nmov     rdx, [rsp+78h+var_38]                                          ; +0xc6, 0x140314aa6\ncmp     rdx, 0Fh                                                       ; +0xcb, 0x140314aab\njbe     short loc_140314AE6                                            ; +0xcf, 0x140314aaf\ninc     rdx                                                            ; +0xd1, 0x140314ab1\nmov     rcx, [rsp+78h+Block]; Block                                    ; +0xd4, 0x140314ab4\nmov     rax, rcx                                                       ; +0xd9, 0x140314ab9\ncmp     rdx, 1000h                                                     ; +0xdc, 0x140314abc\njb      short loc_140314AE1                                            ; +0xe3, 0x140314ac3\nadd     rdx, 27h ; '''                                                 ; +0xe5, 0x140314ac5\nmov     rcx, [rcx-8]                                                   ; +0xe9, 0x140314ac9\nsub     rax, rcx                                                       ; +0xed, 0x140314acd\nadd     rax, 0FFFFFFFFFFFFFFF8h                                        ; +0xf0, 0x140314ad0\ncmp     rax, 1Fh                                                       ; +0xf4, 0x140314ad4\njbe     short loc_140314AE1                                            ; +0xf8, 0x140314ad8\ncall    cs:_invalid_parameter_noinfo_noreturn                          ; +0xfa, 0x140314ada\ndb 0CCh                                                                ; +0x100, 0x140314ae0\ncall    j_j_free                                                       ; +0x101, 0x140314ae1\nmov     [rsp+78h+var_40], 0                                            ; +0x106, 0x140314ae6\nmov     [rsp+78h+var_38], 0Fh                                          ; +0x10f, 0x140314aef\nmov     byte ptr [rsp+78h+Block], 0                                    ; +0x118, 0x140314af8\nmov     rbx, cs:qword_1406C2EC0                                        ; +0x11d, 0x140314afd\ntest    rbx, rbx                                                       ; +0x124, 0x140314b04\njnz     short loc_140314B38                                            ; +0x127, 0x140314b07\nmov     ecx, 3D0h; Size                                                ; +0x129, 0x140314b09\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x12e, 0x140314b0e\nmov     [rsp+78h+var_58], rax                                          ; +0x133, 0x140314b13\nmov     rcx, rax                                                       ; +0x138, 0x140314b18\ncall    sub_140141280                                                  ; +0x13b, 0x140314b1b\nnop                                                                    ; +0x140, 0x140314b20\nmov     cs:qword_1406C2EC0, rax                                        ; +0x141, 0x140314b21\nmov     rdx, [rax]                                                     ; +0x148, 0x140314b28\nmov     rcx, rax                                                       ; +0x14b, 0x140314b2b\ncall    qword ptr [rdx+48h]                                            ; +0x14e, 0x140314b2e\nmov     rbx, cs:qword_1406C2EC0                                        ; +0x151, 0x140314b31\nxorps   xmm0, xmm0                                                     ; +0x158, 0x140314b38\nmovups  xmmword ptr [rsp+78h+var_30], xmm0                             ; +0x15b, 0x140314b3b\nmov     [rsp+78h+var_20], 0                                            ; +0x160, 0x140314b40\nmov     [rsp+78h+var_18], 0Fh                                          ; +0x169, 0x140314b49\nmov     ecx, 20h ; ' '                                                 ; +0x172, 0x140314b52\ncall    sub_14003AA10                                                  ; +0x177, 0x140314b57\nmov     [rsp+78h+var_30], rax                                          ; +0x17c, 0x140314b5c\nmov     [rsp+78h+var_20], 12h                                          ; +0x181, 0x140314b61\nmov     [rsp+78h+var_18], 1Fh                                          ; +0x18a, 0x140314b6a\nmovups  xmm0, cs:xmmword_14058AAC0                                     ; +0x193, 0x140314b73\nmovups  xmmword ptr [rax], xmm0                                        ; +0x19a, 0x140314b7a\nmovzx   edx, cs:word_14058AAD0                                         ; +0x19d, 0x140314b7d\nmov     [rax+10h], dx                                                  ; +0x1a4, 0x140314b84\nmov     byte ptr [rax+12h], 0                                          ; +0x1a8, 0x140314b88\nmov     edx, edi                                                       ; +0x1ac, 0x140314b8c\nxor     edx, 1                                                         ; +0x1ae, 0x140314b8e\nlea     rcx, aI_11; \"%i\"                                               ; +0x1b1, 0x140314b91\ncall    cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0x1b8, 0x140314b98\nmov     rdx, rax                                                       ; +0x1be, 0x140314b9e\nlea     r8, [rsp+78h+var_30]                                           ; +0x1c1, 0x140314ba1\nmov     rcx, [rbx+158h]                                                ; +0x1c6, 0x140314ba6\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 &) ; +0x1cd, 0x140314bad\nnop                                                                    ; +0x1d3, 0x140314bb3\nmov     rdx, [rsp+78h+var_18]                                          ; +0x1d4, 0x140314bb4\ncmp     rdx, 0Fh                                                       ; +0x1d9, 0x140314bb9\njbe     short loc_140314BF4                                            ; +0x1dd, 0x140314bbd\ninc     rdx                                                            ; +0x1df, 0x140314bbf\nmov     rcx, [rsp+78h+var_30]; Block                                   ; +0x1e2, 0x140314bc2\nmov     rax, rcx                                                       ; +0x1e7, 0x140314bc7\ncmp     rdx, 1000h                                                     ; +0x1ea, 0x140314bca\njb      short loc_140314BEF                                            ; +0x1f1, 0x140314bd1\nadd     rdx, 27h ; '''                                                 ; +0x1f3, 0x140314bd3\nmov     rcx, [rcx-8]                                                   ; +0x1f7, 0x140314bd7\nsub     rax, rcx                                                       ; +0x1fb, 0x140314bdb\nadd     rax, 0FFFFFFFFFFFFFFF8h                                        ; +0x1fe, 0x140314bde\ncmp     rax, 1Fh                                                       ; +0x202, 0x140314be2\njbe     short loc_140314BEF                                            ; +0x206, 0x140314be6\ncall    cs:_invalid_parameter_noinfo_noreturn                          ; +0x208, 0x140314be8\ndb 0CCh                                                                ; +0x20e, 0x140314bee\ncall    j_j_free                                                       ; +0x20f, 0x140314bef\nmov     rcx, [rsp+78h+var_10]                                          ; +0x214, 0x140314bf4\nxor     rcx, rsp; StackCookie                                          ; +0x219, 0x140314bf9\ncall    __security_check_cookie                                        ; +0x21c, 0x140314bfc\nmov     rbx, [rsp+78h+arg_0]                                           ; +0x221, 0x140314c01\nadd     rsp, 70h                                                       ; +0x229, 0x140314c09\npop     rdi                                                            ; +0x22d, 0x140314c0d\nretn                                                                   ; +0x22e, 0x140314c0e", "xrefs": ["MoreSearchLayer::init @ 0x1403130e7", "<???> @ 0x1406d48bc", "<???> @ 0x1406d48c8"], "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"}