{"type": "func", "start": 5371588432, "end": 5371588631, "name": "InfoLayer::commentUploadFinished", "pseudocode": "// \n// InfoLayer::commentUploadFinished from 0x1402bef50 to 0x1402bf017 (199 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x140581940\n// > <???> @ 0x1406d28b8\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=1\nvoid InfoLayer::commentUploadFinished(InfoLayer *a1, int a2)\n{\n  InfoLayer *v3; // rbx\n  __int64 v4; // rax\n  int v5; // eax\n  __int64 v6; // rax\n  __int64 v7; // rdx\n  GameManager *v8; // rcx\n  void *v9; // [rsp+30h] [rbp+8h]\n\n  if ( !*(_QWORD *)&a1->m_uAutoReleaseCount )\n  {\n    v3 = (InfoLayer *)((char *)a1 - 640);\n    v4 = *(_QWORD *)&a1->m_uAutoReleaseCount;\n    if ( v4 )\n    {\n      v5 = *(_DWORD *)(v4 + 388);\n    }\n    else\n    {\n      v6 = *(_QWORD *)&a1->m_uIndexInArray;\n      if ( v6 )\n      {\n        v5 = -*(_DWORD *)(v6 + 344);\n      }\n      else\n      {\n        v7 = *(_QWORD *)&a1->m_nTag;\n        v5 = v7 ? *(_DWORD *)(v7 + 328) - *(_DWORD *)(v7 + 332) : 0;\n      }\n    }\n    if ( a2 == v5 )\n    {\n      v8 = (GameManager *)qword_1406C2ED8;\n      if ( !qword_1406C2ED8 )\n      {\n        v9 = operator new(0x668u);\n        qword_1406C2ED8 = sub_14017AB00((__int64)v9);\n        (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);\n        v8 = (GameManager *)qword_1406C2ED8;\n      }\n      GameManager::setGameVariable(v8, \"0069\", 0);\n      InfoLayer::updateCommentModeButtons(v3);\n      InfoLayer::loadPage(v3, 0, 0);\n    }\n  }\n}", "assembly": "; \n; InfoLayer::commentUploadFinished from 0x1402bef50 to 0x1402bf017 (199 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x140581940\n; > <???> @ 0x1406d28b8\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\npush    rbx                                                            ; +0x0, 0x1402bef50\nsub     rsp, 20h                                                       ; +0x2, 0x1402bef52\nmov     r8d, edx                                                       ; +0x6, 0x1402bef56\ncmp     qword ptr [rcx+18h], 0                                         ; +0x9, 0x1402bef59\njnz     loc_1402BF011                                                  ; +0xe, 0x1402bef5e\nlea     rbx, [rcx-280h]                                                ; +0x14, 0x1402bef64\nmov     rax, [rcx+18h]                                                 ; +0x1b, 0x1402bef6b\ntest    rax, rax                                                       ; +0x1f, 0x1402bef6f\njz      short loc_1402BEF7C                                            ; +0x22, 0x1402bef72\nmov     eax, [rax+184h]                                                ; +0x24, 0x1402bef74\njmp     short loc_1402BEFA8                                            ; +0x2a, 0x1402bef7a\nmov     rax, [rcx+20h]                                                 ; +0x2c, 0x1402bef7c\ntest    rax, rax                                                       ; +0x30, 0x1402bef80\njz      short loc_1402BEF8F                                            ; +0x33, 0x1402bef83\nmov     eax, [rax+158h]                                                ; +0x35, 0x1402bef85\nneg     eax                                                            ; +0x3b, 0x1402bef8b\njmp     short loc_1402BEFA8                                            ; +0x3d, 0x1402bef8d\nmov     rdx, [rcx+10h]                                                 ; +0x3f, 0x1402bef8f\ntest    rdx, rdx                                                       ; +0x43, 0x1402bef93\njz      short loc_1402BEFA6                                            ; +0x46, 0x1402bef96\nmov     eax, [rdx+148h]                                                ; +0x48, 0x1402bef98\nsub     eax, [rdx+14Ch]                                                ; +0x4e, 0x1402bef9e\njmp     short loc_1402BEFA8                                            ; +0x54, 0x1402befa4\nxor     eax, eax                                                       ; +0x56, 0x1402befa6\ncmp     r8d, eax                                                       ; +0x58, 0x1402befa8\njnz     short loc_1402BF011                                            ; +0x5b, 0x1402befab\nmov     rcx, cs:qword_1406C2ED8                                        ; +0x5d, 0x1402befad\ntest    rcx, rcx                                                       ; +0x64, 0x1402befb4\njnz     short loc_1402BEFE8                                            ; +0x67, 0x1402befb7\nmov     ecx, 668h; Size                                                ; +0x69, 0x1402befb9\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x6e, 0x1402befbe\nmov     [rsp+28h+arg_0], rax                                           ; +0x73, 0x1402befc3\nmov     rcx, rax                                                       ; +0x78, 0x1402befc8\ncall    sub_14017AB00                                                  ; +0x7b, 0x1402befcb\nnop                                                                    ; +0x80, 0x1402befd0\nmov     cs:qword_1406C2ED8, rax                                        ; +0x81, 0x1402befd1\nmov     rdx, [rax]                                                     ; +0x88, 0x1402befd8\nmov     rcx, rax                                                       ; +0x8b, 0x1402befdb\ncall    qword ptr [rdx+48h]                                            ; +0x8e, 0x1402befde\nmov     rcx, cs:qword_1406C2ED8                                        ; +0x91, 0x1402befe1\nxor     r8d, r8d                                                       ; +0x98, 0x1402befe8\nlea     rdx, a0069; \"0069\"                                             ; +0x9b, 0x1402befeb\ncall    GameManager__setGameVariable                                   ; +0xa2, 0x1402beff2\nmov     rcx, rbx                                                       ; +0xa7, 0x1402beff7\ncall    InfoLayer__updateCommentModeButtons                            ; +0xaa, 0x1402beffa\nxor     r8d, r8d                                                       ; +0xaf, 0x1402befff\nxor     edx, edx                                                       ; +0xb2, 0x1402bf002\nmov     rcx, rbx                                                       ; +0xb4, 0x1402bf004\nadd     rsp, 20h                                                       ; +0xb7, 0x1402bf007\npop     rbx                                                            ; +0xbb, 0x1402bf00b\njmp     InfoLayer__loadPage                                            ; +0xbc, 0x1402bf00c\nadd     rsp, 20h                                                       ; +0xc1, 0x1402bf011\npop     rbx                                                            ; +0xc5, 0x1402bf015\nretn                                                                   ; +0xc6, 0x1402bf016", "xrefs": ["<???> @ 0x140581940", "<???> @ 0x1406d28b8"], "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"}