; ; GameManager::completedAchievement from 0x14017d1f0 to 0x14017d3b0 (448 bytes) ; ; 4 xrefs: ; > GameManager::reportAchievementWithID @ 0x14017e075 ; > GameManager::dataLoaded @ 0x140187bf0 ; > @ 0x1406cb3b8 ; > @ 0x1406cb3c4 ; ; 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_10], rbx ; +0x0, 0x14017d1f0 mov [rsp+arg_18], rsi ; +0x5, 0x14017d1f5 push rdi ; +0xa, 0x14017d1fa sub rsp, 60h ; +0xb, 0x14017d1fb mov rax, cs:__security_cookie ; +0xf, 0x14017d1ff xor rax, rsp ; +0x16, 0x14017d206 mov [rsp+68h+var_10], rax ; +0x19, 0x14017d209 mov rdi, rdx ; +0x1e, 0x14017d20e mov rsi, rcx ; +0x21, 0x14017d211 mov [rsp+68h+var_38], rdx ; +0x24, 0x14017d214 xor ebx, ebx ; +0x29, 0x14017d219 mov [rsp+68h+var_48], ebx ; +0x2b, 0x14017d21b mov [rsp+68h+var_44], ebx ; +0x2f, 0x14017d21f lea rcx, [rsp+68h+var_30] ; +0x33, 0x14017d223 call sub_14003BDB0 ; +0x38, 0x14017d228 lea r9, [rsp+68h+var_44] ; +0x3d, 0x14017d22d lea r8, [rsp+68h+var_48] ; +0x42, 0x14017d232 mov rdx, rax ; +0x47, 0x14017d237 call GameManager__getUnlockForAchievement ; +0x4a, 0x14017d23a mov r9d, [rsp+68h+var_44] ; +0x4f, 0x14017d23f test r9d, r9d ; +0x54, 0x14017d244 jz loc_14017D34B ; +0x57, 0x14017d247 lea eax, [r9-2] ; +0x5d, 0x14017d24d cmp eax, 1 ; +0x61, 0x14017d251 jbe loc_14017D308 ; +0x64, 0x14017d254 dec r9d; switch 15 cases ; +0x6a, 0x14017d25a cmp r9d, 0Eh ; +0x6d, 0x14017d25d ja short def_14017D277; jumptable 000000014017D277 default case, cases 1-3 ; +0x71, 0x14017d261 movsxd rax, r9d ; +0x73, 0x14017d263 lea rdx, cs:140000000h ; +0x76, 0x14017d266 mov ecx, ds:(jpt_14017D277 - 140000000h)[rdx+rax*4] ; +0x7d, 0x14017d26d add rcx, rdx ; +0x84, 0x14017d274 jmp rcx; switch jump ; +0x87, 0x14017d277 mov ebx, 1; jumptable 000000014017D277 case 4 ; +0x89, 0x14017d279 jmp short def_14017D277; jumptable 000000014017D277 default case, cases 1-3 ; +0x8e, 0x14017d27e mov ebx, 2; jumptable 000000014017D277 case 5 ; +0x90, 0x14017d280 jmp short def_14017D277; jumptable 000000014017D277 default case, cases 1-3 ; +0x95, 0x14017d285 mov ebx, 3; jumptable 000000014017D277 case 6 ; +0x97, 0x14017d287 jmp short def_14017D277; jumptable 000000014017D277 default case, cases 1-3 ; +0x9c, 0x14017d28c mov ebx, 4; jumptable 000000014017D277 case 7 ; +0x9e, 0x14017d28e jmp short def_14017D277; jumptable 000000014017D277 default case, cases 1-3 ; +0xa3, 0x14017d293 mov ebx, 5; jumptable 000000014017D277 case 8 ; +0xa5, 0x14017d295 jmp short def_14017D277; jumptable 000000014017D277 default case, cases 1-3 ; +0xaa, 0x14017d29a mov ebx, 6; jumptable 000000014017D277 case 9 ; +0xac, 0x14017d29c jmp short def_14017D277; jumptable 000000014017D277 default case, cases 1-3 ; +0xb1, 0x14017d2a1 mov ebx, 7; jumptable 000000014017D277 case 13 ; +0xb3, 0x14017d2a3 jmp short def_14017D277; jumptable 000000014017D277 default case, cases 1-3 ; +0xb8, 0x14017d2a8 mov ebx, 63h ; 'c'; jumptable 000000014017D277 case 10 ; +0xba, 0x14017d2aa jmp short def_14017D277; jumptable 000000014017D277 default case, cases 1-3 ; +0xbf, 0x14017d2af mov ebx, 62h ; 'b'; jumptable 000000014017D277 case 11 ; +0xc1, 0x14017d2b1 jmp short def_14017D277; jumptable 000000014017D277 default case, cases 1-3 ; +0xc6, 0x14017d2b6 mov ebx, 64h ; 'd'; jumptable 000000014017D277 case 12 ; +0xc8, 0x14017d2b8 jmp short def_14017D277; jumptable 000000014017D277 default case, cases 1-3 ; +0xcd, 0x14017d2bd mov ebx, 8; jumptable 000000014017D277 case 14 ; +0xcf, 0x14017d2bf jmp short def_14017D277; jumptable 000000014017D277 default case, cases 1-3 ; +0xd4, 0x14017d2c4 mov ebx, 65h ; 'e'; jumptable 000000014017D277 case 15 ; +0xd6, 0x14017d2c6 mov r9d, ebx; jumptable 000000014017D277 default case, cases 1-3 ; +0xdb, 0x14017d2cb mov r8d, [rsp+68h+var_48] ; +0xde, 0x14017d2ce lea rdx, [rsp+68h+var_30] ; +0xe3, 0x14017d2d3 call GameManager__iconKey ; +0xe8, 0x14017d2d8 mov rbx, rax ; +0xed, 0x14017d2dd mov edx, 1 ; +0xf0, 0x14017d2e0 lea rcx, aI_11; "%i" ; +0xf5, 0x14017d2e5 call cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0xfc, 0x14017d2ec mov rdx, rax ; +0x102, 0x14017d2f2 mov r8, rbx ; +0x105, 0x14017d2f5 mov rcx, [rsi+198h] ; +0x108, 0x14017d2f8 call cs:?setObject@CCDictionary@cocos2d@@QEAAXPEAVCCObject@2@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z; cocos2d::CCDictionary::setObject(cocos2d::CCObject *,std::string const &) ; +0x10f, 0x14017d2ff nop ; +0x115, 0x14017d305 jmp short loc_14017D340 ; +0x116, 0x14017d306 mov r8d, [rsp+68h+var_48] ; +0x118, 0x14017d308 lea rdx, [rsp+68h+var_30] ; +0x11d, 0x14017d30d call GameManager__colorKey ; +0x122, 0x14017d312 mov rbx, rax ; +0x127, 0x14017d317 mov edx, 1 ; +0x12a, 0x14017d31a lea rcx, aI_11; "%i" ; +0x12f, 0x14017d31f call cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0x136, 0x14017d326 mov rdx, rax ; +0x13c, 0x14017d32c mov r8, rbx ; +0x13f, 0x14017d32f mov rcx, [rsi+198h] ; +0x142, 0x14017d332 call cs:?setObject@CCDictionary@cocos2d@@QEAAXPEAVCCObject@2@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z; cocos2d::CCDictionary::setObject(cocos2d::CCObject *,std::string const &) ; +0x149, 0x14017d339 nop ; +0x14f, 0x14017d33f lea rcx, [rsp+68h+var_30] ; +0x150, 0x14017d340 call sub_14003A830 ; +0x155, 0x14017d345 nop ; +0x15a, 0x14017d34a mov rcx, rdi ; +0x15b, 0x14017d34b call sub_14003A830 ; +0x15e, 0x14017d34e mov rcx, [rsp+68h+var_10] ; +0x163, 0x14017d353 xor rcx, rsp; StackCookie ; +0x168, 0x14017d358 call __security_check_cookie ; +0x16b, 0x14017d35b lea r11, [rsp+68h+var_8] ; +0x170, 0x14017d360 mov rbx, [r11+20h] ; +0x175, 0x14017d365 mov rsi, [r11+28h] ; +0x179, 0x14017d369 mov rsp, r11 ; +0x17d, 0x14017d36d pop rdi ; +0x180, 0x14017d370 retn ; +0x181, 0x14017d371 align 4 ; +0x182, 0x14017d372 dd offset def_14017D277 - 140000000h; jump table for switch statement ; +0x184, 0x14017d374