{"type": "func", "start": 5372717936, "end": 5372718136, "name": "InfoLayer::canToggleModRoom", "pseudocode": "// \n// InfoLayer::canToggleModRoom from 0x1403d2b70 to 0x1403d2c38 (200 bytes)\n// \n// 3 xrefs:\n// > InfoLayer::init @ 0x1403cf3df\n// > InfoLayer::toggleSmallCommentMode @ 0x1403d2654\n// > <???> @ 0x1409247b8\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:35 +0000\n// \n\n// Hidden C++ exception states: #wind=2\nbool __fastcall InfoLayer::canToggleModRoom(__int64 a1)\n{\n  __int64 v2; // rcx\n  __int64 v3; // rdx\n  void *v5; // [rsp+38h] [rbp+10h]\n  void *v6; // [rsp+38h] [rbp+10h]\n\n  v2 = qword_14090BFD0;\n  if ( !qword_14090BFD0 )\n  {\n    v5 = operator new(0x6E8u);\n    qword_14090BFD0 = GameManager::GameManager((__int64)v5);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);\n    v2 = qword_14090BFD0;\n  }\n  if ( GameManager::getGameVariable(v2, \"0235\") || !*(_QWORD *)(a1 + 696) || *(_DWORD *)(a1 + 884) )\n    return 0;\n  v3 = qword_14090BFD0;\n  if ( !qword_14090BFD0 )\n  {\n    v6 = operator new(0x6E8u);\n    qword_14090BFD0 = GameManager::GameManager((__int64)v6);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);\n    v3 = qword_14090BFD0;\n  }\n  return *(_DWORD *)(v3 + 1064) - *(_DWORD *)(v3 + 1068) > 0;\n}", "assembly": "; \n; InfoLayer::canToggleModRoom from 0x1403d2b70 to 0x1403d2c38 (200 bytes)\n; \n; 3 xrefs:\n; > InfoLayer::init @ 0x1403cf3df\n; > InfoLayer::toggleSmallCommentMode @ 0x1403d2654\n; > <???> @ 0x1409247b8\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:35 +0000\n; \npush    rbx                                                            ; +0x0, 0x1403d2b70\nsub     rsp, 20h                                                       ; +0x2, 0x1403d2b72\nmov     rbx, rcx                                                       ; +0x6, 0x1403d2b76\nmov     rcx, cs:qword_14090BFD0                                        ; +0x9, 0x1403d2b79\ntest    rcx, rcx                                                       ; +0x10, 0x1403d2b80\njnz     short loc_1403D2BB7                                            ; +0x13, 0x1403d2b83\nmov     ecx, 6E8h; Size                                                ; +0x15, 0x1403d2b85\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x1a, 0x1403d2b8a\nmov     [rsp+28h+arg_8], rax                                           ; +0x1f, 0x1403d2b8f\nmov     rcx, rax                                                       ; +0x24, 0x1403d2b94\ncall    GameManager__GameManager                                       ; +0x27, 0x1403d2b97\nnop                                                                    ; +0x2c, 0x1403d2b9c\nmov     cs:qword_14090BFD0, rax                                        ; +0x2d, 0x1403d2b9d\nmov     rcx, [rax]                                                     ; +0x34, 0x1403d2ba4\nmov     rdx, [rcx+48h]                                                 ; +0x37, 0x1403d2ba7\nmov     rcx, rax                                                       ; +0x3b, 0x1403d2bab\ncall    rdx                                                            ; +0x3e, 0x1403d2bae\nmov     rcx, cs:qword_14090BFD0                                        ; +0x40, 0x1403d2bb0\nlea     rdx, a0235; \"0235\"                                             ; +0x47, 0x1403d2bb7\ncall    GameManager__getGameVariable                                   ; +0x4e, 0x1403d2bbe\ntest    al, al                                                         ; +0x53, 0x1403d2bc3\njnz     short loc_1403D2C30                                            ; +0x55, 0x1403d2bc5\ncmp     qword ptr [rbx+2B8h], 0                                        ; +0x57, 0x1403d2bc7\njz      short loc_1403D2C30                                            ; +0x5f, 0x1403d2bcf\ncmp     dword ptr [rbx+374h], 0                                        ; +0x61, 0x1403d2bd1\njnz     short loc_1403D2C30                                            ; +0x68, 0x1403d2bd8\nmov     rdx, cs:qword_14090BFD0                                        ; +0x6a, 0x1403d2bda\ntest    rdx, rdx                                                       ; +0x71, 0x1403d2be1\njnz     short loc_1403D2C18                                            ; +0x74, 0x1403d2be4\nmov     ecx, 6E8h; Size                                                ; +0x76, 0x1403d2be6\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x7b, 0x1403d2beb\nmov     [rsp+28h+arg_8], rax                                           ; +0x80, 0x1403d2bf0\nmov     rcx, rax                                                       ; +0x85, 0x1403d2bf5\ncall    GameManager__GameManager                                       ; +0x88, 0x1403d2bf8\nnop                                                                    ; +0x8d, 0x1403d2bfd\nmov     cs:qword_14090BFD0, rax                                        ; +0x8e, 0x1403d2bfe\nmov     rcx, [rax]                                                     ; +0x95, 0x1403d2c05\nmov     rdx, [rcx+48h]                                                 ; +0x98, 0x1403d2c08\nmov     rcx, rax                                                       ; +0x9c, 0x1403d2c0c\ncall    rdx                                                            ; +0x9f, 0x1403d2c0f\nmov     rdx, cs:qword_14090BFD0                                        ; +0xa1, 0x1403d2c11\nmov     eax, [rdx+428h]                                                ; +0xa8, 0x1403d2c18\nsub     eax, [rdx+42Ch]                                                ; +0xae, 0x1403d2c1e\ntest    eax, eax                                                       ; +0xb4, 0x1403d2c24\njle     short loc_1403D2C30                                            ; +0xb6, 0x1403d2c26\nmov     al, 1                                                          ; +0xb8, 0x1403d2c28\nadd     rsp, 20h                                                       ; +0xba, 0x1403d2c2a\npop     rbx                                                            ; +0xbe, 0x1403d2c2e\nretn                                                                   ; +0xbf, 0x1403d2c2f\nxor     al, al                                                         ; +0xc0, 0x1403d2c30\nadd     rsp, 20h                                                       ; +0xc2, 0x1403d2c32\npop     rbx                                                            ; +0xc6, 0x1403d2c36\nretn                                                                   ; +0xc7, 0x1403d2c37", "xrefs": ["InfoLayer::init @ 0x1403cf3df", "InfoLayer::toggleSmallCommentMode @ 0x1403d2654", "<???> @ 0x1409247b8"], "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"}