; ; BrowseSmartKeyLayer::updateChanceValues from 0x1004ebd80 to 0x1004ebf2d (429 bytes) ; ; 2 xrefs: ; > BrowseSmartKeyLayer::deletedSelectedItems @ 0x1004ebaa2 ; > BrowseSmartKeyLayer::addChanceToSelected @ 0x1004ebc79 ; ; 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, 0x1004ebd80 mov rbp, rsp ; +0x1, 0x1004ebd81 push r15 ; +0x4, 0x1004ebd84 push r14 ; +0x6, 0x1004ebd86 push r13 ; +0x8, 0x1004ebd88 push r12 ; +0xa, 0x1004ebd8a push rbx ; +0xc, 0x1004ebd8c sub rsp, 58h ; +0xd, 0x1004ebd8d mov rbx, rdi ; +0x11, 0x1004ebd91 mov r14, [rdi+278h] ; +0x14, 0x1004ebd94 lea r15, [rdi+2A8h] ; +0x1b, 0x1004ebd9b test byte ptr [rdi+2A8h], 1 ; +0x22, 0x1004ebda2 jnz short loc_1004EBDBD ; +0x29, 0x1004ebda9 mov rax, [r15+10h] ; +0x2b, 0x1004ebdab mov [rbp+__p], rax ; +0x2f, 0x1004ebdaf movups xmm0, xmmword ptr [r15] ; +0x33, 0x1004ebdb3 movaps [rbp+var_70], xmm0 ; +0x37, 0x1004ebdb7 jmp short loc_1004EBDD4 ; +0x3b, 0x1004ebdbb mov rdx, [rbx+2B0h] ; +0x3d, 0x1004ebdbd mov rsi, [rbx+2B8h] ; +0x44, 0x1004ebdc4 lea rdi, [rbp+var_70] ; +0x4b, 0x1004ebdcb call sub_100006B70 ; +0x4f, 0x1004ebdcf lea rsi, [rbp+var_70] ; +0x54, 0x1004ebdd4 mov rdi, r14 ; +0x58, 0x1004ebdd8 call GJSmartTemplate__getTotalChanceForPrefab ; +0x5b, 0x1004ebddb mov [rbp+var_30], eax ; +0x60, 0x1004ebde0 mov [rbp+var_78], r15 ; +0x63, 0x1004ebde3 test byte ptr [rbp+var_70], 1 ; +0x67, 0x1004ebde7 jz short loc_1004EBDF6 ; +0x6b, 0x1004ebdeb mov rdi, [rbp+__p]; __p ; +0x6d, 0x1004ebded call __ZdlPv; operator delete(void *) ; +0x71, 0x1004ebdf1 mov rdi, [rbx+280h] ; +0x76, 0x1004ebdf6 call sub_100720070 ; +0x7d, 0x1004ebdfd test eax, eax ; +0x82, 0x1004ebe02 jz loc_1004EBF1E ; +0x84, 0x1004ebe04 xor r14d, r14d ; +0x8a, 0x1004ebe0a lea rax, [rbp+var_40] ; +0x8d, 0x1004ebe0d mov [rbp+var_38], rax ; +0x91, 0x1004ebe11 jmp short loc_1004EBE3C ; +0x95, 0x1004ebe15 align 20h ; +0x97, 0x1004ebe17 mov r14d, [rbp+var_2C] ; +0xa0, 0x1004ebe20 inc r14d ; +0xa4, 0x1004ebe24 mov rdi, [rbx+280h] ; +0xa7, 0x1004ebe27 call sub_100720070 ; +0xae, 0x1004ebe2e cmp r14d, eax ; +0xb3, 0x1004ebe33 jnb loc_1004EBF1E ; +0xb6, 0x1004ebe36 mov rdi, [rbx+280h] ; +0xbc, 0x1004ebe3c mov [rbp+var_2C], r14d ; +0xc3, 0x1004ebe43 mov esi, r14d ; +0xc7, 0x1004ebe47 call sub_1007200C0 ; +0xca, 0x1004ebe4a mov r13, rax ; +0xcf, 0x1004ebe4f mov rdi, rax ; +0xd2, 0x1004ebe52 call sub_100720070 ; +0xd5, 0x1004ebe55 test eax, eax ; +0xda, 0x1004ebe5a jz short loc_1004EBE20 ; +0xdc, 0x1004ebe5c xor r15d, r15d ; +0xde, 0x1004ebe5e jmp short loc_1004EBE80 ; +0xe1, 0x1004ebe61 align 10h ; +0xe3, 0x1004ebe63 inc r15d ; +0xf0, 0x1004ebe70 mov rdi, r13 ; +0xf3, 0x1004ebe73 call sub_100720070 ; +0xf6, 0x1004ebe76 cmp r15d, eax ; +0xfb, 0x1004ebe7b jnb short loc_1004EBE20 ; +0xfe, 0x1004ebe7e mov rdi, r13 ; +0x100, 0x1004ebe80 mov esi, r15d ; +0x103, 0x1004ebe83 call sub_1007200C0 ; +0x106, 0x1004ebe86 mov rcx, [rax] ; +0x10b, 0x1004ebe8b mov rdi, rax ; +0x10e, 0x1004ebe8e call qword ptr [rcx+420h] ; +0x111, 0x1004ebe91 mov r14, rax ; +0x117, 0x1004ebe97 mov r12, [rbx+278h] ; +0x11a, 0x1004ebe9a test byte ptr [rbx+2A8h], 1 ; +0x121, 0x1004ebea1 jnz short loc_1004EBEC0 ; +0x128, 0x1004ebea8 mov rcx, [rbp+var_78] ; +0x12a, 0x1004ebeaa mov rax, [rcx+10h] ; +0x12e, 0x1004ebeae mov [rbp+var_40], rax ; +0x132, 0x1004ebeb2 movups xmm0, xmmword ptr [rcx] ; +0x136, 0x1004ebeb6 movaps [rbp+var_50], xmm0 ; +0x139, 0x1004ebeb9 jmp short loc_1004EBED7 ; +0x13d, 0x1004ebebd align 20h ; +0x13f, 0x1004ebebf mov rdx, [rbx+2B0h] ; +0x140, 0x1004ebec0 mov rsi, [rbx+2B8h] ; +0x147, 0x1004ebec7 lea rdi, [rbp+var_50] ; +0x14e, 0x1004ebece call sub_100006B70 ; +0x152, 0x1004ebed2 mov rax, [r14] ; +0x157, 0x1004ebed7 mov rdi, r14 ; +0x15a, 0x1004ebeda call qword ptr [rax+40h] ; +0x15d, 0x1004ebedd mov rdi, r12 ; +0x160, 0x1004ebee0 lea rsi, [rbp+var_50] ; +0x163, 0x1004ebee3 mov edx, eax ; +0x167, 0x1004ebee7 call GJSmartTemplate__getPrefabWithID ; +0x169, 0x1004ebee9 mov r12, rax ; +0x16e, 0x1004ebeee test byte ptr [rbp+var_50], 1 ; +0x171, 0x1004ebef1 jz short loc_1004EBF00 ; +0x175, 0x1004ebef5 mov rdi, [rbp+var_40]; __p ; +0x177, 0x1004ebef7 call __ZdlPv; operator delete(void *) ; +0x17b, 0x1004ebefb test r12, r12 ; +0x180, 0x1004ebf00 jz loc_1004EBE70 ; +0x183, 0x1004ebf03 mov esi, [r12+6Ch] ; +0x189, 0x1004ebf09 mov rdi, r14 ; +0x18e, 0x1004ebf0e mov edx, [rbp+var_30] ; +0x191, 0x1004ebf11 call GJSmartBlockPreview__addChance ; +0x194, 0x1004ebf14 jmp loc_1004EBE70 ; +0x199, 0x1004ebf19 add rsp, 58h ; +0x19e, 0x1004ebf1e pop rbx ; +0x1a2, 0x1004ebf22 pop r12 ; +0x1a3, 0x1004ebf23 pop r13 ; +0x1a5, 0x1004ebf25 pop r14 ; +0x1a7, 0x1004ebf27 pop r15 ; +0x1a9, 0x1004ebf29 pop rbp ; +0x1ab, 0x1004ebf2b retn ; +0x1ac, 0x1004ebf2c