; ; GameLevelManager::getCompletedEventLevels from 0x140148900 to 0x140148b04 (516 bytes) ; ; 3 xrefs: ; > GameLevelManager::updateUserScore @ 0x140156604 ; > GameLevelManager::updateUserScore @ 0x140156995 ; > @ 0x1406ca65c ; ; 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, 0x140148900 mov [rsp+arg_10], rbp ; +0x5, 0x140148905 mov [rsp+arg_18], rsi ; +0xa, 0x14014890a push rdi ; +0xf, 0x14014890f push r12 ; +0x10, 0x140148910 push r13 ; +0x12, 0x140148912 push r14 ; +0x14, 0x140148914 push r15 ; +0x16, 0x140148916 sub rsp, 60h ; +0x18, 0x140148918 mov rax, cs:__security_cookie ; +0x1c, 0x14014891c xor rax, rsp ; +0x23, 0x140148923 mov [rsp+88h+var_30], rax ; +0x26, 0x140148926 mov r14d, r8d ; +0x2b, 0x14014892b mov r15d, edx ; +0x2e, 0x14014892e mov r13, rcx ; +0x31, 0x140148931 xor r12d, r12d ; +0x34, 0x140148934 mov esi, r12d ; +0x37, 0x140148937 mov rcx, [rcx+1B8h] ; +0x3a, 0x14014893a call cs:?allKeys@CCDictionary@cocos2d@@QEAAPEAVCCArray@2@XZ; cocos2d::CCDictionary::allKeys(void) ; +0x41, 0x140148941 test rax, rax ; +0x47, 0x140148947 jz loc_140148AD0 ; +0x4a, 0x14014894a mov rdi, [rax+38h] ; +0x50, 0x140148950 mov eax, [rdi] ; +0x54, 0x140148954 test eax, eax ; +0x56, 0x140148956 jz loc_140148AD0 ; +0x58, 0x140148958 mov rdi, [rdi+10h] ; +0x5e, 0x14014895e lea rbp, [rax-1] ; +0x62, 0x140148962 lea rbp, [rdi+rbp*8] ; +0x66, 0x140148966 cmp rdi, rbp ; +0x6a, 0x14014896a ja loc_140148AD0 ; +0x6d, 0x14014896d mov rbx, [rdi] ; +0x73, 0x140148973 test rbx, rbx ; +0x76, 0x140148976 jz loc_140148AD0 ; +0x79, 0x140148979 mov rcx, rbx ; +0x7f, 0x14014897f call cs:?intValue@CCString@cocos2d@@QEBAHXZ; cocos2d::CCString::intValue(void) ; +0x82, 0x140148982 cmp eax, 30D40h ; +0x88, 0x140148988 jle loc_140148AC3 ; +0x8d, 0x14014898d mov rcx, rbx ; +0x93, 0x140148993 call cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0x96, 0x140148996 xorps xmm0, xmm0 ; +0x9c, 0x14014899c movups [rsp+88h+var_50], xmm0 ; +0x9f, 0x14014899f mov [rsp+88h+var_40], r12 ; +0xa4, 0x1401489a4 mov [rsp+88h+var_38], r12 ; +0xa9, 0x1401489a9 mov r8, 0FFFFFFFFFFFFFFFFh ; +0xae, 0x1401489ae inc r8 ; +0xb5, 0x1401489b5 cmp byte ptr [rax+r8], 0 ; +0xb8, 0x1401489b8 jnz short loc_1401489B5 ; +0xbd, 0x1401489bd mov rdx, rax ; +0xbf, 0x1401489bf lea rcx, [rsp+88h+var_50] ; +0xc2, 0x1401489c2 call sub_14003A930 ; +0xc7, 0x1401489c7 nop ; +0xcc, 0x1401489cc lea rdx, [rsp+88h+var_50] ; +0xcd, 0x1401489cd mov rcx, [r13+1B8h] ; +0xd2, 0x1401489d2 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 &) ; +0xd9, 0x1401489d9 mov rcx, rax ; +0xdf, 0x1401489df mov [rsp+88h+var_68], r12d ; +0xe2, 0x1401489e2 lea r9, ??_R0?AVGJGameLevel@@@8; GJGameLevel `RTTI Type Descriptor' ; +0xe7, 0x1401489e7 lea r8, ??_R0?AVCCObject@cocos2d@@@8; cocos2d::CCObject `RTTI Type Descriptor' ; +0xee, 0x1401489ee xor edx, edx ; +0xf5, 0x1401489f5 call __RTDynamicCast ; +0xf7, 0x1401489f7 mov rbx, rax ; +0xfc, 0x1401489fc mov rdx, [rsp+88h+var_38] ; +0xff, 0x1401489ff cmp rdx, 0Fh ; +0x104, 0x140148a04 jbe short loc_140148A3C ; +0x108, 0x140148a08 inc rdx ; +0x10a, 0x140148a0a mov rcx, qword ptr [rsp+88h+var_50] ; +0x10d, 0x140148a0d mov rax, rcx ; +0x112, 0x140148a12 cmp rdx, 1000h ; +0x115, 0x140148a15 jb short loc_140148A37 ; +0x11c, 0x140148a1c add rdx, 27h ; ''' ; +0x11e, 0x140148a1e mov rcx, [rcx-8]; Block ; +0x122, 0x140148a22 sub rax, rcx ; +0x126, 0x140148a26 add rax, 0FFFFFFFFFFFFFFF8h ; +0x129, 0x140148a29 cmp rax, 1Fh ; +0x12d, 0x140148a2d ja loc_140148AFD ; +0x131, 0x140148a31 call j_j_free ; +0x137, 0x140148a37 mov [rsp+88h+var_40], r12 ; +0x13c, 0x140148a3c mov [rsp+88h+var_38], 0Fh ; +0x141, 0x140148a41 mov byte ptr [rsp+88h+var_50], 0 ; +0x14a, 0x140148a4a test rbx, rbx ; +0x14f, 0x140148a4f jz short loc_140148AC3 ; +0x152, 0x140148a52 mov eax, [rbx+388h] ; +0x154, 0x140148a54 sub eax, [rbx+38Ch] ; +0x15a, 0x140148a5a cmp eax, r15d ; +0x160, 0x140148a60 jl short loc_140148AC3 ; +0x163, 0x140148a63 cmp eax, r14d ; +0x165, 0x140148a65 jg short loc_140148AC3 ; +0x168, 0x140148a68 mov eax, [rbx+330h] ; +0x16a, 0x140148a6a sub eax, [rbx+32Ch] ; +0x170, 0x140148a70 cmp eax, 64h ; 'd' ; +0x176, 0x140148a76 jnz short loc_140148AC3 ; +0x179, 0x140148a79 mov rcx, cs:qword_1406C2EE8 ; +0x17b, 0x140148a7b test rcx, rcx ; +0x182, 0x140148a82 jnz short loc_140148AB5 ; +0x185, 0x140148a85 mov ecx, 3E0h; Size ; +0x187, 0x140148a87 call ??2@YAPEAX_K@Z; operator new(unsigned __int64) ; +0x18c, 0x140148a8c mov [rsp+88h+var_58], rax ; +0x191, 0x140148a91 mov rcx, rax ; +0x196, 0x140148a96 call sub_1401D0AE0 ; +0x199, 0x140148a99 mov rcx, rax ; +0x19e, 0x140148a9e mov cs:qword_1406C2EE8, rax ; +0x1a1, 0x140148aa1 mov rax, [rax] ; +0x1a8, 0x140148aa8 call qword ptr [rax+48h] ; +0x1ab, 0x140148aab mov rcx, cs:qword_1406C2EE8 ; +0x1ae, 0x140148aae mov rdx, rbx ; +0x1b5, 0x140148ab5 call GameStatsManager__hasCompletedLevel ; +0x1b8, 0x140148ab8 test al, al ; +0x1bd, 0x140148abd jz short loc_140148AC3 ; +0x1bf, 0x140148abf inc esi ; +0x1c1, 0x140148ac1 add rdi, 8 ; +0x1c3, 0x140148ac3 cmp rdi, rbp ; +0x1c7, 0x140148ac7 jbe loc_140148973 ; +0x1ca, 0x140148aca mov eax, esi ; +0x1d0, 0x140148ad0 mov rcx, [rsp+88h+var_30] ; +0x1d2, 0x140148ad2 xor rcx, rsp; StackCookie ; +0x1d7, 0x140148ad7 call __security_check_cookie ; +0x1da, 0x140148ada lea r11, [rsp+88h+var_28] ; +0x1df, 0x140148adf mov rbx, [r11+38h] ; +0x1e4, 0x140148ae4 mov rbp, [r11+40h] ; +0x1e8, 0x140148ae8 mov rsi, [r11+48h] ; +0x1ec, 0x140148aec mov rsp, r11 ; +0x1f0, 0x140148af0 pop r15 ; +0x1f3, 0x140148af3 pop r14 ; +0x1f5, 0x140148af5 pop r13 ; +0x1f7, 0x140148af7 pop r12 ; +0x1f9, 0x140148af9 pop rdi ; +0x1fb, 0x140148afb retn ; +0x1fc, 0x140148afc call cs:_invalid_parameter_noinfo_noreturn ; +0x1fd, 0x140148afd db 0CCh ; +0x203, 0x140148b03