{"type": "func", "start": 4304341440, "end": 4304341606, "name": "EditorSoundBrowserLayer::onClose", "pseudocode": "// \n// EditorSoundBrowserLayer::onClose from 0x1008f09c0 to 0x1008f0a66 (166 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x100bb50d8\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 12:37:55 +0000\n// \n\n__int64 __fastcall EditorSoundBrowserLayer::onClose(__int64 a1, __int64 a2)\n{\n  __int64 v3; // rdx\n  __int64 v4; // rdi\n  __int64 v5; // rdi\n\n  if ( GameLevelManager::sharedState() && *(_QWORD *)(GameLevelManager::sharedState() + 1328) == a1 + 1016 )\n    *(_QWORD *)(GameLevelManager::sharedState() + 1328) = 0;\n  v4 = *(_QWORD *)(a1 + 1192);\n  if ( v4 )\n    sub_100495650(v4);\n  if ( !*(_BYTE *)(a1 + 1188) )\n  {\n    dword_100BE0834 = *(_DWORD *)(a1 + 1048);\n    std::string::operator=(&stru_100BE7180, (const std::string *)(a1 + 1120));\n  }\n  v5 = *(_QWORD *)(a1 + 1056);\n  if ( v5 )\n  {\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)v5 + 536LL))(v5);\n    *(_QWORD *)(a1 + 1056) = 0;\n  }\n  return SetupTriggerPopup::onClose(a1, a2, v3);\n}", "assembly": "; \n; EditorSoundBrowserLayer::onClose from 0x1008f09c0 to 0x1008f0a66 (166 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x100bb50d8\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 12:37:55 +0000\n; \npush    rbp                                                            ; +0x0, 0x1008f09c0\nmov     rbp, rsp                                                       ; +0x1, 0x1008f09c1\npush    r14                                                            ; +0x4, 0x1008f09c4\npush    rbx                                                            ; +0x6, 0x1008f09c6\nmov     rbx, rsi                                                       ; +0x7, 0x1008f09c7\nmov     r14, rdi                                                       ; +0xa, 0x1008f09ca\ncall    GameLevelManager__sharedState                                  ; +0xd, 0x1008f09cd\ntest    rax, rax                                                       ; +0x12, 0x1008f09d2\njz      short loc_1008F09FC                                            ; +0x15, 0x1008f09d5\ncall    GameLevelManager__sharedState                                  ; +0x17, 0x1008f09d7\nlea     rcx, [r14+3F8h]                                                ; +0x1c, 0x1008f09dc\ncmp     [rax+530h], rcx                                                ; +0x23, 0x1008f09e3\njnz     short loc_1008F09FC                                            ; +0x2a, 0x1008f09ea\ncall    GameLevelManager__sharedState                                  ; +0x2c, 0x1008f09ec\nmov     qword ptr [rax+530h], 0                                        ; +0x31, 0x1008f09f1\nmov     rdi, [r14+4A8h]                                                ; +0x3c, 0x1008f09fc\ntest    rdi, rdi                                                       ; +0x43, 0x1008f0a03\njz      short loc_1008F0A0D                                            ; +0x46, 0x1008f0a06\ncall    sub_100495650                                                  ; +0x48, 0x1008f0a08\ncmp     byte ptr [r14+4A4h], 0                                         ; +0x4d, 0x1008f0a0d\njnz     short loc_1008F0A37                                            ; +0x55, 0x1008f0a15\nmov     eax, [r14+418h]                                                ; +0x57, 0x1008f0a17\nmov     cs:dword_100BE0834, eax                                        ; +0x5e, 0x1008f0a1e\nlea     rsi, [r14+460h]; __str                                         ; +0x64, 0x1008f0a24\nlea     rdi, stru_100BE7180; this                                      ; +0x6b, 0x1008f0a2b\ncall    __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEaSERKS5_; std::string::operator=(std::string const&) ; +0x72, 0x1008f0a32\nmov     rdi, [r14+420h]                                                ; +0x77, 0x1008f0a37\ntest    rdi, rdi                                                       ; +0x7e, 0x1008f0a3e\njz      short loc_1008F0A57                                            ; +0x81, 0x1008f0a41\nmov     rax, [rdi]                                                     ; +0x83, 0x1008f0a43\ncall    qword ptr [rax+218h]                                           ; +0x86, 0x1008f0a46\nmov     qword ptr [r14+420h], 0                                        ; +0x8c, 0x1008f0a4c\nmov     rdi, r14                                                       ; +0x97, 0x1008f0a57\nmov     rsi, rbx                                                       ; +0x9a, 0x1008f0a5a\npop     rbx                                                            ; +0x9d, 0x1008f0a5d\npop     r14                                                            ; +0x9e, 0x1008f0a5e\npop     rbp                                                            ; +0xa0, 0x1008f0a60\njmp     SetupTriggerPopup__onClose                                     ; +0xa1, 0x1008f0a61", "xrefs": ["<???> @ 0x100bb50d8"], "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"}