; ; GJDifficultySprite::updateDifficultyFrame from 0x1403ab0e0 to 0x1403ab1ec (268 bytes) ; ; 6 xrefs: ; > sub_14041B3F0 @ 0x14041b5df ; > LevelInfoLayer::updateLabelValues @ 0x140425895 ; > RateStarsLayer::selectRating @ 0x14055eedf ; > GJRateLevelLayer::selectRating @ 0x140560267 ; > RateStarsModLayer::updateDSprite @ 0x140560331 ; > @ 0x140923a2c ; ; 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:31:20 +0000 ; push rbx ; +0x0, 0x1403ab0e0 push rsi ; +0x2, 0x1403ab0e2 push rdi ; +0x3, 0x1403ab0e3 sub rsp, 50h ; +0x4, 0x1403ab0e4 mov rax, cs:__security_cookie ; +0x8, 0x1403ab0e8 xor rax, rsp ; +0xf, 0x1403ab0ef mov [rsp+68h+var_20], rax ; +0x12, 0x1403ab0f2 mov rdi, rcx ; +0x17, 0x1403ab0f7 lea rcx, [rsp+68h+Src]; Src ; +0x1a, 0x1403ab0fa call GJDifficultySprite__getDifficultyFrame ; +0x1f, 0x1403ab0ff mov rsi, rax ; +0x24, 0x1403ab104 cmp qword ptr [rax+18h], 0Fh ; +0x27, 0x1403ab107 jbe short loc_1403AB111 ; +0x2c, 0x1403ab10c mov rsi, [rax] ; +0x2e, 0x1403ab10e mov rbx, [rdi] ; +0x31, 0x1403ab111 call cs:?sharedSpriteFrameCache@CCSpriteFrameCache@cocos2d@@SAPEAV12@XZ; cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(void) ; +0x34, 0x1403ab114 mov rcx, rax ; +0x3a, 0x1403ab11a mov rdx, rsi ; +0x3d, 0x1403ab11d call cs:?spriteFrameByName@CCSpriteFrameCache@cocos2d@@QEAAPEAVCCSpriteFrame@2@PEBD@Z; cocos2d::CCSpriteFrameCache::spriteFrameByName(char const *) ; +0x40, 0x1403ab120 mov rdx, rax ; +0x46, 0x1403ab126 mov rcx, rdi ; +0x49, 0x1403ab129 call qword ptr [rbx+3F0h] ; +0x4c, 0x1403ab12c nop ; +0x52, 0x1403ab132 lea rcx, [rsp+68h+Src] ; +0x53, 0x1403ab133 call sub_14003D310 ; +0x58, 0x1403ab138 cmp qword ptr [rdi+0D0h], 0 ; +0x5d, 0x1403ab13d jz loc_1403AB1D7 ; +0x65, 0x1403ab145 mov rax, [rdi] ; +0x6b, 0x1403ab14b mov rcx, rdi ; +0x6e, 0x1403ab14e call qword ptr [rax+140h] ; +0x71, 0x1403ab151 mov rbx, rax ; +0x77, 0x1403ab157 mov rcx, [rdi] ; +0x7a, 0x1403ab15a mov rdx, [rcx+140h] ; +0x7d, 0x1403ab15d mov rcx, rdi ; +0x84, 0x1403ab164 call rdx ; +0x87, 0x1403ab167 movss xmm2, dword ptr [rax+4] ; +0x89, 0x1403ab169 mulss xmm2, cs:dword_140834F20 ; +0x8e, 0x1403ab16e movss xmm1, dword ptr [rbx] ; +0x96, 0x1403ab176 mulss xmm1, cs:dword_140834F20 ; +0x9a, 0x1403ab17a lea rcx, [rsp+68h+var_48] ; +0xa2, 0x1403ab182 call cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0xa7, 0x1403ab187 xor ebx, ebx ; +0xad, 0x1403ab18d mov rcx, [rdi+0D0h] ; +0xaf, 0x1403ab18f call cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0xb6, 0x1403ab196 test eax, eax ; +0xbc, 0x1403ab19c jz short loc_1403AB1D7 ; +0xbe, 0x1403ab19e mov edx, ebx ; +0xc0, 0x1403ab1a0 mov rcx, [rdi+0D0h] ; +0xc2, 0x1403ab1a2 call cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0xc9, 0x1403ab1a9 mov rcx, [rax] ; +0xcf, 0x1403ab1af mov r8, [rcx+0B8h] ; +0xd2, 0x1403ab1b2 lea rdx, [rsp+68h+var_48] ; +0xd9, 0x1403ab1b9 mov rcx, rax ; +0xde, 0x1403ab1be call r8 ; +0xe1, 0x1403ab1c1 inc ebx ; +0xe4, 0x1403ab1c4 mov rcx, [rdi+0D0h] ; +0xe6, 0x1403ab1c6 call cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0xed, 0x1403ab1cd cmp ebx, eax ; +0xf3, 0x1403ab1d3 jb short loc_1403AB1A0 ; +0xf5, 0x1403ab1d5 mov rcx, [rsp+68h+var_20] ; +0xf7, 0x1403ab1d7 xor rcx, rsp; StackCookie ; +0xfc, 0x1403ab1dc call __security_check_cookie ; +0xff, 0x1403ab1df add rsp, 50h ; +0x104, 0x1403ab1e4 pop rdi ; +0x108, 0x1403ab1e8 pop rsi ; +0x109, 0x1403ab1e9 pop rbx ; +0x10a, 0x1403ab1ea retn ; +0x10b, 0x1403ab1eb