; ; GameLevelManager::onGetLevelSaveDataCompleted from 0x14014f0a0 to 0x14014f4e6 (1094 bytes) ; ; 2 xrefs: ; > GameLevelManager::handleIt @ 0x140143a98 ; > @ 0x1406ca800 ; ; 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 rax, rsp ; +0x0, 0x14014f0a0 mov [rax+20h], rbx ; +0x3, 0x14014f0a3 push rbp ; +0x7, 0x14014f0a7 push rsi ; +0x8, 0x14014f0a8 push rdi ; +0x9, 0x14014f0a9 push r12 ; +0xa, 0x14014f0aa push r13 ; +0xc, 0x14014f0ac push r14 ; +0xe, 0x14014f0ae push r15 ; +0x10, 0x14014f0b0 sub rsp, 0D0h ; +0x12, 0x14014f0b2 movaps xmmword ptr [rax-48h], xmm6 ; +0x19, 0x14014f0b9 movaps xmmword ptr [rax-58h], xmm7 ; +0x1d, 0x14014f0bd mov rax, cs:__security_cookie ; +0x21, 0x14014f0c1 xor rax, rsp ; +0x28, 0x14014f0c8 mov [rsp+108h+var_68], rax ; +0x2b, 0x14014f0cb mov r12, r8 ; +0x33, 0x14014f0d3 mov r14, rdx ; +0x36, 0x14014f0d6 mov r13, rcx ; +0x39, 0x14014f0d9 mov [rsp+108h+var_D8], rdx ; +0x3c, 0x14014f0dc mov [rsp+108h+var_D0], r8 ; +0x41, 0x14014f0e1 mov rdx, r8 ; +0x46, 0x14014f0e6 cmp qword ptr [r8+18h], 0Fh ; +0x49, 0x14014f0e9 jbe short loc_14014F0F3 ; +0x4e, 0x14014f0ee mov rdx, [r8] ; +0x50, 0x14014f0f0 call GameLevelManager__removeDLFromActive ; +0x53, 0x14014f0f3 xorps xmm0, xmm0 ; +0x58, 0x14014f0f8 movups [rsp+108h+Buf2], xmm0 ; +0x5b, 0x14014f0fb mov r9d, 2 ; +0x60, 0x14014f100 mov [rsp+108h+var_B8], r9 ; +0x66, 0x14014f106 mov ecx, 0Fh ; +0x6b, 0x14014f10b mov [rsp+108h+var_B0], rcx ; +0x70, 0x14014f110 movzx eax, cs:word_1405334A0 ; +0x75, 0x14014f115 mov word ptr [rsp+108h+Buf2], ax ; +0x7c, 0x14014f11c mov byte ptr [rsp+108h+Buf2+2], 0 ; +0x81, 0x14014f121 lea rdx, [rsp+108h+Buf2]; Buf2 ; +0x86, 0x14014f126 mov rcx, r14 ; +0x8b, 0x14014f12b cmp qword ptr [r14+18h], 0Fh ; +0x8e, 0x14014f12e jbe short loc_14014F138 ; +0x93, 0x14014f133 mov rcx, [r14]; Buf1 ; +0x95, 0x14014f135 mov rbp, [r14+10h] ; +0x98, 0x14014f138 mov r8, rbp ; +0x9c, 0x14014f13c cmp r9, rbp ; +0x9f, 0x14014f13f cmovb r8, r9; Size ; +0xa2, 0x14014f142 call memcmp ; +0xa6, 0x14014f146 mov edi, eax ; +0xab, 0x14014f14b mov rbx, 0FFFFFFFFFFFFFFFFh ; +0xad, 0x14014f14d test eax, eax ; +0xb4, 0x14014f154 jnz short loc_14014F16C ; +0xb6, 0x14014f156 cmp rbp, 2 ; +0xb8, 0x14014f158 jnb short loc_14014F162 ; +0xbc, 0x14014f15c mov edi, ebx ; +0xbe, 0x14014f15e jmp short loc_14014F16C ; +0xc0, 0x14014f160 xor edi, edi ; +0xc2, 0x14014f162 cmp rbp, 2 ; +0xc4, 0x14014f164 setnbe dil ; +0xc8, 0x14014f168 test edi, edi ; +0xcc, 0x14014f16c jz loc_14014F49A ; +0xce, 0x14014f16e mov rax, r14 ; +0xd4, 0x14014f174 mov r9, [r14+18h] ; +0xd7, 0x14014f177 cmp r9, 0Fh ; +0xdb, 0x14014f17b jbe short loc_14014F184 ; +0xdf, 0x14014f17f mov rax, [r14] ; +0xe1, 0x14014f181 inc rbx ; +0xe4, 0x14014f184 cmp byte ptr [rax+rbx], 0 ; +0xe7, 0x14014f187 jnz short loc_14014F184 ; +0xeb, 0x14014f18b cmp rbx, 28h ; '(' ; +0xed, 0x14014f18d jbe loc_14014F49A ; +0xf1, 0x14014f191 lea rdx, [rbp-28h] ; +0xf7, 0x14014f197 xorps xmm0, xmm0 ; +0xfb, 0x14014f19b movups [rsp+108h+var_A8], xmm0 ; +0xfe, 0x14014f19e xor eax, eax ; +0x103, 0x14014f1a3 mov [rsp+108h+var_98], rax ; +0x105, 0x14014f1a5 mov [rsp+108h+var_90], rax ; +0x10a, 0x14014f1aa cmp rbp, 14h ; +0x10f, 0x14014f1af jb loc_14014F4E0 ; +0x113, 0x14014f1b3 lea rax, [rbp-14h] ; +0x119, 0x14014f1b9 mov r8, 0FFFFFFFFFFFFFFD8h ; +0x11d, 0x14014f1bd mov r10, 0FFFFFFFFFFFFFFECh ; +0x124, 0x14014f1c4 cmp rax, rdx ; +0x12b, 0x14014f1cb cmovb r8, r10 ; +0x12e, 0x14014f1ce add r8, rbp ; +0x132, 0x14014f1d2 mov rdx, r14 ; +0x135, 0x14014f1d5 cmp r9, 0Fh ; +0x138, 0x14014f1d8 jbe short loc_14014F1E1 ; +0x13c, 0x14014f1dc mov rdx, [r14] ; +0x13e, 0x14014f1de add rdx, 14h ; +0x141, 0x14014f1e1 lea rcx, [rsp+108h+var_A8] ; +0x145, 0x14014f1e5 call sub_14003A930 ; +0x14a, 0x14014f1ea nop ; +0x14f, 0x14014f1ef mov r9d, 0Bh ; +0x150, 0x14014f1f0 xor r8d, r8d ; +0x156, 0x14014f1f6 lea rdx, [rsp+108h+var_A8] ; +0x159, 0x14014f1f9 lea rcx, [rsp+108h+var_88] ; +0x15e, 0x14014f1fe call cs:?decompressString@ZipUtils@cocos2d@@SA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@AEBV34@_NH@Z; cocos2d::ZipUtils::decompressString(std::string const &,bool,int) ; +0x166, 0x14014f206 nop ; +0x16c, 0x14014f20c lea rdx, asc_140533704; "," ; +0x16d, 0x14014f20d lea rcx, [rsp+108h+var_88] ; +0x174, 0x14014f214 call sub_140140F70 ; +0x17c, 0x14014f21c mov r15, rax ; +0x181, 0x14014f221 mov rcx, rax ; +0x184, 0x14014f224 call cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x187, 0x14014f227 cmp eax, 1 ; +0x18d, 0x14014f22d jbe loc_14014F481 ; +0x190, 0x14014f230 mov esi, 1 ; +0x196, 0x14014f236 movss xmm6, cs:dword_140623644 ; +0x19b, 0x14014f23b movss xmm7, cs:dword_14062350C ; +0x1a3, 0x14014f243 nop dword ptr [rax+rax+00h] ; +0x1ab, 0x14014f24b lea edx, [rsi-1] ; +0x1b0, 0x14014f250 mov rcx, r15 ; +0x1b3, 0x14014f253 call cs:?stringAtIndex@CCArray@cocos2d@@QEAAPEAVCCString@2@I@Z; cocos2d::CCArray::stringAtIndex(uint) ; +0x1b6, 0x14014f256 mov rcx, rax ; +0x1bc, 0x14014f25c call cs:?intValue@CCString@cocos2d@@QEBAHXZ; cocos2d::CCString::intValue(void) ; +0x1bf, 0x14014f25f mov ebx, eax ; +0x1c5, 0x14014f265 mov edx, esi ; +0x1c7, 0x14014f267 mov rcx, r15 ; +0x1c9, 0x14014f269 call cs:?stringAtIndex@CCArray@cocos2d@@QEAAPEAVCCString@2@I@Z; cocos2d::CCArray::stringAtIndex(uint) ; +0x1cc, 0x14014f26c mov rcx, rax ; +0x1d2, 0x14014f272 call cs:?intValue@CCString@cocos2d@@QEBAHXZ; cocos2d::CCString::intValue(void) ; +0x1d5, 0x14014f275 mov ebp, eax ; +0x1db, 0x14014f27b lea ecx, [rax-1] ; +0x1dd, 0x14014f27d cmp ecx, 9 ; +0x1e0, 0x14014f280 ja loc_14014F46D ; +0x1e3, 0x14014f283 mov edx, ebx ; +0x1e9, 0x14014f289 mov rcx, r13 ; +0x1eb, 0x14014f28b call GameLevelManager__getSavedLevel ; +0x1ee, 0x14014f28e mov rdi, rax ; +0x1f3, 0x14014f293 test rax, rax ; +0x1f6, 0x14014f296 jz loc_14014F46D ; +0x1f9, 0x14014f299 mov [rax+390h], ebp ; +0x1ff, 0x14014f29f call cs:rand ; +0x205, 0x14014f2a5 movd xmm0, eax ; +0x20b, 0x14014f2ab cvtdq2ps xmm0, xmm0 ; +0x20f, 0x14014f2af divss xmm0, xmm6 ; +0x212, 0x14014f2b2 mulss xmm0, xmm7 ; +0x216, 0x14014f2b6 cvttss2si ecx, xmm0 ; +0x21a, 0x14014f2ba mov [rdi+38Ch], ecx ; +0x21e, 0x14014f2be lea eax, [rcx+rbp] ; +0x224, 0x14014f2c4 mov [rdi+388h], eax ; +0x227, 0x14014f2c7 xor ebx, ebx ; +0x22d, 0x14014f2cd cmp ebp, 0Ah ; +0x22f, 0x14014f2cf setz bl ; +0x232, 0x14014f2d2 mov [rdi+380h], ebx ; +0x235, 0x14014f2d5 call cs:rand ; +0x23b, 0x14014f2db movd xmm0, eax ; +0x241, 0x14014f2e1 cvtdq2ps xmm0, xmm0 ; +0x245, 0x14014f2e5 divss xmm0, xmm6 ; +0x248, 0x14014f2e8 mulss xmm0, xmm7 ; +0x24c, 0x14014f2ec cvttss2si eax, xmm0 ; +0x250, 0x14014f2f0 mov [rdi+37Ch], eax ; +0x254, 0x14014f2f4 add eax, ebx ; +0x25a, 0x14014f2fa mov [rdi+378h], eax ; +0x25c, 0x14014f2fc mov rcx, cs:qword_1406C2EE8 ; +0x262, 0x14014f302 test rcx, rcx ; +0x269, 0x14014f309 jnz short loc_14014F33D ; +0x26c, 0x14014f30c mov ecx, 3E0h; Size ; +0x26e, 0x14014f30e call ??2@YAPEAX_K@Z; operator new(unsigned __int64) ; +0x273, 0x14014f313 mov [rsp+108h+var_E8], rax ; +0x278, 0x14014f318 mov rcx, rax ; +0x27d, 0x14014f31d call sub_1401D0AE0 ; +0x280, 0x14014f320 nop ; +0x285, 0x14014f325 mov cs:qword_1406C2EE8, rax ; +0x286, 0x14014f326 mov rdx, [rax] ; +0x28d, 0x14014f32d mov rcx, rax ; +0x290, 0x14014f330 call qword ptr [rdx+48h] ; +0x293, 0x14014f333 mov rcx, cs:qword_1406C2EE8 ; +0x296, 0x14014f336 mov rdx, rdi ; +0x29d, 0x14014f33d call GameStatsManager__hasCompletedLevel ; +0x2a0, 0x14014f340 test al, al ; +0x2a5, 0x14014f345 jz loc_14014F465 ; +0x2a7, 0x14014f347 mov eax, [rdi+388h] ; +0x2ad, 0x14014f34d sub eax, [rdi+38Ch] ; +0x2b3, 0x14014f353 cmp eax, 8 ; +0x2b9, 0x14014f359 jl loc_14014F465 ; +0x2bc, 0x14014f35c mov eax, [rdi+2FCh] ; +0x2c2, 0x14014f362 sub eax, [rdi+300h] ; +0x2c8, 0x14014f368 cmp eax, 32h ; '2' ; +0x2ce, 0x14014f36e jge loc_14014F465 ; +0x2d1, 0x14014f371 mov eax, [rdi+308h] ; +0x2d7, 0x14014f377 sub eax, [rdi+30Ch] ; +0x2dd, 0x14014f37d cmp eax, 32h ; '2' ; +0x2e3, 0x14014f383 jge loc_14014F465 ; +0x2e6, 0x14014f386 mov rcx, cs:qword_1406C2EE8 ; +0x2ec, 0x14014f38c test rcx, rcx ; +0x2f3, 0x14014f393 jnz short loc_14014F3C7 ; +0x2f6, 0x14014f396 mov ecx, 3E0h; Size ; +0x2f8, 0x14014f398 call ??2@YAPEAX_K@Z; operator new(unsigned __int64) ; +0x2fd, 0x14014f39d mov [rsp+108h+var_E0], rax ; +0x302, 0x14014f3a2 mov rcx, rax ; +0x307, 0x14014f3a7 call sub_1401D0AE0 ; +0x30a, 0x14014f3aa nop ; +0x30f, 0x14014f3af mov cs:qword_1406C2EE8, rax ; +0x310, 0x14014f3b0 mov rdx, [rax] ; +0x317, 0x14014f3b7 mov rcx, rax ; +0x31a, 0x14014f3ba call qword ptr [rdx+48h] ; +0x31d, 0x14014f3bd mov rcx, cs:qword_1406C2EE8 ; +0x320, 0x14014f3c0 mov rdx, rdi ; +0x327, 0x14014f3c7 call GameStatsManager__uncompleteLevel ; +0x32a, 0x14014f3ca xor ebx, ebx ; +0x32f, 0x14014f3cf mov [rdi+328h], ebx ; +0x331, 0x14014f3d1 call cs:rand ; +0x337, 0x14014f3d7 movd xmm0, eax ; +0x33d, 0x14014f3dd cvtdq2ps xmm0, xmm0 ; +0x341, 0x14014f3e1 divss xmm0, xmm6 ; +0x344, 0x14014f3e4 mulss xmm0, xmm7 ; +0x348, 0x14014f3e8 cvttss2si eax, xmm0 ; +0x34c, 0x14014f3ec mov [rdi+32Ch], eax ; +0x350, 0x14014f3f0 mov [rdi+330h], eax ; +0x356, 0x14014f3f6 mov [rdi+33Ch], ebx ; +0x35c, 0x14014f3fc call cs:rand ; +0x362, 0x14014f402 movd xmm0, eax ; +0x368, 0x14014f408 cvtdq2ps xmm0, xmm0 ; +0x36c, 0x14014f40c divss xmm0, xmm6 ; +0x36f, 0x14014f40f mulss xmm0, xmm7 ; +0x373, 0x14014f413 cvttss2si eax, xmm0 ; +0x377, 0x14014f417 mov [rdi+338h], eax ; +0x37b, 0x14014f41b mov [rdi+334h], eax ; +0x381, 0x14014f421 mov [rdi+348h], ebx ; +0x387, 0x14014f427 call cs:rand ; +0x38d, 0x14014f42d movd xmm0, eax ; +0x393, 0x14014f433 cvtdq2ps xmm0, xmm0 ; +0x397, 0x14014f437 divss xmm0, xmm6 ; +0x39a, 0x14014f43a mulss xmm0, xmm7 ; +0x39e, 0x14014f43e cvttss2si eax, xmm0 ; +0x3a2, 0x14014f442 mov [rdi+344h], eax ; +0x3a6, 0x14014f446 mov [rdi+340h], eax ; +0x3ac, 0x14014f44c mov [rdi+514h], ebx ; +0x3b2, 0x14014f452 mov [rdi+548h], ebx ; +0x3b8, 0x14014f458 mov byte ptr [rdi+325h], 1 ; +0x3be, 0x14014f45e mov rdx, rdi ; +0x3c5, 0x14014f465 call GameLevelManager__updateLevelRewards ; +0x3c8, 0x14014f468 add esi, 2 ; +0x3cd, 0x14014f46d mov rcx, r15 ; +0x3d0, 0x14014f470 call cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x3d3, 0x14014f473 cmp esi, eax ; +0x3d9, 0x14014f479 jb loc_14014F250 ; +0x3db, 0x14014f47b lea rcx, [rsp+108h+var_88] ; +0x3e1, 0x14014f481 call sub_14003A830 ; +0x3e9, 0x14014f489 nop ; +0x3ee, 0x14014f48e lea rcx, [rsp+108h+var_A8] ; +0x3ef, 0x14014f48f call sub_14003A830 ; +0x3f4, 0x14014f494 nop ; +0x3f9, 0x14014f499 mov rcx, r14 ; +0x3fa, 0x14014f49a call sub_14003A830 ; +0x3fd, 0x14014f49d nop ; +0x402, 0x14014f4a2 mov rcx, r12 ; +0x403, 0x14014f4a3 call sub_14003A830 ; +0x406, 0x14014f4a6 mov rcx, [rsp+108h+var_68] ; +0x40b, 0x14014f4ab xor rcx, rsp; StackCookie ; +0x413, 0x14014f4b3 call __security_check_cookie ; +0x416, 0x14014f4b6 lea r11, [rsp+108h+var_38] ; +0x41b, 0x14014f4bb mov rbx, [r11+58h] ; +0x423, 0x14014f4c3 movaps xmm6, xmmword ptr [r11-10h] ; +0x427, 0x14014f4c7 movaps xmm7, xmmword ptr [r11-20h] ; +0x42c, 0x14014f4cc mov rsp, r11 ; +0x431, 0x14014f4d1 pop r15 ; +0x434, 0x14014f4d4 pop r14 ; +0x436, 0x14014f4d6 pop r13 ; +0x438, 0x14014f4d8 pop r12 ; +0x43a, 0x14014f4da pop rdi ; +0x43c, 0x14014f4dc pop rsi ; +0x43d, 0x14014f4dd pop rbp ; +0x43e, 0x14014f4de retn ; +0x43f, 0x14014f4df call sub_14003BCC0 ; +0x440, 0x14014f4e0 align 2 ; +0x445, 0x14014f4e5