{"type": "func", "start": 5370487024, "end": 5370487100, "name": "EditorUI::onCreateButton", "pseudocode": "// \n// EditorUI::onCreateButton from 0x1401b20f0 to 0x1401b213c (76 bytes)\n// \n// 3 xrefs:\n// > EditorUI::menuItemFromObjectString @ 0x1401f1304\n// > EditorUI::getCreateBtn @ 0x1401f17cc\n// > <???> @ 0x140919f70\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:56 +0000\n// \n\n__int64 __fastcall EditorUI::onCreateButton(__int64 a1, __int64 a2)\n{\n  int v2; // eax\n  __int64 v4; // rax\n\n  v2 = 0;\n  if ( *(_DWORD *)(a1 + 1392) != *(_DWORD *)(a2 + 552) )\n    v2 = *(_DWORD *)(a2 + 552);\n  *(_DWORD *)(a1 + 1392) = v2;\n  v4 = EditorSFXManager::sharedState();\n  EditorSFXManager::playAction(v4, 277);\n  EditorUI::updateCreateMenu(a1, 0);\n  return EditorUI::updateGridNodeSize_1(a1);\n}", "assembly": "; \n; EditorUI::onCreateButton from 0x1401b20f0 to 0x1401b213c (76 bytes)\n; \n; 3 xrefs:\n; > EditorUI::menuItemFromObjectString @ 0x1401f1304\n; > EditorUI::getCreateBtn @ 0x1401f17cc\n; > <???> @ 0x140919f70\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:56 +0000\n; \npush    rbx                                                            ; +0x0, 0x1401b20f0\nsub     rsp, 20h                                                       ; +0x2, 0x1401b20f2\nmov     r8d, [rdx+228h]                                                ; +0x6, 0x1401b20f6\nxor     eax, eax                                                       ; +0xd, 0x1401b20fd\ncmp     [rcx+570h], r8d                                                ; +0xf, 0x1401b20ff\nmov     rbx, rcx                                                       ; +0x16, 0x1401b2106\ncmovnz  eax, r8d                                                       ; +0x19, 0x1401b2109\nmov     [rcx+570h], eax                                                ; +0x1d, 0x1401b210d\ncall    EditorSFXManager__sharedState                                  ; +0x23, 0x1401b2113\nmov     rcx, rax                                                       ; +0x28, 0x1401b2118\nmov     edx, 115h                                                      ; +0x2b, 0x1401b211b\ncall    EditorSFXManager__playAction                                   ; +0x30, 0x1401b2120\nxor     edx, edx                                                       ; +0x35, 0x1401b2125\nmov     rcx, rbx                                                       ; +0x37, 0x1401b2127\ncall    EditorUI__updateCreateMenu                                     ; +0x3a, 0x1401b212a\nmov     rcx, rbx                                                       ; +0x3f, 0x1401b212f\nadd     rsp, 20h                                                       ; +0x42, 0x1401b2132\npop     rbx                                                            ; +0x46, 0x1401b2136\njmp     EditorUI__updateGridNodeSize_1                                 ; +0x47, 0x1401b2137", "xrefs": ["EditorUI::menuItemFromObjectString @ 0x1401f1304", "EditorUI::getCreateBtn @ 0x1401f17cc", "<???> @ 0x140919f70"], "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"}