; ; cocos2d::CCMenuItemImage::create from 0x18005a870 to 0x18005a91a (170 bytes) ; ; 2 xrefs: ; > @ 0x1801438a8 ; > @ 0x1801b2cdc ; ; This function is hookable on this platform! ; ; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA ; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings ; push rbx ; +0x0, 0x18005a870 sub rsp, 20h ; +0x2, 0x18005a872 mov ecx, 190h; Size ; +0x6, 0x18005a876 call ??2@YAPEAX_K@Z; operator new(unsigned __int64) ; +0xb, 0x18005a87b mov rbx, rax ; +0x10, 0x18005a880 mov [rsp+28h+arg_0], rax ; +0x13, 0x18005a883 test rax, rax ; +0x18, 0x18005a888 jz short loc_18005A8AF ; +0x1b, 0x18005a88b mov rcx, rax; this ; +0x1d, 0x18005a88d call ??0CCMenuItemSprite@cocos2d@@QEAA@XZ; cocos2d::CCMenuItemSprite::CCMenuItemSprite(void) ; +0x20, 0x18005a890 lea rax, ??_7CCMenuItemImage@cocos2d@@6BCCNode@1@@; const cocos2d::CCMenuItemImage::`vftable'{for `cocos2d::CCNode'} ; +0x25, 0x18005a895 mov [rbx], rax ; +0x2c, 0x18005a89c lea rax, ??_7CCMenuItemImage@cocos2d@@6BCCRGBAProtocol@1@@; const cocos2d::CCMenuItemImage::`vftable'{for `cocos2d::CCRGBAProtocol'} ; +0x2f, 0x18005a89f mov [rbx+140h], rax ; +0x36, 0x18005a8a6 jmp short loc_18005A8B1 ; +0x3d, 0x18005a8ad xor ebx, ebx ; +0x3f, 0x18005a8af test rbx, rbx ; +0x41, 0x18005a8b1 jz short loc_18005A912 ; +0x44, 0x18005a8b4 mov rax, [rbx] ; +0x46, 0x18005a8b6 mov rdx, [rax+48h] ; +0x49, 0x18005a8b9 lea rax, ?init@CCMenuItemImage@cocos2d@@UEAA_NXZ; cocos2d::CCMenuItemImage::init(void) ; +0x4d, 0x18005a8bd mov rcx, rbx; this ; +0x54, 0x18005a8c4 cmp rdx, rax ; +0x57, 0x18005a8c7 jnz short loc_18005A8D3 ; +0x5a, 0x18005a8ca call ?init@CCMenuItemImage@cocos2d@@UEAA_NXZ; cocos2d::CCMenuItemImage::init(void) ; +0x5c, 0x18005a8cc jmp short loc_18005A8D5 ; +0x61, 0x18005a8d1 call rdx ; +0x63, 0x18005a8d3 mov rcx, rbx; this ; +0x65, 0x18005a8d5 test al, al ; +0x68, 0x18005a8d8 jz short loc_18005A8EA ; +0x6a, 0x18005a8da call ?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x6c, 0x18005a8dc mov rax, rbx ; +0x71, 0x18005a8e1 add rsp, 20h ; +0x74, 0x18005a8e4 pop rbx ; +0x78, 0x18005a8e8 retn ; +0x79, 0x18005a8e9 mov rax, [rbx] ; +0x7a, 0x18005a8ea mov r8, [rax+8] ; +0x7d, 0x18005a8ed lea rax, sub_180059F50 ; +0x81, 0x18005a8f1 mov edx, 1 ; +0x88, 0x18005a8f8 cmp r8, rax ; +0x8d, 0x18005a8fd jnz short loc_18005A90F ; +0x90, 0x18005a900 call sub_180059F50 ; +0x92, 0x18005a902 xor eax, eax ; +0x97, 0x18005a907 add rsp, 20h ; +0x99, 0x18005a909 pop rbx ; +0x9d, 0x18005a90d retn ; +0x9e, 0x18005a90e call r8 ; +0x9f, 0x18005a90f xor eax, eax ; +0xa2, 0x18005a912 add rsp, 20h ; +0xa4, 0x18005a914 pop rbx ; +0xa8, 0x18005a918 retn ; +0xa9, 0x18005a919