; ; BrowseSmartKeyLayer::updateChanceValues from 0x1405f1f60 to 0x1405f20af (335 bytes) ; ; 4 xrefs: ; > BrowseSmartKeyLayer::onButton @ 0x1405f1a78 ; > BrowseSmartKeyLayer::deletedSelectedItems @ 0x1405f1d98 ; > BrowseSmartKeyLayer::addChanceToSelected @ 0x1405f1f4c ; > @ 0x14092f2dc ; ; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True! ; ; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA ; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings ; Generated at Fri, 27 Nov 2026 11:35:06 +0000 ; mov [rsp+arg_10], rbx ; +0x0, 0x1405f1f60 push rbp ; +0x5, 0x1405f1f65 push rsi ; +0x6, 0x1405f1f66 push rdi ; +0x7, 0x1405f1f67 push r12 ; +0x8, 0x1405f1f68 push r13 ; +0xa, 0x1405f1f6a push r14 ; +0xc, 0x1405f1f6c push r15 ; +0xe, 0x1405f1f6e sub rsp, 40h ; +0x10, 0x1405f1f70 mov r13, rcx ; +0x14, 0x1405f1f74 lea rdx, [rcx+2C8h] ; +0x17, 0x1405f1f77 lea rcx, [rsp+78h+var_58] ; +0x1e, 0x1405f1f7e call sub_14003F4F0 ; +0x23, 0x1405f1f83 mov rdx, rax ; +0x28, 0x1405f1f88 mov rcx, [r13+298h] ; +0x2b, 0x1405f1f8b call GJSmartTemplate__getTotalChanceForPrefab ; +0x32, 0x1405f1f92 mov r12d, eax ; +0x37, 0x1405f1f97 xor r15d, r15d ; +0x3a, 0x1405f1f9a mov [rsp+78h+arg_0], r15d ; +0x3d, 0x1405f1f9d mov rcx, [r13+2A0h] ; +0x45, 0x1405f1fa5 call cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x4c, 0x1405f1fac test eax, eax ; +0x52, 0x1405f1fb2 jz loc_1405F2097 ; +0x54, 0x1405f1fb4 nop word ptr [rax+rax+00h] ; +0x5a, 0x1405f1fba mov edx, r15d ; +0x60, 0x1405f1fc0 mov rcx, [r13+2A0h] ; +0x63, 0x1405f1fc3 call cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x6a, 0x1405f1fca mov rbp, rax ; +0x70, 0x1405f1fd0 xor ebx, ebx ; +0x73, 0x1405f1fd3 mov rcx, rax ; +0x75, 0x1405f1fd5 call cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x78, 0x1405f1fd8 test eax, eax ; +0x7e, 0x1405f1fde jz loc_1405F2076 ; +0x80, 0x1405f1fe0 nop word ptr [rax+rax+00000000h] ; +0x86, 0x1405f1fe6 mov edx, ebx ; +0x90, 0x1405f1ff0 mov rcx, rbp ; +0x92, 0x1405f1ff2 call cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x95, 0x1405f1ff5 mov rcx, [rax] ; +0x9b, 0x1405f1ffb mov rdx, [rcx+3B8h] ; +0x9e, 0x1405f1ffe mov rcx, rax ; +0xa5, 0x1405f2005 call rdx ; +0xa8, 0x1405f2008 mov r14, rax ; +0xaa, 0x1405f200a lea rax, [rsp+78h+var_58] ; +0xad, 0x1405f200d mov [rsp+78h+arg_8], rax ; +0xb2, 0x1405f2012 lea rdx, [r13+2C8h] ; +0xba, 0x1405f201a lea rcx, [rsp+78h+var_58] ; +0xc1, 0x1405f2021 call sub_14003F4F0 ; +0xc6, 0x1405f2026 mov rsi, rax ; +0xcb, 0x1405f202b mov rdi, [r13+298h] ; +0xce, 0x1405f202e mov rdx, [r14] ; +0xd5, 0x1405f2035 mov rcx, r14 ; +0xd8, 0x1405f2038 call qword ptr [rdx+38h] ; +0xdb, 0x1405f203b mov r8d, eax ; +0xde, 0x1405f203e mov rdx, rsi ; +0xe1, 0x1405f2041 mov rcx, rdi ; +0xe4, 0x1405f2044 call GJSmartTemplate__getPrefabWithID ; +0xe7, 0x1405f2047 test rax, rax ; +0xec, 0x1405f204c jz short loc_1405F205F ; +0xef, 0x1405f204f mov r8d, r12d ; +0xf1, 0x1405f2051 mov edx, [rax+7Ch] ; +0xf4, 0x1405f2054 mov rcx, r14 ; +0xf7, 0x1405f2057 call GJSmartBlockPreview__addChance ; +0xfa, 0x1405f205a inc ebx ; +0xff, 0x1405f205f mov rcx, rbp ; +0x101, 0x1405f2061 call cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x104, 0x1405f2064 cmp ebx, eax ; +0x10a, 0x1405f206a jb short loc_1405F1FF0 ; +0x10c, 0x1405f206c mov r15d, [rsp+78h+arg_0] ; +0x10e, 0x1405f206e inc r15d ; +0x116, 0x1405f2076 mov [rsp+78h+arg_0], r15d ; +0x119, 0x1405f2079 mov rcx, [r13+2A0h] ; +0x121, 0x1405f2081 call cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x128, 0x1405f2088 cmp r15d, eax ; +0x12e, 0x1405f208e jb loc_1405F1FC0 ; +0x131, 0x1405f2091 mov rbx, [rsp+78h+arg_10] ; +0x137, 0x1405f2097 add rsp, 40h ; +0x13f, 0x1405f209f pop r15 ; +0x143, 0x1405f20a3 pop r14 ; +0x145, 0x1405f20a5 pop r13 ; +0x147, 0x1405f20a7 pop r12 ; +0x149, 0x1405f20a9 pop rdi ; +0x14b, 0x1405f20ab pop rsi ; +0x14c, 0x1405f20ac pop rbp ; +0x14d, 0x1405f20ad retn ; +0x14e, 0x1405f20ae