{"type": "func", "start": 5371588640, "end": 5371588974, "name": "InfoLayer::commentUploadFailed", "pseudocode": "// \n// InfoLayer::commentUploadFailed from 0x1402bf020 to 0x1402bf16e (334 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x140581948\n// > <???> @ 0x1406d28c4\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::commentUploadFailed(InfoLayer *a1, int a2, CommentError a3)\n{\n  __int64 v4; // rax\n  int v5; // eax\n  __int64 v6; // rdx\n  __int64 v7; // rax\n  FLAlertLayer *v8; // rbx\n  __int128 v9; // [rsp+50h] [rbp-48h] BYREF\n  __int64 v10; // [rsp+60h] [rbp-38h]\n  __int64 v11; // [rsp+68h] [rbp-30h]\n  _BYTE v12[40]; // [rsp+70h] [rbp-28h] BYREF\n\n  if ( !*(_QWORD *)&a1->m_uAutoReleaseCount )\n  {\n    v4 = *(_QWORD *)&a1->m_uIndexInArray;\n    if ( v4 )\n    {\n      v5 = -*(_DWORD *)(v4 + 344);\n    }\n    else\n    {\n      v6 = *(_QWORD *)&a1->m_nTag;\n      if ( v6 )\n        v5 = *(_DWORD *)(v6 + 328) - *(_DWORD *)(v6 + 332);\n      else\n        v5 = 0;\n    }\n    if ( a2 == v5 && !a3 )\n    {\n      v9 = 0;\n      *(_QWORD *)&v9 = sub_14003AA10(0x30u);\n      v10 = 46;\n      v11 = 47;\n      strcpy((char *)v9, \"Comment upload failed. Please try again later.\");\n      v7 = sub_14003BDB0((__int64)v12, (__int64)&v9);\n      v8 = FLAlertLayer::create(0, (int)\"Failed\", v7, (__int64)\"OK\", 0, 1132068864, 0, 0, 1065353216);\n      sub_14003A830((__int64)&v9);\n      v8->show(v8);\n    }\n  }\n}", "assembly": "; \n; InfoLayer::commentUploadFailed from 0x1402bf020 to 0x1402bf16e (334 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x140581948\n; > <???> @ 0x1406d28c4\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, 0x1402bf020\nsub     rsp, 90h                                                       ; +0x2, 0x1402bf022\nmov     r9d, edx                                                       ; +0x9, 0x1402bf029\ncmp     qword ptr [rcx+18h], 0                                         ; +0xc, 0x1402bf02c\njnz     loc_1402BF165                                                  ; +0x11, 0x1402bf031\nmov     rax, [rcx+20h]                                                 ; +0x17, 0x1402bf037\nxor     ebx, ebx                                                       ; +0x1b, 0x1402bf03b\ntest    rax, rax                                                       ; +0x1d, 0x1402bf03d\njz      short loc_1402BF04C                                            ; +0x20, 0x1402bf040\nmov     eax, [rax+158h]                                                ; +0x22, 0x1402bf042\nneg     eax                                                            ; +0x28, 0x1402bf048\njmp     short loc_1402BF065                                            ; +0x2a, 0x1402bf04a\nmov     rdx, [rcx+10h]                                                 ; +0x2c, 0x1402bf04c\ntest    rdx, rdx                                                       ; +0x30, 0x1402bf050\njz      short loc_1402BF063                                            ; +0x33, 0x1402bf053\nmov     eax, [rdx+148h]                                                ; +0x35, 0x1402bf055\nsub     eax, [rdx+14Ch]                                                ; +0x3b, 0x1402bf05b\njmp     short loc_1402BF065                                            ; +0x41, 0x1402bf061\nmov     eax, ebx                                                       ; +0x43, 0x1402bf063\ncmp     r9d, eax                                                       ; +0x45, 0x1402bf065\njnz     loc_1402BF165                                                  ; +0x48, 0x1402bf068\ntest    r8d, r8d                                                       ; +0x4e, 0x1402bf06e\njnz     loc_1402BF165                                                  ; +0x51, 0x1402bf071\nxorps   xmm0, xmm0                                                     ; +0x57, 0x1402bf077\nmovups  [rsp+98h+var_48], xmm0                                         ; +0x5a, 0x1402bf07a\nmov     [rsp+98h+var_38], rbx                                          ; +0x5f, 0x1402bf07f\nmov     [rsp+98h+var_30], 0Fh                                          ; +0x64, 0x1402bf084\nlea     ecx, [r8+30h]                                                  ; +0x6d, 0x1402bf08d\ncall    sub_14003AA10                                                  ; +0x71, 0x1402bf091\nmov     rcx, rax                                                       ; +0x76, 0x1402bf096\nmov     qword ptr [rsp+98h+var_48], rax                                ; +0x79, 0x1402bf099\nmov     [rsp+98h+var_38], 2Eh ; '.'                                    ; +0x7e, 0x1402bf09e\nmov     [rsp+98h+var_30], 2Fh ; '/'                                    ; +0x87, 0x1402bf0a7\nmovups  xmm0, cs:xmmword_1405811C8                                     ; +0x90, 0x1402bf0b0\nmovups  xmmword ptr [rax], xmm0                                        ; +0x97, 0x1402bf0b7\nmovups  xmm1, cs:xmmword_1405811D8                                     ; +0x9a, 0x1402bf0ba\nmovups  xmmword ptr [rax+10h], xmm1                                    ; +0xa1, 0x1402bf0c1\nmovsd   xmm0, cs:qword_1405811E8                                       ; +0xa5, 0x1402bf0c5\nmovsd   qword ptr [rax+20h], xmm0                                      ; +0xad, 0x1402bf0cd\nmov     eax, cs:dword_1405811F0                                        ; +0xb2, 0x1402bf0d2\nmov     [rcx+28h], eax                                                 ; +0xb8, 0x1402bf0d8\nmovzx   eax, cs:word_1405811F4                                         ; +0xbb, 0x1402bf0db\nmov     [rcx+2Ch], ax                                                  ; +0xc2, 0x1402bf0e2\nmov     [rcx+2Eh], bl                                                  ; +0xc6, 0x1402bf0e6\nlea     rax, [rsp+98h+var_48]                                          ; +0xc9, 0x1402bf0e9\nmov     [rsp+98h+arg_0], rax                                           ; +0xce, 0x1402bf0ee\nlea     rdx, [rsp+98h+var_48]                                          ; +0xd6, 0x1402bf0f6\nlea     rcx, [rsp+98h+var_28]                                          ; +0xdb, 0x1402bf0fb\ncall    sub_14003BDB0                                                  ; +0xe0, 0x1402bf100\nmovss   xmm0, cs:flt_140622C24                                         ; +0xe5, 0x1402bf105\nmovss   [rsp+98h+var_58], xmm0                                         ; +0xed, 0x1402bf10d\nxorps   xmm1, xmm1                                                     ; +0xf3, 0x1402bf113\nmovss   [rsp+98h+var_60], xmm1                                         ; +0xf6, 0x1402bf116\nmov     [rsp+98h+var_68], 0                                            ; +0xfc, 0x1402bf11c\nmovss   xmm0, cs:dword_140623410                                       ; +0x101, 0x1402bf121\nmovss   [rsp+98h+var_70], xmm0                                         ; +0x109, 0x1402bf129\nmov     [rsp+98h+var_78], rbx                                          ; +0x10f, 0x1402bf12f\nlea     r9, aOk; \"OK\"                                                  ; +0x114, 0x1402bf134\nmov     r8, rax                                                        ; +0x11b, 0x1402bf13b\nlea     rdx, aFailed; \"Failed\"                                         ; +0x11e, 0x1402bf13e\nxor     ecx, ecx                                                       ; +0x125, 0x1402bf145\ncall    FLAlertLayer__create                                           ; +0x127, 0x1402bf147\nmov     rbx, rax                                                       ; +0x12c, 0x1402bf14c\nlea     rcx, [rsp+98h+var_48]                                          ; +0x12f, 0x1402bf14f\ncall    sub_14003A830                                                  ; +0x134, 0x1402bf154\nmov     rdx, [rbx]                                                     ; +0x139, 0x1402bf159\nmov     rcx, rbx                                                       ; +0x13c, 0x1402bf15c\ncall    qword ptr [rdx+410h]                                           ; +0x13f, 0x1402bf15f\nadd     rsp, 90h                                                       ; +0x145, 0x1402bf165\npop     rbx                                                            ; +0x14c, 0x1402bf16c\nretn                                                                   ; +0x14d, 0x1402bf16d", "xrefs": ["<???> @ 0x140581948", "<???> @ 0x1406d28c4"], "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"}