{"type": "func", "start": 5370765552, "end": 5370765695, "name": "EditorUI::orderUpCustomItem", "pseudocode": "// \n// EditorUI::orderUpCustomItem from 0x1401f60f0 to 0x1401f617f (143 bytes)\n// \n// 2 xrefs:\n// > EditorUI::createCustomItems @ 0x1401f6479\n// > <???> @ 0x14091aa8c\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:28:09 +0000\n// \n\nvoid __fastcall EditorUI::orderUpCustomItem(__int64 a1, __int64 a2, __int64 a3)\n{\n  __int64 v4; // rcx\n  int v5; // edi\n  void *v6; // [rsp+30h] [rbp+8h]\n\n  if ( *(int *)(a1 + 1392) < 0 )\n  {\n    v4 = qword_14090BFD0;\n    if ( !qword_14090BFD0 )\n    {\n      v6 = operator new(0x6E8u);\n      qword_14090BFD0 = GameManager::GameManager(v6);\n      (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);\n      v4 = qword_14090BFD0;\n    }\n    LOBYTE(a3) = 1;\n    v5 = GameManager::reorderKey(v4, *(unsigned int *)(a1 + 1392), a3);\n    if ( v5 != *(_DWORD *)(a1 + 1392) )\n    {\n      EditorUI::reloadCustomItems(a1);\n      *(_DWORD *)(a1 + 1392) = v5;\n      EditorUI::updateCreateMenu(a1, 0);\n    }\n  }\n}", "assembly": "; \n; EditorUI::orderUpCustomItem from 0x1401f60f0 to 0x1401f617f (143 bytes)\n; \n; 2 xrefs:\n; > EditorUI::createCustomItems @ 0x1401f6479\n; > <???> @ 0x14091aa8c\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:28:09 +0000\n; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x1401f60f0\npush    rdi                                                            ; +0x5, 0x1401f60f5\nsub     rsp, 20h                                                       ; +0x6, 0x1401f60f6\nmov     rbx, rcx                                                       ; +0xa, 0x1401f60fa\ncmp     dword ptr [rcx+570h], 0                                        ; +0xd, 0x1401f60fd\njge     short loc_1401F6174                                            ; +0x14, 0x1401f6104\nmov     rcx, cs:qword_14090BFD0                                        ; +0x16, 0x1401f6106\ntest    rcx, rcx                                                       ; +0x1d, 0x1401f610d\njnz     short loc_1401F6144                                            ; +0x20, 0x1401f6110\nmov     ecx, 6E8h; Size                                                ; +0x22, 0x1401f6112\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x27, 0x1401f6117\nmov     [rsp+28h+arg_0], rax                                           ; +0x2c, 0x1401f611c\nmov     rcx, rax                                                       ; +0x31, 0x1401f6121\ncall    GameManager__GameManager                                       ; +0x34, 0x1401f6124\nnop                                                                    ; +0x39, 0x1401f6129\nmov     cs:qword_14090BFD0, rax                                        ; +0x3a, 0x1401f612a\nmov     rcx, [rax]                                                     ; +0x41, 0x1401f6131\nmov     rdx, [rcx+48h]                                                 ; +0x44, 0x1401f6134\nmov     rcx, rax                                                       ; +0x48, 0x1401f6138\ncall    rdx                                                            ; +0x4b, 0x1401f613b\nmov     rcx, cs:qword_14090BFD0                                        ; +0x4d, 0x1401f613d\nmov     r8b, 1                                                         ; +0x54, 0x1401f6144\nmov     edx, [rbx+570h]                                                ; +0x57, 0x1401f6147\ncall    GameManager__reorderKey                                        ; +0x5d, 0x1401f614d\nmov     edi, eax                                                       ; +0x62, 0x1401f6152\ncmp     eax, [rbx+570h]                                                ; +0x64, 0x1401f6154\njz      short loc_1401F6174                                            ; +0x6a, 0x1401f615a\nmov     rcx, rbx                                                       ; +0x6c, 0x1401f615c\ncall    EditorUI__reloadCustomItems                                    ; +0x6f, 0x1401f615f\nmov     [rbx+570h], edi                                                ; +0x74, 0x1401f6164\nxor     edx, edx                                                       ; +0x7a, 0x1401f616a\nmov     rcx, rbx                                                       ; +0x7c, 0x1401f616c\ncall    EditorUI__updateCreateMenu                                     ; +0x7f, 0x1401f616f\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x84, 0x1401f6174\nadd     rsp, 20h                                                       ; +0x89, 0x1401f6179\npop     rdi                                                            ; +0x8d, 0x1401f617d\nretn                                                                   ; +0x8e, 0x1401f617e", "xrefs": ["EditorUI::createCustomItems @ 0x1401f6479", "<???> @ 0x14091aa8c"], "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"}