{"type": "func", "start": 5372805888, "end": 5372806161, "name": "LevelBrowserLayer::shareCommentClosed", "pseudocode": "// \n// LevelBrowserLayer::shareCommentClosed from 0x1403e8300 to 0x1403e8411 (273 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0x140789ab0\n// > <???> @ 0x140924fe0\n// > <???> @ 0x140924fec\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:31:44 +0000\n// \n\n// Hidden C++ exception states: #wind=3\nvoid __fastcall LevelBrowserLayer::shareCommentClosed(__int64 a1, void **a2, __int64 a3)\n{\n  struct cocos2d::CCObject *NewLevelList; // rsi\n  __int64 v6; // rcx\n  void *v7; // rdx\n  void *v8; // [rsp+20h] [rbp-28h]\n  void *v9; // [rsp+20h] [rbp-28h]\n\n  if ( *(_DWORD *)(a3 + 696) == 5 )\n  {\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    }\n    NewLevelList = GameLevelManager::createNewLevelList();\n    v6 = *(_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      v6 = *(_QWORD *)&qword_14090BFB0;\n    }\n    *(_BYTE *)(v6 + 1344) = 1;\n    if ( (void **)((char *)NewLevelList + 440) != a2 )\n    {\n      v7 = a2;\n      if ( (unsigned __int64)a2[3] > 0xF )\n        v7 = *a2;\n      sub_1400405A0((void **)NewLevelList + 55, v7, (size_t)a2[2]);\n    }\n    LevelBrowserLayer::loadPage(a1 - 584, *(int **)(a1 + 80));\n  }\n  sub_14003D310((__int64)a2);\n}", "assembly": "; \n; LevelBrowserLayer::shareCommentClosed from 0x1403e8300 to 0x1403e8411 (273 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0x140789ab0\n; > <???> @ 0x140924fe0\n; > <???> @ 0x140924fec\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:31:44 +0000\n; \nmov     [rsp+arg_10], rbx                                              ; +0x0, 0x1403e8300\nmov     [rsp+arg_18], rsi                                              ; +0x5, 0x1403e8305\npush    rdi                                                            ; +0xa, 0x1403e830a\nsub     rsp, 40h                                                       ; +0xb, 0x1403e830b\nmov     rax, cs:__security_cookie                                      ; +0xf, 0x1403e830f\nxor     rax, rsp                                                       ; +0x16, 0x1403e8316\nmov     [rsp+48h+var_18], rax                                          ; +0x19, 0x1403e8319\nmov     rbx, rdx                                                       ; +0x1e, 0x1403e831e\nmov     rdi, rcx                                                       ; +0x21, 0x1403e8321\nmov     [rsp+48h+var_20], rdx                                          ; +0x24, 0x1403e8324\ncmp     dword ptr [r8+2B8h], 5                                         ; +0x29, 0x1403e8329\njnz     loc_1403E83EC                                                  ; +0x31, 0x1403e8331\ncmp     cs:qword_14090BFB0, 0                                          ; +0x37, 0x1403e8337\njnz     short loc_1403E836C                                            ; +0x3f, 0x1403e833f\nmov     ecx, 690h; Size                                                ; +0x41, 0x1403e8341\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x46, 0x1403e8346\nmov     [rsp+48h+var_28], rax                                          ; +0x4b, 0x1403e834b\nmov     rcx, rax                                                       ; +0x50, 0x1403e8350\ncall    GameLevelManager__GameLevelManager                             ; +0x53, 0x1403e8353\nnop                                                                    ; +0x58, 0x1403e8358\nmov     cs:qword_14090BFB0, rax                                        ; +0x59, 0x1403e8359\nmov     rcx, [rax]                                                     ; +0x60, 0x1403e8360\nmov     rdx, [rcx+48h]                                                 ; +0x63, 0x1403e8363\nmov     rcx, rax                                                       ; +0x67, 0x1403e8367\ncall    rdx                                                            ; +0x6a, 0x1403e836a\ncall    GameLevelManager__createNewLevelList                           ; +0x6c, 0x1403e836c\nmov     rsi, rax                                                       ; +0x71, 0x1403e8371\nmov     rcx, cs:qword_14090BFB0                                        ; +0x74, 0x1403e8374\ntest    rcx, rcx                                                       ; +0x7b, 0x1403e837b\njnz     short loc_1403E83B2                                            ; +0x7e, 0x1403e837e\nmov     ecx, 690h; Size                                                ; +0x80, 0x1403e8380\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x85, 0x1403e8385\nmov     [rsp+48h+var_28], rax                                          ; +0x8a, 0x1403e838a\nmov     rcx, rax                                                       ; +0x8f, 0x1403e838f\ncall    GameLevelManager__GameLevelManager                             ; +0x92, 0x1403e8392\nnop                                                                    ; +0x97, 0x1403e8397\nmov     cs:qword_14090BFB0, rax                                        ; +0x98, 0x1403e8398\nmov     rcx, [rax]                                                     ; +0x9f, 0x1403e839f\nmov     rdx, [rcx+48h]                                                 ; +0xa2, 0x1403e83a2\nmov     rcx, rax                                                       ; +0xa6, 0x1403e83a6\ncall    rdx                                                            ; +0xa9, 0x1403e83a9\nmov     rcx, cs:qword_14090BFB0                                        ; +0xab, 0x1403e83ab\nmov     byte ptr [rcx+540h], 1                                         ; +0xb2, 0x1403e83b2\nlea     rcx, [rsi+1B8h]; void *                                        ; +0xb9, 0x1403e83b9\ncmp     rcx, rbx                                                       ; +0xc0, 0x1403e83c0\njz      short loc_1403E83DB                                            ; +0xc3, 0x1403e83c3\nmov     rdx, rbx                                                       ; +0xc5, 0x1403e83c5\ncmp     qword ptr [rbx+18h], 0Fh                                       ; +0xc8, 0x1403e83c8\njbe     short loc_1403E83D2                                            ; +0xcd, 0x1403e83cd\nmov     rdx, [rbx]; Src                                                ; +0xcf, 0x1403e83cf\nmov     r8, [rbx+10h]; Size                                            ; +0xd2, 0x1403e83d2\ncall    sub_1400405A0                                                  ; +0xd6, 0x1403e83d6\nlea     rcx, [rdi-248h]                                                ; +0xdb, 0x1403e83db\nmov     rdx, [rdi+50h]                                                 ; +0xe2, 0x1403e83e2\ncall    LevelBrowserLayer__loadPage                                    ; +0xe6, 0x1403e83e6\nnop                                                                    ; +0xeb, 0x1403e83eb\nmov     rcx, rbx                                                       ; +0xec, 0x1403e83ec\ncall    sub_14003D310                                                  ; +0xef, 0x1403e83ef\nmov     rcx, [rsp+48h+var_18]                                          ; +0xf4, 0x1403e83f4\nxor     rcx, rsp; StackCookie                                          ; +0xf9, 0x1403e83f9\ncall    __security_check_cookie                                        ; +0xfc, 0x1403e83fc\nmov     rbx, [rsp+48h+arg_10]                                          ; +0x101, 0x1403e8401\nmov     rsi, [rsp+48h+arg_18]                                          ; +0x106, 0x1403e8406\nadd     rsp, 40h                                                       ; +0x10b, 0x1403e840b\npop     rdi                                                            ; +0x10f, 0x1403e840f\nretn                                                                   ; +0x110, 0x1403e8410", "xrefs": ["<???> @ 0x140789ab0", "<???> @ 0x140924fe0", "<???> @ 0x140924fec"], "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"}