{"type": "func", "start": 5369646224, "end": 5369646438, "name": "EditorUI::reloadCustomItems", "pseudocode": "// \n// EditorUI::reloadCustomItems from 0x1400e4c90 to 0x1400e4d66 (214 bytes)\n// \n// 5 xrefs:\n// > EditorUI::onNewCustomItem @ 0x1400e44e1\n// > EditorUI::onDeleteCustomItem @ 0x1400e4639\n// > EditorUI::orderUpCustomItem @ 0x1400e46cc\n// > EditorUI::orderDownCustomItem @ 0x1400e475c\n// > <???> @ 0x1406c8c94\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\n// Hidden C++ exception states: #wind=2\nvoid EditorUI::reloadCustomItems(EditorUI *a1)\n{\n  GameManager *v2; // rcx\n  int IntGameVariable; // esi\n  GameManager *v4; // rcx\n  int v5; // ebx\n  cocos2d::CCArray *CustomItems; // rax\n  void *v7; // [rsp+40h] [rbp+8h]\n  void *v8; // [rsp+40h] [rbp+8h]\n\n  v2 = (GameManager *)qword_1406C2ED8;\n  if ( !qword_1406C2ED8 )\n  {\n    v7 = operator new(0x668u);\n    qword_1406C2ED8 = sub_14017AB00(v7);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);\n    v2 = (GameManager *)qword_1406C2ED8;\n  }\n  IntGameVariable = GameManager::getIntGameVariable(v2, \"0049\");\n  v4 = (GameManager *)qword_1406C2ED8;\n  if ( !qword_1406C2ED8 )\n  {\n    v8 = operator new(0x668u);\n    qword_1406C2ED8 = sub_14017AB00(v8);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);\n    v4 = (GameManager *)qword_1406C2ED8;\n  }\n  v5 = GameManager::getIntGameVariable(v4, \"0050\");\n  CustomItems = EditorUI::createCustomItems(a1);\n  EditButtonBar::loadFromItems(a1->m_customTabBar, CustomItems, IntGameVariable, v5, 1);\n}", "assembly": "; \n; EditorUI::reloadCustomItems from 0x1400e4c90 to 0x1400e4d66 (214 bytes)\n; \n; 5 xrefs:\n; > EditorUI::onNewCustomItem @ 0x1400e44e1\n; > EditorUI::onDeleteCustomItem @ 0x1400e4639\n; > EditorUI::orderUpCustomItem @ 0x1400e46cc\n; > EditorUI::orderDownCustomItem @ 0x1400e475c\n; > <???> @ 0x1406c8c94\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x1400e4c90\nmov     [rsp+arg_10], rsi                                              ; +0x5, 0x1400e4c95\npush    rdi                                                            ; +0xa, 0x1400e4c9a\nsub     rsp, 30h                                                       ; +0xb, 0x1400e4c9b\nmov     rdi, rcx                                                       ; +0xf, 0x1400e4c9f\nmov     rcx, cs:qword_1406C2ED8                                        ; +0x12, 0x1400e4ca2\ntest    rcx, rcx                                                       ; +0x19, 0x1400e4ca9\njnz     short loc_1400E4CDD                                            ; +0x1c, 0x1400e4cac\nmov     ecx, 668h; Size                                                ; +0x1e, 0x1400e4cae\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x23, 0x1400e4cb3\nmov     [rsp+38h+arg_0], rax                                           ; +0x28, 0x1400e4cb8\nmov     rcx, rax                                                       ; +0x2d, 0x1400e4cbd\ncall    sub_14017AB00                                                  ; +0x30, 0x1400e4cc0\nnop                                                                    ; +0x35, 0x1400e4cc5\nmov     cs:qword_1406C2ED8, rax                                        ; +0x36, 0x1400e4cc6\nmov     rdx, [rax]                                                     ; +0x3d, 0x1400e4ccd\nmov     rcx, rax                                                       ; +0x40, 0x1400e4cd0\ncall    qword ptr [rdx+48h]                                            ; +0x43, 0x1400e4cd3\nmov     rcx, cs:qword_1406C2ED8                                        ; +0x46, 0x1400e4cd6\nlea     rdx, a0049; \"0049\"                                             ; +0x4d, 0x1400e4cdd\ncall    GameManager__getIntGameVariable                                ; +0x54, 0x1400e4ce4\nmov     esi, eax                                                       ; +0x59, 0x1400e4ce9\nmov     rcx, cs:qword_1406C2ED8                                        ; +0x5b, 0x1400e4ceb\ntest    rcx, rcx                                                       ; +0x62, 0x1400e4cf2\njnz     short loc_1400E4D26                                            ; +0x65, 0x1400e4cf5\nmov     ecx, 668h; Size                                                ; +0x67, 0x1400e4cf7\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x6c, 0x1400e4cfc\nmov     [rsp+38h+arg_0], rax                                           ; +0x71, 0x1400e4d01\nmov     rcx, rax                                                       ; +0x76, 0x1400e4d06\ncall    sub_14017AB00                                                  ; +0x79, 0x1400e4d09\nnop                                                                    ; +0x7e, 0x1400e4d0e\nmov     cs:qword_1406C2ED8, rax                                        ; +0x7f, 0x1400e4d0f\nmov     rdx, [rax]                                                     ; +0x86, 0x1400e4d16\nmov     rcx, rax                                                       ; +0x89, 0x1400e4d19\ncall    qword ptr [rdx+48h]                                            ; +0x8c, 0x1400e4d1c\nmov     rcx, cs:qword_1406C2ED8                                        ; +0x8f, 0x1400e4d1f\nlea     rdx, a0050; \"0050\"                                             ; +0x96, 0x1400e4d26\ncall    GameManager__getIntGameVariable                                ; +0x9d, 0x1400e4d2d\nmov     ebx, eax                                                       ; +0xa2, 0x1400e4d32\nmov     rcx, rdi                                                       ; +0xa4, 0x1400e4d34\ncall    EditorUI__createCustomItems                                    ; +0xa7, 0x1400e4d37\nmov     rdx, rax                                                       ; +0xac, 0x1400e4d3c\nmov     [rsp+38h+var_18], 1                                            ; +0xaf, 0x1400e4d3f\nmov     r9d, ebx                                                       ; +0xb4, 0x1400e4d44\nmov     r8d, esi                                                       ; +0xb7, 0x1400e4d47\nmov     rcx, [rdi+260h]                                                ; +0xba, 0x1400e4d4a\ncall    EditButtonBar__loadFromItems                                   ; +0xc1, 0x1400e4d51\nmov     rbx, [rsp+38h+arg_8]                                           ; +0xc6, 0x1400e4d56\nmov     rsi, [rsp+38h+arg_10]                                          ; +0xcb, 0x1400e4d5b\nadd     rsp, 30h                                                       ; +0xd0, 0x1400e4d60\npop     rdi                                                            ; +0xd4, 0x1400e4d64\nretn                                                                   ; +0xd5, 0x1400e4d65", "xrefs": ["EditorUI::onNewCustomItem @ 0x1400e44e1", "EditorUI::onDeleteCustomItem @ 0x1400e4639", "EditorUI::orderUpCustomItem @ 0x1400e46cc", "EditorUI::orderDownCustomItem @ 0x1400e475c", "<???> @ 0x1406c8c94"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}