{"type": "func", "start": 4300242640, "end": 4300242809, "name": "GJRateLevelLayer::uploadActionFailed", "pseudocode": "// \n// GJRateLevelLayer::uploadActionFailed from 0x100507ed0 to 0x100507f79 (169 bytes)\n// \n// 2 xrefs:\n// > sub_100507FA0 @ 0x100507fac\n// > <???> @ 0x10095a248\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\nvoid __fastcall GJRateLevelLayer::uploadActionFailed(GJRateLevelLayer *a1, int a2, int a3)\n{\n  UploadActionPopup *m_uploadPopup; // rbx\n  _QWORD v4[2]; // [rsp+8h] [rbp-28h] BYREF\n  void *__p; // [rsp+18h] [rbp-18h]\n\n  if ( a1->m_level->m_levelID.random - a1->m_level->m_levelID.seed == a2 )\n  {\n    m_uploadPopup = a1->m_uploadPopup;\n    if ( m_uploadPopup )\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((__int64)m_uploadPopup, (__int64)v4, 1.133375894043806e-153);\n      if ( (v4[0] & 1) != 0 )\n        operator delete(__p);\n      a1->m_uploadPopup->m_delegate = nullptr;\n      a1->m_uploadPopup = nullptr;\n    }\n  }\n}", "assembly": "; \n; GJRateLevelLayer::uploadActionFailed from 0x100507ed0 to 0x100507f79 (169 bytes)\n; \n; 2 xrefs:\n; > sub_100507FA0 @ 0x100507fac\n; > <???> @ 0x10095a248\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    rbp                                                            ; +0x0, 0x100507ed0\nmov     rbp, rsp                                                       ; +0x1, 0x100507ed1\npush    r14                                                            ; +0x4, 0x100507ed4\npush    rbx                                                            ; +0x6, 0x100507ed6\nsub     rsp, 20h                                                       ; +0x7, 0x100507ed7\nmov     rax, [rdi+3D0h]                                                ; +0xb, 0x100507edb\nmov     ecx, [rax+148h]                                                ; +0x12, 0x100507ee2\nsub     ecx, [rax+14Ch]                                                ; +0x18, 0x100507ee8\ncmp     ecx, esi                                                       ; +0x1e, 0x100507eee\njnz     short loc_100507F70                                            ; +0x20, 0x100507ef0\nmov     rbx, [rdi+400h]                                                ; +0x22, 0x100507ef2\ntest    rbx, rbx                                                       ; +0x29, 0x100507ef9\njz      short loc_100507F70                                            ; +0x2c, 0x100507efc\nmov     r14, rdi                                                       ; +0x2e, 0x100507efe\nmov     edi, 20h ; ' '; __sz                                           ; +0x31, 0x100507f01\ncall    __Znwm; operator new(ulong)                                    ; +0x36, 0x100507f06\nmov     [rbp+__p], rax                                                 ; +0x3b, 0x100507f0b\nmov     [rbp+var_28], 21h ; '!'                                        ; +0x3f, 0x100507f0f\nmov     [rbp+var_20], 1Fh                                              ; +0x47, 0x100507f17\nmovups  xmm0, xmmword ptr cs:aFailedPleaseTr+0Fh; \"try again later.\"   ; +0x4f, 0x100507f1f\nmovups  xmmword ptr [rax+0Fh], xmm0                                    ; +0x56, 0x100507f26\nmovups  xmm0, xmmword ptr cs:aFailedPleaseTr; \"Failed. Please try again later.\" ; +0x5a, 0x100507f2a\nmovups  xmmword ptr [rax], xmm0                                        ; +0x61, 0x100507f31\nmov     byte ptr [rax+1Fh], 0                                          ; +0x64, 0x100507f34\nlea     rsi, [rbp+var_28]                                              ; +0x68, 0x100507f38\nmov     rdi, rbx                                                       ; +0x6c, 0x100507f3c\ncall    UploadActionPopup__showFailMessage                             ; +0x6f, 0x100507f3f\ntest    byte ptr [rbp+var_28], 1                                       ; +0x74, 0x100507f44\njz      short loc_100507F53                                            ; +0x78, 0x100507f48\nmov     rdi, [rbp+__p]; __p                                            ; +0x7a, 0x100507f4a\ncall    __ZdlPv; operator delete(void *)                               ; +0x7e, 0x100507f4e\nmov     rax, [r14+400h]                                                ; +0x83, 0x100507f53\nmov     qword ptr [rax+278h], 0                                        ; +0x8a, 0x100507f5a\nmov     qword ptr [r14+400h], 0                                        ; +0x95, 0x100507f65\nadd     rsp, 20h                                                       ; +0xa0, 0x100507f70\npop     rbx                                                            ; +0xa4, 0x100507f74\npop     r14                                                            ; +0xa5, 0x100507f75\npop     rbp                                                            ; +0xa7, 0x100507f77\nretn                                                                   ; +0xa8, 0x100507f78", "xrefs": ["sub_100507FA0 @ 0x100507fac", "<???> @ 0x10095a248"], "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"}