{"type": "func", "start": 5370371104, "end": 5370371758, "name": "EditorSoundConfigInfoLayer::onDescription", "pseudocode": "// \n// EditorSoundConfigInfoLayer::onDescription from 0x140195c20 to 0x140195eae (654 bytes)\n// \n// 3 xrefs:\n// > EditorSoundConfigInfoLayer::init @ 0x140193eb1\n// > EditorSoundConfigInfoLayer::init @ 0x1401941b0\n// > <???> @ 0x1409194a8\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::onDescription(__int64 a1)\n{\n  __int64 v2; // rdx\n  __int64 v3; // rdi\n  __int64 v4; // rdx\n  __int64 v5; // rax\n  char *v6; // rbx\n  void (__fastcall *v7)(char *); // rdx\n  void *v8; // rcx\n  char v9[32]; // [rsp+38h] [rbp-70h] BYREF\n  void *Block[2]; // [rsp+58h] [rbp-50h] BYREF\n  __int64 v11; // [rsp+68h] [rbp-40h]\n  unsigned __int64 v12; // [rsp+70h] [rbp-38h]\n  _BYTE v13[32]; // [rsp+78h] [rbp-30h] BYREF\n\n  v2 = *(_QWORD *)(a1 + 1072);\n  if ( v2 )\n  {\n    v3 = a1 + 1040;\n    sub_14003F4F0((__int64)v13, v2 + 448);\n    v4 = *(_QWORD *)(a1 + 1072);\n    if ( *(_QWORD *)(v4 + 432) )\n    {\n      v5 = sub_14003F4F0((__int64)v9, v4 + 416);\n      LevelTools::base64DecodeString(Block, v5);\n    }\n    else\n    {\n      *(_OWORD *)Block = 0;\n      v11 = 0;\n      v12 = 15;\n      LOBYTE(Block[0]) = 0;\n    }\n    v6 = (char *)operator new(0x440u);\n    SetupTriggerPopup::SetupTriggerPopup((__int64)v6);\n    *(_QWORD *)v6 = &SoundPackDescPopup::`vftable';\n    *((_QWORD *)v6 + 40) = &SoundPackDescPopup::`vftable';\n    *((_QWORD *)v6 + 41) = &SoundPackDescPopup::`vftable';\n    *((_QWORD *)v6 + 42) = &SoundPackDescPopup::`vftable';\n    *((_QWORD *)v6 + 43) = &SoundPackDescPopup::`vftable';\n    *((_QWORD *)v6 + 44) = &SoundPackDescPopup::`vftable';\n    *((_QWORD *)v6 + 51) = &SoundPackDescPopup::`vftable';\n    *((_QWORD *)v6 + 54) = &SoundPackDescPopup::`vftable';\n    *((_QWORD *)v6 + 68) = &SoundPackDescPopup::`vftable';\n    *((_QWORD *)v6 + 83) = &SoundPackDescPopup::`vftable';\n    *((_QWORD *)v6 + 84) = &SoundPackDescPopup::`vftable';\n    *((_QWORD *)v6 + 125) = &SoundPackDescPopup::`vftable';\n    *((_QWORD *)v6 + 126) = 0;\n    *((_QWORD *)v6 + 127) = 0;\n    *((_DWORD *)v6 + 256) = 0;\n    *(_OWORD *)(v6 + 1032) = 0;\n    *((_QWORD *)v6 + 131) = 0;\n    *((_QWORD *)v6 + 132) = 15;\n    v6[1032] = 0;\n    *((_QWORD *)v6 + 133) = 0;\n    *((_QWORD *)v6 + 134) = 0;\n    *((_QWORD *)v6 + 135) = 0;\n    if ( (unsigned __int8)SoundPackDescPopup::init(v6, Block, v13, v3) )\n    {\n      cocos2d::CCObject::autorelease((cocos2d::CCObject *)v6);\n    }\n    else\n    {\n      (*(void (__fastcall **)(char *, __int64))(*(_QWORD *)v6 + 8LL))(v6, 1);\n      v6 = nullptr;\n    }\n    v7 = *(void (__fastcall **)(char *))(*(_QWORD *)v6 + 1064LL);\n    if ( (char *)v7 == (char *)SetupTriggerPopup::show )\n      SetupTriggerPopup::show(v6);\n    else\n      v7(v6);\n    if ( v12 > 0xF )\n    {\n      v8 = Block[0];\n      if ( v12 + 1 >= 0x1000 )\n      {\n        v8 = *((void **)Block[0] - 1);\n        if ( (unsigned __int64)((char *)Block[0] - (char *)v8 - 8) > 0x1F )\n          invoke_watson(nullptr, nullptr, nullptr, 0, 0);\n      }\n      j_j_free(v8);\n    }\n    v11 = 0;\n    v12 = 15;\n    LOBYTE(Block[0]) = 0;\n    sub_14003D310((__int64)v13);\n  }\n}", "assembly": "; \n; EditorSoundConfigInfoLayer::onDescription from 0x140195c20 to 0x140195eae (654 bytes)\n; \n; 3 xrefs:\n; > EditorSoundConfigInfoLayer::init @ 0x140193eb1\n; > EditorSoundConfigInfoLayer::init @ 0x1401941b0\n; > <???> @ 0x1409194a8\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, 0x140195c20\nmov     [rsp+arg_10], rsi                                              ; +0x5, 0x140195c25\npush    rdi                                                            ; +0xa, 0x140195c2a\nsub     rsp, 0A0h                                                      ; +0xb, 0x140195c2b\nmov     rax, cs:__security_cookie                                      ; +0x12, 0x140195c32\nxor     rax, rsp                                                       ; +0x19, 0x140195c39\nmov     [rsp+0A8h+var_10], rax                                         ; +0x1c, 0x140195c3c\nmov     rbx, rcx                                                       ; +0x24, 0x140195c44\nxor     esi, esi                                                       ; +0x27, 0x140195c47\nmov     rdx, [rcx+430h]                                                ; +0x29, 0x140195c49\ntest    rdx, rdx                                                       ; +0x30, 0x140195c50\njz      loc_140195E89                                                  ; +0x33, 0x140195c53\nlea     rdi, [rcx+410h]                                                ; +0x39, 0x140195c59\nadd     rdx, 1C0h                                                      ; +0x40, 0x140195c60\nlea     rcx, [rsp+0A8h+var_30]                                         ; +0x47, 0x140195c67\ncall    sub_14003F4F0                                                  ; +0x4c, 0x140195c6c\nnop                                                                    ; +0x51, 0x140195c71\nmov     rdx, [rbx+430h]                                                ; +0x52, 0x140195c72\ncmp     [rdx+1B0h], rsi                                                ; +0x59, 0x140195c79\njnz     short loc_140195C9F                                            ; +0x60, 0x140195c80\nxorps   xmm0, xmm0                                                     ; +0x62, 0x140195c82\nmovups  xmmword ptr [rsp+0A8h+Block], xmm0                             ; +0x65, 0x140195c85\nmov     [rsp+0A8h+var_40], rsi                                         ; +0x6a, 0x140195c8a\nmov     [rsp+0A8h+var_38], 0Fh                                         ; +0x6f, 0x140195c8f\nmov     byte ptr [rsp+0A8h+Block], sil                                 ; +0x78, 0x140195c98\njmp     short loc_140195CBE                                            ; +0x7d, 0x140195c9d\nadd     rdx, 1A0h                                                      ; +0x7f, 0x140195c9f\nlea     rcx, [rsp+0A8h+var_70]                                         ; +0x86, 0x140195ca6\ncall    sub_14003F4F0                                                  ; +0x8b, 0x140195cab\nmov     rdx, rax                                                       ; +0x90, 0x140195cb0\nlea     rcx, [rsp+0A8h+Block]                                          ; +0x93, 0x140195cb3\ncall    LevelTools__base64DecodeString                                 ; +0x98, 0x140195cb8\nnop                                                                    ; +0x9d, 0x140195cbd\nmov     ecx, 440h; Size                                                ; +0x9e, 0x140195cbe\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0xa3, 0x140195cc3\nmov     rbx, rax                                                       ; +0xa8, 0x140195cc8\nmov     [rsp+0A8h+var_78], rax                                         ; +0xab, 0x140195ccb\nmov     rcx, rax                                                       ; +0xb0, 0x140195cd0\ncall    SetupTriggerPopup__SetupTriggerPopup                           ; +0xb3, 0x140195cd3\nlea     rax, ??_7SoundPackDescPopup@@6B@; const SoundPackDescPopup::`vftable' ; +0xb8, 0x140195cd8\nmov     [rbx], rax                                                     ; +0xbf, 0x140195cdf\nlea     rax, ??_7SoundPackDescPopup@@6B@_0; const SoundPackDescPopup::`vftable' ; +0xc2, 0x140195ce2\nmov     [rbx+140h], rax                                                ; +0xc9, 0x140195ce9\nlea     rax, ??_7SoundPackDescPopup@@6B@_1; const SoundPackDescPopup::`vftable' ; +0xd0, 0x140195cf0\nmov     [rbx+148h], rax                                                ; +0xd7, 0x140195cf7\nlea     rax, ??_7SoundPackDescPopup@@6B@_2; const SoundPackDescPopup::`vftable' ; +0xde, 0x140195cfe\nmov     [rbx+150h], rax                                                ; +0xe5, 0x140195d05\nlea     rax, ??_7SoundPackDescPopup@@6B@_3; const SoundPackDescPopup::`vftable' ; +0xec, 0x140195d0c\nmov     [rbx+158h], rax                                                ; +0xf3, 0x140195d13\nlea     rax, ??_7SoundPackDescPopup@@6B@_4; const SoundPackDescPopup::`vftable' ; +0xfa, 0x140195d1a\nmov     [rbx+160h], rax                                                ; +0x101, 0x140195d21\nlea     rax, ??_7SoundPackDescPopup@@6B@_5; const SoundPackDescPopup::`vftable' ; +0x108, 0x140195d28\nmov     [rbx+198h], rax                                                ; +0x10f, 0x140195d2f\nlea     rax, ??_7SoundPackDescPopup@@6B@_6; const SoundPackDescPopup::`vftable' ; +0x116, 0x140195d36\nmov     [rbx+1B0h], rax                                                ; +0x11d, 0x140195d3d\nlea     rax, ??_7SoundPackDescPopup@@6B@_7; const SoundPackDescPopup::`vftable' ; +0x124, 0x140195d44\nmov     [rbx+220h], rax                                                ; +0x12b, 0x140195d4b\nlea     rax, ??_7SoundPackDescPopup@@6B@_8; const SoundPackDescPopup::`vftable' ; +0x132, 0x140195d52\nmov     [rbx+298h], rax                                                ; +0x139, 0x140195d59\nlea     rax, ??_7SoundPackDescPopup@@6B@_9; const SoundPackDescPopup::`vftable' ; +0x140, 0x140195d60\nmov     [rbx+2A0h], rax                                                ; +0x147, 0x140195d67\nlea     rax, ??_7SoundPackDescPopup@@6B@_10; const SoundPackDescPopup::`vftable' ; +0x14e, 0x140195d6e\nmov     [rbx+3E8h], rax                                                ; +0x155, 0x140195d75\nmov     [rbx+3F0h], rsi                                                ; +0x15c, 0x140195d7c\nmov     [rbx+3F8h], rsi                                                ; +0x163, 0x140195d83\nmov     [rbx+400h], esi                                                ; +0x16a, 0x140195d8a\nxorps   xmm0, xmm0                                                     ; +0x170, 0x140195d90\nmovups  xmmword ptr [rbx+408h], xmm0                                   ; +0x173, 0x140195d93\nmov     [rbx+418h], rsi                                                ; +0x17a, 0x140195d9a\nmov     qword ptr [rbx+420h], 0Fh                                      ; +0x181, 0x140195da1\nmov     byte ptr [rbx+408h], 0                                         ; +0x18c, 0x140195dac\nmov     [rbx+428h], rsi                                                ; +0x193, 0x140195db3\nmov     [rbx+430h], rsi                                                ; +0x19a, 0x140195dba\nmov     [rbx+438h], rsi                                                ; +0x1a1, 0x140195dc1\nmov     r9, rdi                                                        ; +0x1a8, 0x140195dc8\nlea     r8, [rsp+0A8h+var_30]                                          ; +0x1ab, 0x140195dcb\nlea     rdx, [rsp+0A8h+Block]                                          ; +0x1b0, 0x140195dd0\nmov     rcx, rbx                                                       ; +0x1b5, 0x140195dd5\ncall    SoundPackDescPopup__init                                       ; +0x1b8, 0x140195dd8\nmov     rcx, rbx                                                       ; +0x1bd, 0x140195ddd\ntest    al, al                                                         ; +0x1c0, 0x140195de0\njz      short loc_140195DEC                                            ; +0x1c2, 0x140195de2\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x1c4, 0x140195de4\njmp     short loc_140195DFA                                            ; +0x1ca, 0x140195dea\nmov     rax, [rbx]                                                     ; +0x1cc, 0x140195dec\nmov     edx, 1                                                         ; +0x1cf, 0x140195def\ncall    qword ptr [rax+8]                                              ; +0x1d4, 0x140195df4\nmov     rbx, rsi                                                       ; +0x1d7, 0x140195df7\nmov     rax, [rbx]                                                     ; +0x1da, 0x140195dfa\nmov     rdx, [rax+428h]                                                ; +0x1dd, 0x140195dfd\nlea     rax, SetupTriggerPopup__show; Merged with: SetupTriggerPopup::show, SetTextPopup::show ; +0x1e4, 0x140195e04\nmov     rcx, rbx                                                       ; +0x1eb, 0x140195e0b\ncmp     rdx, rax                                                       ; +0x1ee, 0x140195e0e\njnz     short loc_140195E1A                                            ; +0x1f1, 0x140195e11\ncall    SetupTriggerPopup__show; Merged with: SetupTriggerPopup::show, SetTextPopup::show ; +0x1f3, 0x140195e13\njmp     short loc_140195E1D                                            ; +0x1f8, 0x140195e18\ncall    rdx                                                            ; +0x1fa, 0x140195e1a\nnop                                                                    ; +0x1fc, 0x140195e1c\nmov     rdx, [rsp+0A8h+var_38]                                         ; +0x1fd, 0x140195e1d\ncmp     rdx, 0Fh                                                       ; +0x202, 0x140195e22\njbe     short loc_140195E6C                                            ; +0x206, 0x140195e26\ninc     rdx                                                            ; +0x208, 0x140195e28\nmov     rcx, [rsp+0A8h+Block]; Block                                   ; +0x20b, 0x140195e2b\nmov     rax, rcx                                                       ; +0x210, 0x140195e30\ncmp     rdx, 1000h                                                     ; +0x213, 0x140195e33\njb      short loc_140195E67                                            ; +0x21a, 0x140195e3a\nadd     rdx, 27h ; '''                                                 ; +0x21c, 0x140195e3c\nmov     rcx, [rcx-8]                                                   ; +0x220, 0x140195e40\nsub     rax, rcx                                                       ; +0x224, 0x140195e44\nsub     rax, 8                                                         ; +0x227, 0x140195e47\ncmp     rax, 1Fh                                                       ; +0x22b, 0x140195e4b\njbe     short loc_140195E67                                            ; +0x22f, 0x140195e4f\nmov     [rsp+0A8h+Reserved], rsi; Reserved                             ; +0x231, 0x140195e51\nxor     r9d, r9d; LineNo                                               ; +0x236, 0x140195e56\nxor     r8d, r8d; FileName                                             ; +0x239, 0x140195e59\nxor     edx, edx; FunctionName                                         ; +0x23c, 0x140195e5c\nxor     ecx, ecx; Expression                                           ; +0x23e, 0x140195e5e\ncall    cs:_invoke_watson                                              ; +0x240, 0x140195e60\ndb 0CCh                                                                ; +0x246, 0x140195e66\ncall    j_j_free                                                       ; +0x247, 0x140195e67\nmov     [rsp+0A8h+var_40], rsi                                         ; +0x24c, 0x140195e6c\nmov     [rsp+0A8h+var_38], 0Fh                                         ; +0x251, 0x140195e71\nmov     byte ptr [rsp+0A8h+Block], 0                                   ; +0x25a, 0x140195e7a\nlea     rcx, [rsp+0A8h+var_30]                                         ; +0x25f, 0x140195e7f\ncall    sub_14003D310                                                  ; +0x264, 0x140195e84\nmov     rcx, [rsp+0A8h+var_10]                                         ; +0x269, 0x140195e89\nxor     rcx, rsp; StackCookie                                          ; +0x271, 0x140195e91\ncall    __security_check_cookie                                        ; +0x274, 0x140195e94\nlea     r11, [rsp+0A8h+var_8]                                          ; +0x279, 0x140195e99\nmov     rbx, [r11+18h]                                                 ; +0x281, 0x140195ea1\nmov     rsi, [r11+20h]                                                 ; +0x285, 0x140195ea5\nmov     rsp, r11                                                       ; +0x289, 0x140195ea9\npop     rdi                                                            ; +0x28c, 0x140195eac\nretn                                                                   ; +0x28d, 0x140195ead", "xrefs": ["EditorSoundConfigInfoLayer::init @ 0x140193eb1", "EditorSoundConfigInfoLayer::init @ 0x1401941b0", "<???> @ 0x1409194a8"], "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"}