{"type": "func", "start": 5373052384, "end": 5373052559, "name": "LevelInfoLayer::onViewProfile", "pseudocode": "// \n// LevelInfoLayer::onViewProfile from 0x1404245e0 to 0x14042468f (175 bytes)\n// \n// 2 xrefs:\n// > LevelInfoLayer::init @ 0x14041c739\n// > <???> @ 0x140926954\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:32:10 +0000\n// \n\n// Hidden C++ exception states: #wind=1\nvoid __fastcall LevelInfoLayer::onViewProfile(__int64 a1)\n{\n  __int64 v2; // rcx\n  __int64 v3; // rax\n  void *v4; // [rsp+30h] [rbp+8h]\n\n  if ( !*(_BYTE *)(a1 + 488)\n    && *(_DWORD *)(*(_QWORD *)(a1 + 504) + 660LL) - *(_DWORD *)(*(_QWORD *)(a1 + 504) + 664LL) > 0 )\n  {\n    v2 = qword_14090BFD0;\n    if ( !qword_14090BFD0 )\n    {\n      v4 = operator new(0x6E8u);\n      qword_14090BFD0 = GameManager::GameManager((__int64)v4);\n      (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);\n      v2 = qword_14090BFD0;\n    }\n    GameManager::setGameVariable(v2, \"0047\", 1u);\n    v3 = ProfilePage::create(\n           (unsigned int)(*(_DWORD *)(*(_QWORD *)(a1 + 504) + 660LL) - *(_DWORD *)(*(_QWORD *)(a1 + 504) + 664LL)),\n           0);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)v3 + 1064LL))(v3);\n  }\n}", "assembly": "; \n; LevelInfoLayer::onViewProfile from 0x1404245e0 to 0x14042468f (175 bytes)\n; \n; 2 xrefs:\n; > LevelInfoLayer::init @ 0x14041c739\n; > <???> @ 0x140926954\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:32:10 +0000\n; \npush    rbx                                                            ; +0x0, 0x1404245e0\nsub     rsp, 20h                                                       ; +0x2, 0x1404245e2\nmov     rbx, rcx                                                       ; +0x6, 0x1404245e6\ncmp     byte ptr [rcx+1E8h], 0                                         ; +0x9, 0x1404245e9\njnz     loc_140424689                                                  ; +0x10, 0x1404245f0\nmov     rax, [rcx+1F8h]                                                ; +0x16, 0x1404245f6\nmov     edx, [rax+294h]                                                ; +0x1d, 0x1404245fd\nsub     edx, [rax+298h]                                                ; +0x23, 0x140424603\ntest    edx, edx                                                       ; +0x29, 0x140424609\njle     short loc_140424689                                            ; +0x2b, 0x14042460b\nmov     rcx, cs:qword_14090BFD0                                        ; +0x2d, 0x14042460d\ntest    rcx, rcx                                                       ; +0x34, 0x140424614\njnz     short loc_14042464B                                            ; +0x37, 0x140424617\nmov     ecx, 6E8h; Size                                                ; +0x39, 0x140424619\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x3e, 0x14042461e\nmov     [rsp+28h+arg_0], rax                                           ; +0x43, 0x140424623\nmov     rcx, rax                                                       ; +0x48, 0x140424628\ncall    GameManager__GameManager                                       ; +0x4b, 0x14042462b\nnop                                                                    ; +0x50, 0x140424630\nmov     cs:qword_14090BFD0, rax                                        ; +0x51, 0x140424631\nmov     rcx, [rax]                                                     ; +0x58, 0x140424638\nmov     rdx, [rcx+48h]                                                 ; +0x5b, 0x14042463b\nmov     rcx, rax                                                       ; +0x5f, 0x14042463f\ncall    rdx                                                            ; +0x62, 0x140424642\nmov     rcx, cs:qword_14090BFD0                                        ; +0x64, 0x140424644\nmov     r8b, 1                                                         ; +0x6b, 0x14042464b\nlea     rdx, a0047; \"0047\"                                             ; +0x6e, 0x14042464e\ncall    GameManager__setGameVariable                                   ; +0x75, 0x140424655\nmov     rax, [rbx+1F8h]                                                ; +0x7a, 0x14042465a\nmov     ecx, [rax+294h]                                                ; +0x81, 0x140424661\nsub     ecx, [rax+298h]                                                ; +0x87, 0x140424667\nxor     edx, edx                                                       ; +0x8d, 0x14042466d\ncall    ProfilePage__create                                            ; +0x8f, 0x14042466f\nmov     rcx, [rax]                                                     ; +0x94, 0x140424674\nmov     rdx, [rcx+428h]                                                ; +0x97, 0x140424677\nmov     rcx, rax                                                       ; +0x9e, 0x14042467e\nadd     rsp, 20h                                                       ; +0xa1, 0x140424681\npop     rbx                                                            ; +0xa5, 0x140424685\njmp     rdx                                                            ; +0xa6, 0x140424686\nadd     rsp, 20h                                                       ; +0xa9, 0x140424689\npop     rbx                                                            ; +0xad, 0x14042468d\nretn                                                                   ; +0xae, 0x14042468e", "xrefs": ["LevelInfoLayer::init @ 0x14041c739", "<???> @ 0x140926954"], "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"}