; ; GJDifficultySprite::create from 0x1403aaf10 to 0x1403aaff3 (227 bytes) ; ; 8 xrefs: ; > SongUsagePopup::buildUsageGrid @ 0x1401031b7 ; > LevelCell::loadCustomLevelCell @ 0x14014af4b ; > GJRateLevelLayer::init @ 0x140419bb6 ; > LevelInfoLayer::setupLevelInfo @ 0x140420489 ; > StarInfoPopup::init @ 0x14055c3fe ; > RateStarsLayer::init @ 0x14055e9e8 ; > RateStarsModLayer::init @ 0x14055fa6e ; > @ 0x140923a14 ; ; 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 ; mov [rsp+arg_10], rbx ; +0x0, 0x1403aaf10 mov [rsp+arg_18], rsi ; +0x5, 0x1403aaf15 push rdi ; +0xa, 0x1403aaf1a sub rsp, 50h ; +0xb, 0x1403aaf1b mov rax, cs:__security_cookie ; +0xf, 0x1403aaf1f xor rax, rsp ; +0x16, 0x1403aaf26 mov [rsp+58h+var_10], rax ; +0x19, 0x1403aaf29 mov edi, edx ; +0x1e, 0x1403aaf2e mov ebx, ecx ; +0x20, 0x1403aaf30 mov ecx, 260h; Size ; +0x22, 0x1403aaf32 call ??2@YAPEAX_K@Z; operator new(unsigned __int64) ; +0x27, 0x1403aaf37 mov rsi, rax ; +0x2c, 0x1403aaf3c mov [rsp+58h+var_38], rax ; +0x2f, 0x1403aaf3f mov rcx, rax ; +0x34, 0x1403aaf44 call cs:??0CCSprite@cocos2d@@QEAA@XZ; cocos2d::CCSprite::CCSprite(void) ; +0x37, 0x1403aaf47 lea rax, ??_7GJDifficultySprite@@6B@; const GJDifficultySprite::`vftable' ; +0x3d, 0x1403aaf4d mov [rsi], rax ; +0x44, 0x1403aaf54 lea rax, ??_7GJDifficultySprite@@6B@_0; const GJDifficultySprite::`vftable' ; +0x47, 0x1403aaf57 mov [rsi+140h], rax ; +0x4e, 0x1403aaf5e lea rax, ??_7GJDifficultySprite@@6B@_1; const GJDifficultySprite::`vftable' ; +0x55, 0x1403aaf65 mov [rsi+158h], rax ; +0x5c, 0x1403aaf6c mov dword ptr [rsi+258h], 0 ; +0x63, 0x1403aaf73 mov r8d, edi ; +0x6d, 0x1403aaf7d mov edx, ebx ; +0x70, 0x1403aaf80 lea rcx, [rsp+58h+Src]; Src ; +0x72, 0x1403aaf82 call GJDifficultySprite__getDifficultyFrame ; +0x77, 0x1403aaf87 nop ; +0x7c, 0x1403aaf8c cmp qword ptr [rax+18h], 0Fh ; +0x7d, 0x1403aaf8d jbe short loc_1403AAF97 ; +0x82, 0x1403aaf92 mov rax, [rax] ; +0x84, 0x1403aaf94 mov rdx, rax ; +0x87, 0x1403aaf97 mov rcx, rsi ; +0x8a, 0x1403aaf9a call cs:__imp_?initWithSpriteFrameName@CCSprite@cocos2d@@UEAA_NPEBD@Z; cocos2d::CCSprite::initWithSpriteFrameName(char const *) ; +0x8d, 0x1403aaf9d movzx ebx, al ; +0x93, 0x1403aafa3 lea rcx, [rsp+58h+Src] ; +0x96, 0x1403aafa6 call sub_14003D310 ; +0x9b, 0x1403aafab test bl, bl ; +0xa0, 0x1403aafb0 jz short loc_1403AAFC2 ; +0xa2, 0x1403aafb2 mov rcx, rsi ; +0xa4, 0x1403aafb4 call cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0xa7, 0x1403aafb7 mov rax, rsi ; +0xad, 0x1403aafbd jmp short loc_1403AAFD6 ; +0xb0, 0x1403aafc0 mov rcx, [rsi] ; +0xb2, 0x1403aafc2 mov r8, [rcx+8] ; +0xb5, 0x1403aafc5 mov edx, 1 ; +0xb9, 0x1403aafc9 mov rcx, rsi ; +0xbe, 0x1403aafce call r8 ; +0xc1, 0x1403aafd1 xor eax, eax ; +0xc4, 0x1403aafd4 mov rcx, [rsp+58h+var_10] ; +0xc6, 0x1403aafd6 xor rcx, rsp; StackCookie ; +0xcb, 0x1403aafdb call __security_check_cookie ; +0xce, 0x1403aafde mov rbx, [rsp+58h+arg_10] ; +0xd3, 0x1403aafe3 mov rsi, [rsp+58h+arg_18] ; +0xd8, 0x1403aafe8 add rsp, 50h ; +0xdd, 0x1403aafed pop rdi ; +0xe1, 0x1403aaff1 retn ; +0xe2, 0x1403aaff2