{"type": "func", "start": 5371650352, "end": 5371650619, "name": "LevelBrowserLayer::shareCommentClosed", "pseudocode": "// \n// LevelBrowserLayer::shareCommentClosed from 0x1402ce130 to 0x1402ce23b (267 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0x140584d58\n// > <???> @ 0x1406d2d8c\n// > <???> @ 0x1406d2d98\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\n// Hidden C++ exception states: #wind=3\nvoid __fastcall LevelBrowserLayer::shareCommentClosed(__int64 a1, std::string *a2, __int64 a3)\n{\n  GJLevelList *NewLevelList; // rsi\n  __int64 v6; // rcx\n  std::string *m_bigStorage; // rdx\n  void *v8; // [rsp+20h] [rbp-28h]\n  void *v9; // [rsp+20h] [rbp-28h]\n\n  if ( *(_DWORD *)(a3 + 664) == 5 )\n  {\n    if ( !qword_1406C2EC0 )\n    {\n      v8 = operator new(0x3D0u);\n      qword_1406C2EC0 = sub_140141280((__int64)v8);\n      (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EC0 + 72LL))(qword_1406C2EC0);\n    }\n    NewLevelList = GameLevelManager::createNewLevelList((GameLevelManager *)a1);\n    v6 = qword_1406C2EC0;\n    if ( !qword_1406C2EC0 )\n    {\n      v9 = operator new(0x3D0u);\n      qword_1406C2EC0 = sub_140141280((__int64)v9);\n      (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EC0 + 72LL))(qword_1406C2EC0);\n      v6 = qword_1406C2EC0;\n    }\n    *(_BYTE *)(v6 + 712) = 1;\n    if ( &NewLevelList->m_listName != a2 )\n    {\n      m_bigStorage = a2;\n      if ( a2->m_data.m_capacity > 0xF )\n        m_bigStorage = (std::string *)a2->m_data.m_bigStorage;\n      sub_14003CCE0((void **)&NewLevelList->m_listName, m_bigStorage, a2->m_data.m_size);\n    }\n    LevelBrowserLayer::loadPage((LevelBrowserLayer *)(a1 - 584), *(GJSearchObject **)(a1 + 80));\n  }\n  sub_14003A830((__int64)a2);\n}", "assembly": "; \n; LevelBrowserLayer::shareCommentClosed from 0x1402ce130 to 0x1402ce23b (267 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0x140584d58\n; > <???> @ 0x1406d2d8c\n; > <???> @ 0x1406d2d98\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nmov     [rsp+arg_10], rbx                                              ; +0x0, 0x1402ce130\nmov     [rsp+arg_18], rsi                                              ; +0x5, 0x1402ce135\npush    rdi                                                            ; +0xa, 0x1402ce13a\nsub     rsp, 40h                                                       ; +0xb, 0x1402ce13b\nmov     rax, cs:__security_cookie                                      ; +0xf, 0x1402ce13f\nxor     rax, rsp                                                       ; +0x16, 0x1402ce146\nmov     [rsp+48h+var_18], rax                                          ; +0x19, 0x1402ce149\nmov     rbx, rdx                                                       ; +0x1e, 0x1402ce14e\nmov     rdi, rcx                                                       ; +0x21, 0x1402ce151\nmov     [rsp+48h+var_20], rdx                                          ; +0x24, 0x1402ce154\ncmp     dword ptr [r8+298h], 5                                         ; +0x29, 0x1402ce159\njnz     loc_1402CE216                                                  ; +0x31, 0x1402ce161\ncmp     cs:qword_1406C2EC0, 0                                          ; +0x37, 0x1402ce167\njnz     short loc_1402CE199                                            ; +0x3f, 0x1402ce16f\nmov     ecx, 3D0h; Size                                                ; +0x41, 0x1402ce171\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x46, 0x1402ce176\nmov     [rsp+48h+var_28], rax                                          ; +0x4b, 0x1402ce17b\nmov     rcx, rax                                                       ; +0x50, 0x1402ce180\ncall    sub_140141280                                                  ; +0x53, 0x1402ce183\nnop                                                                    ; +0x58, 0x1402ce188\nmov     cs:qword_1406C2EC0, rax                                        ; +0x59, 0x1402ce189\nmov     rdx, [rax]                                                     ; +0x60, 0x1402ce190\nmov     rcx, rax                                                       ; +0x63, 0x1402ce193\ncall    qword ptr [rdx+48h]                                            ; +0x66, 0x1402ce196\ncall    GameLevelManager__createNewLevelList                           ; +0x69, 0x1402ce199\nmov     rsi, rax                                                       ; +0x6e, 0x1402ce19e\nmov     rcx, cs:qword_1406C2EC0                                        ; +0x71, 0x1402ce1a1\ntest    rcx, rcx                                                       ; +0x78, 0x1402ce1a8\njnz     short loc_1402CE1DC                                            ; +0x7b, 0x1402ce1ab\nmov     ecx, 3D0h; Size                                                ; +0x7d, 0x1402ce1ad\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x82, 0x1402ce1b2\nmov     [rsp+48h+var_28], rax                                          ; +0x87, 0x1402ce1b7\nmov     rcx, rax                                                       ; +0x8c, 0x1402ce1bc\ncall    sub_140141280                                                  ; +0x8f, 0x1402ce1bf\nnop                                                                    ; +0x94, 0x1402ce1c4\nmov     cs:qword_1406C2EC0, rax                                        ; +0x95, 0x1402ce1c5\nmov     rdx, [rax]                                                     ; +0x9c, 0x1402ce1cc\nmov     rcx, rax                                                       ; +0x9f, 0x1402ce1cf\ncall    qword ptr [rdx+48h]                                            ; +0xa2, 0x1402ce1d2\nmov     rcx, cs:qword_1406C2EC0                                        ; +0xa5, 0x1402ce1d5\nmov     byte ptr [rcx+2C8h], 1                                         ; +0xac, 0x1402ce1dc\nlea     rcx, [rsi+1B0h]; void *                                        ; +0xb3, 0x1402ce1e3\ncmp     rcx, rbx                                                       ; +0xba, 0x1402ce1ea\njz      short loc_1402CE205                                            ; +0xbd, 0x1402ce1ed\nmov     rdx, rbx                                                       ; +0xbf, 0x1402ce1ef\ncmp     qword ptr [rbx+18h], 0Fh                                       ; +0xc2, 0x1402ce1f2\njbe     short loc_1402CE1FC                                            ; +0xc7, 0x1402ce1f7\nmov     rdx, [rbx]; Src                                                ; +0xc9, 0x1402ce1f9\nmov     r8, [rbx+10h]; Size                                            ; +0xcc, 0x1402ce1fc\ncall    sub_14003CCE0                                                  ; +0xd0, 0x1402ce200\nlea     rcx, [rdi-248h]                                                ; +0xd5, 0x1402ce205\nmov     rdx, [rdi+50h]                                                 ; +0xdc, 0x1402ce20c\ncall    LevelBrowserLayer__loadPage                                    ; +0xe0, 0x1402ce210\nnop                                                                    ; +0xe5, 0x1402ce215\nmov     rcx, rbx                                                       ; +0xe6, 0x1402ce216\ncall    sub_14003A830                                                  ; +0xe9, 0x1402ce219\nmov     rcx, [rsp+48h+var_18]                                          ; +0xee, 0x1402ce21e\nxor     rcx, rsp; StackCookie                                          ; +0xf3, 0x1402ce223\ncall    __security_check_cookie                                        ; +0xf6, 0x1402ce226\nmov     rbx, [rsp+48h+arg_10]                                          ; +0xfb, 0x1402ce22b\nmov     rsi, [rsp+48h+arg_18]                                          ; +0x100, 0x1402ce230\nadd     rsp, 40h                                                       ; +0x105, 0x1402ce235\npop     rdi                                                            ; +0x109, 0x1402ce239\nretn                                                                   ; +0x10a, 0x1402ce23a", "xrefs": ["<???> @ 0x140584d58", "<???> @ 0x1406d2d8c", "<???> @ 0x1406d2d98"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}