{"type": "func", "start": 4301274320, "end": 4301274497, "name": "CreateMenuItem::create", "pseudocode": "// \n// CreateMenuItem::create from 0x100603cd0 to 0x100603d81 (177 bytes)\n// \n// 3 xrefs:\n// > EditorUI::getCreateMenuItemButton @ 0x10000dad1\n// > EditorUI::getCreateBtn @ 0x100638264\n// > EditorUI::menuItemFromObjectString @ 0x100639050\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:34:31 +0000\n// \n\nchar *__fastcall CreateMenuItem::create(__int64 a1, int a2, int a3, __int64 a4, __int64 a5)\n{\n  char *v7; // rbx\n\n  v7 = (char *)operator new(0x220u);\n  CCMenuItemSpriteExtra::CCMenuItemSpriteExtra((__int64)v7);\n  *(_QWORD *)v7 = off_100B7F7B0;\n  *((_QWORD *)v7 + 40) = off_100B7FC28;\n  *(_OWORD *)(v7 + 504) = 0;\n  *((_QWORD *)v7 + 65) = 0;\n  *(_QWORD *)(v7 + 532) = 0;\n  if ( (unsigned __int8)CCMenuItemSpriteExtra::init((__int64)v7, a1, a2, a3, a4, a5) )\n  {\n    cocos2d::CCObject::autorelease((__int64)v7);\n  }\n  else\n  {\n    (*(void (__fastcall **)(char *))(*(_QWORD *)v7 + 16LL))(v7);\n    return nullptr;\n  }\n  return v7;\n}", "assembly": "; \n; CreateMenuItem::create from 0x100603cd0 to 0x100603d81 (177 bytes)\n; \n; 3 xrefs:\n; > EditorUI::getCreateMenuItemButton @ 0x10000dad1\n; > EditorUI::getCreateBtn @ 0x100638264\n; > EditorUI::menuItemFromObjectString @ 0x100639050\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:34:31 +0000\n; \npush    rbp                                                            ; +0x0, 0x100603cd0\nmov     rbp, rsp                                                       ; +0x1, 0x100603cd1\npush    r15                                                            ; +0x4, 0x100603cd4\npush    r14                                                            ; +0x6, 0x100603cd6\npush    r13                                                            ; +0x8, 0x100603cd8\npush    r12                                                            ; +0xa, 0x100603cda\npush    rbx                                                            ; +0xc, 0x100603cdc\npush    rax                                                            ; +0xd, 0x100603cdd\nmov     [rbp+var_30], r8                                               ; +0xe, 0x100603cde\nmov     r15, rcx                                                       ; +0x12, 0x100603ce2\nmov     r12, rdx                                                       ; +0x15, 0x100603ce5\nmov     r13, rsi                                                       ; +0x18, 0x100603ce8\nmov     r14, rdi                                                       ; +0x1b, 0x100603ceb\nmov     edi, 220h; __sz                                                ; +0x1e, 0x100603cee\ncall    __Znwm; operator new(ulong)                                    ; +0x23, 0x100603cf3\nmov     rbx, rax                                                       ; +0x28, 0x100603cf8\nmov     rdi, rax                                                       ; +0x2b, 0x100603cfb\ncall    CCMenuItemSpriteExtra__CCMenuItemSpriteExtra                   ; +0x2e, 0x100603cfe\nlea     rax, _ZTV14CreateMenuItem; `vtable for'CreateMenuItem          ; +0x33, 0x100603d03\nlea     rcx, [rax+10h]                                                 ; +0x3a, 0x100603d0a\nmov     [rbx], rcx                                                     ; +0x3e, 0x100603d0e\nadd     rax, 488h                                                      ; +0x41, 0x100603d11\nmov     [rbx+140h], rax                                                ; +0x47, 0x100603d17\nxorps   xmm0, xmm0                                                     ; +0x4e, 0x100603d1e\nmovups  xmmword ptr [rbx+1F8h], xmm0                                   ; +0x51, 0x100603d21\nmov     qword ptr [rbx+208h], 0                                        ; +0x58, 0x100603d28\nmov     qword ptr [rbx+214h], 0                                        ; +0x63, 0x100603d33\nmov     rdi, rbx                                                       ; +0x6e, 0x100603d3e\nmov     rsi, r14                                                       ; +0x71, 0x100603d41\nmov     rdx, r13                                                       ; +0x74, 0x100603d44\nmov     rcx, r12                                                       ; +0x77, 0x100603d47\nmov     r8, r15                                                        ; +0x7a, 0x100603d4a\nmov     r9, [rbp+var_30]                                               ; +0x7d, 0x100603d4d\ncall    CCMenuItemSpriteExtra__init                                    ; +0x81, 0x100603d51\ntest    al, al                                                         ; +0x86, 0x100603d56\njz      short loc_100603D64                                            ; +0x88, 0x100603d58\nmov     rdi, rbx                                                       ; +0x8a, 0x100603d5a\ncall    cocos2d__CCObject__autorelease                                 ; +0x8d, 0x100603d5d\njmp     short loc_100603D6F                                            ; +0x92, 0x100603d62\nmov     rax, [rbx]                                                     ; +0x94, 0x100603d64\nmov     rdi, rbx                                                       ; +0x97, 0x100603d67\ncall    qword ptr [rax+10h]                                            ; +0x9a, 0x100603d6a\nxor     ebx, ebx                                                       ; +0x9d, 0x100603d6d\nmov     rax, rbx                                                       ; +0x9f, 0x100603d6f\nadd     rsp, 8                                                         ; +0xa2, 0x100603d72\npop     rbx                                                            ; +0xa6, 0x100603d76\npop     r12                                                            ; +0xa7, 0x100603d77\npop     r13                                                            ; +0xa9, 0x100603d79\npop     r14                                                            ; +0xab, 0x100603d7b\npop     r15                                                            ; +0xad, 0x100603d7d\npop     rbp                                                            ; +0xaf, 0x100603d7f\nretn                                                                   ; +0xb0, 0x100603d80", "xrefs": ["EditorUI::getCreateMenuItemButton @ 0x10000dad1", "EditorUI::getCreateBtn @ 0x100638264", "EditorUI::menuItemFromObjectString @ 0x100639050"], "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"}