{"type": "func", "start": 4297607104, "end": 4297607289, "name": "CreatorLayer::dialogClosed", "pseudocode": "// \n// CreatorLayer::dialogClosed from 0x1002847c0 to 0x100284879 (185 bytes)\n// \n// 2 xrefs:\n// > sub_1002848A0 @ 0x1002848ac\n// > <???> @ 0x100afe720\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 12:27:44 +0000\n// \n\n__int64 __fastcall CreatorLayer::dialogClosed(__int64 a1, __int64 a2)\n{\n  __int64 result; // rax\n  __int64 v3; // rdx\n  double v4; // xmm0_8\n  __int64 v5; // rax\n  __int64 v6; // rbx\n  __int64 v7; // rax\n  __int64 v8; // rax\n  __int64 v9; // rbx\n  char v10; // [rsp+0h] [rbp-20h] BYREF\n  void *v11[3]; // [rsp+1h] [rbp-1Fh] BYREF\n\n  result = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2);\n  if ( (_DWORD)result == 1 )\n  {\n    v10 = 24;\n    strcpy((char *)v11, \"mapPromo.png\");\n    v9 = sub_1002A42C0(&v10);\n    if ( (v10 & 1) != 0 )\n      operator delete(*(void **)((char *)&v11[1] + 7));\n    return (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v9 + 1312LL))(v9);\n  }\n  else if ( !(_DWORD)result )\n  {\n    *(_QWORD *)&v4 = GameManager::sharedState(a2, a2, v3).u64[0];\n    GameManager::setUGV(v5, \"5\", 1, v4);\n    v6 = *(_QWORD *)(a1 + 432);\n    v7 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v4);\n    v8 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v7, \"secretDoorBtn_open_001.png\");\n    return (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v6 + 1160LL))(v6, v8);\n  }\n  return result;\n}", "assembly": "; \n; CreatorLayer::dialogClosed from 0x1002847c0 to 0x100284879 (185 bytes)\n; \n; 2 xrefs:\n; > sub_1002848A0 @ 0x1002848ac\n; > <???> @ 0x100afe720\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 12:27:44 +0000\n; \npush    rbp                                                            ; +0x0, 0x1002847c0\nmov     rbp, rsp                                                       ; +0x1, 0x1002847c1\npush    rbx                                                            ; +0x4, 0x1002847c4\nsub     rsp, 18h                                                       ; +0x5, 0x1002847c5\nmov     rbx, rdi                                                       ; +0x9, 0x1002847c9\nmov     rax, [rsi]                                                     ; +0xc, 0x1002847cc\nmov     rdi, rsi                                                       ; +0xf, 0x1002847cf\ncall    qword ptr [rax+40h]                                            ; +0x12, 0x1002847d2\ncmp     eax, 1                                                         ; +0x15, 0x1002847d5\njz      short loc_10028482E                                            ; +0x18, 0x1002847d8\ntest    eax, eax                                                       ; +0x1a, 0x1002847da\njnz     loc_100284872                                                  ; +0x1c, 0x1002847dc\ncall    GameManager__sharedState                                       ; +0x22, 0x1002847e2\nlea     rsi, a5; \"5\"                                                   ; +0x27, 0x1002847e7\nmov     rdi, rax                                                       ; +0x2e, 0x1002847ee\nmov     edx, 1                                                         ; +0x31, 0x1002847f1\ncall    GameManager__setUGV                                            ; +0x36, 0x1002847f6\nmov     rbx, [rbx+1B0h]                                                ; +0x3b, 0x1002847fb\ncall    cocos2d__CCSpriteFrameCache__sharedSpriteFrameCache            ; +0x42, 0x100284802\nlea     rsi, aSecretdoorbtnO; \"secretDoorBtn_open_001.png\"             ; +0x47, 0x100284807\nmov     rdi, rax                                                       ; +0x4e, 0x10028480e\ncall    cocos2d__CCSpriteFrameCache__spriteFrameByName                 ; +0x51, 0x100284811\nmov     rcx, [rbx]                                                     ; +0x56, 0x100284816\nmov     rcx, [rcx+488h]                                                ; +0x59, 0x100284819\nmov     rdi, rbx                                                       ; +0x60, 0x100284820\nmov     rsi, rax                                                       ; +0x63, 0x100284823\nadd     rsp, 18h                                                       ; +0x66, 0x100284826\npop     rbx                                                            ; +0x6a, 0x10028482a\npop     rbp                                                            ; +0x6b, 0x10028482b\njmp     rcx                                                            ; +0x6c, 0x10028482c\nmov     [rbp+var_20], 18h                                              ; +0x6e, 0x10028482e\nmov     rax, 6F6D6F725070616Dh                                         ; +0x72, 0x100284832\nmov     [rbp+var_1F], rax                                              ; +0x7c, 0x10028483c\nmov     dword ptr [rbp-17h], 676E702Eh                                 ; +0x80, 0x100284840\nmov     byte ptr [rbp-13h], 0                                          ; +0x87, 0x100284847\nlea     rdi, [rbp+var_20]                                              ; +0x8b, 0x10028484b\ncall    sub_1002A42C0                                                  ; +0x8f, 0x10028484f\nmov     rbx, rax                                                       ; +0x94, 0x100284854\ntest    [rbp+var_20], 1                                                ; +0x97, 0x100284857\njz      short loc_100284866                                            ; +0x9b, 0x10028485b\nmov     rdi, [rbp+__p]; __p                                            ; +0x9d, 0x10028485d\ncall    __ZdlPv; operator delete(void *)                               ; +0xa1, 0x100284861\nmov     rax, [rbx]                                                     ; +0xa6, 0x100284866\nmov     rdi, rbx                                                       ; +0xa9, 0x100284869\ncall    qword ptr [rax+520h]                                           ; +0xac, 0x10028486c\nadd     rsp, 18h                                                       ; +0xb2, 0x100284872\npop     rbx                                                            ; +0xb6, 0x100284876\npop     rbp                                                            ; +0xb7, 0x100284877\nretn                                                                   ; +0xb8, 0x100284878", "xrefs": ["sub_1002848A0 @ 0x1002848ac", "<???> @ 0x100afe720"], "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"}