{"type": "func", "start": 5374937872, "end": 5374938066, "name": "BrowseSmartTemplateLayer::createPrefab", "pseudocode": "// \n// BrowseSmartTemplateLayer::createPrefab from 0x1405f0b10 to 0x1405f0bd2 (194 bytes)\n// \n// 3 xrefs:\n// > BrowseSmartTemplateLayer::onTemplateObject @ 0x1405f0df6\n// > BrowseSmartKeyLayer::onButton @ 0x1405f1b04\n// > <???> @ 0x14092f258\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:35:05 +0000\n// \n\n// Hidden C++ exception states: #wind=3\nvoid __fastcall BrowseSmartTemplateLayer::createPrefab(__int64 a1, __int64 a2, int a3)\n{\n  _QWORD *v6; // rbp\n  __int64 v7; // rcx\n  void *v8; // [rsp+28h] [rbp-50h]\n  _BYTE v9[32]; // [rsp+30h] [rbp-48h] BYREF\n  __int64 v10; // [rsp+50h] [rbp-28h]\n\n  v10 = a2;\n  v6 = (_QWORD *)sub_14003F4F0((__int64)v9, a2);\n  v7 = qword_14090BFD0;\n  if ( !qword_14090BFD0 )\n  {\n    v8 = operator new(0x6E8u);\n    qword_14090BFD0 = GameManager::GameManager((__int64)v8);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);\n    v7 = qword_14090BFD0;\n  }\n  EditorUI::createPrefab(*(_QWORD *)(*(_QWORD *)(v7 + 568) + 14904LL), *(_QWORD *)(a1 + 664), v6, a3);\n  sub_14003D310(a2);\n}", "assembly": "; \n; BrowseSmartTemplateLayer::createPrefab from 0x1405f0b10 to 0x1405f0bd2 (194 bytes)\n; \n; 3 xrefs:\n; > BrowseSmartTemplateLayer::onTemplateObject @ 0x1405f0df6\n; > BrowseSmartKeyLayer::onButton @ 0x1405f1b04\n; > <???> @ 0x14092f258\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:35:05 +0000\n; \nmov     [rsp+arg_18], rbx                                              ; +0x0, 0x1405f0b10\npush    rbp                                                            ; +0x5, 0x1405f0b15\npush    rsi                                                            ; +0x6, 0x1405f0b16\npush    rdi                                                            ; +0x7, 0x1405f0b17\nsub     rsp, 60h                                                       ; +0x8, 0x1405f0b18\nmov     rax, cs:__security_cookie                                      ; +0xc, 0x1405f0b1c\nxor     rax, rsp                                                       ; +0x13, 0x1405f0b23\nmov     [rsp+78h+var_20], rax                                          ; +0x16, 0x1405f0b26\nmov     esi, r8d                                                       ; +0x1b, 0x1405f0b2b\nmov     rbx, rdx                                                       ; +0x1e, 0x1405f0b2e\nmov     rdi, rcx                                                       ; +0x21, 0x1405f0b31\nmov     [rsp+78h+var_28], rdx                                          ; +0x24, 0x1405f0b34\nlea     rax, [rsp+78h+var_48]                                          ; +0x29, 0x1405f0b39\nmov     [rsp+78h+var_58], rax                                          ; +0x2e, 0x1405f0b3e\nlea     rcx, [rsp+78h+var_48]                                          ; +0x33, 0x1405f0b43\ncall    sub_14003F4F0                                                  ; +0x38, 0x1405f0b48\nmov     rbp, rax                                                       ; +0x3d, 0x1405f0b4d\nmov     rcx, cs:qword_14090BFD0                                        ; +0x40, 0x1405f0b50\ntest    rcx, rcx                                                       ; +0x47, 0x1405f0b57\njnz     short loc_1405F0B8C                                            ; +0x4a, 0x1405f0b5a\nmov     ecx, 6E8h; Size                                                ; +0x4c, 0x1405f0b5c\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x51, 0x1405f0b61\nmov     [rsp+78h+var_50], rax                                          ; +0x56, 0x1405f0b66\nmov     rcx, rax                                                       ; +0x5b, 0x1405f0b6b\ncall    GameManager__GameManager                                       ; +0x5e, 0x1405f0b6e\nnop                                                                    ; +0x63, 0x1405f0b73\nmov     cs:qword_14090BFD0, rax                                        ; +0x64, 0x1405f0b74\nmov     r8, [rax]                                                      ; +0x6b, 0x1405f0b7b\nmov     rcx, rax                                                       ; +0x6e, 0x1405f0b7e\ncall    qword ptr [r8+48h]                                             ; +0x71, 0x1405f0b81\nmov     rcx, cs:qword_14090BFD0                                        ; +0x75, 0x1405f0b85\nmov     rcx, [rcx+238h]                                                ; +0x7c, 0x1405f0b8c\nmov     r9d, esi                                                       ; +0x83, 0x1405f0b93\nmov     r8, rbp                                                        ; +0x86, 0x1405f0b96\nmov     rdx, [rdi+298h]                                                ; +0x89, 0x1405f0b99\nmov     rcx, [rcx+3A38h]                                               ; +0x90, 0x1405f0ba0\ncall    EditorUI__createPrefab                                         ; +0x97, 0x1405f0ba7\nnop                                                                    ; +0x9c, 0x1405f0bac\nmov     rcx, rbx                                                       ; +0x9d, 0x1405f0bad\ncall    sub_14003D310                                                  ; +0xa0, 0x1405f0bb0\nmov     rcx, [rsp+78h+var_20]                                          ; +0xa5, 0x1405f0bb5\nxor     rcx, rsp; StackCookie                                          ; +0xaa, 0x1405f0bba\ncall    __security_check_cookie                                        ; +0xad, 0x1405f0bbd\nmov     rbx, [rsp+78h+arg_18]                                          ; +0xb2, 0x1405f0bc2\nadd     rsp, 60h                                                       ; +0xba, 0x1405f0bca\npop     rdi                                                            ; +0xbe, 0x1405f0bce\npop     rsi                                                            ; +0xbf, 0x1405f0bcf\npop     rbp                                                            ; +0xc0, 0x1405f0bd0\nretn                                                                   ; +0xc1, 0x1405f0bd1", "xrefs": ["BrowseSmartTemplateLayer::onTemplateObject @ 0x1405f0df6", "BrowseSmartKeyLayer::onButton @ 0x1405f1b04", "<???> @ 0x14092f258"], "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"}