{"type": "func", "start": 5373729536, "end": 5373729987, "name": "SupportLayer::uploadActionFinished", "pseudocode": "// \n// SupportLayer::uploadActionFinished from 0x1404c9b00 to 0x1404c9cc3 (451 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x140621258\n// > <???> @ 0x1406dd328\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 SupportLayer::uploadActionFinished(SupportLayer *a1, int a2, int a3)\n{\n  __int64 v4; // rax\n  int v5; // ecx\n  __int128 v6; // [rsp+20h] [rbp-20h] BYREF\n  __int64 v7; // [rsp+30h] [rbp-10h]\n  __int64 v8; // [rsp+38h] [rbp-8h]\n  void *v9; // [rsp+68h] [rbp+28h]\n\n  if ( a3 == 43 && *(_QWORD *)&a1->m_nTag )\n  {\n    v4 = 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      v4 = qword_1406C2ED8;\n    }\n    v5 = *(_DWORD *)(v4 + 1012) - *(_DWORD *)(v4 + 1016);\n    if ( v5 == 2 )\n    {\n      v6 = 0;\n      *(_QWORD *)&v6 = sub_14003AA10(0x30u);\n      v7 = 40;\n      v8 = 47;\n      strcpy((char *)v6, \"Success! Elder Moderator\\naccess granted.\");\n    }\n    else if ( v5 == 1 )\n    {\n      v6 = 0;\n      *(_QWORD *)&v6 = sub_14003AA10(0x30u);\n      v7 = 34;\n      v8 = 47;\n      strcpy((char *)v6, \"Success! Moderator access granted.\");\n    }\n    else\n    {\n      if ( !*(_BYTE *)(v4 + 1024) )\n        return;\n      v6 = 0;\n      *(_QWORD *)&v6 = sub_14003AA10(0x30u);\n      v7 = 46;\n      v8 = 47;\n      strcpy((char *)v6, \"Success! Leaderboard Moderator\\naccess granted.\");\n    }\n    UploadActionPopup::showSuccessMessage(*(_QWORD *)&a1->m_nTag, &v6);\n  }\n}", "assembly": "; \n; SupportLayer::uploadActionFinished from 0x1404c9b00 to 0x1404c9cc3 (451 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x140621258\n; > <???> @ 0x1406dd328\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\ncmp     r8d, 2Bh ; '+'                                                 ; +0x0, 0x1404c9b00\njnz     locret_1404C9CC2                                               ; +0x4, 0x1404c9b04\nmov     [rsp-8+arg_0], rbx                                             ; +0xa, 0x1404c9b0a\npush    rbp                                                            ; +0xf, 0x1404c9b0f\nmov     rbp, rsp                                                       ; +0x10, 0x1404c9b10\nsub     rsp, 40h                                                       ; +0x13, 0x1404c9b13\nmov     rbx, rcx                                                       ; +0x17, 0x1404c9b17\ncmp     qword ptr [rcx+10h], 0                                         ; +0x1a, 0x1404c9b1a\njz      loc_1404C9CB8                                                  ; +0x1f, 0x1404c9b1f\nmov     rax, cs:qword_1406C2ED8                                        ; +0x25, 0x1404c9b25\ntest    rax, rax                                                       ; +0x2c, 0x1404c9b2c\njnz     short loc_1404C9B5F                                            ; +0x2f, 0x1404c9b2f\nmov     ecx, 668h; Size                                                ; +0x31, 0x1404c9b31\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x36, 0x1404c9b36\nmov     [rbp+arg_18], rax                                              ; +0x3b, 0x1404c9b3b\nmov     rcx, rax                                                       ; +0x3f, 0x1404c9b3f\ncall    sub_14017AB00                                                  ; +0x42, 0x1404c9b42\nnop                                                                    ; +0x47, 0x1404c9b47\nmov     cs:qword_1406C2ED8, rax                                        ; +0x48, 0x1404c9b48\nmov     rdx, [rax]                                                     ; +0x4f, 0x1404c9b4f\nmov     rcx, rax                                                       ; +0x52, 0x1404c9b52\ncall    qword ptr [rdx+48h]                                            ; +0x55, 0x1404c9b55\nmov     rax, cs:qword_1406C2ED8                                        ; +0x58, 0x1404c9b58\nmov     ecx, [rax+3F4h]                                                ; +0x5f, 0x1404c9b5f\nsub     ecx, [rax+3F8h]                                                ; +0x65, 0x1404c9b65\ncmp     ecx, 2                                                         ; +0x6b, 0x1404c9b6b\njnz     short loc_1404C9BD0                                            ; +0x6e, 0x1404c9b6e\nxorps   xmm0, xmm0                                                     ; +0x70, 0x1404c9b70\nmovups  [rbp+var_20], xmm0                                             ; +0x73, 0x1404c9b73\nmov     [rbp+var_10], 0                                                ; +0x77, 0x1404c9b77\nmov     [rbp+var_8], 0Fh                                               ; +0x7f, 0x1404c9b7f\nmov     ecx, 30h ; '0'                                                 ; +0x87, 0x1404c9b87\ncall    sub_14003AA10                                                  ; +0x8c, 0x1404c9b8c\nmov     qword ptr [rbp+var_20], rax                                    ; +0x91, 0x1404c9b91\nmov     [rbp+var_10], 28h ; '('                                        ; +0x95, 0x1404c9b95\nmov     [rbp+var_8], 2Fh ; '/'                                         ; +0x9d, 0x1404c9b9d\nmovups  xmm0, cs:xmmword_140620AB8                                     ; +0xa5, 0x1404c9ba5\nmovups  xmmword ptr [rax], xmm0                                        ; +0xac, 0x1404c9bac\nmovups  xmm1, cs:xmmword_140620AC8                                     ; +0xaf, 0x1404c9baf\nmovups  xmmword ptr [rax+10h], xmm1                                    ; +0xb6, 0x1404c9bb6\nmovsd   xmm0, cs:qword_140620AD8                                       ; +0xba, 0x1404c9bba\nmovsd   qword ptr [rax+20h], xmm0                                      ; +0xc2, 0x1404c9bc2\nmov     byte ptr [rax+28h], 0                                          ; +0xc7, 0x1404c9bc7\njmp     loc_1404C9CAB                                                  ; +0xcb, 0x1404c9bcb\ncmp     ecx, 1                                                         ; +0xd0, 0x1404c9bd0\njnz     short loc_1404C9C30                                            ; +0xd3, 0x1404c9bd3\nxorps   xmm0, xmm0                                                     ; +0xd5, 0x1404c9bd5\nmovups  [rbp+var_20], xmm0                                             ; +0xd8, 0x1404c9bd8\nmov     [rbp+var_10], 0                                                ; +0xdc, 0x1404c9bdc\nmov     [rbp+var_8], 0Fh                                               ; +0xe4, 0x1404c9be4\nmov     ecx, 30h ; '0'                                                 ; +0xec, 0x1404c9bec\ncall    sub_14003AA10                                                  ; +0xf1, 0x1404c9bf1\nmov     qword ptr [rbp+var_20], rax                                    ; +0xf6, 0x1404c9bf6\nmov     [rbp+var_10], 22h ; '\"'                                        ; +0xfa, 0x1404c9bfa\nmov     [rbp+var_8], 2Fh ; '/'                                         ; +0x102, 0x1404c9c02\nmovups  xmm0, cs:xmmword_140620A90                                     ; +0x10a, 0x1404c9c0a\nmovups  xmmword ptr [rax], xmm0                                        ; +0x111, 0x1404c9c11\nmovups  xmm1, cs:xmmword_140620AA0                                     ; +0x114, 0x1404c9c14\nmovups  xmmword ptr [rax+10h], xmm1                                    ; +0x11b, 0x1404c9c1b\nmovzx   ecx, cs:word_140620AB0                                         ; +0x11f, 0x1404c9c1f\nmov     [rax+20h], cx                                                  ; +0x126, 0x1404c9c26\nmov     byte ptr [rax+22h], 0                                          ; +0x12a, 0x1404c9c2a\njmp     short loc_1404C9CAB                                            ; +0x12e, 0x1404c9c2e\ncmp     byte ptr [rax+400h], 0                                         ; +0x130, 0x1404c9c30\njz      short loc_1404C9CB8                                            ; +0x137, 0x1404c9c37\nxorps   xmm0, xmm0                                                     ; +0x139, 0x1404c9c39\nmovups  [rbp+var_20], xmm0                                             ; +0x13c, 0x1404c9c3c\nmov     [rbp+var_10], 0                                                ; +0x140, 0x1404c9c40\nmov     [rbp+var_8], 0Fh                                               ; +0x148, 0x1404c9c48\nmov     ecx, 30h ; '0'                                                 ; +0x150, 0x1404c9c50\ncall    sub_14003AA10                                                  ; +0x155, 0x1404c9c55\nmov     rcx, rax                                                       ; +0x15a, 0x1404c9c5a\nmov     qword ptr [rbp+var_20], rax                                    ; +0x15d, 0x1404c9c5d\nmov     [rbp+var_10], 2Eh ; '.'                                        ; +0x161, 0x1404c9c61\nmov     [rbp+var_8], 2Fh ; '/'                                         ; +0x169, 0x1404c9c69\nmovups  xmm0, cs:xmmword_140620CA8                                     ; +0x171, 0x1404c9c71\nmovups  xmmword ptr [rax], xmm0                                        ; +0x178, 0x1404c9c78\nmovups  xmm1, cs:xmmword_140620CB8                                     ; +0x17b, 0x1404c9c7b\nmovups  xmmword ptr [rax+10h], xmm1                                    ; +0x182, 0x1404c9c82\nmovsd   xmm0, cs:qword_140620CC8                                       ; +0x186, 0x1404c9c86\nmovsd   qword ptr [rax+20h], xmm0                                      ; +0x18e, 0x1404c9c8e\nmov     eax, cs:dword_140620CD0                                        ; +0x193, 0x1404c9c93\nmov     [rcx+28h], eax                                                 ; +0x199, 0x1404c9c99\nmovzx   eax, cs:word_140620CD4                                         ; +0x19c, 0x1404c9c9c\nmov     [rcx+2Ch], ax                                                  ; +0x1a3, 0x1404c9ca3\nmov     byte ptr [rcx+2Eh], 0                                          ; +0x1a7, 0x1404c9ca7\nlea     rdx, [rbp+var_20]                                              ; +0x1ab, 0x1404c9cab\nmov     rcx, [rbx+10h]                                                 ; +0x1af, 0x1404c9caf\ncall    UploadActionPopup__showSuccessMessage                          ; +0x1b3, 0x1404c9cb3\nmov     rbx, [rsp+40h+arg_0]                                           ; +0x1b8, 0x1404c9cb8\nadd     rsp, 40h                                                       ; +0x1bd, 0x1404c9cbd\npop     rbp                                                            ; +0x1c1, 0x1404c9cc1\nretn                                                                   ; +0x1c2, 0x1404c9cc2", "xrefs": ["<???> @ 0x140621258", "<???> @ 0x1406dd328"], "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"}