{"type": "func", "start": 4295035008, "end": 4295035082, "name": "EditorUI::onCreateButton", "pseudocode": "// \n// EditorUI::onCreateButton from 0x100010880 to 0x1000108ca (74 bytes)\n// \n// 2 xrefs:\n// > EditorUI::getCreateBtn @ 0x100638251\n// > EditorUI::menuItemFromObjectString @ 0x10063903a\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 12:18:52 +0000\n// \n\n__int64 __fastcall EditorUI::onCreateButton(__int64 a1, __int64 a2, float a3)\n{\n  int v3; // ecx\n  __int64 v4; // rax\n\n  v3 = 0;\n  if ( *(_DWORD *)(a1 + 1344) != *(_DWORD *)(a2 + 528) )\n    v3 = *(_DWORD *)(a2 + 528);\n  *(_DWORD *)(a1 + 1344) = v3;\n  v4 = EditorSFXManager::sharedState(a1);\n  EditorSFXManager::playAction_1(v4, 277);\n  EditorUI::updateCreateMenu(a1, 0);\n  return EditorUI::updateGridNodeSize_1(a1, a3);\n}", "assembly": "; \n; EditorUI::onCreateButton from 0x100010880 to 0x1000108ca (74 bytes)\n; \n; 2 xrefs:\n; > EditorUI::getCreateBtn @ 0x100638251\n; > EditorUI::menuItemFromObjectString @ 0x10063903a\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 12:18:52 +0000\n; \npush    rbp                                                            ; +0x0, 0x100010880\nmov     rbp, rsp                                                       ; +0x1, 0x100010881\npush    rbx                                                            ; +0x4, 0x100010884\npush    rax                                                            ; +0x5, 0x100010885\nmov     rbx, rdi                                                       ; +0x6, 0x100010886\nmov     eax, [rsi+210h]                                                ; +0x9, 0x100010889\nxor     ecx, ecx                                                       ; +0xf, 0x10001088f\ncmp     [rdi+540h], eax                                                ; +0x11, 0x100010891\ncmovnz  ecx, eax                                                       ; +0x17, 0x100010897\nmov     [rdi+540h], ecx                                                ; +0x1a, 0x10001089a\ncall    EditorSFXManager__sharedState                                  ; +0x20, 0x1000108a0\nmov     rdi, rax                                                       ; +0x25, 0x1000108a5\nmov     esi, 115h                                                      ; +0x28, 0x1000108a8\ncall    EditorSFXManager__playAction_1                                 ; +0x2d, 0x1000108ad\nmov     rdi, rbx                                                       ; +0x32, 0x1000108b2\nxor     esi, esi                                                       ; +0x35, 0x1000108b5\ncall    EditorUI__updateCreateMenu                                     ; +0x37, 0x1000108b7\nmov     rdi, rbx                                                       ; +0x3c, 0x1000108bc\nadd     rsp, 8                                                         ; +0x3f, 0x1000108bf\npop     rbx                                                            ; +0x43, 0x1000108c3\npop     rbp                                                            ; +0x44, 0x1000108c4\njmp     EditorUI__updateGridNodeSize_1                                 ; +0x45, 0x1000108c5", "xrefs": ["EditorUI::getCreateBtn @ 0x100638251", "EditorUI::menuItemFromObjectString @ 0x10063903a"], "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"}