{"type": "func", "start": 5369992896, "end": 5369993087, "name": "CreatorLayer::dialogClosed", "pseudocode": "// \n// CreatorLayer::dialogClosed from 0x1401396c0 to 0x14013977f (191 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x140737d90\n// > <???> @ 0x140917210\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:27:06 +0000\n// \n\n// Hidden C++ exception states: #wind=1\n__int64 __fastcall CreatorLayer::dialogClosed(__int64 a1, __int64 a2)\n{\n  __int64 result; // rax\n  __int64 v4; // r8\n  __int64 v5; // rcx\n  __int64 v6; // rdi\n  __int64 v7; // rbx\n  cocos2d::CCSpriteFrameCache *v8; // rax\n  struct cocos2d::CCSpriteFrame *v9; // rax\n  void *v10; // [rsp+38h] [rbp+10h]\n\n  result = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 56LL))(a2);\n  if ( (_DWORD)result )\n  {\n    if ( (_DWORD)result == 1 )\n      return CreatorLayer::onAdventureMap(a1 - 416, 0);\n  }\n  else\n  {\n    v5 = qword_14090BFD0;\n    if ( !qword_14090BFD0 )\n    {\n      v10 = operator new(0x6E8u);\n      qword_14090BFD0 = GameManager::GameManager(v10);\n      (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);\n      v5 = qword_14090BFD0;\n    }\n    LOBYTE(v4) = 1;\n    GameManager::setUGV(v5, &word_14070D048, v4);\n    v6 = **(_QWORD **)(a1 + 16);\n    v7 = *(_QWORD *)(a1 + 16);\n    v8 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache();\n    v9 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v8, \"secretDoorBtn_open_001.png\");\n    return (*(__int64 (__fastcall **)(__int64, struct cocos2d::CCSpriteFrame *))(v6 + 1008))(v7, v9);\n  }\n  return result;\n}", "assembly": "; \n; CreatorLayer::dialogClosed from 0x1401396c0 to 0x14013977f (191 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x140737d90\n; > <???> @ 0x140917210\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:27:06 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x1401396c0\npush    rdi                                                            ; +0x5, 0x1401396c5\nsub     rsp, 20h                                                       ; +0x6, 0x1401396c6\nmov     rbx, rcx                                                       ; +0xa, 0x1401396ca\nmov     rax, [rdx]                                                     ; +0xd, 0x1401396cd\nmov     rcx, rdx                                                       ; +0x10, 0x1401396d0\ncall    qword ptr [rax+38h]                                            ; +0x13, 0x1401396d3\ntest    eax, eax                                                       ; +0x16, 0x1401396d6\njz      short loc_1401396FB                                            ; +0x18, 0x1401396d8\ncmp     eax, 1                                                         ; +0x1a, 0x1401396da\njnz     loc_140139774                                                  ; +0x1d, 0x1401396dd\nlea     rcx, [rbx-1A0h]                                                ; +0x23, 0x1401396e3\nxor     edx, edx                                                       ; +0x2a, 0x1401396ea\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x2c, 0x1401396ec\nadd     rsp, 20h                                                       ; +0x31, 0x1401396f1\npop     rdi                                                            ; +0x35, 0x1401396f5\njmp     CreatorLayer__onAdventureMap                                   ; +0x36, 0x1401396f6\nmov     rcx, cs:qword_14090BFD0                                        ; +0x3b, 0x1401396fb\ntest    rcx, rcx                                                       ; +0x42, 0x140139702\njnz     short loc_140139739                                            ; +0x45, 0x140139705\nmov     ecx, 6E8h; Size                                                ; +0x47, 0x140139707\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x4c, 0x14013970c\nmov     [rsp+28h+arg_8], rax                                           ; +0x51, 0x140139711\nmov     rcx, rax                                                       ; +0x56, 0x140139716\ncall    GameManager__GameManager                                       ; +0x59, 0x140139719\nnop                                                                    ; +0x5e, 0x14013971e\nmov     cs:qword_14090BFD0, rax                                        ; +0x5f, 0x14013971f\nmov     rcx, [rax]                                                     ; +0x66, 0x140139726\nmov     rdx, [rcx+48h]                                                 ; +0x69, 0x140139729\nmov     rcx, rax                                                       ; +0x6d, 0x14013972d\ncall    rdx                                                            ; +0x70, 0x140139730\nmov     rcx, cs:qword_14090BFD0                                        ; +0x72, 0x140139732\nmov     r8b, 1                                                         ; +0x79, 0x140139739\nlea     rdx, word_14070D048                                            ; +0x7c, 0x14013973c\ncall    GameManager__setUGV                                            ; +0x83, 0x140139743\nmov     rax, [rbx+10h]                                                 ; +0x88, 0x140139748\nmov     rdi, [rax]                                                     ; +0x8c, 0x14013974c\nmov     rbx, rax                                                       ; +0x8f, 0x14013974f\ncall    cs:?sharedSpriteFrameCache@CCSpriteFrameCache@cocos2d@@SAPEAV12@XZ; cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(void) ; +0x92, 0x140139752\nmov     rcx, rax                                                       ; +0x98, 0x140139758\nlea     rdx, aSecretdoorbtnO; \"secretDoorBtn_open_001.png\"             ; +0x9b, 0x14013975b\ncall    cs:?spriteFrameByName@CCSpriteFrameCache@cocos2d@@QEAAPEAVCCSpriteFrame@2@PEBD@Z; cocos2d::CCSpriteFrameCache::spriteFrameByName(char const *) ; +0xa2, 0x140139762\nmov     rdx, rax                                                       ; +0xa8, 0x140139768\nmov     rcx, rbx                                                       ; +0xab, 0x14013976b\ncall    qword ptr [rdi+3F0h]                                           ; +0xae, 0x14013976e\nmov     rbx, [rsp+28h+arg_0]                                           ; +0xb4, 0x140139774\nadd     rsp, 20h                                                       ; +0xb9, 0x140139779\npop     rdi                                                            ; +0xbd, 0x14013977d\nretn                                                                   ; +0xbe, 0x14013977e", "xrefs": ["<???> @ 0x140737d90", "<???> @ 0x140917210"], "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"}