; ; FollowRewardPage::updateRate from 0x14013ba40 to 0x14013bf65 (1317 bytes) ; ; 3 xrefs: ; > @ 0x140557228 ; > @ 0x1406ca11c ; > @ 0x1406ca128 ; ; 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 ; push rbp ; +0x0, 0x14013ba40 push rbx ; +0x2, 0x14013ba42 push rsi ; +0x3, 0x14013ba43 push rdi ; +0x4, 0x14013ba44 push r14 ; +0x5, 0x14013ba45 lea rbp, [rsp-37h] ; +0x7, 0x14013ba47 sub rsp, 90h ; +0xc, 0x14013ba4c mov r14, rcx ; +0x13, 0x14013ba53 xor esi, esi ; +0x16, 0x14013ba56 mov rcx, [rcx+10h] ; +0x18, 0x14013ba58 call cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x1c, 0x14013ba5c test eax, eax ; +0x22, 0x14013ba62 jz loc_14013BF57 ; +0x24, 0x14013ba64 nop word ptr [rax+rax+00h] ; +0x2a, 0x14013ba6a test esi, esi ; +0x30, 0x14013ba70 jnz loc_14013BB30 ; +0x32, 0x14013ba72 lea rax, [rbp+57h+var_90] ; +0x38, 0x14013ba78 mov [rbp+57h+arg_0], rax ; +0x3c, 0x14013ba7c xorps xmm0, xmm0 ; +0x40, 0x14013ba80 movups [rbp+57h+var_90], xmm0 ; +0x43, 0x14013ba83 mov [rbp+57h+var_80], 4 ; +0x47, 0x14013ba87 mov [rbp+57h+var_78], 0Fh ; +0x4f, 0x14013ba8f mov eax, dword ptr cs:a0007; "0007" ; +0x57, 0x14013ba97 mov dword ptr [rbp+57h+var_90], eax ; +0x5d, 0x14013ba9d mov byte ptr [rbp+57h+var_90+4], sil ; +0x60, 0x14013baa0 mov rcx, cs:qword_1406C2EE8 ; +0x64, 0x14013baa4 test rcx, rcx ; +0x6b, 0x14013baab jnz short loc_14013BADE ; +0x6e, 0x14013baae mov ecx, 3E0h; Size ; +0x70, 0x14013bab0 call ??2@YAPEAX_K@Z; operator new(unsigned __int64) ; +0x75, 0x14013bab5 mov [rbp+57h+arg_8], rax ; +0x7a, 0x14013baba mov rcx, rax ; +0x7e, 0x14013babe call sub_1401D0AE0 ; +0x81, 0x14013bac1 nop ; +0x86, 0x14013bac6 mov cs:qword_1406C2EE8, rax ; +0x87, 0x14013bac7 mov rdx, [rax] ; +0x8e, 0x14013bace mov rcx, rax ; +0x91, 0x14013bad1 call qword ptr [rdx+48h] ; +0x94, 0x14013bad4 mov rcx, cs:qword_1406C2EE8 ; +0x97, 0x14013bad7 lea rdx, [rbp+57h+var_90] ; +0x9e, 0x14013bade call GameStatsManager__isSpecialChestUnlocked ; +0xa2, 0x14013bae2 movzx ebx, al ; +0xa7, 0x14013bae7 mov rcx, cs:qword_1406C2ED8 ; +0xaa, 0x14013baea test rcx, rcx ; +0xb1, 0x14013baf1 jnz short loc_14013BB24 ; +0xb4, 0x14013baf4 mov ecx, 668h; Size ; +0xb6, 0x14013baf6 call ??2@YAPEAX_K@Z; operator new(unsigned __int64) ; +0xbb, 0x14013bafb mov [rbp+57h+arg_10], rax ; +0xc0, 0x14013bb00 mov rcx, rax ; +0xc4, 0x14013bb04 call sub_14017AB00 ; +0xc7, 0x14013bb07 nop ; +0xcc, 0x14013bb0c mov cs:qword_1406C2ED8, rax ; +0xcd, 0x14013bb0d mov rdx, [rax] ; +0xd4, 0x14013bb14 mov rcx, rax ; +0xd7, 0x14013bb17 call qword ptr [rdx+48h] ; +0xda, 0x14013bb1a mov rcx, cs:qword_1406C2ED8 ; +0xdd, 0x14013bb1d lea rdx, a22; "22" ; +0xe4, 0x14013bb24 jmp loc_14013BEF0 ; +0xeb, 0x14013bb2b cmp esi, 1 ; +0xf0, 0x14013bb30 jnz loc_14013BBF1 ; +0xf3, 0x14013bb33 lea rax, [rbp+57h+var_90] ; +0xf9, 0x14013bb39 mov [rbp+57h+arg_0], rax ; +0xfd, 0x14013bb3d xorps xmm0, xmm0 ; +0x101, 0x14013bb41 movups [rbp+57h+var_90], xmm0 ; +0x104, 0x14013bb44 mov [rbp+57h+var_80], 4 ; +0x108, 0x14013bb48 mov [rbp+57h+var_78], 0Fh ; +0x110, 0x14013bb50 mov eax, dword ptr cs:a0008; "0008" ; +0x118, 0x14013bb58 mov dword ptr [rbp+57h+var_90], eax ; +0x11e, 0x14013bb5e mov byte ptr [rbp+57h+var_90+4], 0 ; +0x121, 0x14013bb61 mov rcx, cs:qword_1406C2EE8 ; +0x125, 0x14013bb65 test rcx, rcx ; +0x12c, 0x14013bb6c jnz short loc_14013BB9F ; +0x12f, 0x14013bb6f mov ecx, 3E0h; Size ; +0x131, 0x14013bb71 call ??2@YAPEAX_K@Z; operator new(unsigned __int64) ; +0x136, 0x14013bb76 mov [rbp+57h+arg_18], rax ; +0x13b, 0x14013bb7b mov rcx, rax ; +0x13f, 0x14013bb7f call sub_1401D0AE0 ; +0x142, 0x14013bb82 nop ; +0x147, 0x14013bb87 mov cs:qword_1406C2EE8, rax ; +0x148, 0x14013bb88 mov rdx, [rax] ; +0x14f, 0x14013bb8f mov rcx, rax ; +0x152, 0x14013bb92 call qword ptr [rdx+48h] ; +0x155, 0x14013bb95 mov rcx, cs:qword_1406C2EE8 ; +0x158, 0x14013bb98 lea rdx, [rbp+57h+var_90] ; +0x15f, 0x14013bb9f call GameStatsManager__isSpecialChestUnlocked ; +0x163, 0x14013bba3 movzx ebx, al ; +0x168, 0x14013bba8 mov rcx, cs:qword_1406C2ED8 ; +0x16b, 0x14013bbab test rcx, rcx ; +0x172, 0x14013bbb2 jnz short loc_14013BBE5 ; +0x175, 0x14013bbb5 mov ecx, 668h; Size ; +0x177, 0x14013bbb7 call ??2@YAPEAX_K@Z; operator new(unsigned __int64) ; +0x17c, 0x14013bbbc mov [rbp+57h+var_70], rax ; +0x181, 0x14013bbc1 mov rcx, rax ; +0x185, 0x14013bbc5 call sub_14017AB00 ; +0x188, 0x14013bbc8 nop ; +0x18d, 0x14013bbcd mov cs:qword_1406C2ED8, rax ; +0x18e, 0x14013bbce mov rdx, [rax] ; +0x195, 0x14013bbd5 mov rcx, rax ; +0x198, 0x14013bbd8 call qword ptr [rdx+48h] ; +0x19b, 0x14013bbdb mov rcx, cs:qword_1406C2ED8 ; +0x19e, 0x14013bbde lea rdx, a24; "24" ; +0x1a5, 0x14013bbe5 jmp loc_14013BEF0 ; +0x1ac, 0x14013bbec cmp esi, 2 ; +0x1b1, 0x14013bbf1 jnz loc_14013BCB2 ; +0x1b4, 0x14013bbf4 lea rax, [rbp+57h+var_90] ; +0x1ba, 0x14013bbfa mov [rbp+57h+arg_0], rax ; +0x1be, 0x14013bbfe xorps xmm0, xmm0 ; +0x1c2, 0x14013bc02 movups [rbp+57h+var_90], xmm0 ; +0x1c5, 0x14013bc05 mov [rbp+57h+var_80], 4 ; +0x1c9, 0x14013bc09 mov [rbp+57h+var_78], 0Fh ; +0x1d1, 0x14013bc11 mov eax, dword ptr cs:a0009; "0009" ; +0x1d9, 0x14013bc19 mov dword ptr [rbp+57h+var_90], eax ; +0x1df, 0x14013bc1f mov byte ptr [rbp+57h+var_90+4], 0 ; +0x1e2, 0x14013bc22 mov rcx, cs:qword_1406C2EE8 ; +0x1e6, 0x14013bc26 test rcx, rcx ; +0x1ed, 0x14013bc2d jnz short loc_14013BC60 ; +0x1f0, 0x14013bc30 mov ecx, 3E0h; Size ; +0x1f2, 0x14013bc32 call ??2@YAPEAX_K@Z; operator new(unsigned __int64) ; +0x1f7, 0x14013bc37 mov [rbp+57h+var_68], rax ; +0x1fc, 0x14013bc3c mov rcx, rax ; +0x200, 0x14013bc40 call sub_1401D0AE0 ; +0x203, 0x14013bc43 nop ; +0x208, 0x14013bc48 mov cs:qword_1406C2EE8, rax ; +0x209, 0x14013bc49 mov rdx, [rax] ; +0x210, 0x14013bc50 mov rcx, rax ; +0x213, 0x14013bc53 call qword ptr [rdx+48h] ; +0x216, 0x14013bc56 mov rcx, cs:qword_1406C2EE8 ; +0x219, 0x14013bc59 lea rdx, [rbp+57h+var_90] ; +0x220, 0x14013bc60 call GameStatsManager__isSpecialChestUnlocked ; +0x224, 0x14013bc64 movzx ebx, al ; +0x229, 0x14013bc69 mov rcx, cs:qword_1406C2ED8 ; +0x22c, 0x14013bc6c test rcx, rcx ; +0x233, 0x14013bc73 jnz short loc_14013BCA6 ; +0x236, 0x14013bc76 mov ecx, 668h; Size ; +0x238, 0x14013bc78 call ??2@YAPEAX_K@Z; operator new(unsigned __int64) ; +0x23d, 0x14013bc7d mov [rbp+57h+var_60], rax ; +0x242, 0x14013bc82 mov rcx, rax ; +0x246, 0x14013bc86 call sub_14017AB00 ; +0x249, 0x14013bc89 nop ; +0x24e, 0x14013bc8e mov cs:qword_1406C2ED8, rax ; +0x24f, 0x14013bc8f mov rdx, [rax] ; +0x256, 0x14013bc96 mov rcx, rax ; +0x259, 0x14013bc99 call qword ptr [rdx+48h] ; +0x25c, 0x14013bc9c mov rcx, cs:qword_1406C2ED8 ; +0x25f, 0x14013bc9f lea rdx, word_14054444C ; +0x266, 0x14013bca6 jmp loc_14013BEF0 ; +0x26d, 0x14013bcad cmp esi, 3 ; +0x272, 0x14013bcb2 jnz loc_14013BD73 ; +0x275, 0x14013bcb5 lea rax, [rbp+57h+var_90] ; +0x27b, 0x14013bcbb mov [rbp+57h+arg_0], rax ; +0x27f, 0x14013bcbf xorps xmm0, xmm0 ; +0x283, 0x14013bcc3 movups [rbp+57h+var_90], xmm0 ; +0x286, 0x14013bcc6 mov [rbp+57h+var_80], 4 ; +0x28a, 0x14013bcca mov [rbp+57h+var_78], 0Fh ; +0x292, 0x14013bcd2 mov eax, dword ptr cs:a0010; "0010" ; +0x29a, 0x14013bcda mov dword ptr [rbp+57h+var_90], eax ; +0x2a0, 0x14013bce0 mov byte ptr [rbp+57h+var_90+4], 0 ; +0x2a3, 0x14013bce3 mov rcx, cs:qword_1406C2EE8 ; +0x2a7, 0x14013bce7 test rcx, rcx ; +0x2ae, 0x14013bcee jnz short loc_14013BD21 ; +0x2b1, 0x14013bcf1 mov ecx, 3E0h; Size ; +0x2b3, 0x14013bcf3 call ??2@YAPEAX_K@Z; operator new(unsigned __int64) ; +0x2b8, 0x14013bcf8 mov [rbp+57h+var_58], rax ; +0x2bd, 0x14013bcfd mov rcx, rax ; +0x2c1, 0x14013bd01 call sub_1401D0AE0 ; +0x2c4, 0x14013bd04 nop ; +0x2c9, 0x14013bd09 mov cs:qword_1406C2EE8, rax ; +0x2ca, 0x14013bd0a mov rdx, [rax] ; +0x2d1, 0x14013bd11 mov rcx, rax ; +0x2d4, 0x14013bd14 call qword ptr [rdx+48h] ; +0x2d7, 0x14013bd17 mov rcx, cs:qword_1406C2EE8 ; +0x2da, 0x14013bd1a lea rdx, [rbp+57h+var_90] ; +0x2e1, 0x14013bd21 call GameStatsManager__isSpecialChestUnlocked ; +0x2e5, 0x14013bd25 movzx ebx, al ; +0x2ea, 0x14013bd2a mov rcx, cs:qword_1406C2ED8 ; +0x2ed, 0x14013bd2d test rcx, rcx ; +0x2f4, 0x14013bd34 jnz short loc_14013BD67 ; +0x2f7, 0x14013bd37 mov ecx, 668h; Size ; +0x2f9, 0x14013bd39 call ??2@YAPEAX_K@Z; operator new(unsigned __int64) ; +0x2fe, 0x14013bd3e mov [rbp+57h+var_50], rax ; +0x303, 0x14013bd43 mov rcx, rax ; +0x307, 0x14013bd47 call sub_14017AB00 ; +0x30a, 0x14013bd4a nop ; +0x30f, 0x14013bd4f mov cs:qword_1406C2ED8, rax ; +0x310, 0x14013bd50 mov rdx, [rax] ; +0x317, 0x14013bd57 mov rcx, rax ; +0x31a, 0x14013bd5a call qword ptr [rdx+48h] ; +0x31d, 0x14013bd5d mov rcx, cs:qword_1406C2ED8 ; +0x320, 0x14013bd60 lea rdx, a26; "26" ; +0x327, 0x14013bd67 jmp loc_14013BEF0 ; +0x32e, 0x14013bd6e cmp esi, 4 ; +0x333, 0x14013bd73 jnz loc_14013BE34 ; +0x336, 0x14013bd76 lea rax, [rbp+57h+var_90] ; +0x33c, 0x14013bd7c mov [rbp+57h+arg_0], rax ; +0x340, 0x14013bd80 xorps xmm0, xmm0 ; +0x344, 0x14013bd84 movups [rbp+57h+var_90], xmm0 ; +0x347, 0x14013bd87 mov [rbp+57h+var_80], 4 ; +0x34b, 0x14013bd8b mov [rbp+57h+var_78], 0Fh ; +0x353, 0x14013bd93 mov eax, dword ptr cs:a0011; "0011" ; +0x35b, 0x14013bd9b mov dword ptr [rbp+57h+var_90], eax ; +0x361, 0x14013bda1 mov byte ptr [rbp+57h+var_90+4], 0 ; +0x364, 0x14013bda4 mov rcx, cs:qword_1406C2EE8 ; +0x368, 0x14013bda8 test rcx, rcx ; +0x36f, 0x14013bdaf jnz short loc_14013BDE2 ; +0x372, 0x14013bdb2 mov ecx, 3E0h; Size ; +0x374, 0x14013bdb4 call ??2@YAPEAX_K@Z; operator new(unsigned __int64) ; +0x379, 0x14013bdb9 mov [rbp+57h+var_48], rax ; +0x37e, 0x14013bdbe mov rcx, rax ; +0x382, 0x14013bdc2 call sub_1401D0AE0 ; +0x385, 0x14013bdc5 nop ; +0x38a, 0x14013bdca mov cs:qword_1406C2EE8, rax ; +0x38b, 0x14013bdcb mov rdx, [rax] ; +0x392, 0x14013bdd2 mov rcx, rax ; +0x395, 0x14013bdd5 call qword ptr [rdx+48h] ; +0x398, 0x14013bdd8 mov rcx, cs:qword_1406C2EE8 ; +0x39b, 0x14013bddb lea rdx, [rbp+57h+var_90] ; +0x3a2, 0x14013bde2 call GameStatsManager__isSpecialChestUnlocked ; +0x3a6, 0x14013bde6 movzx ebx, al ; +0x3ab, 0x14013bdeb mov rcx, cs:qword_1406C2ED8 ; +0x3ae, 0x14013bdee test rcx, rcx ; +0x3b5, 0x14013bdf5 jnz short loc_14013BE28 ; +0x3b8, 0x14013bdf8 mov ecx, 668h; Size ; +0x3ba, 0x14013bdfa call ??2@YAPEAX_K@Z; operator new(unsigned __int64) ; +0x3bf, 0x14013bdff mov [rbp+57h+var_40], rax ; +0x3c4, 0x14013be04 mov rcx, rax ; +0x3c8, 0x14013be08 call sub_14017AB00 ; +0x3cb, 0x14013be0b nop ; +0x3d0, 0x14013be10 mov cs:qword_1406C2ED8, rax ; +0x3d1, 0x14013be11 mov rdx, [rax] ; +0x3d8, 0x14013be18 mov rcx, rax ; +0x3db, 0x14013be1b call qword ptr [rdx+48h] ; +0x3de, 0x14013be1e mov rcx, cs:qword_1406C2ED8 ; +0x3e1, 0x14013be21 lea rdx, a27; "27" ; +0x3e8, 0x14013be28 jmp loc_14013BEF0 ; +0x3ef, 0x14013be2f cmp esi, 5 ; +0x3f4, 0x14013be34 jnz loc_14013BF43 ; +0x3f7, 0x14013be37 lea rax, [rbp+57h+var_90] ; +0x3fd, 0x14013be3d mov [rbp+57h+arg_0], rax ; +0x401, 0x14013be41 xorps xmm0, xmm0 ; +0x405, 0x14013be45 movups [rbp+57h+var_90], xmm0 ; +0x408, 0x14013be48 mov [rbp+57h+var_80], 4 ; +0x40c, 0x14013be4c mov [rbp+57h+var_78], 0Fh ; +0x414, 0x14013be54 mov eax, dword ptr cs:a0024; "0024" ; +0x41c, 0x14013be5c mov dword ptr [rbp+57h+var_90], eax ; +0x422, 0x14013be62 mov byte ptr [rbp+57h+var_90+4], 0 ; +0x425, 0x14013be65 mov rcx, cs:qword_1406C2EE8 ; +0x429, 0x14013be69 test rcx, rcx ; +0x430, 0x14013be70 jnz short loc_14013BEA3 ; +0x433, 0x14013be73 mov ecx, 3E0h; Size ; +0x435, 0x14013be75 call ??2@YAPEAX_K@Z; operator new(unsigned __int64) ; +0x43a, 0x14013be7a mov [rbp+57h+var_38], rax ; +0x43f, 0x14013be7f mov rcx, rax ; +0x443, 0x14013be83 call sub_1401D0AE0 ; +0x446, 0x14013be86 nop ; +0x44b, 0x14013be8b mov cs:qword_1406C2EE8, rax ; +0x44c, 0x14013be8c mov rdx, [rax] ; +0x453, 0x14013be93 mov rcx, rax ; +0x456, 0x14013be96 call qword ptr [rdx+48h] ; +0x459, 0x14013be99 mov rcx, cs:qword_1406C2EE8 ; +0x45c, 0x14013be9c lea rdx, [rbp+57h+var_90] ; +0x463, 0x14013bea3 call GameStatsManager__isSpecialChestUnlocked ; +0x467, 0x14013bea7 movzx ebx, al ; +0x46c, 0x14013beac mov rcx, cs:qword_1406C2ED8 ; +0x46f, 0x14013beaf test rcx, rcx ; +0x476, 0x14013beb6 jnz short loc_14013BEE9 ; +0x479, 0x14013beb9 mov ecx, 668h; Size ; +0x47b, 0x14013bebb call ??2@YAPEAX_K@Z; operator new(unsigned __int64) ; +0x480, 0x14013bec0 mov [rbp+57h+var_30], rax ; +0x485, 0x14013bec5 mov rcx, rax ; +0x489, 0x14013bec9 call sub_14017AB00 ; +0x48c, 0x14013becc nop ; +0x491, 0x14013bed1 mov cs:qword_1406C2ED8, rax ; +0x492, 0x14013bed2 mov rdx, [rax] ; +0x499, 0x14013bed9 mov rcx, rax ; +0x49c, 0x14013bedc call qword ptr [rdx+48h] ; +0x49f, 0x14013bedf mov rcx, cs:qword_1406C2ED8 ; +0x4a2, 0x14013bee2 lea rdx, word_1405579D4 ; +0x4a9, 0x14013bee9 call GameManager__getUGV ; +0x4b0, 0x14013bef0 test al, al ; +0x4b5, 0x14013bef5 jz short loc_14013BF43 ; +0x4b7, 0x14013bef7 test bl, bl ; +0x4b9, 0x14013bef9 jnz short loc_14013BF43 ; +0x4bb, 0x14013befb mov edx, esi ; +0x4bd, 0x14013befd mov rcx, [r14+10h] ; +0x4bf, 0x14013beff call cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x4c3, 0x14013bf03 mov rdi, rax ; +0x4c9, 0x14013bf09 mov [rax+260h], bl ; +0x4cc, 0x14013bf0c lea rcx, [rax+140h] ; +0x4d2, 0x14013bf12 mov r8, [rcx] ; +0x4d9, 0x14013bf19 lea rdx, unk_140529A58 ; +0x4dc, 0x14013bf1c call qword ptr [r8] ; +0x4e3, 0x14013bf23 mov rcx, [r14-40h] ; +0x4e6, 0x14013bf26 mov rbx, [rcx] ; +0x4ea, 0x14013bf2a mov rdx, [rdi] ; +0x4ed, 0x14013bf2d mov rcx, rdi ; +0x4f0, 0x14013bf30 call qword ptr [rdx+38h] ; +0x4f3, 0x14013bf33 lea edx, [rax+0Ah] ; +0x4f6, 0x14013bf36 mov rcx, [r14-40h] ; +0x4f9, 0x14013bf39 call qword ptr [rbx+220h] ; +0x4fd, 0x14013bf3d inc esi ; +0x503, 0x14013bf43 mov rcx, [r14+10h] ; +0x505, 0x14013bf45 call cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x509, 0x14013bf49 cmp esi, eax ; +0x50f, 0x14013bf4f jb loc_14013BA70 ; +0x511, 0x14013bf51 add rsp, 90h ; +0x517, 0x14013bf57 pop r14 ; +0x51e, 0x14013bf5e pop rdi ; +0x520, 0x14013bf60 pop rsi ; +0x521, 0x14013bf61 pop rbx ; +0x522, 0x14013bf62 pop rbp ; +0x523, 0x14013bf63 retn ; +0x524, 0x14013bf64