{"type": "func", "start": 5373159552, "end": 5373160120, "name": "MoreSearchLayer::onTwoPlayer", "pseudocode": "// \n// MoreSearchLayer::onTwoPlayer from 0x14043e880 to 0x14043eab8 (568 bytes)\n// \n// 2 xrefs:\n// > MoreSearchLayer::init @ 0x14043c424\n// > <???> @ 0x140926fe4\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\nvoid MoreSearchLayer::onTwoPlayer()\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  void *v13[2]; // [rsp+58h] [rbp-28h] BYREF\n  __int64 v14; // [rsp+68h] [rbp-18h]\n  unsigned __int64 v15; // [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 = 11;\n  v12 = 15;\n  Block[0] = (void *)0x6C69665F506F7774LL;\n  Block[1] = (void *)7497076;\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  v14 = 11;\n  v15 = 15;\n  v13[0] = (void *)0x6C69665F506F7774LL;\n  v13[1] = (void *)7497076;\n  v5 = *(_QWORD *)(v4 + 848);\n  v6 = cocos2d::CCString::createWithFormat((const char *)&word_1406ED6F8, !v2);\n  cocos2d::CCDictionary::setObject(v5, v6, v13);\n  if ( v15 > 0xF )\n  {\n    v7 = v13[0];\n    if ( v15 + 1 >= 0x1000 )\n    {\n      v7 = *((void **)v13[0] - 1);\n      if ( (unsigned __int64)((char *)v13[0] - (char *)v7 - 8) > 0x1F )\n        invoke_watson(nullptr, nullptr, nullptr, 0, 0);\n    }\n    j_j_free(v7);\n  }\n}", "assembly": "; \n; MoreSearchLayer::onTwoPlayer from 0x14043e880 to 0x14043eab8 (568 bytes)\n; \n; 2 xrefs:\n; > MoreSearchLayer::init @ 0x14043c424\n; > <???> @ 0x140926fe4\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, 0x14043e880\nmov     [rsp-8+arg_8], rsi                                             ; +0x5, 0x14043e885\npush    rbp                                                            ; +0xa, 0x14043e88a\nmov     rbp, rsp                                                       ; +0xb, 0x14043e88b\nsub     rsp, 80h                                                       ; +0xe, 0x14043e88e\nmov     rax, cs:__security_cookie                                      ; +0x15, 0x14043e895\nxor     rax, rsp                                                       ; +0x1c, 0x14043e89c\nmov     [rbp+var_8], rax                                               ; +0x1f, 0x14043e89f\nmov     rcx, cs:qword_14090BFB0                                        ; +0x23, 0x14043e8a3\ntest    rcx, rcx                                                       ; +0x2a, 0x14043e8aa\njnz     short loc_14043E8E0                                            ; +0x2d, 0x14043e8ad\nmov     ecx, 690h; Size                                                ; +0x2f, 0x14043e8af\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x34, 0x14043e8b4\nmov     [rbp+var_50], rax                                              ; +0x39, 0x14043e8b9\nmov     rcx, rax                                                       ; +0x3d, 0x14043e8bd\ncall    GameLevelManager__GameLevelManager                             ; +0x40, 0x14043e8c0\nnop                                                                    ; +0x45, 0x14043e8c5\nmov     cs:qword_14090BFB0, rax                                        ; +0x46, 0x14043e8c6\nmov     rcx, [rax]                                                     ; +0x4d, 0x14043e8cd\nmov     rdx, [rcx+48h]                                                 ; +0x50, 0x14043e8d0\nmov     rcx, rax                                                       ; +0x54, 0x14043e8d4\ncall    rdx                                                            ; +0x57, 0x14043e8d7\nmov     rcx, cs:qword_14090BFB0                                        ; +0x59, 0x14043e8d9\nxorps   xmm0, xmm0                                                     ; +0x60, 0x14043e8e0\nmovups  xmmword ptr [rbp+Block], xmm0                                  ; +0x63, 0x14043e8e3\nmov     [rbp+var_38], 0Bh                                              ; +0x67, 0x14043e8e7\nmov     [rbp+var_30], 0Fh                                              ; +0x6f, 0x14043e8ef\nmovsd   xmm0, cs:qword_140790108                                       ; +0x77, 0x14043e8f7\nmovsd   [rbp+Block], xmm0                                              ; +0x7f, 0x14043e8ff\nmovzx   eax, cs:word_140790110                                         ; +0x84, 0x14043e904\nmov     word ptr [rbp+Block+8], ax                                     ; +0x8b, 0x14043e90b\nmovzx   eax, cs:byte_140790112                                         ; +0x8f, 0x14043e90f\nmov     byte ptr [rbp+Block+0Ah], al                                   ; +0x96, 0x14043e916\nmov     byte ptr [rbp+Block+0Bh], 0                                    ; +0x99, 0x14043e919\nlea     rdx, [rbp+Block]                                               ; +0x9d, 0x14043e91d\nmov     rcx, [rcx+350h]                                                ; +0xa1, 0x14043e921\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 &) ; +0xa8, 0x14043e928\nmov     rcx, rax                                                       ; +0xae, 0x14043e92e\ncall    cs:?boolValue@CCString@cocos2d@@QEBA_NXZ; cocos2d::CCString::boolValue(void) ; +0xb1, 0x14043e931\nmovzx   esi, al                                                        ; +0xb7, 0x14043e937\nmov     rdx, [rbp+var_30]                                              ; +0xba, 0x14043e93a\ncmp     rdx, 0Fh                                                       ; +0xbe, 0x14043e93e\njbe     short loc_14043E98E                                            ; +0xc2, 0x14043e942\ninc     rdx                                                            ; +0xc4, 0x14043e944\nmov     r8, [rbp+Block]                                                ; +0xc7, 0x14043e947\nmov     rcx, r8                                                        ; +0xcb, 0x14043e94b\ncmp     rdx, 1000h                                                     ; +0xce, 0x14043e94e\njb      short loc_14043E986                                            ; +0xd5, 0x14043e955\nadd     rdx, 27h ; '''                                                 ; +0xd7, 0x14043e957\nmov     r8, [r8-8]                                                     ; +0xdb, 0x14043e95b\nsub     rcx, r8                                                        ; +0xdf, 0x14043e95f\nsub     rcx, 8                                                         ; +0xe2, 0x14043e962\ncmp     rcx, 1Fh                                                       ; +0xe6, 0x14043e966\njbe     short loc_14043E986                                            ; +0xea, 0x14043e96a\nmov     [rsp+80h+Reserved], 0; Reserved                                ; +0xec, 0x14043e96c\nxor     r9d, r9d; LineNo                                               ; +0xf5, 0x14043e975\nxor     r8d, r8d; FileName                                             ; +0xf8, 0x14043e978\nxor     edx, edx; FunctionName                                         ; +0xfb, 0x14043e97b\nxor     ecx, ecx; Expression                                           ; +0xfd, 0x14043e97d\ncall    cs:_invoke_watson                                              ; +0xff, 0x14043e97f\nalign 2                                                                ; +0x105, 0x14043e985\nmov     rcx, r8; Block                                                 ; +0x106, 0x14043e986\ncall    j_j_free                                                       ; +0x109, 0x14043e989\nmov     [rbp+var_38], 0                                                ; +0x10e, 0x14043e98e\nmov     [rbp+var_30], 0Fh                                              ; +0x116, 0x14043e996\nmov     byte ptr [rbp+Block], 0                                        ; +0x11e, 0x14043e99e\nmov     rbx, cs:qword_14090BFB0                                        ; +0x122, 0x14043e9a2\ntest    rbx, rbx                                                       ; +0x129, 0x14043e9a9\njnz     short loc_14043E9DF                                            ; +0x12c, 0x14043e9ac\nmov     ecx, 690h; Size                                                ; +0x12e, 0x14043e9ae\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x133, 0x14043e9b3\nmov     [rbp+var_50], rax                                              ; +0x138, 0x14043e9b8\nmov     rcx, rax                                                       ; +0x13c, 0x14043e9bc\ncall    GameLevelManager__GameLevelManager                             ; +0x13f, 0x14043e9bf\nnop                                                                    ; +0x144, 0x14043e9c4\nmov     cs:qword_14090BFB0, rax                                        ; +0x145, 0x14043e9c5\nmov     rcx, [rax]                                                     ; +0x14c, 0x14043e9cc\nmov     rdx, [rcx+48h]                                                 ; +0x14f, 0x14043e9cf\nmov     rcx, rax                                                       ; +0x153, 0x14043e9d3\ncall    rdx                                                            ; +0x156, 0x14043e9d6\nmov     rbx, cs:qword_14090BFB0                                        ; +0x158, 0x14043e9d8\nxorps   xmm0, xmm0                                                     ; +0x15f, 0x14043e9df\nmovups  xmmword ptr [rbp+var_28], xmm0                                 ; +0x162, 0x14043e9e2\nmov     [rbp+var_18], 0Bh                                              ; +0x166, 0x14043e9e6\nmov     [rbp+var_10], 0Fh                                              ; +0x16e, 0x14043e9ee\nmovsd   xmm0, cs:qword_140790108                                       ; +0x176, 0x14043e9f6\nmovsd   [rbp+var_28], xmm0                                             ; +0x17e, 0x14043e9fe\nmovzx   eax, cs:word_140790110                                         ; +0x183, 0x14043ea03\nmov     word ptr [rbp+var_28+8], ax                                    ; +0x18a, 0x14043ea0a\nmovzx   eax, cs:byte_140790112                                         ; +0x18e, 0x14043ea0e\nmov     byte ptr [rbp+var_28+0Ah], al                                  ; +0x195, 0x14043ea15\nmov     byte ptr [rbp+var_28+0Bh], 0                                   ; +0x198, 0x14043ea18\nmov     rbx, [rbx+350h]                                                ; +0x19c, 0x14043ea1c\nmov     edx, esi                                                       ; +0x1a3, 0x14043ea23\nxor     edx, 1                                                         ; +0x1a5, 0x14043ea25\nlea     rcx, word_1406ED6F8                                            ; +0x1a8, 0x14043ea28\ncall    cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0x1af, 0x14043ea2f\nmov     rdx, rax                                                       ; +0x1b5, 0x14043ea35\nlea     r8, [rbp+var_28]                                               ; +0x1b8, 0x14043ea38\nmov     rcx, rbx                                                       ; +0x1bc, 0x14043ea3c\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 &) ; +0x1bf, 0x14043ea3f\nnop                                                                    ; +0x1c5, 0x14043ea45\nmov     rdx, [rbp+var_10]                                              ; +0x1c6, 0x14043ea46\ncmp     rdx, 0Fh                                                       ; +0x1ca, 0x14043ea4a\njbe     short loc_14043EA97                                            ; +0x1ce, 0x14043ea4e\ninc     rdx                                                            ; +0x1d0, 0x14043ea50\nmov     rcx, [rbp+var_28]; Block                                       ; +0x1d3, 0x14043ea53\nmov     rax, rcx                                                       ; +0x1d7, 0x14043ea57\ncmp     rdx, 1000h                                                     ; +0x1da, 0x14043ea5a\njb      short loc_14043EA92                                            ; +0x1e1, 0x14043ea61\nadd     rdx, 27h ; '''                                                 ; +0x1e3, 0x14043ea63\nmov     rcx, [rcx-8]                                                   ; +0x1e7, 0x14043ea67\nsub     rax, rcx                                                       ; +0x1eb, 0x14043ea6b\nsub     rax, 8                                                         ; +0x1ee, 0x14043ea6e\ncmp     rax, 1Fh                                                       ; +0x1f2, 0x14043ea72\njbe     short loc_14043EA92                                            ; +0x1f6, 0x14043ea76\nmov     [rsp+80h+Reserved], 0; Reserved                                ; +0x1f8, 0x14043ea78\nxor     r9d, r9d; LineNo                                               ; +0x201, 0x14043ea81\nxor     r8d, r8d; FileName                                             ; +0x204, 0x14043ea84\nxor     edx, edx; FunctionName                                         ; +0x207, 0x14043ea87\nxor     ecx, ecx; Expression                                           ; +0x209, 0x14043ea89\ncall    cs:_invoke_watson                                              ; +0x20b, 0x14043ea8b\nalign 2                                                                ; +0x211, 0x14043ea91\ncall    j_j_free                                                       ; +0x212, 0x14043ea92\nmov     rcx, [rbp+var_8]                                               ; +0x217, 0x14043ea97\nxor     rcx, rsp; StackCookie                                          ; +0x21b, 0x14043ea9b\ncall    __security_check_cookie                                        ; +0x21e, 0x14043ea9e\nlea     r11, [rsp+80h+var_s0]                                          ; +0x223, 0x14043eaa3\nmov     rbx, [r11+10h]                                                 ; +0x22b, 0x14043eaab\nmov     rsi, [r11+18h]                                                 ; +0x22f, 0x14043eaaf\nmov     rsp, r11                                                       ; +0x233, 0x14043eab3\npop     rbp                                                            ; +0x236, 0x14043eab6\nretn                                                                   ; +0x237, 0x14043eab7", "xrefs": ["MoreSearchLayer::init @ 0x14043c424", "<???> @ 0x140926fe4"], "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"}