; ; GameLevelManager::getCompletedWeeklyLevels from 0x1401484f0 to 0x1401486f6 (518 bytes) ; ; 2 xrefs: ; > GameLevelManager::updateUserScore @ 0x14015649e ; > @ 0x1406ca644 ; ; 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, 0x1401484f0 mov [rsp+arg_10], rbp ; +0x5, 0x1401484f5 mov [rsp+arg_18], rsi ; +0xa, 0x1401484fa push rdi ; +0xf, 0x1401484ff push r14 ; +0x10, 0x140148500 push r15 ; +0x12, 0x140148502 sub rsp, 60h ; +0x14, 0x140148504 mov rax, cs:__security_cookie ; +0x18, 0x140148508 xor rax, rsp ; +0x1f, 0x14014850f mov [rsp+78h+var_20], rax ; +0x22, 0x140148512 mov r14, rcx ; +0x27, 0x140148517 xor r15d, r15d ; +0x2a, 0x14014851a mov esi, r15d ; +0x2d, 0x14014851d mov rcx, [rcx+1B8h] ; +0x30, 0x140148520 call cs:?allKeys@CCDictionary@cocos2d@@QEAAPEAVCCArray@2@XZ; cocos2d::CCDictionary::allKeys(void) ; +0x37, 0x140148527 test rax, rax ; +0x3d, 0x14014852d jz loc_1401486C6 ; +0x40, 0x140148530 mov rdi, [rax+38h] ; +0x46, 0x140148536 mov eax, [rdi] ; +0x4a, 0x14014853a test eax, eax ; +0x4c, 0x14014853c jz loc_1401486C6 ; +0x4e, 0x14014853e mov rdi, [rdi+10h] ; +0x54, 0x140148544 lea rbp, [rax-1] ; +0x58, 0x140148548 lea rbp, [rdi+rbp*8] ; +0x5c, 0x14014854c cmp rdi, rbp ; +0x60, 0x140148550 ja loc_1401486C6 ; +0x63, 0x140148553 nop dword ptr [rax+00000000h] ; +0x69, 0x140148559 mov rbx, [rdi] ; +0x70, 0x140148560 test rbx, rbx ; +0x73, 0x140148563 jz loc_1401486C6 ; +0x76, 0x140148566 mov rcx, rbx ; +0x7c, 0x14014856c call cs:?intValue@CCString@cocos2d@@QEBAHXZ; cocos2d::CCString::intValue(void) ; +0x7f, 0x14014856f cmp eax, 186A0h ; +0x85, 0x140148575 jle loc_1401486B9 ; +0x8a, 0x14014857a cmp eax, 30D40h ; +0x90, 0x140148580 jg loc_1401486B9 ; +0x95, 0x140148585 mov rcx, rbx ; +0x9b, 0x14014858b call cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0x9e, 0x14014858e xorps xmm0, xmm0 ; +0xa4, 0x140148594 movups [rsp+78h+var_40], xmm0 ; +0xa7, 0x140148597 mov [rsp+78h+var_30], r15 ; +0xac, 0x14014859c mov [rsp+78h+var_28], r15 ; +0xb1, 0x1401485a1 mov r8, 0FFFFFFFFFFFFFFFFh ; +0xb6, 0x1401485a6 nop dword ptr [rax] ; +0xbd, 0x1401485ad inc r8 ; +0xc0, 0x1401485b0 cmp byte ptr [rax+r8], 0 ; +0xc3, 0x1401485b3 jnz short loc_1401485B0 ; +0xc8, 0x1401485b8 mov rdx, rax ; +0xca, 0x1401485ba lea rcx, [rsp+78h+var_40] ; +0xcd, 0x1401485bd call sub_14003A930 ; +0xd2, 0x1401485c2 nop ; +0xd7, 0x1401485c7 lea rdx, [rsp+78h+var_40] ; +0xd8, 0x1401485c8 mov rcx, [r14+1B8h] ; +0xdd, 0x1401485cd call cs:?objectForKey@CCDictionary@cocos2d@@QEAAPEAVCCObject@2@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z; cocos2d::CCDictionary::objectForKey(std::string const &) ; +0xe4, 0x1401485d4 mov rcx, rax ; +0xea, 0x1401485da mov [rsp+78h+var_58], r15d ; +0xed, 0x1401485dd lea r9, ??_R0?AVGJGameLevel@@@8; GJGameLevel `RTTI Type Descriptor' ; +0xf2, 0x1401485e2 lea r8, ??_R0?AVCCObject@cocos2d@@@8; cocos2d::CCObject `RTTI Type Descriptor' ; +0xf9, 0x1401485e9 xor edx, edx ; +0x100, 0x1401485f0 call __RTDynamicCast ; +0x102, 0x1401485f2 mov rbx, rax ; +0x107, 0x1401485f7 mov rdx, [rsp+78h+var_28] ; +0x10a, 0x1401485fa cmp rdx, 0Fh ; +0x10f, 0x1401485ff jbe short loc_140148637 ; +0x113, 0x140148603 inc rdx ; +0x115, 0x140148605 mov rcx, qword ptr [rsp+78h+var_40] ; +0x118, 0x140148608 mov rax, rcx ; +0x11d, 0x14014860d cmp rdx, 1000h ; +0x120, 0x140148610 jb short loc_140148632 ; +0x127, 0x140148617 add rdx, 27h ; ''' ; +0x129, 0x140148619 mov rcx, [rcx-8]; Block ; +0x12d, 0x14014861d sub rax, rcx ; +0x131, 0x140148621 add rax, 0FFFFFFFFFFFFFFF8h ; +0x134, 0x140148624 cmp rax, 1Fh ; +0x138, 0x140148628 ja loc_1401486EF ; +0x13c, 0x14014862c call j_j_free ; +0x142, 0x140148632 mov [rsp+78h+var_30], r15 ; +0x147, 0x140148637 mov [rsp+78h+var_28], 0Fh ; +0x14c, 0x14014863c mov byte ptr [rsp+78h+var_40], 0 ; +0x155, 0x140148645 test rbx, rbx ; +0x15a, 0x14014864a jz short loc_1401486B9 ; +0x15d, 0x14014864d mov eax, [rbx+388h] ; +0x15f, 0x14014864f sub eax, [rbx+38Ch] ; +0x165, 0x140148655 cmp eax, 0Ah ; +0x16b, 0x14014865b jnz short loc_1401486B9 ; +0x16e, 0x14014865e mov eax, [rbx+330h] ; +0x170, 0x140148660 sub eax, [rbx+32Ch] ; +0x176, 0x140148666 cmp eax, 64h ; 'd' ; +0x17c, 0x14014866c jnz short loc_1401486B9 ; +0x17f, 0x14014866f mov rcx, cs:qword_1406C2EE8 ; +0x181, 0x140148671 test rcx, rcx ; +0x188, 0x140148678 jnz short loc_1401486AB ; +0x18b, 0x14014867b mov ecx, 3E0h; Size ; +0x18d, 0x14014867d call ??2@YAPEAX_K@Z; operator new(unsigned __int64) ; +0x192, 0x140148682 mov [rsp+78h+var_48], rax ; +0x197, 0x140148687 mov rcx, rax ; +0x19c, 0x14014868c call sub_1401D0AE0 ; +0x19f, 0x14014868f mov rcx, rax ; +0x1a4, 0x140148694 mov cs:qword_1406C2EE8, rax ; +0x1a7, 0x140148697 mov rax, [rax] ; +0x1ae, 0x14014869e call qword ptr [rax+48h] ; +0x1b1, 0x1401486a1 mov rcx, cs:qword_1406C2EE8 ; +0x1b4, 0x1401486a4 mov rdx, rbx ; +0x1bb, 0x1401486ab call GameStatsManager__hasCompletedLevel ; +0x1be, 0x1401486ae test al, al ; +0x1c3, 0x1401486b3 jz short loc_1401486B9 ; +0x1c5, 0x1401486b5 inc esi ; +0x1c7, 0x1401486b7 add rdi, 8 ; +0x1c9, 0x1401486b9 cmp rdi, rbp ; +0x1cd, 0x1401486bd jbe loc_140148560 ; +0x1d0, 0x1401486c0 mov eax, esi ; +0x1d6, 0x1401486c6 mov rcx, [rsp+78h+var_20] ; +0x1d8, 0x1401486c8 xor rcx, rsp; StackCookie ; +0x1dd, 0x1401486cd call __security_check_cookie ; +0x1e0, 0x1401486d0 lea r11, [rsp+78h+var_18] ; +0x1e5, 0x1401486d5 mov rbx, [r11+28h] ; +0x1ea, 0x1401486da mov rbp, [r11+30h] ; +0x1ee, 0x1401486de mov rsi, [r11+38h] ; +0x1f2, 0x1401486e2 mov rsp, r11 ; +0x1f6, 0x1401486e6 pop r15 ; +0x1f9, 0x1401486e9 pop r14 ; +0x1fb, 0x1401486eb pop rdi ; +0x1fd, 0x1401486ed retn ; +0x1fe, 0x1401486ee call cs:_invalid_parameter_noinfo_noreturn ; +0x1ff, 0x1401486ef db 0CCh ; +0x205, 0x1401486f5