{"type": "func", "start": 5369975808, "end": 5369976077, "name": "CreatorLayer::dCreatorLayer", "pseudocode": "// \n// CreatorLayer::dCreatorLayer from 0x140135400 to 0x14013550d (269 bytes)\n// \n// 3 xrefs:\n// > sub_1401399BC @ 0x1401399c3\n// > <???> @ 0x140737968\n// > <???> @ 0x1409170f0\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:04 +0000\n// \n\n// Hidden C++ exception states: #wind=1\nchar *__fastcall CreatorLayer::dCreatorLayer(char *Block, char a2)\n{\n  char *v4; // rdi\n  __int64 v5; // rax\n  void *v6; // rax\n\n  *(_QWORD *)Block = &CreatorLayer::`vftable';\n  *((_QWORD *)Block + 40) = &CreatorLayer::`vftable';\n  *((_QWORD *)Block + 41) = &CreatorLayer::`vftable';\n  *((_QWORD *)Block + 42) = &CreatorLayer::`vftable';\n  *((_QWORD *)Block + 43) = &CreatorLayer::`vftable';\n  *((_QWORD *)Block + 44) = &CreatorLayer::`vftable';\n  *((_QWORD *)Block + 51) = &CreatorLayer::`vftable';\n  *((_QWORD *)Block + 52) = &CreatorLayer::`vftable';\n  v4 = Block + 424;\n  *((_QWORD *)Block + 53) = &CreatorLayer::`vftable';\n  v5 = *(_QWORD *)&qword_14090BFB0;\n  if ( !*(_QWORD *)&qword_14090BFB0 )\n  {\n    v6 = operator new(0x690u);\n    *(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager(v6);\n    (*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0);\n    v5 = *(_QWORD *)&qword_14090BFB0;\n  }\n  if ( *(char **)(v5 + 1568) == v4 )\n    *(_QWORD *)(v5 + 1568) = 0;\n  cocos2d::CCLayer::~CCLayer((cocos2d::CCLayer *)Block);\n  if ( (a2 & 1) != 0 )\n    j_j_free(Block);\n  return Block;\n}", "assembly": "; \n; CreatorLayer::dCreatorLayer from 0x140135400 to 0x14013550d (269 bytes)\n; \n; 3 xrefs:\n; > sub_1401399BC @ 0x1401399c3\n; > <???> @ 0x140737968\n; > <???> @ 0x1409170f0\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:04 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x140135400\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x140135405\npush    rdi                                                            ; +0xa, 0x14013540a\nsub     rsp, 20h                                                       ; +0xb, 0x14013540b\nmov     esi, edx                                                       ; +0xf, 0x14013540f\nmov     rbx, rcx                                                       ; +0x11, 0x140135411\nlea     rax, ??_7CreatorLayer@@6B@; const CreatorLayer::`vftable'      ; +0x14, 0x140135414\nmov     [rcx], rax                                                     ; +0x1b, 0x14013541b\nlea     rax, ??_7CreatorLayer@@6B@_0; const CreatorLayer::`vftable'    ; +0x1e, 0x14013541e\nmov     [rcx+140h], rax                                                ; +0x25, 0x140135425\nlea     rax, ??_7CreatorLayer@@6B@_1; const CreatorLayer::`vftable'    ; +0x2c, 0x14013542c\nmov     [rcx+148h], rax                                                ; +0x33, 0x140135433\nlea     rax, ??_7CreatorLayer@@6B@_2; const CreatorLayer::`vftable'    ; +0x3a, 0x14013543a\nmov     [rcx+150h], rax                                                ; +0x41, 0x140135441\nlea     rax, ??_7CreatorLayer@@6B@_3; const CreatorLayer::`vftable'    ; +0x48, 0x140135448\nmov     [rcx+158h], rax                                                ; +0x4f, 0x14013544f\nlea     rax, ??_7CreatorLayer@@6B@_4; const CreatorLayer::`vftable'    ; +0x56, 0x140135456\nmov     [rcx+160h], rax                                                ; +0x5d, 0x14013545d\nlea     rax, ??_7CreatorLayer@@6B@_5; const CreatorLayer::`vftable'    ; +0x64, 0x140135464\nmov     [rcx+198h], rax                                                ; +0x6b, 0x14013546b\nlea     rax, ??_7CreatorLayer@@6B@_6; const CreatorLayer::`vftable'    ; +0x72, 0x140135472\nmov     [rcx+1A0h], rax                                                ; +0x79, 0x140135479\nlea     rdi, [rcx+1A8h]                                                ; +0x80, 0x140135480\nlea     rax, ??_7CreatorLayer@@6B@_7; const CreatorLayer::`vftable'    ; +0x87, 0x140135487\nmov     [rdi], rax                                                     ; +0x8e, 0x14013548e\nmov     rax, cs:qword_14090BFB0                                        ; +0x91, 0x140135491\ntest    rax, rax                                                       ; +0x98, 0x140135498\njnz     short loc_1401354C9                                            ; +0x9b, 0x14013549b\nmov     ecx, 690h; Size                                                ; +0x9d, 0x14013549d\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0xa2, 0x1401354a2\nmov     rcx, rax                                                       ; +0xa7, 0x1401354a7\ncall    GameLevelManager__GameLevelManager                             ; +0xaa, 0x1401354aa\nmov     cs:qword_14090BFB0, rax                                        ; +0xaf, 0x1401354af\nmov     rcx, [rax]                                                     ; +0xb6, 0x1401354b6\nmov     rdx, [rcx+48h]                                                 ; +0xb9, 0x1401354b9\nmov     rcx, rax                                                       ; +0xbd, 0x1401354bd\ncall    rdx                                                            ; +0xc0, 0x1401354c0\nmov     rax, cs:qword_14090BFB0                                        ; +0xc2, 0x1401354c2\ncmp     [rax+620h], rdi                                                ; +0xc9, 0x1401354c9\njnz     short loc_1401354DD                                            ; +0xd0, 0x1401354d0\nmov     qword ptr [rax+620h], 0                                        ; +0xd2, 0x1401354d2\nmov     rcx, rbx                                                       ; +0xdd, 0x1401354dd\ncall    cs:__imp_??1CCLayer@cocos2d@@UEAA@XZ; cocos2d::CCLayer::~CCLayer(void) ; +0xe0, 0x1401354e0\nnop                                                                    ; +0xe6, 0x1401354e6\ntest    sil, 1                                                         ; +0xe7, 0x1401354e7\njz      short loc_1401354FA                                            ; +0xeb, 0x1401354eb\nmov     edx, 1E8h                                                      ; +0xed, 0x1401354ed\nmov     rcx, rbx; Block                                                ; +0xf2, 0x1401354f2\ncall    j_j_free                                                       ; +0xf5, 0x1401354f5\nmov     rax, rbx                                                       ; +0xfa, 0x1401354fa\nmov     rbx, [rsp+28h+arg_0]                                           ; +0xfd, 0x1401354fd\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x102, 0x140135502\nadd     rsp, 20h                                                       ; +0x107, 0x140135507\npop     rdi                                                            ; +0x10b, 0x14013550b\nretn                                                                   ; +0x10c, 0x14013550c", "xrefs": ["sub_1401399BC @ 0x1401399c3", "<???> @ 0x140737968", "<???> @ 0x1409170f0"], "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"}