; ; GameLevelManager::onReportLevelCompleted from 0x14016a520 to 0x14016a6b0 (400 bytes) ; ; 2 xrefs: ; > GameLevelManager::handleIt @ 0x1401435a5 ; > @ 0x1406cad40 ; ; 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_18], rbx ; +0x0, 0x14016a520 push rbp ; +0x5, 0x14016a525 push rsi ; +0x6, 0x14016a526 push rdi ; +0x7, 0x14016a527 push r14 ; +0x8, 0x14016a528 push r15 ; +0xa, 0x14016a52a sub rsp, 60h ; +0xc, 0x14016a52c mov rax, cs:__security_cookie ; +0x10, 0x14016a530 xor rax, rsp ; +0x17, 0x14016a537 mov [rsp+88h+var_38], rax ; +0x1a, 0x14016a53a mov rsi, r8 ; +0x1f, 0x14016a53f mov rdi, rdx ; +0x22, 0x14016a542 mov r15, rcx ; +0x25, 0x14016a545 mov [rsp+88h+var_68], rdx ; +0x28, 0x14016a548 mov [rsp+88h+var_60], r8 ; +0x2d, 0x14016a54d mov rcx, r8 ; +0x32, 0x14016a552 cmp qword ptr [r8+18h], 0Fh ; +0x35, 0x14016a555 jbe short loc_14016A55F ; +0x3a, 0x14016a55a mov rcx, [r8]; String ; +0x3c, 0x14016a55c call cs:atoi ; +0x3f, 0x14016a55f mov r14d, eax ; +0x45, 0x14016a565 xorps xmm0, xmm0 ; +0x48, 0x14016a568 movups [rsp+88h+Buf2], xmm0 ; +0x4b, 0x14016a56b mov edx, 2 ; +0x50, 0x14016a570 mov qword ptr [rsp+88h+var_48], rdx ; +0x55, 0x14016a575 mov qword ptr [rsp+88h+var_48+8], 0Fh ; +0x5a, 0x14016a57a mov eax, 312Dh ; +0x63, 0x14016a583 mov word ptr [rsp+88h+Buf2], ax ; +0x68, 0x14016a588 mov byte ptr [rsp+88h+Buf2+2], 0 ; +0x6d, 0x14016a58d mov rcx, rdi ; +0x72, 0x14016a592 cmp qword ptr [rdi+18h], 0Fh ; +0x75, 0x14016a595 jbe short loc_14016A59F ; +0x7a, 0x14016a59a mov rcx, [rdi]; Buf1 ; +0x7c, 0x14016a59c mov rbp, [rdi+10h] ; +0x7f, 0x14016a59f mov r8, rbp ; +0x83, 0x14016a5a3 cmp rbp, rdx ; +0x86, 0x14016a5a6 cmova r8, rdx; Size ; +0x89, 0x14016a5a9 lea rdx, [rsp+88h+Buf2]; Buf2 ; +0x8d, 0x14016a5ad call memcmp ; +0x92, 0x14016a5b2 mov rbx, 0FFFFFFFFFFFFFFFFh ; +0x97, 0x14016a5b7 test eax, eax ; +0x9e, 0x14016a5be jnz loc_14016A67E ; +0xa0, 0x14016a5c0 cmp rbp, 2 ; +0xa6, 0x14016a5c6 jnb short loc_14016A5D0 ; +0xaa, 0x14016a5ca mov eax, ebx ; +0xac, 0x14016a5cc jmp short loc_14016A5D7 ; +0xae, 0x14016a5ce jbe short loc_14016A5DF ; +0xb0, 0x14016a5d0 mov eax, 1 ; +0xb2, 0x14016a5d2 test eax, eax ; +0xb7, 0x14016a5d7 jnz loc_14016A67E ; +0xb9, 0x14016a5d9 mov edx, r14d ; +0xbf, 0x14016a5df lea rcx, aI_11; "%i" ; +0xc2, 0x14016a5e2 call cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0xc9, 0x14016a5e9 mov rcx, rax ; +0xcf, 0x14016a5ef call cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0xd2, 0x14016a5f2 xorps xmm0, xmm0 ; +0xd8, 0x14016a5f8 movups [rsp+88h+Buf2], xmm0 ; +0xdb, 0x14016a5fb xorps xmm1, xmm1 ; +0xe0, 0x14016a600 movdqu [rsp+88h+var_48], xmm1 ; +0xe3, 0x14016a603 nop dword ptr [rax+00000000h] ; +0xe9, 0x14016a609 inc rbx ; +0xf0, 0x14016a610 cmp byte ptr [rax+rbx], 0 ; +0xf3, 0x14016a613 jnz short loc_14016A610 ; +0xf7, 0x14016a617 mov r8, rbx ; +0xf9, 0x14016a619 mov rdx, rax ; +0xfc, 0x14016a61c lea rcx, [rsp+88h+Buf2] ; +0xff, 0x14016a61f call sub_14003A930 ; +0x104, 0x14016a624 nop ; +0x109, 0x14016a629 lea rdx, [rsp+88h+Buf2] ; +0x10a, 0x14016a62a mov rcx, [r15+1A0h] ; +0x10f, 0x14016a62f call cs:?removeObjectForKey@CCDictionary@cocos2d@@QEAAXAEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z; cocos2d::CCDictionary::removeObjectForKey(std::string const &) ; +0x116, 0x14016a636 nop ; +0x11c, 0x14016a63c mov rdx, qword ptr [rsp+88h+var_48+8] ; +0x11d, 0x14016a63d cmp rdx, 0Fh ; +0x122, 0x14016a642 jbe short loc_14016A67E ; +0x126, 0x14016a646 inc rdx ; +0x128, 0x14016a648 mov rcx, qword ptr [rsp+88h+Buf2]; Block ; +0x12b, 0x14016a64b mov rax, rcx ; +0x130, 0x14016a650 cmp rdx, 1000h ; +0x133, 0x14016a653 jb short loc_14016A678 ; +0x13a, 0x14016a65a add rdx, 27h ; ''' ; +0x13c, 0x14016a65c mov rcx, [rcx-8] ; +0x140, 0x14016a660 sub rax, rcx ; +0x144, 0x14016a664 add rax, 0FFFFFFFFFFFFFFF8h ; +0x147, 0x14016a667 cmp rax, 1Fh ; +0x14b, 0x14016a66b jbe short loc_14016A678 ; +0x14f, 0x14016a66f call cs:_invalid_parameter_noinfo_noreturn ; +0x151, 0x14016a671 align 8 ; +0x157, 0x14016a677 call j_j_free ; +0x158, 0x14016a678 nop ; +0x15d, 0x14016a67d mov rcx, rdi ; +0x15e, 0x14016a67e call sub_14003A830 ; +0x161, 0x14016a681 nop ; +0x166, 0x14016a686 mov rcx, rsi ; +0x167, 0x14016a687 call sub_14003A830 ; +0x16a, 0x14016a68a mov rcx, [rsp+88h+var_38] ; +0x16f, 0x14016a68f xor rcx, rsp; StackCookie ; +0x174, 0x14016a694 call __security_check_cookie ; +0x177, 0x14016a697 mov rbx, [rsp+88h+arg_18] ; +0x17c, 0x14016a69c add rsp, 60h ; +0x184, 0x14016a6a4 pop r15 ; +0x188, 0x14016a6a8 pop r14 ; +0x18a, 0x14016a6aa pop rdi ; +0x18c, 0x14016a6ac pop rsi ; +0x18d, 0x14016a6ad pop rbp ; +0x18e, 0x14016a6ae retn ; +0x18f, 0x14016a6af