{"type": "func", "start": 4300237728, "end": 4300237897, "name": "GJRateLevelLayer::uploadActionFailed", "pseudocode": "// \n// GJRateLevelLayer::uploadActionFailed from 0x100506ba0 to 0x100506c49 (169 bytes)\n// \n// 2 xrefs:\n// > sub_100506C70 @ 0x100506c7c\n// > <???> @ 0x100b65930\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 12:31:32 +0000\n// \n\n__int64 __fastcall GJRateLevelLayer::uploadActionFailed(__int64 a1, int a2)\n{\n  __int64 result; // rax\n  __int64 v3; // rbx\n  _QWORD v4[2]; // [rsp+8h] [rbp-28h] BYREF\n  void *__p; // [rsp+18h] [rbp-18h]\n\n  result = *(_QWORD *)(a1 + 1048);\n  if ( *(_DWORD *)(result + 328) - *(_DWORD *)(result + 332) == a2 )\n  {\n    v3 = *(_QWORD *)(a1 + 1096);\n    if ( v3 )\n    {\n      __p = operator new(0x20u);\n      v4[0] = 33;\n      v4[1] = 31;\n      strcpy((char *)__p, \"Failed. Please try again later.\");\n      UploadActionPopup::showFailMessage(v3, (__int64)v4, 1.133375894043806e-153);\n      if ( (v4[0] & 1) != 0 )\n        operator delete(__p);\n      result = *(_QWORD *)(a1 + 1096);\n      *(_QWORD *)(result + 664) = 0;\n      *(_QWORD *)(a1 + 1096) = 0;\n    }\n  }\n  return result;\n}", "assembly": "; \n; GJRateLevelLayer::uploadActionFailed from 0x100506ba0 to 0x100506c49 (169 bytes)\n; \n; 2 xrefs:\n; > sub_100506C70 @ 0x100506c7c\n; > <???> @ 0x100b65930\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 12:31:32 +0000\n; \npush    rbp                                                            ; +0x0, 0x100506ba0\nmov     rbp, rsp                                                       ; +0x1, 0x100506ba1\npush    r14                                                            ; +0x4, 0x100506ba4\npush    rbx                                                            ; +0x6, 0x100506ba6\nsub     rsp, 20h                                                       ; +0x7, 0x100506ba7\nmov     rax, [rdi+418h]                                                ; +0xb, 0x100506bab\nmov     ecx, [rax+148h]                                                ; +0x12, 0x100506bb2\nsub     ecx, [rax+14Ch]                                                ; +0x18, 0x100506bb8\ncmp     ecx, esi                                                       ; +0x1e, 0x100506bbe\njnz     short loc_100506C40                                            ; +0x20, 0x100506bc0\nmov     rbx, [rdi+448h]                                                ; +0x22, 0x100506bc2\ntest    rbx, rbx                                                       ; +0x29, 0x100506bc9\njz      short loc_100506C40                                            ; +0x2c, 0x100506bcc\nmov     r14, rdi                                                       ; +0x2e, 0x100506bce\nmov     edi, 20h ; ' '; __sz                                           ; +0x31, 0x100506bd1\ncall    __Znwm; operator new(ulong)                                    ; +0x36, 0x100506bd6\nmov     [rbp+__p], rax                                                 ; +0x3b, 0x100506bdb\nmov     [rbp+var_28], 21h ; '!'                                        ; +0x3f, 0x100506bdf\nmov     [rbp+var_20], 1Fh                                              ; +0x47, 0x100506be7\nmovups  xmm0, xmmword ptr cs:aFailedPleaseTr+0Fh; \"try again later.\"   ; +0x4f, 0x100506bef\nmovups  xmmword ptr [rax+0Fh], xmm0                                    ; +0x56, 0x100506bf6\nmovups  xmm0, xmmword ptr cs:aFailedPleaseTr; \"Failed. Please try again later.\" ; +0x5a, 0x100506bfa\nmovups  xmmword ptr [rax], xmm0                                        ; +0x61, 0x100506c01\nmov     byte ptr [rax+1Fh], 0                                          ; +0x64, 0x100506c04\nlea     rsi, [rbp+var_28]                                              ; +0x68, 0x100506c08\nmov     rdi, rbx                                                       ; +0x6c, 0x100506c0c\ncall    UploadActionPopup__showFailMessage                             ; +0x6f, 0x100506c0f\ntest    byte ptr [rbp+var_28], 1                                       ; +0x74, 0x100506c14\njz      short loc_100506C23                                            ; +0x78, 0x100506c18\nmov     rdi, [rbp+__p]; __p                                            ; +0x7a, 0x100506c1a\ncall    __ZdlPv; operator delete(void *)                               ; +0x7e, 0x100506c1e\nmov     rax, [r14+448h]                                                ; +0x83, 0x100506c23\nmov     qword ptr [rax+298h], 0                                        ; +0x8a, 0x100506c2a\nmov     qword ptr [r14+448h], 0                                        ; +0x95, 0x100506c35\nadd     rsp, 20h                                                       ; +0xa0, 0x100506c40\npop     rbx                                                            ; +0xa4, 0x100506c44\npop     r14                                                            ; +0xa5, 0x100506c45\npop     rbp                                                            ; +0xa7, 0x100506c47\nretn                                                                   ; +0xa8, 0x100506c48", "xrefs": ["sub_100506C70 @ 0x100506c7c", "<???> @ 0x100b65930"], "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"}