; ; GameLevelManager::saveFetchedLevels from 0x1401469a0 to 0x140146c2f (655 bytes) ; ; 2 xrefs: ; > GameLevelManager::onGetOnlineLevelsCompleted @ 0x14014ec71 ; > @ 0x1406ca5cc ; ; 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_0], rbx ; +0x0, 0x1401469a0 mov [rsp+arg_8], rbp ; +0x5, 0x1401469a5 mov [rsp+arg_18], rsi ; +0xa, 0x1401469aa push rdi ; +0xf, 0x1401469af push r14 ; +0x10, 0x1401469b0 push r15 ; +0x12, 0x1401469b2 sub rsp, 40h ; +0x14, 0x1401469b4 movaps [rsp+58h+var_28], xmm6 ; +0x18, 0x1401469b8 movaps [rsp+58h+var_38], xmm7 ; +0x1d, 0x1401469bd mov r15, rdx ; +0x22, 0x1401469c2 mov r14, rcx ; +0x25, 0x1401469c5 xor ebp, ebp ; +0x28, 0x1401469c8 mov rcx, rdx ; +0x2a, 0x1401469ca call cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x2d, 0x1401469cd test eax, eax ; +0x33, 0x1401469d3 jz loc_140146C0C ; +0x35, 0x1401469d5 movss xmm6, cs:dword_140623644 ; +0x3b, 0x1401469db movss xmm7, cs:dword_14062350C ; +0x43, 0x1401469e3 nop dword ptr [rax+rax+00h] ; +0x4b, 0x1401469eb mov edx, ebp ; +0x50, 0x1401469f0 mov rcx, r15 ; +0x52, 0x1401469f2 call cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x55, 0x1401469f5 mov rdi, rax ; +0x5b, 0x1401469fb test rax, rax ; +0x5e, 0x1401469fe jz loc_140146B80 ; +0x61, 0x140146a01 mov edx, [rax+36Ch] ; +0x67, 0x140146a07 sub edx, [rax+370h] ; +0x6d, 0x140146a0d mov rcx, r14 ; +0x73, 0x140146a13 test edx, edx ; +0x76, 0x140146a16 jle short loc_140146A21 ; +0x78, 0x140146a18 call GameLevelManager__getSavedDailyLevel ; +0x7a, 0x140146a1a jmp short loc_140146A42 ; +0x7f, 0x140146a1f mov edx, [rax+148h] ; +0x81, 0x140146a21 sub edx, [rax+14Ch] ; +0x87, 0x140146a27 cmp byte ptr [rax+2C9h], 0 ; +0x8d, 0x140146a2d jz short loc_140146A3D ; +0x94, 0x140146a34 call GameLevelManager__getSavedGauntletLevel ; +0x96, 0x140146a36 jmp short loc_140146A42 ; +0x9b, 0x140146a3b call GameLevelManager__getSavedLevel ; +0x9d, 0x140146a3d mov rsi, rax ; +0xa2, 0x140146a42 test rax, rax ; +0xa5, 0x140146a45 jz loc_140146B80 ; +0xa8, 0x140146a48 mov eax, [rdi+350h] ; +0xae, 0x140146a4e mov [rsi+350h], eax ; +0xb4, 0x140146a54 mov eax, [rdi+354h] ; +0xba, 0x140146a5a mov [rsi+354h], eax ; +0xc0, 0x140146a60 mov eax, [rdi+2C4h] ; +0xc6, 0x140146a66 mov [rsi+2C4h], eax ; +0xcc, 0x140146a6c mov ebx, [rdi+378h] ; +0xd2, 0x140146a72 sub ebx, [rdi+37Ch] ; +0xd8, 0x140146a78 mov [rsi+380h], ebx ; +0xde, 0x140146a7e call cs:rand ; +0xe4, 0x140146a84 movd xmm0, eax ; +0xea, 0x140146a8a cvtdq2ps xmm0, xmm0 ; +0xee, 0x140146a8e divss xmm0, xmm6 ; +0xf1, 0x140146a91 mulss xmm0, xmm7 ; +0xf5, 0x140146a95 cvttss2si eax, xmm0 ; +0xf9, 0x140146a99 mov [rsi+37Ch], eax ; +0xfd, 0x140146a9d add eax, ebx ; +0x103, 0x140146aa3 mov [rsi+378h], eax ; +0x105, 0x140146aa5 mov eax, [rdi+384h] ; +0x10b, 0x140146aab mov [rsi+384h], eax ; +0x111, 0x140146ab1 mov ebx, [rdi+388h] ; +0x117, 0x140146ab7 sub ebx, [rdi+38Ch] ; +0x11d, 0x140146abd mov [rsi+390h], ebx ; +0x123, 0x140146ac3 call cs:rand ; +0x129, 0x140146ac9 movd xmm0, eax ; +0x12f, 0x140146acf cvtdq2ps xmm0, xmm0 ; +0x133, 0x140146ad3 divss xmm0, xmm6 ; +0x136, 0x140146ad6 mulss xmm0, xmm7 ; +0x13a, 0x140146ada cvttss2si eax, xmm0 ; +0x13e, 0x140146ade mov [rsi+38Ch], eax ; +0x142, 0x140146ae2 add eax, ebx ; +0x148, 0x140146ae8 mov [rsi+388h], eax ; +0x14a, 0x140146aea mov eax, [rdi+35Ch] ; +0x150, 0x140146af0 mov [rsi+35Ch], eax ; +0x156, 0x140146af6 mov eax, [rdi+2BCh] ; +0x15c, 0x140146afc mov [rsi+2BCh], eax ; +0x162, 0x140146b02 mov eax, [rdi+2C0h] ; +0x168, 0x140146b08 mov [rsi+2C0h], eax ; +0x16e, 0x140146b0e movzx eax, byte ptr [rdi+394h] ; +0x174, 0x140146b14 mov [rsi+394h], al ; +0x17b, 0x140146b1b mov eax, [rdi+398h] ; +0x181, 0x140146b21 mov [rsi+398h], eax ; +0x187, 0x140146b27 mov ebx, [rdi+39Ch] ; +0x18d, 0x140146b2d sub ebx, [rdi+3A0h] ; +0x193, 0x140146b33 mov [rsi+3A4h], ebx ; +0x199, 0x140146b39 call cs:rand ; +0x19f, 0x140146b3f movd xmm0, eax ; +0x1a5, 0x140146b45 cvtdq2ps xmm0, xmm0 ; +0x1a9, 0x140146b49 divss xmm0, xmm6 ; +0x1ac, 0x140146b4c mulss xmm0, xmm7 ; +0x1b0, 0x140146b50 cvttss2si eax, xmm0 ; +0x1b4, 0x140146b54 mov [rsi+3A0h], eax ; +0x1b8, 0x140146b58 add eax, ebx ; +0x1be, 0x140146b5e mov [rsi+39Ch], eax ; +0x1c0, 0x140146b60 cmp byte ptr [rsi+2CAh], 0 ; +0x1c6, 0x140146b66 jz short loc_140146B76 ; +0x1cd, 0x140146b6d mov byte ptr [rdi+2CAh], 1 ; +0x1cf, 0x140146b6f mov rdx, rsi ; +0x1d6, 0x140146b76 call GameLevelManager__updateLevelRewards ; +0x1d9, 0x140146b79 jmp short loc_140146BF9 ; +0x1de, 0x140146b7e mov rcx, cs:qword_1406C2EE8 ; +0x1e0, 0x140146b80 test rcx, rcx ; +0x1e7, 0x140146b87 jnz short loc_140146BBB ; +0x1ea, 0x140146b8a mov ecx, 3E0h; Size ; +0x1ec, 0x140146b8c call ??2@YAPEAX_K@Z; operator new(unsigned __int64) ; +0x1f1, 0x140146b91 mov [rsp+58h+arg_10], rax ; +0x1f6, 0x140146b96 mov rcx, rax ; +0x1fb, 0x140146b9b call sub_1401D0AE0 ; +0x1fe, 0x140146b9e nop ; +0x203, 0x140146ba3 mov cs:qword_1406C2EE8, rax ; +0x204, 0x140146ba4 mov rdx, [rax] ; +0x20b, 0x140146bab mov rcx, rax ; +0x20e, 0x140146bae call qword ptr [rdx+48h] ; +0x211, 0x140146bb1 mov rcx, cs:qword_1406C2EE8 ; +0x214, 0x140146bb4 mov rdx, rdi ; +0x21b, 0x140146bbb call GameStatsManager__hasCompletedLevel ; +0x21e, 0x140146bbe test al, al ; +0x223, 0x140146bc3 jz short loc_140146BF9 ; +0x225, 0x140146bc5 mov dword ptr [rdi+328h], 64h ; 'd' ; +0x227, 0x140146bc7 call cs:rand ; +0x231, 0x140146bd1 movd xmm0, eax ; +0x237, 0x140146bd7 cvtdq2ps xmm0, xmm0 ; +0x23b, 0x140146bdb divss xmm0, xmm6 ; +0x23e, 0x140146bde mulss xmm0, xmm7 ; +0x242, 0x140146be2 cvttss2si eax, xmm0 ; +0x246, 0x140146be6 mov [rdi+32Ch], eax ; +0x24a, 0x140146bea add eax, 64h ; 'd' ; +0x250, 0x140146bf0 mov [rdi+330h], eax ; +0x253, 0x140146bf3 inc ebp ; +0x259, 0x140146bf9 mov rcx, r15 ; +0x25b, 0x140146bfb call cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x25e, 0x140146bfe cmp ebp, eax ; +0x264, 0x140146c04 jb loc_1401469F0 ; +0x266, 0x140146c06 mov rbx, [rsp+58h+arg_0] ; +0x26c, 0x140146c0c mov rbp, [rsp+58h+arg_8] ; +0x271, 0x140146c11 mov rsi, [rsp+58h+arg_18] ; +0x276, 0x140146c16 movaps xmm6, [rsp+58h+var_28] ; +0x27b, 0x140146c1b movaps xmm7, [rsp+58h+var_38] ; +0x280, 0x140146c20 add rsp, 40h ; +0x285, 0x140146c25 pop r15 ; +0x289, 0x140146c29 pop r14 ; +0x28b, 0x140146c2b pop rdi ; +0x28d, 0x140146c2d retn ; +0x28e, 0x140146c2e