{"type": "func", "start": 5373728896, "end": 5373729121, "name": "SupportLayer::onRequestAccess", "pseudocode": "// \n// SupportLayer::onRequestAccess from 0x1404c9880 to 0x1404c9961 (225 bytes)\n// \n// 2 xrefs:\n// > SupportLayer::customSetup @ 0x1404c8b15\n// > <???> @ 0x1406dd304\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=2\nvoid SupportLayer::onRequestAccess(SupportLayer *a1, cocos2d::CCObject *a2)\n{\n  UploadActionDelegate *v3; // rbx\n  GameLevelManager *v4; // rcx\n  UploadPopupDelegate *v5; // rcx\n  UploadActionPopup *v6; // rax\n  __int64 v7; // [rsp+20h] [rbp-28h] BYREF\n  __int64 v8; // [rsp+28h] [rbp-20h]\n  __int64 v9; // [rsp+30h] [rbp-18h]\n  __int64 v10; // [rsp+38h] [rbp-10h]\n  void *v11; // [rsp+50h] [rbp+8h]\n\n  v3 = &a1->UploadActionDelegate;\n  if ( !a1 )\n    v3 = nullptr;\n  v4 = (GameLevelManager *)qword_1406C2EC0;\n  if ( !qword_1406C2EC0 )\n  {\n    v11 = operator new(0x3D0u);\n    qword_1406C2EC0 = sub_140141280((__int64)v11);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EC0 + 72LL))(qword_1406C2EC0);\n    v4 = (GameLevelManager *)qword_1406C2EC0;\n  }\n  v4->m_uploadActionDelegate = v3;\n  if ( GameLevelManager::requestUserAccess(v4) )\n  {\n    v9 = 10;\n    v10 = 15;\n    v7 = *(_QWORD *)\"Loading...\";\n    v8 = *(unsigned __int16 *)\"..\";\n    BYTE2(v8) = 0;\n    v5 = &a1->UploadPopupDelegate;\n    if ( !a1 )\n      v5 = nullptr;\n    v6 = (UploadActionPopup *)UploadActionPopup::create((__int64)v5, (__int64)&v7);\n    a1->m_uploadPopup = v6;\n    v6->show(v6);\n  }\n}", "assembly": "; \n; SupportLayer::onRequestAccess from 0x1404c9880 to 0x1404c9961 (225 bytes)\n; \n; 2 xrefs:\n; > SupportLayer::customSetup @ 0x1404c8b15\n; > <???> @ 0x1406dd304\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\nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x1404c9880\nmov     [rsp+arg_10], rsi                                              ; +0x5, 0x1404c9885\npush    rdi                                                            ; +0xa, 0x1404c988a\nsub     rsp, 40h                                                       ; +0xb, 0x1404c988b\nmov     rdi, rcx                                                       ; +0xf, 0x1404c988f\nlea     rbx, [rcx+268h]                                                ; +0x12, 0x1404c9892\nxor     esi, esi                                                       ; +0x19, 0x1404c9899\ntest    rcx, rcx                                                       ; +0x1b, 0x1404c989b\ncmovz   rbx, rsi                                                       ; +0x1e, 0x1404c989e\nmov     rcx, cs:qword_1406C2EC0                                        ; +0x22, 0x1404c98a2\ntest    rcx, rcx                                                       ; +0x29, 0x1404c98a9\njnz     short loc_1404C98DD                                            ; +0x2c, 0x1404c98ac\nmov     ecx, 3D0h; Size                                                ; +0x2e, 0x1404c98ae\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x33, 0x1404c98b3\nmov     [rsp+48h+arg_0], rax                                           ; +0x38, 0x1404c98b8\nmov     rcx, rax                                                       ; +0x3d, 0x1404c98bd\ncall    sub_140141280                                                  ; +0x40, 0x1404c98c0\nnop                                                                    ; +0x45, 0x1404c98c5\nmov     cs:qword_1406C2EC0, rax                                        ; +0x46, 0x1404c98c6\nmov     rdx, [rax]                                                     ; +0x4d, 0x1404c98cd\nmov     rcx, rax                                                       ; +0x50, 0x1404c98d0\ncall    qword ptr [rdx+48h]                                            ; +0x53, 0x1404c98d3\nmov     rcx, cs:qword_1406C2EC0                                        ; +0x56, 0x1404c98d6\nmov     [rcx+328h], rbx                                                ; +0x5d, 0x1404c98dd\ncall    GameLevelManager__requestUserAccess                            ; +0x64, 0x1404c98e4\ntest    al, al                                                         ; +0x69, 0x1404c98e9\njz      short loc_1404C9951                                            ; +0x6b, 0x1404c98eb\nxorps   xmm0, xmm0                                                     ; +0x6d, 0x1404c98ed\nmovups  [rsp+48h+var_28], xmm0                                         ; +0x70, 0x1404c98f0\nmov     [rsp+48h+var_18], 0Ah                                          ; +0x75, 0x1404c98f5\nmov     [rsp+48h+var_10], 0Fh                                          ; +0x7e, 0x1404c98fe\nmovsd   xmm0, qword ptr cs:aLoading; \"Loading...\"                      ; +0x87, 0x1404c9907\nmovsd   qword ptr [rsp+48h+var_28], xmm0                               ; +0x8f, 0x1404c990f\nmovzx   eax, word ptr cs:aLoading+8; \"..\"                              ; +0x95, 0x1404c9915\nmov     word ptr [rsp+48h+var_28+8], ax                                ; +0x9c, 0x1404c991c\nmov     byte ptr [rsp+48h+var_28+0Ah], 0                               ; +0xa1, 0x1404c9921\nlea     rcx, [rdi+270h]                                                ; +0xa6, 0x1404c9926\ntest    rdi, rdi                                                       ; +0xad, 0x1404c992d\ncmovz   rcx, rsi                                                       ; +0xb0, 0x1404c9930\nlea     rdx, [rsp+48h+var_28]                                          ; +0xb4, 0x1404c9934\ncall    UploadActionPopup__create                                      ; +0xb9, 0x1404c9939\nmov     [rdi+278h], rax                                                ; +0xbe, 0x1404c993e\nmov     rdx, [rax]                                                     ; +0xc5, 0x1404c9945\nmov     rcx, rax                                                       ; +0xc8, 0x1404c9948\ncall    qword ptr [rdx+410h]                                           ; +0xcb, 0x1404c994b\nmov     rbx, [rsp+48h+arg_8]                                           ; +0xd1, 0x1404c9951\nmov     rsi, [rsp+48h+arg_10]                                          ; +0xd6, 0x1404c9956\nadd     rsp, 40h                                                       ; +0xdb, 0x1404c995b\npop     rdi                                                            ; +0xdf, 0x1404c995f\nretn                                                                   ; +0xe0, 0x1404c9960", "xrefs": ["SupportLayer::customSetup @ 0x1404c8b15", "<???> @ 0x1406dd304"], "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"}