{"type": "func", "start": 5370408064, "end": 5370408307, "name": "EditorSoundsLayer::onBrowse", "pseudocode": "// \n// EditorSoundsLayer::onBrowse from 0x14019ec80 to 0x14019ed73 (243 bytes)\n// \n// 2 xrefs:\n// > EditorSoundsLayer::init @ 0x14019d3d5\n// > <???> @ 0x1409197e4\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:48 +0000\n// \n\n// Hidden C++ exception states: #wind=2\n_QWORD *__fastcall EditorSoundsLayer::onBrowse(__int64 a1)\n{\n  __int64 v2; // rcx\n  _QWORD *result; // rax\n  __int64 v4; // rcx\n  __int128 v5; // [rsp+20h] [rbp-28h] BYREF\n  __int64 v6; // [rsp+30h] [rbp-18h]\n  __int64 v7; // [rsp+38h] [rbp-10h]\n  void *v8; // [rsp+60h] [rbp+18h]\n  void *v9; // [rsp+60h] [rbp+18h]\n\n  v2 = qword_14090BFD0;\n  if ( !qword_14090BFD0 )\n  {\n    v8 = operator new(0x6E8u);\n    qword_14090BFD0 = GameManager::GameManager(v8);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);\n    v2 = qword_14090BFD0;\n  }\n  if ( (unsigned __int8)GameManager::getGameVariable(v2, \"0219\") )\n  {\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    }\n    return (_QWORD *)GameManager::showParentalRestrictedAlert();\n  }\n  else\n  {\n    v4 = *(_QWORD *)(a1 + 1080);\n    if ( v4 )\n      (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v4 + 1032LL))(v4, 0);\n    v5 = 0;\n    v6 = 0;\n    v7 = 15;\n    LOBYTE(v5) = 0;\n    result = EditorSoundBrowserLayer::create((__int64)&v5, a1);\n    if ( result )\n      return (_QWORD *)(*(__int64 (__fastcall **)(_QWORD *))(*result + 1064LL))(result);\n  }\n  return result;\n}", "assembly": "; \n; EditorSoundsLayer::onBrowse from 0x14019ec80 to 0x14019ed73 (243 bytes)\n; \n; 2 xrefs:\n; > EditorSoundsLayer::init @ 0x14019d3d5\n; > <???> @ 0x1409197e4\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:48 +0000\n; \npush    rbx                                                            ; +0x0, 0x14019ec80\nsub     rsp, 40h                                                       ; +0x2, 0x14019ec82\nmov     rbx, rcx                                                       ; +0x6, 0x14019ec86\nmov     rcx, cs:qword_14090BFD0                                        ; +0x9, 0x14019ec89\ntest    rcx, rcx                                                       ; +0x10, 0x14019ec90\njnz     short loc_14019ECC7                                            ; +0x13, 0x14019ec93\nmov     ecx, 6E8h; Size                                                ; +0x15, 0x14019ec95\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x1a, 0x14019ec9a\nmov     [rsp+48h+arg_10], rax                                          ; +0x1f, 0x14019ec9f\nmov     rcx, rax                                                       ; +0x24, 0x14019eca4\ncall    GameManager__GameManager                                       ; +0x27, 0x14019eca7\nnop                                                                    ; +0x2c, 0x14019ecac\nmov     cs:qword_14090BFD0, rax                                        ; +0x2d, 0x14019ecad\nmov     rcx, [rax]                                                     ; +0x34, 0x14019ecb4\nmov     rdx, [rcx+48h]                                                 ; +0x37, 0x14019ecb7\nmov     rcx, rax                                                       ; +0x3b, 0x14019ecbb\ncall    rdx                                                            ; +0x3e, 0x14019ecbe\nmov     rcx, cs:qword_14090BFD0                                        ; +0x40, 0x14019ecc0\nlea     rdx, a0219; \"0219\"                                             ; +0x47, 0x14019ecc7\ncall    GameManager__getGameVariable                                   ; +0x4e, 0x14019ecce\ntest    al, al                                                         ; +0x53, 0x14019ecd3\njz      short loc_14019ED16                                            ; +0x55, 0x14019ecd5\ncmp     cs:qword_14090BFD0, 0                                          ; +0x57, 0x14019ecd7\njnz     short loc_14019ED0C                                            ; +0x5f, 0x14019ecdf\nmov     ecx, 6E8h; Size                                                ; +0x61, 0x14019ece1\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x66, 0x14019ece6\nmov     [rsp+48h+arg_10], rax                                          ; +0x6b, 0x14019eceb\nmov     rcx, rax                                                       ; +0x70, 0x14019ecf0\ncall    GameManager__GameManager                                       ; +0x73, 0x14019ecf3\nnop                                                                    ; +0x78, 0x14019ecf8\nmov     cs:qword_14090BFD0, rax                                        ; +0x79, 0x14019ecf9\nmov     rcx, [rax]                                                     ; +0x80, 0x14019ed00\nmov     rdx, [rcx+48h]                                                 ; +0x83, 0x14019ed03\nmov     rcx, rax                                                       ; +0x87, 0x14019ed07\ncall    rdx                                                            ; +0x8a, 0x14019ed0a\nadd     rsp, 40h                                                       ; +0x8c, 0x14019ed0c\npop     rbx                                                            ; +0x90, 0x14019ed10\njmp     GameManager__showParentalRestrictedAlert                       ; +0x91, 0x14019ed11\nmov     rcx, [rbx+438h]                                                ; +0x96, 0x14019ed16\ntest    rcx, rcx                                                       ; +0x9d, 0x14019ed1d\njz      short loc_14019ED2D                                            ; +0xa0, 0x14019ed20\nmov     rax, [rcx]                                                     ; +0xa2, 0x14019ed22\nxor     edx, edx                                                       ; +0xa5, 0x14019ed25\ncall    qword ptr [rax+408h]                                           ; +0xa7, 0x14019ed27\nxorps   xmm0, xmm0                                                     ; +0xad, 0x14019ed2d\nmovups  [rsp+48h+var_28], xmm0                                         ; +0xb0, 0x14019ed30\nmov     [rsp+48h+var_18], 0                                            ; +0xb5, 0x14019ed35\nmov     [rsp+48h+var_10], 0Fh                                          ; +0xbe, 0x14019ed3e\nmov     byte ptr [rsp+48h+var_28], 0                                   ; +0xc7, 0x14019ed47\nmov     rdx, rbx                                                       ; +0xcc, 0x14019ed4c\nlea     rcx, [rsp+48h+var_28]                                          ; +0xcf, 0x14019ed4f\ncall    EditorSoundBrowserLayer__create                                ; +0xd4, 0x14019ed54\ntest    rax, rax                                                       ; +0xd9, 0x14019ed59\njz      short loc_14019ED6D                                            ; +0xdc, 0x14019ed5c\nmov     rcx, [rax]                                                     ; +0xde, 0x14019ed5e\nmov     rdx, [rcx+428h]                                                ; +0xe1, 0x14019ed61\nmov     rcx, rax                                                       ; +0xe8, 0x14019ed68\ncall    rdx                                                            ; +0xeb, 0x14019ed6b\nadd     rsp, 40h                                                       ; +0xed, 0x14019ed6d\npop     rbx                                                            ; +0xf1, 0x14019ed71\nretn                                                                   ; +0xf2, 0x14019ed72", "xrefs": ["EditorSoundsLayer::init @ 0x14019d3d5", "<???> @ 0x1409197e4"], "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"}