// // cocos2d::extension::CCEditBoxImplWin::initWithSize from 0x1800117c0 to 0x180011955 (405 bytes) // // 4 xrefs: // > @ 0x180028150 // > @ 0x18002fdf8 // > @ 0x18004a2a8 // > @ 0x18004a2b4 // // 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 // char __fastcall cocos2d::extension::CCEditBoxImplWin::initWithSize( cocos2d::extension::CCEditBoxImplWin *this, const struct cocos2d::CCSize *a2) { struct cocos2d::CCLabelTTF *v4; // rax __int64 v5; // rbx __int64 v6; // rax __int64 v7; // rbx __int64 v8; // rax struct cocos2d::CCLabelTTF *v9; // rax __int64 v10; // rbx __int64 v11; // rax __int64 v12; // rbx __int64 v13; // rax char v15; // [rsp+40h] [rbp+8h] BYREF v4 = cocos2d::CCLabelTTF::create(byte_180023460, byte_180023460, *((float *)a2 + 1) - 12.0); *((_QWORD *)this + 3) = v4; v5 = *(_QWORD *)v4; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v15, 0.0, 0.5); (*(void (__fastcall **)(_QWORD, __int64))(v5 + 272))(*((_QWORD *)this + 3), v6); v7 = **((_QWORD **)this + 3); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v15, 5.0, *((float *)a2 + 1) * 0.5); (*(void (__fastcall **)(_QWORD, __int64))(v7 + 184))(*((_QWORD *)this + 3), v8); (**(void (__fastcall ***)(__int64, char *))(*((_QWORD *)this + 3) + 320LL))( *((_QWORD *)this + 3) + 320LL, (char *)this + 120); (*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 2) + 448LL))( *((_QWORD *)this + 2), *((_QWORD *)this + 3)); v9 = cocos2d::CCLabelTTF::create(byte_180023460, byte_180023460, *((float *)a2 + 1) - 12.0); *((_QWORD *)this + 4) = v9; v10 = *(_QWORD *)v9; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v15, 0.0, 0.5); (*(void (__fastcall **)(_QWORD, __int64))(v10 + 272))(*((_QWORD *)this + 4), v11); v12 = **((_QWORD **)this + 4); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v15, 5.0, *((float *)a2 + 1) * 0.5); (*(void (__fastcall **)(_QWORD, __int64))(v12 + 184))(*((_QWORD *)this + 4), v13); (*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 4) + 320LL))(*((_QWORD *)this + 4), 0); (**(void (__fastcall ***)(__int64, char *))(*((_QWORD *)this + 4) + 320LL))( *((_QWORD *)this + 4) + 320LL, (char *)this + 123); (*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 2) + 448LL))( *((_QWORD *)this + 2), *((_QWORD *)this + 4)); cocos2d::CCSize::operator=((char *)this + 132, a2); return 1; }