{"type": "func", "start": 5369707776, "end": 5369707917, "name": "NewThreadPopup::show", "pseudocode": "// \n// NewThreadPopup::show from 0x1400f3d00 to 0x1400f3d8d (141 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x14072c2b0\n// > <???> @ 0x140915194\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:26:37 +0000\n// \n\n__int64 __fastcall NewThreadPopup::show(__int64 a1)\n{\n  cocos2d::CCScene *v2; // rbx\n  int v3; // eax\n\n  v2 = *(cocos2d::CCScene **)(cocos2d::CCDirector::sharedDirector(a1) + 272);\n  if ( *(_QWORD *)(a1 + 568) )\n  {\n    v2 = *(cocos2d::CCScene **)(a1 + 568);\n  }\n  else\n  {\n    if ( cocos2d::CCScene::getHighestChildZ(v2) + 1 >= 110 )\n      v3 = cocos2d::CCScene::getHighestChildZ(v2) + 1;\n    else\n      v3 = 110;\n    *(_DWORD *)(a1 + 592) = v3;\n  }\n  if ( !*(_DWORD *)(a1 + 592) )\n    *(_DWORD *)(a1 + 592) = 110;\n  (*(void (__fastcall **)(cocos2d::CCScene *, __int64))(*(_QWORD *)v2 + 456LL))(v2, a1);\n  return ThreadOpenHelper::showRulesOnce();\n}", "assembly": "; \n; NewThreadPopup::show from 0x1400f3d00 to 0x1400f3d8d (141 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x14072c2b0\n; > <???> @ 0x140915194\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:26:37 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x1400f3d00\npush    rdi                                                            ; +0x5, 0x1400f3d05\nsub     rsp, 20h                                                       ; +0x6, 0x1400f3d06\nmov     rdi, rcx                                                       ; +0xa, 0x1400f3d0a\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0xd, 0x1400f3d0d\nmov     rbx, [rax+110h]                                                ; +0x13, 0x1400f3d13\nmov     rax, [rdi+238h]                                                ; +0x1a, 0x1400f3d1a\ntest    rax, rax                                                       ; +0x21, 0x1400f3d21\njz      short loc_1400F3D2B                                            ; +0x24, 0x1400f3d24\nmov     rbx, rax                                                       ; +0x26, 0x1400f3d26\njmp     short loc_1400F3D53                                            ; +0x29, 0x1400f3d29\nmov     rcx, rbx                                                       ; +0x2b, 0x1400f3d2b\ncall    cs:?getHighestChildZ@CCScene@cocos2d@@QEAAHXZ; cocos2d::CCScene::getHighestChildZ(void) ; +0x2e, 0x1400f3d2e\ninc     eax                                                            ; +0x34, 0x1400f3d34\ncmp     eax, 6Eh ; 'n'                                                 ; +0x36, 0x1400f3d36\njge     short loc_1400F3D42                                            ; +0x39, 0x1400f3d39\nmov     eax, 6Eh ; 'n'                                                 ; +0x3b, 0x1400f3d3b\njmp     short loc_1400F3D4D                                            ; +0x40, 0x1400f3d40\nmov     rcx, rbx                                                       ; +0x42, 0x1400f3d42\ncall    cs:?getHighestChildZ@CCScene@cocos2d@@QEAAHXZ; cocos2d::CCScene::getHighestChildZ(void) ; +0x45, 0x1400f3d45\ninc     eax                                                            ; +0x4b, 0x1400f3d4b\nmov     [rdi+250h], eax                                                ; +0x4d, 0x1400f3d4d\nmov     r8d, [rdi+250h]                                                ; +0x53, 0x1400f3d53\ntest    r8d, r8d                                                       ; +0x5a, 0x1400f3d5a\njnz     short loc_1400F3D6F                                            ; +0x5d, 0x1400f3d5d\nmov     dword ptr [rdi+250h], 6Eh ; 'n'                                ; +0x5f, 0x1400f3d5f\nmov     r8d, 6Eh ; 'n'                                                 ; +0x69, 0x1400f3d69\nmov     rax, [rbx]                                                     ; +0x6f, 0x1400f3d6f\nmov     rdx, rdi                                                       ; +0x72, 0x1400f3d72\nmov     rcx, rbx                                                       ; +0x75, 0x1400f3d75\ncall    qword ptr [rax+1C8h]                                           ; +0x78, 0x1400f3d78\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x7e, 0x1400f3d7e\nadd     rsp, 20h                                                       ; +0x83, 0x1400f3d83\npop     rdi                                                            ; +0x87, 0x1400f3d87\njmp     ThreadOpenHelper__showRulesOnce                                ; +0x88, 0x1400f3d88", "xrefs": ["<???> @ 0x14072c2b0", "<???> @ 0x140915194"], "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"}