{"type": "func", "start": 5370342912, "end": 5370343241, "name": "EditorSoundBrowserLayer::onClose", "pseudocode": "// \n// EditorSoundBrowserLayer::onClose from 0x14018ee00 to 0x14018ef49 (329 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x14074c718\n// > <???> @ 0x1409191c0\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:42 +0000\n// \n\n// Hidden C++ exception states: #wind=3\n__int64 __fastcall EditorSoundBrowserLayer::onClose(__int64 a1, __int64 a2)\n{\n  __int64 v4; // rax\n  __int64 v5; // rdi\n  __int64 v6; // rcx\n  void *v7; // rdx\n  __int64 v8; // rcx\n  void *v10; // [rsp+30h] [rbp+8h]\n  void *v11; // [rsp+30h] [rbp+8h]\n\n  v4 = *(_QWORD *)&qword_14090BFB0;\n  if ( *(_QWORD *)&qword_14090BFB0\n    || (v10 = operator new(0x690u),\n        *(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager(v10),\n        (*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0),\n        (v4 = *(_QWORD *)&qword_14090BFB0) != 0) )\n  {\n    v5 = a1 + 1000;\n    if ( !a1 )\n      v5 = 0;\n    if ( !v4 )\n    {\n      v11 = operator new(0x690u);\n      *(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager(v11);\n      (*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0);\n      v4 = *(_QWORD *)&qword_14090BFB0;\n    }\n    if ( *(_QWORD *)(v4 + 1456) == v5 )\n      *(_QWORD *)(v4 + 1456) = 0;\n  }\n  v6 = *(_QWORD *)(a1 + 1192);\n  if ( v6 )\n    cocos2d::CCNode::scheduleOnce(v6, FLAlertLayer::rebuildContentDeferred);\n  if ( !*(_BYTE *)(a1 + 1188) )\n  {\n    dword_1408FE3EC = *(_DWORD *)(a1 + 1032);\n    if ( &qword_1408FE420 != (void **)(a1 + 1104) )\n    {\n      v7 = (void *)(a1 + 1104);\n      if ( *(_QWORD *)(a1 + 1128) > 0xFu )\n        v7 = *(void **)(a1 + 1104);\n      sub_1400405A0(&qword_1408FE420, v7, *(_QWORD *)(a1 + 1120));\n    }\n  }\n  v8 = *(_QWORD *)(a1 + 1040);\n  if ( v8 )\n  {\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)v8 + 528LL))(v8);\n    *(_QWORD *)(a1 + 1040) = 0;\n  }\n  return SetupTriggerPopup::onClose(a1, a2);\n}", "assembly": "; \n; EditorSoundBrowserLayer::onClose from 0x14018ee00 to 0x14018ef49 (329 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x14074c718\n; > <???> @ 0x1409191c0\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:42 +0000\n; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x14018ee00\nmov     [rsp+arg_10], rbp                                              ; +0x5, 0x14018ee05\nmov     [rsp+arg_18], rsi                                              ; +0xa, 0x14018ee0a\npush    rdi                                                            ; +0xf, 0x14018ee0f\nsub     rsp, 20h                                                       ; +0x10, 0x14018ee10\nmov     rsi, rdx                                                       ; +0x14, 0x14018ee14\nmov     rbx, rcx                                                       ; +0x17, 0x14018ee17\nxor     ebp, ebp                                                       ; +0x1a, 0x14018ee1a\nmov     rax, cs:qword_14090BFB0                                        ; +0x1c, 0x14018ee1c\ntest    rax, rax                                                       ; +0x23, 0x14018ee23\njnz     short loc_14018EE5F                                            ; +0x26, 0x14018ee26\nmov     ecx, 690h; Size                                                ; +0x28, 0x14018ee28\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x2d, 0x14018ee2d\nmov     [rsp+28h+arg_0], rax                                           ; +0x32, 0x14018ee32\nmov     rcx, rax                                                       ; +0x37, 0x14018ee37\ncall    GameLevelManager__GameLevelManager                             ; +0x3a, 0x14018ee3a\nnop                                                                    ; +0x3f, 0x14018ee3f\nmov     cs:qword_14090BFB0, rax                                        ; +0x40, 0x14018ee40\nmov     rcx, [rax]                                                     ; +0x47, 0x14018ee47\nmov     rdx, [rcx+48h]                                                 ; +0x4a, 0x14018ee4a\nmov     rcx, rax                                                       ; +0x4e, 0x14018ee4e\ncall    rdx                                                            ; +0x51, 0x14018ee51\nmov     rax, cs:qword_14090BFB0                                        ; +0x53, 0x14018ee53\ntest    rax, rax                                                       ; +0x5a, 0x14018ee5a\njz      short loc_14018EEB4                                            ; +0x5d, 0x14018ee5d\nlea     rdi, [rbx+3E8h]                                                ; +0x5f, 0x14018ee5f\ntest    rbx, rbx                                                       ; +0x66, 0x14018ee66\ncmovz   rdi, rbp                                                       ; +0x69, 0x14018ee69\ntest    rax, rax                                                       ; +0x6d, 0x14018ee6d\njnz     short loc_14018EEA4                                            ; +0x70, 0x14018ee70\nmov     ecx, 690h; Size                                                ; +0x72, 0x14018ee72\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x77, 0x14018ee77\nmov     [rsp+28h+arg_0], rax                                           ; +0x7c, 0x14018ee7c\nmov     rcx, rax                                                       ; +0x81, 0x14018ee81\ncall    GameLevelManager__GameLevelManager                             ; +0x84, 0x14018ee84\nnop                                                                    ; +0x89, 0x14018ee89\nmov     cs:qword_14090BFB0, rax                                        ; +0x8a, 0x14018ee8a\nmov     rcx, [rax]                                                     ; +0x91, 0x14018ee91\nmov     rdx, [rcx+48h]                                                 ; +0x94, 0x14018ee94\nmov     rcx, rax                                                       ; +0x98, 0x14018ee98\ncall    rdx                                                            ; +0x9b, 0x14018ee9b\nmov     rax, cs:qword_14090BFB0                                        ; +0x9d, 0x14018ee9d\ncmp     [rax+5B0h], rdi                                                ; +0xa4, 0x14018eea4\njnz     short loc_14018EEB4                                            ; +0xab, 0x14018eeab\nmov     [rax+5B0h], rbp                                                ; +0xad, 0x14018eead\nmov     rcx, [rbx+4A8h]                                                ; +0xb4, 0x14018eeb4\ntest    rcx, rcx                                                       ; +0xbb, 0x14018eebb\njz      short loc_14018EED0                                            ; +0xbe, 0x14018eebe\nxorps   xmm2, xmm2                                                     ; +0xc0, 0x14018eec0\nlea     rdx, FLAlertLayer__rebuildContentDeferred                      ; +0xc3, 0x14018eec3\ncall    cs:?scheduleOnce@CCNode@cocos2d@@QEAAXP8CCObject@2@EAAXM@ZM@Z; cocos2d::CCNode::scheduleOnce(void (cocos2d::CCObject::*)(float),float) ; +0xca, 0x14018eeca\ncmp     byte ptr [rbx+4A4h], 0                                         ; +0xd0, 0x14018eed0\njnz     short loc_14018EF0E                                            ; +0xd7, 0x14018eed7\nmov     eax, [rbx+408h]                                                ; +0xd9, 0x14018eed9\nmov     cs:dword_1408FE3EC, eax                                        ; +0xdf, 0x14018eedf\nlea     r8, [rbx+450h]                                                 ; +0xe5, 0x14018eee5\nlea     rcx, qword_1408FE420; void *                                   ; +0xec, 0x14018eeec\ncmp     rcx, r8                                                        ; +0xf3, 0x14018eef3\njz      short loc_14018EF0E                                            ; +0xf6, 0x14018eef6\nmov     rdx, r8                                                        ; +0xf8, 0x14018eef8\ncmp     qword ptr [r8+18h], 0Fh                                        ; +0xfb, 0x14018eefb\njbe     short loc_14018EF05                                            ; +0x100, 0x14018ef00\nmov     rdx, [r8]; Src                                                 ; +0x102, 0x14018ef02\nmov     r8, [r8+10h]; Size                                             ; +0x105, 0x14018ef05\ncall    sub_1400405A0                                                  ; +0x109, 0x14018ef09\nmov     rcx, [rbx+410h]                                                ; +0x10e, 0x14018ef0e\ntest    rcx, rcx                                                       ; +0x115, 0x14018ef15\njz      short loc_14018EF2A                                            ; +0x118, 0x14018ef18\nmov     rax, [rcx]                                                     ; +0x11a, 0x14018ef1a\ncall    qword ptr [rax+210h]                                           ; +0x11d, 0x14018ef1d\nmov     [rbx+410h], rbp                                                ; +0x123, 0x14018ef23\nmov     rdx, rsi                                                       ; +0x12a, 0x14018ef2a\nmov     rcx, rbx                                                       ; +0x12d, 0x14018ef2d\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x130, 0x14018ef30\nmov     rbp, [rsp+28h+arg_10]                                          ; +0x135, 0x14018ef35\nmov     rsi, [rsp+28h+arg_18]                                          ; +0x13a, 0x14018ef3a\nadd     rsp, 20h                                                       ; +0x13f, 0x14018ef3f\npop     rdi                                                            ; +0x143, 0x14018ef43\njmp     SetupTriggerPopup__onClose                                     ; +0x144, 0x14018ef44", "xrefs": ["<???> @ 0x14074c718", "<???> @ 0x1409191c0"], "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"}