; ; EditorUI::menuItemFromObjectString from 0x1401f1160 to 0x1401f1389 (553 bytes) ; ; 2 xrefs: ; > EditorUI::createCustomItems @ 0x1401f63c2 ; > @ 0x14091a9b4 ; ; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True! ; ; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA ; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings ; Generated at Fri, 27 Nov 2026 11:28:07 +0000 ; mov r11, rsp ; +0x0, 0x1401f1160 mov [r11+18h], rbx ; +0x3, 0x1401f1163 mov [r11+10h], rdx ; +0x7, 0x1401f1167 push rbp ; +0xb, 0x1401f116b push rsi ; +0xc, 0x1401f116c push rdi ; +0xd, 0x1401f116d push r14 ; +0xe, 0x1401f116e push r15 ; +0x10, 0x1401f1170 sub rsp, 0A0h ; +0x12, 0x1401f1172 movaps xmmword ptr [r11-38h], xmm6 ; +0x19, 0x1401f1179 mov rax, cs:__security_cookie ; +0x1e, 0x1401f117e xor rax, rsp ; +0x25, 0x1401f1185 mov [rsp+0C8h+var_40], rax ; +0x28, 0x1401f1188 mov r15d, r8d ; +0x30, 0x1401f1190 mov rbp, rdx ; +0x33, 0x1401f1193 mov r14, rcx ; +0x36, 0x1401f1196 mov [r11-48h], rdx ; +0x39, 0x1401f1199 lea rcx, [r11-68h] ; +0x3d, 0x1401f119d call sub_14003F4F0 ; +0x41, 0x1401f11a1 mov [rsp+0C8h+var_90], 0 ; +0x46, 0x1401f11a6 mov [rsp+0C8h+var_98], 0 ; +0x4f, 0x1401f11af mov [rsp+0C8h+var_A0], 0 ; +0x58, 0x1401f11b8 mov [rsp+0C8h+var_A8], 64h ; 'd' ; +0x61, 0x1401f11c1 xor r9d, r9d ; +0x69, 0x1401f11c9 mov r8b, 1 ; +0x6c, 0x1401f11cc mov rdx, rax ; +0x6f, 0x1401f11cf mov rcx, r14 ; +0x72, 0x1401f11d2 call EditorUI__spriteFromObjectString ; +0x75, 0x1401f11d5 mov rsi, rax ; +0x7a, 0x1401f11da mov rcx, [rax] ; +0x7d, 0x1401f11dd mov rdx, [rcx+140h] ; +0x80, 0x1401f11e0 mov rcx, rax ; +0x87, 0x1401f11e7 call rdx ; +0x8a, 0x1401f11ea mov rbx, rax ; +0x8c, 0x1401f11ec mov rcx, [rsi] ; +0x8f, 0x1401f11ef mov rdx, [rcx+140h] ; +0x92, 0x1401f11f2 mov rcx, rsi ; +0x99, 0x1401f11f9 call rdx ; +0x9c, 0x1401f11fc mov rdx, [rsi] ; +0x9e, 0x1401f11fe movss xmm0, dword ptr [rbx] ; +0xa1, 0x1401f1201 mov rcx, rsi ; +0xa5, 0x1401f1205 comiss xmm0, dword ptr [rax+4] ; +0xa8, 0x1401f1208 jbe short loc_1401F1216 ; +0xac, 0x1401f120c call qword ptr [rdx+140h] ; +0xae, 0x1401f120e jmp short loc_1401F1220 ; +0xb4, 0x1401f1214 call qword ptr [rdx+140h] ; +0xb6, 0x1401f1216 add rax, 4 ; +0xbc, 0x1401f121c movss xmm1, cs:dword_140835674 ; +0xc0, 0x1401f1220 divss xmm1, dword ptr [rax] ; +0xc8, 0x1401f1228 mov rax, [rsi] ; +0xcc, 0x1401f122c mov rcx, rsi ; +0xcf, 0x1401f122f call qword ptr [rax+0A0h] ; +0xd2, 0x1401f1232 mov ecx, 2C8h; Size ; +0xd8, 0x1401f1238 call ??2@YAPEAX_K@Z; operator new(unsigned __int64) ; +0xdd, 0x1401f123d mov [rsp+0C8h+var_78], rax ; +0xe2, 0x1401f1242 mov rcx, rax ; +0xe7, 0x1401f1247 call ButtonSprite__ButtonSprite ; +0xea, 0x1401f124a mov rdi, rax ; +0xef, 0x1401f124f xorps xmm6, xmm6 ; +0xf2, 0x1401f1252 test rax, rax ; +0xf5, 0x1401f1255 jz short loc_1401F12BA ; +0xf8, 0x1401f1258 movss [rsp+0C8h+var_80], xmm6 ; +0xfa, 0x1401f125a mov [rsp+0C8h+var_88], 0 ; +0x100, 0x1401f1260 lea rax, aGjButton04Png; "GJ_button_04.png" ; +0x105, 0x1401f1265 mov [rsp+0C8h+var_90], rax ; +0x10c, 0x1401f126c movss xmm0, cs:flt_140835080 ; +0x111, 0x1401f1271 movss dword ptr [rsp+0C8h+var_A0], xmm0 ; +0x119, 0x1401f1279 movss xmm1, cs:dword_140835640 ; +0x11f, 0x1401f127f movss [rsp+0C8h+var_A8], xmm1 ; +0x127, 0x1401f1287 mov r8d, 20h ; ' ' ; +0x12d, 0x1401f128d mov rdx, rsi ; +0x133, 0x1401f1293 mov rcx, rdi ; +0x136, 0x1401f1296 call ButtonSprite__init ; +0x139, 0x1401f1299 mov rcx, rdi ; +0x13e, 0x1401f129e test al, al ; +0x141, 0x1401f12a1 jz short loc_1401F12AD ; +0x143, 0x1401f12a3 call cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x145, 0x1401f12a5 jmp short loc_1401F12BA ; +0x14b, 0x1401f12ab mov rax, [rdi] ; +0x14d, 0x1401f12ad mov edx, 1 ; +0x150, 0x1401f12b0 call qword ptr [rax+8] ; +0x155, 0x1401f12b5 xor edi, edi ; +0x158, 0x1401f12b8 movss xmm2, cs:dword_140835C90 ; +0x15a, 0x1401f12ba xorps xmm1, xmm1 ; +0x162, 0x1401f12c2 lea rcx, [rsp+0C8h+var_70] ; +0x165, 0x1401f12c5 call cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x16a, 0x1401f12ca mov rbx, rax ; +0x170, 0x1401f12d0 mov rcx, [rsi] ; +0x173, 0x1401f12d3 mov rdx, [rcx+0C8h] ; +0x176, 0x1401f12d6 mov rcx, rsi ; +0x17d, 0x1401f12dd call rdx ; +0x180, 0x1401f12e0 mov r8, rbx ; +0x182, 0x1401f12e2 lea rdx, [rsp+0C8h+var_78] ; +0x185, 0x1401f12e5 mov rcx, rax ; +0x18a, 0x1401f12ea call cs:??HCCPoint@cocos2d@@QEBA?AV01@AEBV01@@Z; cocos2d::CCPoint::operator+(cocos2d::CCPoint const &) ; +0x18d, 0x1401f12ed mov rax, [rsi] ; +0x193, 0x1401f12f3 lea rdx, [rsp+0C8h+var_78] ; +0x196, 0x1401f12f6 mov rcx, rsi ; +0x19b, 0x1401f12fb call qword ptr [rax+0B8h] ; +0x19e, 0x1401f12fe lea r9, EditorUI__onCreateButton ; +0x1a4, 0x1401f1304 mov r8, r14 ; +0x1ab, 0x1401f130b mov rcx, rdi ; +0x1ae, 0x1401f130e call CreateMenuItem__create ; +0x1b1, 0x1401f1311 mov rbx, rax ; +0x1b6, 0x1401f1316 mov [rax+228h], r15d ; +0x1b9, 0x1401f1319 mov rdx, [rax] ; +0x1c0, 0x1401f1320 movss xmm1, cs:dword_14083502C ; +0x1c3, 0x1401f1323 mov rcx, rax ; +0x1cb, 0x1401f132b call qword ptr [rdx+0A0h] ; +0x1ce, 0x1401f132e mov dword ptr [rbx+194h], 3F666666h ; +0x1d4, 0x1401f1334 mov rdx, rbx ; +0x1de, 0x1401f133e mov rcx, [r14+580h] ; +0x1e1, 0x1401f1341 call cs:?addObject@CCArray@cocos2d@@QEAAXPEAVCCObject@2@@Z; cocos2d::CCArray::addObject(cocos2d::CCObject *) ; +0x1e8, 0x1401f1348 nop ; +0x1ee, 0x1401f134e mov rcx, rbp ; +0x1ef, 0x1401f134f call sub_14003D310 ; +0x1f2, 0x1401f1352 mov rax, rbx ; +0x1f7, 0x1401f1357 mov rcx, [rsp+0C8h+var_40] ; +0x1fa, 0x1401f135a xor rcx, rsp; StackCookie ; +0x202, 0x1401f1362 call __security_check_cookie ; +0x205, 0x1401f1365 mov rbx, [rsp+0C8h+arg_10] ; +0x20a, 0x1401f136a movaps xmm6, [rsp+0C8h+var_38] ; +0x212, 0x1401f1372 add rsp, 0A0h ; +0x21a, 0x1401f137a pop r15 ; +0x221, 0x1401f1381 pop r14 ; +0x223, 0x1401f1383 pop rdi ; +0x225, 0x1401f1385 pop rsi ; +0x226, 0x1401f1386 pop rbp ; +0x227, 0x1401f1387 retn ; +0x228, 0x1401f1388