{"type": "func", "start": 5370409200, "end": 5370409316, "name": "CreateMenuItem::dCreateMenuItem", "pseudocode": "// \n// CreateMenuItem::dCreateMenuItem from 0x14019f0f0 to 0x14019f164 (116 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x14074fd40\n// > <???> @ 0x14091985c\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:48 +0000\n// \n\ncocos2d::CCMenuItemSprite *__fastcall CreateMenuItem::dCreateMenuItem(cocos2d::CCMenuItemSprite *Block, char a2)\n{\n  sub_14003D310((__int64)Block + 520);\n  *(_QWORD *)Block = &CCMenuItemSpriteExtra::`vftable';\n  *((_QWORD *)Block + 40) = &CCMenuItemSpriteExtra::`vftable';\n  sub_14003D310((__int64)Block + 448);\n  sub_14003D310((__int64)Block + 416);\n  cocos2d::CCMenuItemSprite::~CCMenuItemSprite(Block);\n  if ( (a2 & 1) != 0 )\n    j_j_free(Block);\n  return Block;\n}", "assembly": "; \n; CreateMenuItem::dCreateMenuItem from 0x14019f0f0 to 0x14019f164 (116 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x14074fd40\n; > <???> @ 0x14091985c\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:48 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x14019f0f0\npush    rdi                                                            ; +0x5, 0x14019f0f5\nsub     rsp, 20h                                                       ; +0x6, 0x14019f0f6\nmov     rdi, rcx                                                       ; +0xa, 0x14019f0fa\nmov     ebx, edx                                                       ; +0xd, 0x14019f0fd\nadd     rcx, 208h                                                      ; +0xf, 0x14019f0ff\ncall    sub_14003D310                                                  ; +0x16, 0x14019f106\nlea     rax, ??_7CCMenuItemSpriteExtra@@6B@; const CCMenuItemSpriteExtra::`vftable' ; +0x1b, 0x14019f10b\nmov     [rdi], rax                                                     ; +0x22, 0x14019f112\nlea     rcx, [rdi+1C0h]                                                ; +0x25, 0x14019f115\nlea     rax, ??_7CCMenuItemSpriteExtra@@6B@_0; const CCMenuItemSpriteExtra::`vftable' ; +0x2c, 0x14019f11c\nmov     [rdi+140h], rax                                                ; +0x33, 0x14019f123\ncall    sub_14003D310                                                  ; +0x3a, 0x14019f12a\nlea     rcx, [rdi+1A0h]                                                ; +0x3f, 0x14019f12f\ncall    sub_14003D310                                                  ; +0x46, 0x14019f136\nmov     rcx, rdi                                                       ; +0x4b, 0x14019f13b\ncall    cs:__imp_??1CCMenuItemSprite@cocos2d@@UEAA@XZ; cocos2d::CCMenuItemSprite::~CCMenuItemSprite(void) ; +0x4e, 0x14019f13e\ntest    bl, 1                                                          ; +0x54, 0x14019f144\njz      short loc_14019F156                                            ; +0x57, 0x14019f147\nmov     edx, 238h                                                      ; +0x59, 0x14019f149\nmov     rcx, rdi; Block                                                ; +0x5e, 0x14019f14e\ncall    j_j_free                                                       ; +0x61, 0x14019f151\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x66, 0x14019f156\nmov     rax, rdi                                                       ; +0x6b, 0x14019f15b\nadd     rsp, 20h                                                       ; +0x6e, 0x14019f15e\npop     rdi                                                            ; +0x72, 0x14019f162\nretn                                                                   ; +0x73, 0x14019f163", "xrefs": ["<???> @ 0x14074fd40", "<???> @ 0x14091985c"], "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"}