; ; GameOptionsLayer::onPracticeMusicSync from 0x1402a0270 to 0x1402a03e4 (372 bytes) ; ; 3 xrefs: ; > GameOptionsLayer::setupOptions @ 0x14029f542 ; > @ 0x1406d1f34 ; > @ 0x1406d1f40 ; ; 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 ; mov [rsp+arg_8], rbx ; +0x0, 0x1402a0270 push rdi ; +0x5, 0x1402a0275 sub rsp, 50h ; +0x6, 0x1402a0276 mov rax, cs:__security_cookie ; +0xa, 0x1402a027a xor rax, rsp ; +0x11, 0x1402a0281 mov [rsp+58h+var_10], rax ; +0x14, 0x1402a0284 mov rdi, rcx ; +0x19, 0x1402a0289 cmp cs:qword_1406C2EE8, 0 ; +0x1c, 0x1402a028c jnz short loc_1402A02BE ; +0x24, 0x1402a0294 mov ecx, 3E0h; Size ; +0x26, 0x1402a0296 call ??2@YAPEAX_K@Z; operator new(unsigned __int64) ; +0x2b, 0x1402a029b mov [rsp+58h+var_38], rax ; +0x30, 0x1402a02a0 mov rcx, rax ; +0x35, 0x1402a02a5 call sub_1401D0AE0 ; +0x38, 0x1402a02a8 nop ; +0x3d, 0x1402a02ad mov cs:qword_1406C2EE8, rax ; +0x3e, 0x1402a02ae mov rdx, [rax] ; +0x45, 0x1402a02b5 mov rcx, rax ; +0x48, 0x1402a02b8 call qword ptr [rdx+48h] ; +0x4b, 0x1402a02bb mov edx, 0Ch ; +0x4e, 0x1402a02be lea r8d, [rdx+5] ; +0x53, 0x1402a02c3 call GameStatsManager__isItemUnlocked ; +0x57, 0x1402a02c7 test al, al ; +0x5c, 0x1402a02cc jnz short loc_1402A02DD ; +0x5e, 0x1402a02ce mov rcx, rdi ; +0x60, 0x1402a02d0 call GameOptionsLayer__showPracticeMusicSyncUnlockInfo ; +0x63, 0x1402a02d3 jmp loc_1402A03CC ; +0x68, 0x1402a02d8 mov rbx, cs:qword_1406C2EE8 ; +0x6d, 0x1402a02dd test rbx, rbx ; +0x74, 0x1402a02e4 jnz short loc_1402A0318 ; +0x77, 0x1402a02e7 mov ecx, 3E0h; Size ; +0x79, 0x1402a02e9 call ??2@YAPEAX_K@Z; operator new(unsigned __int64) ; +0x7e, 0x1402a02ee mov [rsp+58h+var_38], rax ; +0x83, 0x1402a02f3 mov rcx, rax ; +0x88, 0x1402a02f8 call sub_1401D0AE0 ; +0x8b, 0x1402a02fb nop ; +0x90, 0x1402a0300 mov cs:qword_1406C2EE8, rax ; +0x91, 0x1402a0301 mov rdx, [rax] ; +0x98, 0x1402a0308 mov rcx, rax ; +0x9b, 0x1402a030b call qword ptr [rdx+48h] ; +0x9e, 0x1402a030e mov rbx, cs:qword_1406C2EE8 ; +0xa1, 0x1402a0311 mov edx, 0Ch ; +0xa8, 0x1402a0318 lea r8d, [rdx+5] ; +0xad, 0x1402a031d call GameStatsManager__isItemUnlocked ; +0xb1, 0x1402a0321 test al, al ; +0xb6, 0x1402a0326 jnz short loc_1402A032E ; +0xb8, 0x1402a0328 xor bl, bl ; +0xba, 0x1402a032a jmp short loc_1402A036B ; +0xbc, 0x1402a032c mov r9d, 0Ch ; +0xbe, 0x1402a032e lea r8d, [r9+5] ; +0xc4, 0x1402a0334 lea rdx, [rsp+58h+var_30] ; +0xc8, 0x1402a0338 call GameStatsManager__getItemKey ; +0xcd, 0x1402a033d nop ; +0xd2, 0x1402a0342 lea rdx, [rsp+58h+var_30] ; +0xd3, 0x1402a0343 mov rcx, [rbx+378h] ; +0xd8, 0x1402a0348 call cs:?valueForKey@CCDictionary@cocos2d@@QEAAPEBVCCString@2@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z; cocos2d::CCDictionary::valueForKey(std::string const &) ; +0xdf, 0x1402a034f mov rcx, rax ; +0xe5, 0x1402a0355 call cs:?boolValue@CCString@cocos2d@@QEBA_NXZ; cocos2d::CCString::boolValue(void) ; +0xe8, 0x1402a0358 movzx ebx, al ; +0xee, 0x1402a035e lea rcx, [rsp+58h+var_30] ; +0xf1, 0x1402a0361 call sub_14003A830 ; +0xf6, 0x1402a0366 xor bl, 1 ; +0xfb, 0x1402a036b mov rcx, cs:qword_1406C2EE8 ; +0xfe, 0x1402a036e test rcx, rcx ; +0x105, 0x1402a0375 jnz short loc_1402A03AA ; +0x108, 0x1402a0378 mov ecx, 3E0h; Size ; +0x10a, 0x1402a037a call ??2@YAPEAX_K@Z; operator new(unsigned __int64) ; +0x10f, 0x1402a037f mov [rsp+58h+var_38], rax ; +0x114, 0x1402a0384 mov rcx, rax ; +0x119, 0x1402a0389 call sub_1401D0AE0 ; +0x11c, 0x1402a038c nop ; +0x121, 0x1402a0391 mov cs:qword_1406C2EE8, rax ; +0x122, 0x1402a0392 mov r10, [rax] ; +0x129, 0x1402a0399 mov rcx, rax ; +0x12c, 0x1402a039c call qword ptr [r10+48h] ; +0x12f, 0x1402a039f mov rcx, cs:qword_1406C2EE8 ; +0x133, 0x1402a03a3 movzx r9d, bl ; +0x13a, 0x1402a03aa mov edx, 0Ch ; +0x13e, 0x1402a03ae lea r8d, [rdx+5] ; +0x143, 0x1402a03b3 call GameStatsManager__toggleEnableItem ; +0x147, 0x1402a03b7 mov rcx, [rdi+3F0h] ; +0x14c, 0x1402a03bc mov rax, [rcx] ; +0x153, 0x1402a03c3 call qword ptr [rax+570h] ; +0x156, 0x1402a03c6 mov rcx, [rsp+58h+var_10] ; +0x15c, 0x1402a03cc xor rcx, rsp; StackCookie ; +0x161, 0x1402a03d1 call __security_check_cookie ; +0x164, 0x1402a03d4 mov rbx, [rsp+58h+arg_8] ; +0x169, 0x1402a03d9 add rsp, 50h ; +0x16e, 0x1402a03de pop rdi ; +0x172, 0x1402a03e2 retn ; +0x173, 0x1402a03e3