{"type": "func", "start": 5370378240, "end": 5370378934, "name": "EditorSoundConfigInfoLayer::onUpload", "pseudocode": "// \n// EditorSoundConfigInfoLayer::onUpload from 0x140197800 to 0x140197ab6 (694 bytes)\n// \n// 2 xrefs:\n// > EditorSoundConfigInfoLayer::init @ 0x140193a09\n// > <???> @ 0x1409195c8\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 11:27:45 +0000\n// \n\n// Hidden C++ exception states: #wind=3\nvoid __fastcall EditorSoundConfigInfoLayer::onUpload(__int64 a1)\n{\n  __int64 v2; // rbx\n  __int64 v3; // rcx\n  __int64 v4; // rax\n  __int64 v5; // rcx\n  __int64 v6; // rbx\n  _QWORD *v7; // rdi\n  void (__fastcall *v8)(_QWORD *); // rdx\n  void *v9; // [rsp+30h] [rbp+8h]\n  void *v10; // [rsp+30h] [rbp+8h]\n\n  if ( *(_QWORD *)(a1 + 1072) )\n  {\n    v2 = qword_14090BFD0;\n    if ( !qword_14090BFD0 )\n    {\n      v9 = operator new(0x6E8u);\n      qword_14090BFD0 = GameManager::GameManager(v9);\n      (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);\n      v2 = qword_14090BFD0;\n    }\n    if ( (unsigned __int8)GameManager::getGameVariable(v2, \"0218\")\n      || (unsigned __int8)GameManager::getGameVariable(v2, \"0219\") )\n    {\n      if ( !qword_14090BFD0 )\n      {\n        v10 = operator new(0x6E8u);\n        qword_14090BFD0 = GameManager::GameManager(v10);\n        (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);\n      }\n      GameManager::showParentalRestrictedAlert();\n    }\n    else\n    {\n      v4 = GJAccountManager::sharedState(v3);\n      if ( *(_DWORD *)(v4 + 360) - *(_DWORD *)(v4 + 364) > 0 )\n      {\n        v6 = *(_QWORD *)(a1 + 1072);\n        v7 = operator new(0x460u);\n        SetupTriggerPopup::SetupTriggerPopup((__int64)v7);\n        *v7 = &EditorSoundConfigUploadPopup::`vftable';\n        v7[40] = &EditorSoundConfigUploadPopup::`vftable';\n        v7[41] = &EditorSoundConfigUploadPopup::`vftable';\n        v7[42] = &EditorSoundConfigUploadPopup::`vftable';\n        v7[43] = &EditorSoundConfigUploadPopup::`vftable';\n        v7[44] = &EditorSoundConfigUploadPopup::`vftable';\n        v7[51] = &EditorSoundConfigUploadPopup::`vftable';\n        v7[54] = &EditorSoundConfigUploadPopup::`vftable';\n        v7[68] = &EditorSoundConfigUploadPopup::`vftable';\n        v7[83] = &EditorSoundConfigUploadPopup::`vftable';\n        v7[84] = &EditorSoundConfigUploadPopup::`vftable';\n        v7[125] = &EditorSoundConfigUploadPopup::`vftable';\n        v7[126] = 0;\n        v7[127] = 0;\n        v7[128] = 0;\n        v7[129] = 0;\n        *((_BYTE *)v7 + 1040) = 0;\n        v7[131] = 0;\n        v7[132] = 0;\n        v7[133] = 0;\n        v7[134] = 0;\n        v7[135] = 0;\n        *((_WORD *)v7 + 544) = 0;\n        *((_DWORD *)v7 + 273) = 0;\n        v7[137] = 0;\n        *((_DWORD *)v7 + 276) = 0;\n        v7[139] = 0;\n        if ( (unsigned __int8)EditorSoundConfigUploadPopup::init(v7, v6, a1) )\n        {\n          cocos2d::CCObject::autorelease((cocos2d::CCObject *)v7);\n          if ( v7 )\n          {\n            v8 = *(void (__fastcall **)(_QWORD *))(*v7 + 1064LL);\n            if ( (char *)v8 == (char *)SetupTriggerPopup::show )\n              SetupTriggerPopup::show(v7);\n            else\n              v8(v7);\n          }\n        }\n        else\n        {\n          (*(void (__fastcall **)(_QWORD *, __int64))(*v7 + 8LL))(v7, 1);\n        }\n      }\n      else\n      {\n        GJAccountManager::sharedState((unsigned int)(*(_DWORD *)(v4 + 360) - *(_DWORD *)(v4 + 364)));\n        GJAccountManager::showAccountNeededAlert(v5, \"upload <cg>sound packs</c>\");\n      }\n    }\n  }\n}", "assembly": "; \n; EditorSoundConfigInfoLayer::onUpload from 0x140197800 to 0x140197ab6 (694 bytes)\n; \n; 2 xrefs:\n; > EditorSoundConfigInfoLayer::init @ 0x140193a09\n; > <???> @ 0x1409195c8\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 11:27:45 +0000\n; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x140197800\nmov     [rsp+arg_10], rsi                                              ; +0x5, 0x140197805\npush    rdi                                                            ; +0xa, 0x14019780a\nsub     rsp, 20h                                                       ; +0xb, 0x14019780b\nmov     rsi, rcx                                                       ; +0xf, 0x14019780f\ncmp     qword ptr [rcx+430h], 0                                        ; +0x12, 0x140197812\njz      loc_140197AA6                                                  ; +0x1a, 0x14019781a\nmov     rbx, cs:qword_14090BFD0                                        ; +0x20, 0x140197820\ntest    rbx, rbx                                                       ; +0x27, 0x140197827\njnz     short loc_14019785E                                            ; +0x2a, 0x14019782a\nmov     ecx, 6E8h; Size                                                ; +0x2c, 0x14019782c\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x31, 0x140197831\nmov     [rsp+28h+arg_0], rax                                           ; +0x36, 0x140197836\nmov     rcx, rax                                                       ; +0x3b, 0x14019783b\ncall    GameManager__GameManager                                       ; +0x3e, 0x14019783e\nnop                                                                    ; +0x43, 0x140197843\nmov     cs:qword_14090BFD0, rax                                        ; +0x44, 0x140197844\nmov     rcx, [rax]                                                     ; +0x4b, 0x14019784b\nmov     rdx, [rcx+48h]                                                 ; +0x4e, 0x14019784e\nmov     rcx, rax                                                       ; +0x52, 0x140197852\ncall    rdx                                                            ; +0x55, 0x140197855\nmov     rbx, cs:qword_14090BFD0                                        ; +0x57, 0x140197857\nlea     rdx, a0218; \"0218\"                                             ; +0x5e, 0x14019785e\nmov     rcx, rbx                                                       ; +0x65, 0x140197865\ncall    GameManager__getGameVariable                                   ; +0x68, 0x140197868\ntest    al, al                                                         ; +0x6d, 0x14019786d\njnz     loc_140197A6C                                                  ; +0x6f, 0x14019786f\nlea     rdx, a0219; \"0219\"                                             ; +0x75, 0x140197875\nmov     rcx, rbx                                                       ; +0x7c, 0x14019787c\ncall    GameManager__getGameVariable                                   ; +0x7f, 0x14019787f\ntest    al, al                                                         ; +0x84, 0x140197884\njnz     loc_140197A6C                                                  ; +0x86, 0x140197886\ncall    GJAccountManager__sharedState                                  ; +0x8c, 0x14019788c\nmov     ecx, [rax+168h]                                                ; +0x91, 0x140197891\nsub     ecx, [rax+16Ch]                                                ; +0x97, 0x140197897\ntest    ecx, ecx                                                       ; +0x9d, 0x14019789d\njg      short loc_1401978C1                                            ; +0x9f, 0x14019789f\ncall    GJAccountManager__sharedState                                  ; +0xa1, 0x1401978a1\nlea     rdx, aUploadCgSoundP; \"upload <cg>sound packs</c>\"             ; +0xa6, 0x1401978a6\nmov     rbx, [rsp+28h+arg_8]                                           ; +0xad, 0x1401978ad\nmov     rsi, [rsp+28h+arg_10]                                          ; +0xb2, 0x1401978b2\nadd     rsp, 20h                                                       ; +0xb7, 0x1401978b7\npop     rdi                                                            ; +0xbb, 0x1401978bb\njmp     GJAccountManager__showAccountNeededAlert                       ; +0xbc, 0x1401978bc\nmov     rbx, [rsi+430h]                                                ; +0xc1, 0x1401978c1\nmov     ecx, 460h; Size                                                ; +0xc8, 0x1401978c8\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0xcd, 0x1401978cd\nmov     rdi, rax                                                       ; +0xd2, 0x1401978d2\nmov     [rsp+28h+arg_0], rax                                           ; +0xd5, 0x1401978d5\nmov     rcx, rax                                                       ; +0xda, 0x1401978da\ncall    SetupTriggerPopup__SetupTriggerPopup                           ; +0xdd, 0x1401978dd\nlea     rax, ??_7EditorSoundConfigUploadPopup@@6B@; const EditorSoundConfigUploadPopup::`vftable' ; +0xe2, 0x1401978e2\nmov     [rdi], rax                                                     ; +0xe9, 0x1401978e9\nlea     rax, ??_7EditorSoundConfigUploadPopup@@6B@_0; const EditorSoundConfigUploadPopup::`vftable' ; +0xec, 0x1401978ec\nmov     [rdi+140h], rax                                                ; +0xf3, 0x1401978f3\nlea     rax, ??_7EditorSoundConfigUploadPopup@@6B@_1; const EditorSoundConfigUploadPopup::`vftable' ; +0xfa, 0x1401978fa\nmov     [rdi+148h], rax                                                ; +0x101, 0x140197901\nlea     rax, ??_7EditorSoundConfigUploadPopup@@6B@_2; const EditorSoundConfigUploadPopup::`vftable' ; +0x108, 0x140197908\nmov     [rdi+150h], rax                                                ; +0x10f, 0x14019790f\nlea     rax, ??_7EditorSoundConfigUploadPopup@@6B@_3; const EditorSoundConfigUploadPopup::`vftable' ; +0x116, 0x140197916\nmov     [rdi+158h], rax                                                ; +0x11d, 0x14019791d\nlea     rax, ??_7EditorSoundConfigUploadPopup@@6B@_4; const EditorSoundConfigUploadPopup::`vftable' ; +0x124, 0x140197924\nmov     [rdi+160h], rax                                                ; +0x12b, 0x14019792b\nlea     rax, ??_7EditorSoundConfigUploadPopup@@6B@_5; const EditorSoundConfigUploadPopup::`vftable' ; +0x132, 0x140197932\nmov     [rdi+198h], rax                                                ; +0x139, 0x140197939\nlea     rax, ??_7EditorSoundConfigUploadPopup@@6B@_6; const EditorSoundConfigUploadPopup::`vftable' ; +0x140, 0x140197940\nmov     [rdi+1B0h], rax                                                ; +0x147, 0x140197947\nlea     rax, ??_7EditorSoundConfigUploadPopup@@6B@_7; const EditorSoundConfigUploadPopup::`vftable' ; +0x14e, 0x14019794e\nmov     [rdi+220h], rax                                                ; +0x155, 0x140197955\nlea     rax, ??_7EditorSoundConfigUploadPopup@@6B@_8; const EditorSoundConfigUploadPopup::`vftable' ; +0x15c, 0x14019795c\nmov     [rdi+298h], rax                                                ; +0x163, 0x140197963\nlea     rax, ??_7EditorSoundConfigUploadPopup@@6B@_9; const EditorSoundConfigUploadPopup::`vftable' ; +0x16a, 0x14019796a\nmov     [rdi+2A0h], rax                                                ; +0x171, 0x140197971\nlea     rax, ??_7EditorSoundConfigUploadPopup@@6B@_10; const EditorSoundConfigUploadPopup::`vftable' ; +0x178, 0x140197978\nmov     [rdi+3E8h], rax                                                ; +0x17f, 0x14019797f\nxor     eax, eax                                                       ; +0x186, 0x140197986\nmov     [rdi+3F0h], rax                                                ; +0x188, 0x140197988\nmov     [rdi+3F8h], rax                                                ; +0x18f, 0x14019798f\nmov     [rdi+400h], rax                                                ; +0x196, 0x140197996\nmov     [rdi+408h], rax                                                ; +0x19d, 0x14019799d\nmov     [rdi+410h], al                                                 ; +0x1a4, 0x1401979a4\nmov     [rdi+418h], rax                                                ; +0x1aa, 0x1401979aa\nmov     [rdi+420h], rax                                                ; +0x1b1, 0x1401979b1\nmov     [rdi+428h], rax                                                ; +0x1b8, 0x1401979b8\nmov     [rdi+430h], rax                                                ; +0x1bf, 0x1401979bf\nmov     [rdi+438h], rax                                                ; +0x1c6, 0x1401979c6\nmov     [rdi+440h], ax                                                 ; +0x1cd, 0x1401979cd\nmov     [rdi+444h], eax                                                ; +0x1d4, 0x1401979d4\nmov     [rdi+448h], rax                                                ; +0x1da, 0x1401979da\nmov     [rdi+450h], eax                                                ; +0x1e1, 0x1401979e1\nmov     [rdi+458h], rax                                                ; +0x1e7, 0x1401979e7\nmov     r8, rsi                                                        ; +0x1ee, 0x1401979ee\nmov     rdx, rbx                                                       ; +0x1f1, 0x1401979f1\nmov     rcx, rdi                                                       ; +0x1f4, 0x1401979f4\ncall    EditorSoundConfigUploadPopup__init                             ; +0x1f7, 0x1401979f7\nmov     rcx, rdi                                                       ; +0x1fc, 0x1401979fc\ntest    al, al                                                         ; +0x1ff, 0x1401979ff\njz      short loc_140197A51                                            ; +0x201, 0x140197a01\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x203, 0x140197a03\ntest    rdi, rdi                                                       ; +0x209, 0x140197a09\njz      loc_140197AA6                                                  ; +0x20c, 0x140197a0c\nmov     rax, [rdi]                                                     ; +0x212, 0x140197a12\nmov     rdx, [rax+428h]                                                ; +0x215, 0x140197a15\nlea     rax, SetupTriggerPopup__show; Merged with: SetupTriggerPopup::show, SetTextPopup::show ; +0x21c, 0x140197a1c\nmov     rcx, rdi                                                       ; +0x223, 0x140197a23\ncmp     rdx, rax                                                       ; +0x226, 0x140197a26\njnz     short loc_140197A3F                                            ; +0x229, 0x140197a29\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x22b, 0x140197a2b\nmov     rsi, [rsp+28h+arg_10]                                          ; +0x230, 0x140197a30\nadd     rsp, 20h                                                       ; +0x235, 0x140197a35\npop     rdi                                                            ; +0x239, 0x140197a39\njmp     SetupTriggerPopup__show; Merged with: SetupTriggerPopup::show, SetTextPopup::show ; +0x23a, 0x140197a3a\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x23f, 0x140197a3f\nmov     rsi, [rsp+28h+arg_10]                                          ; +0x244, 0x140197a44\nadd     rsp, 20h                                                       ; +0x249, 0x140197a49\npop     rdi                                                            ; +0x24d, 0x140197a4d\njmp     rdx                                                            ; +0x24e, 0x140197a4e\nmov     rax, [rdi]                                                     ; +0x251, 0x140197a51\nmov     edx, 1                                                         ; +0x254, 0x140197a54\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x259, 0x140197a59\nmov     rsi, [rsp+28h+arg_10]                                          ; +0x25e, 0x140197a5e\nadd     rsp, 20h                                                       ; +0x263, 0x140197a63\npop     rdi                                                            ; +0x267, 0x140197a67\njmp     qword ptr [rax+8]                                              ; +0x268, 0x140197a68\ncmp     cs:qword_14090BFD0, 0                                          ; +0x26c, 0x140197a6c\njnz     short loc_140197AA1                                            ; +0x274, 0x140197a74\nmov     ecx, 6E8h; Size                                                ; +0x276, 0x140197a76\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x27b, 0x140197a7b\nmov     [rsp+28h+arg_0], rax                                           ; +0x280, 0x140197a80\nmov     rcx, rax                                                       ; +0x285, 0x140197a85\ncall    GameManager__GameManager                                       ; +0x288, 0x140197a88\nnop                                                                    ; +0x28d, 0x140197a8d\nmov     cs:qword_14090BFD0, rax                                        ; +0x28e, 0x140197a8e\nmov     rcx, [rax]                                                     ; +0x295, 0x140197a95\nmov     rdx, [rcx+48h]                                                 ; +0x298, 0x140197a98\nmov     rcx, rax                                                       ; +0x29c, 0x140197a9c\ncall    rdx                                                            ; +0x29f, 0x140197a9f\ncall    GameManager__showParentalRestrictedAlert                       ; +0x2a1, 0x140197aa1\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x2a6, 0x140197aa6\nmov     rsi, [rsp+28h+arg_10]                                          ; +0x2ab, 0x140197aab\nadd     rsp, 20h                                                       ; +0x2b0, 0x140197ab0\npop     rdi                                                            ; +0x2b4, 0x140197ab4\nretn                                                                   ; +0x2b5, 0x140197ab5", "xrefs": ["EditorSoundConfigInfoLayer::init @ 0x140193a09", "<???> @ 0x1409195c8"], "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"}