; ; DropdownListPopup::buildRows from 0x140121df0 to 0x1401222c0 (1232 bytes) ; ; 2 xrefs: ; > DropdownListPopup::init @ 0x140121aef ; > @ 0x14091667c ; ; 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:26:57 +0000 ; push rbx ; +0x0, 0x140121df0 push rbp ; +0x2, 0x140121df2 push rsi ; +0x3, 0x140121df3 push rdi ; +0x4, 0x140121df4 push r12 ; +0x5, 0x140121df5 push r13 ; +0x7, 0x140121df7 push r14 ; +0x9, 0x140121df9 push r15 ; +0xb, 0x140121dfb sub rsp, 88h ; +0xd, 0x140121dfd movaps [rsp+0C8h+var_58], xmm6 ; +0x14, 0x140121e04 movaps [rsp+0C8h+var_68], xmm7 ; +0x19, 0x140121e09 movaps [rsp+0C8h+var_78], xmm8 ; +0x1e, 0x140121e0e movaps [rsp+0C8h+var_88], xmm9 ; +0x24, 0x140121e14 mov rbp, rcx ; +0x2a, 0x140121e1a xor ebx, ebx ; +0x2d, 0x140121e1d lea rsi, [rcx+2B0h] ; +0x2f, 0x140121e1f mov rdx, [rsi+8] ; +0x36, 0x140121e26 mov rcx, [rsi] ; +0x3a, 0x140121e2a mov rax, rdx ; +0x3d, 0x140121e2d sub rax, rcx ; +0x40, 0x140121e30 sar rax, 3 ; +0x43, 0x140121e33 test rax, rax ; +0x47, 0x140121e37 jz short loc_140121E66 ; +0x4a, 0x140121e3a nop dword ptr [rax+00h] ; +0x4c, 0x140121e3c mov rcx, [rcx+rbx*8] ; +0x50, 0x140121e40 mov rax, [rcx] ; +0x54, 0x140121e44 call qword ptr [rax+200h] ; +0x57, 0x140121e47 inc rbx ; +0x5d, 0x140121e4d mov rdx, [rsi+8] ; +0x60, 0x140121e50 mov rcx, [rsi] ; +0x64, 0x140121e54 mov rax, rdx ; +0x67, 0x140121e57 sub rax, rcx ; +0x6a, 0x140121e5a sar rax, 3 ; +0x6d, 0x140121e5d cmp rbx, rax ; +0x71, 0x140121e61 jb short loc_140121E40 ; +0x74, 0x140121e64 cmp rcx, rdx ; +0x76, 0x140121e66 jz short loc_140121E6F ; +0x79, 0x140121e69 mov [rsi+8], rcx ; +0x7b, 0x140121e6b mov rcx, [rbp+2A0h] ; +0x7f, 0x140121e6f sub rcx, [rbp+298h] ; +0x86, 0x140121e76 mov rax, 0E38E38E38E38E39h ; +0x8d, 0x140121e7d imul rcx ; +0x97, 0x140121e87 sar rdx, 2 ; +0x9a, 0x140121e8a mov rax, rdx ; +0x9e, 0x140121e8e shr rax, 3Fh ; +0xa1, 0x140121e91 add rdx, rax ; +0xa5, 0x140121e95 movsxd r15, edx ; +0xa8, 0x140121e98 cmp qword ptr [rbp+2D0h], 0 ; +0xab, 0x140121e9b jz loc_140122078 ; +0xb3, 0x140121ea3 cmp qword ptr [rbp+2C8h], 0 ; +0xb9, 0x140121ea9 jz loc_140122078 ; +0xc1, 0x140121eb1 xor r14d, r14d ; +0xc7, 0x140121eb7 test edx, edx ; +0xca, 0x140121eba jle loc_140122296 ; +0xcc, 0x140121ebc lea rdx, [rbp+2E0h] ; +0xd2, 0x140121ec2 xor r12d, r12d ; +0xd9, 0x140121ec9 lea r13, DropdownListPopup__onRowSelected ; +0xdc, 0x140121ecc movss xmm8, dword ptr cs:xmmword_140836CC0 ; +0xe3, 0x140121ed3 movss xmm9, cs:flt_140835490 ; +0xec, 0x140121edc movss xmm7, cs:dword_140834F20 ; +0xf5, 0x140121ee5 nop dword ptr [rax] ; +0xfd, 0x140121eed movsxd rax, r14d ; +0x100, 0x140121ef0 lea rcx, [rax+rax*8] ; +0x103, 0x140121ef3 mov rax, [rbp+298h] ; +0x107, 0x140121ef7 lea rcx, [rax+rcx*8] ; +0x10e, 0x140121efe call sub_140121B80 ; +0x112, 0x140121f02 mov rbx, rax ; +0x117, 0x140121f07 mov ecx, 208h; Size ; +0x11a, 0x140121f0a call ??2@YAPEAX_K@Z; operator new(unsigned __int64) ; +0x11f, 0x140121f0f mov [rsp+0C8h+arg_8], rax ; +0x124, 0x140121f14 mov rcx, rax ; +0x12c, 0x140121f1c call CCMenuItemSpriteExtra__CCMenuItemSpriteExtra ; +0x12f, 0x140121f1f mov rdi, rax ; +0x134, 0x140121f24 test rax, rax ; +0x137, 0x140121f27 jz short loc_140121F5C ; +0x13a, 0x140121f2a mov [rsp+0C8h+var_A8], r13 ; +0x13c, 0x140121f2c mov r9, rbp ; +0x141, 0x140121f31 xor r8d, r8d ; +0x144, 0x140121f34 mov rdx, rbx ; +0x147, 0x140121f37 mov rcx, rax ; +0x14a, 0x140121f3a call CCMenuItemSpriteExtra__init ; +0x14d, 0x140121f3d mov rcx, rdi ; +0x152, 0x140121f42 test al, al ; +0x155, 0x140121f45 jz short loc_140121F51 ; +0x157, 0x140121f47 call cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x159, 0x140121f49 jmp short loc_140121F5E ; +0x15f, 0x140121f4f mov rax, [rdi] ; +0x161, 0x140121f51 mov edx, 1 ; +0x164, 0x140121f54 call qword ptr [rax+8] ; +0x169, 0x140121f59 xor edi, edi ; +0x16c, 0x140121f5c mov [rsp+0C8h+arg_0], rdi ; +0x16e, 0x140121f5e mov rdx, [rbp+298h] ; +0x176, 0x140121f66 mov rax, [rdi] ; +0x17d, 0x140121f6d mov edx, [rdx+r12] ; +0x180, 0x140121f70 mov rcx, rdi ; +0x184, 0x140121f74 call qword ptr [rax+40h] ; +0x187, 0x140121f77 mov rbx, [rdi] ; +0x18a, 0x140121f7a movss xmm1, dword ptr [rbp+334h] ; +0x18d, 0x140121f7d subss xmm1, xmm9 ; +0x195, 0x140121f85 movss xmm2, dword ptr [rbp+338h] ; +0x19a, 0x140121f8a lea rcx, [rsp+0C8h+arg_10] ; +0x1a2, 0x140121f92 call cs:??0CCSize@cocos2d@@QEAA@MM@Z; cocos2d::CCSize::CCSize(float,float) ; +0x1aa, 0x140121f9a mov rdx, rax ; +0x1b0, 0x140121fa0 mov rcx, rdi ; +0x1b3, 0x140121fa3 call qword ptr [rbx+138h] ; +0x1b6, 0x140121fa6 mov dword ptr [rdi+174h], 3F800000h ; +0x1bc, 0x140121fac mov word ptr [rdi+198h], 100h ; +0x1c6, 0x140121fb6 mov dword ptr [rdi+1E0h], 3F000000h ; +0x1cf, 0x140121fbf movss xmm3, dword ptr [rbp+338h] ; +0x1d9, 0x140121fc9 movss xmm6, dword ptr [rbp+33Ch] ; +0x1e1, 0x140121fd1 xorps xmm6, xmm8 ; +0x1e9, 0x140121fd9 movaps xmm0, xmm3 ; +0x1ed, 0x140121fdd mulss xmm0, xmm7 ; +0x1f0, 0x140121fe0 subss xmm6, xmm0 ; +0x1f4, 0x140121fe4 movd xmm1, r14d ; +0x1f8, 0x140121fe8 cvtdq2ps xmm1, xmm1 ; +0x1fd, 0x140121fed mulss xmm1, xmm3 ; +0x200, 0x140121ff0 subss xmm6, xmm1 ; +0x204, 0x140121ff4 mov rcx, [rbp+2C8h] ; +0x208, 0x140121ff8 mov rax, [rcx] ; +0x20f, 0x140121fff mov rdx, rdi ; +0x212, 0x140122002 call qword ptr [rax+1D0h] ; +0x215, 0x140122005 mov rbx, [rdi] ; +0x21b, 0x14012200b movss xmm1, dword ptr [rbp+334h] ; +0x21e, 0x14012200e mulss xmm1, xmm7 ; +0x226, 0x140122016 movaps xmm2, xmm6 ; +0x22a, 0x14012201a lea rcx, [rsp+0C8h+arg_18] ; +0x22d, 0x14012201d call cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x235, 0x140122025 mov rdx, rax ; +0x23b, 0x14012202b mov rcx, rdi ; +0x23e, 0x14012202e call qword ptr [rbx+0B8h] ; +0x241, 0x140122031 mov rdx, [rsi+8] ; +0x247, 0x140122037 cmp rdx, [rsi+10h] ; +0x24b, 0x14012203b jz short loc_14012204B ; +0x24f, 0x14012203f mov [rdx], rdi ; +0x251, 0x140122041 add qword ptr [rsi+8], 8 ; +0x254, 0x140122044 jmp short loc_14012205B ; +0x259, 0x140122049 lea r8, [rsp+0C8h+arg_0] ; +0x25b, 0x14012204b mov rcx, rsi ; +0x263, 0x140122053 call sub_1400699B0 ; +0x266, 0x140122056 inc r14d ; +0x26b, 0x14012205b add r12, 48h ; 'H' ; +0x26e, 0x14012205e sub r15, 1 ; +0x272, 0x140122062 lea rdx, [rbp+2E0h] ; +0x276, 0x140122066 jnz loc_140121EF0 ; +0x27d, 0x14012206d jmp loc_140122296 ; +0x283, 0x140122073 movd xmm7, edx ; +0x288, 0x140122078 cvtdq2ps xmm7, xmm7 ; +0x28c, 0x14012207c mulss xmm7, dword ptr [rbp+338h] ; +0x28f, 0x14012207f movss xmm8, cs:dword_140834F20 ; +0x297, 0x140122087 mulss xmm7, xmm8 ; +0x2a0, 0x140122090 addss xmm7, dword ptr [rbp+33Ch] ; +0x2a5, 0x140122095 xor r12d, r12d ; +0x2ad, 0x14012209d test edx, edx ; +0x2b0, 0x1401220a0 jle loc_140122296 ; +0x2b2, 0x1401220a2 lea r8, [rbp+2E0h] ; +0x2b8, 0x1401220a8 xor r13d, r13d ; +0x2bf, 0x1401220af lea edi, [rdx-1] ; +0x2c2, 0x1401220b2 mov dword ptr [rsp+0C8h+arg_0], edi ; +0x2c5, 0x1401220b5 movss xmm9, cs:flt_140835490 ; +0x2cc, 0x1401220bc nop word ptr [rax+rax+00000000h] ; +0x2d5, 0x1401220c5 movsxd rax, r12d ; +0x2e0, 0x1401220d0 lea rcx, [rax+rax*8] ; +0x2e3, 0x1401220d3 mov rax, [rbp+298h] ; +0x2e7, 0x1401220d7 lea rcx, [rax+rcx*8] ; +0x2ee, 0x1401220de mov rdx, r8 ; +0x2f2, 0x1401220e2 call sub_140121B80 ; +0x2f5, 0x1401220e5 mov rbx, rax ; +0x2fa, 0x1401220ea mov ecx, 208h; Size ; +0x2fd, 0x1401220ed call ??2@YAPEAX_K@Z; operator new(unsigned __int64) ; +0x302, 0x1401220f2 mov [rsp+0C8h+arg_10], rax ; +0x307, 0x1401220f7 mov rcx, rax ; +0x30f, 0x1401220ff call CCMenuItemSpriteExtra__CCMenuItemSpriteExtra ; +0x312, 0x140122102 mov r14, rax ; +0x317, 0x140122107 test rax, rax ; +0x31a, 0x14012210a jz short loc_140122146 ; +0x31d, 0x14012210d lea rax, DropdownListPopup__onRowSelected ; +0x31f, 0x14012210f mov [rsp+0C8h+var_A8], rax ; +0x326, 0x140122116 mov r9, rbp ; +0x32b, 0x14012211b xor r8d, r8d ; +0x32e, 0x14012211e mov rdx, rbx ; +0x331, 0x140122121 mov rcx, r14 ; +0x334, 0x140122124 call CCMenuItemSpriteExtra__init ; +0x337, 0x140122127 mov rcx, r14 ; +0x33c, 0x14012212c test al, al ; +0x33f, 0x14012212f jz short loc_14012213B ; +0x341, 0x140122131 call cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x343, 0x140122133 jmp short loc_140122149 ; +0x349, 0x140122139 mov rax, [r14] ; +0x34b, 0x14012213b mov edx, 1 ; +0x34e, 0x14012213e call qword ptr [rax+8] ; +0x353, 0x140122143 xor r14d, r14d ; +0x356, 0x140122146 mov [rsp+0C8h+arg_8], r14 ; +0x359, 0x140122149 mov rdx, [rbp+298h] ; +0x361, 0x140122151 mov rax, [r14] ; +0x368, 0x140122158 mov edx, [rdx+r13] ; +0x36b, 0x14012215b mov rcx, r14 ; +0x36f, 0x14012215f call qword ptr [rax+40h] ; +0x372, 0x140122162 mov rbx, [r14] ; +0x375, 0x140122165 movss xmm1, dword ptr [rbp+334h] ; +0x378, 0x140122168 subss xmm1, xmm9 ; +0x380, 0x140122170 movss xmm2, dword ptr [rbp+338h] ; +0x385, 0x140122175 lea rcx, [rsp+0C8h+arg_18] ; +0x38d, 0x14012217d call cs:??0CCSize@cocos2d@@QEAA@MM@Z; cocos2d::CCSize::CCSize(float,float) ; +0x395, 0x140122185 mov rdx, rax ; +0x39b, 0x14012218b mov rcx, r14 ; +0x39e, 0x14012218e call qword ptr [rbx+138h] ; +0x3a1, 0x140122191 mov dword ptr [r14+174h], 3F800000h ; +0x3a7, 0x140122197 mov word ptr [r14+198h], 100h ; +0x3b2, 0x1401221a2 mov dword ptr [r14+1E0h], 3F000000h ; +0x3bc, 0x1401221ac movss xmm1, dword ptr [rbp+338h] ; +0x3c7, 0x1401221b7 movaps xmm6, xmm7 ; +0x3cf, 0x1401221bf addss xmm6, dword ptr [rbp+374h] ; +0x3d2, 0x1401221c2 subss xmm6, dword ptr [rbp+33Ch] ; +0x3da, 0x1401221ca movaps xmm0, xmm1 ; +0x3e2, 0x1401221d2 mulss xmm0, xmm8 ; +0x3e5, 0x1401221d5 subss xmm6, xmm0 ; +0x3ea, 0x1401221da mov eax, edi ; +0x3ee, 0x1401221de cmp byte ptr [rbp+398h], 0 ; +0x3f0, 0x1401221e0 cmovz eax, r12d ; +0x3f7, 0x1401221e7 movd xmm0, eax ; +0x3fb, 0x1401221eb cvtdq2ps xmm0, xmm0 ; +0x3ff, 0x1401221ef mulss xmm0, xmm1 ; +0x402, 0x1401221f2 subss xmm6, xmm0 ; +0x406, 0x1401221f6 mov rcx, [rbp+228h] ; +0x40a, 0x1401221fa mov rax, [rcx] ; +0x411, 0x140122201 mov rdx, r14 ; +0x414, 0x140122204 call qword ptr [rax+1D0h] ; +0x417, 0x140122207 mov rdi, [r14] ; +0x41d, 0x14012220d mov rbx, [rbp+228h] ; +0x420, 0x140122210 movaps xmm2, xmm6 ; +0x427, 0x140122217 movss xmm1, dword ptr [rbp+370h] ; +0x42a, 0x14012221a lea rcx, [rsp+0C8h+var_98] ; +0x432, 0x140122222 call cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x437, 0x140122227 mov r8, rax ; +0x43d, 0x14012222d lea rdx, [rsp+0C8h+var_90] ; +0x440, 0x140122230 mov rcx, rbx ; +0x445, 0x140122235 call cs:?convertToNodeSpace@CCNode@cocos2d@@QEAA?AVCCPoint@2@AEBV32@@Z; cocos2d::CCNode::convertToNodeSpace(cocos2d::CCPoint const &) ; +0x448, 0x140122238 mov rdx, rax ; +0x44e, 0x14012223e mov rcx, r14 ; +0x451, 0x140122241 call qword ptr [rdi+0B8h] ; +0x454, 0x140122244 mov rdx, [rsi+8] ; +0x45a, 0x14012224a cmp rdx, [rsi+10h] ; +0x45e, 0x14012224e jz short loc_14012225E ; +0x462, 0x140122252 mov [rdx], r14 ; +0x464, 0x140122254 add qword ptr [rsi+8], 8 ; +0x467, 0x140122257 jmp short loc_14012226E ; +0x46c, 0x14012225c lea r8, [rsp+0C8h+arg_8] ; +0x46e, 0x14012225e mov rcx, rsi ; +0x476, 0x140122266 call sub_1400699B0 ; +0x479, 0x140122269 inc r12d ; +0x47e, 0x14012226e mov edi, dword ptr [rsp+0C8h+arg_0] ; +0x481, 0x140122271 dec edi ; +0x488, 0x140122278 mov dword ptr [rsp+0C8h+arg_0], edi ; +0x48a, 0x14012227a add r13, 48h ; 'H' ; +0x491, 0x140122281 sub r15, 1 ; +0x495, 0x140122285 lea r8, [rbp+2E0h] ; +0x499, 0x140122289 jnz loc_1401220D0 ; +0x4a0, 0x140122290 movaps xmm6, [rsp+0C8h+var_58] ; +0x4a6, 0x140122296 movaps xmm7, [rsp+0C8h+var_68] ; +0x4ab, 0x14012229b movaps xmm8, [rsp+0C8h+var_78] ; +0x4b0, 0x1401222a0 movaps xmm9, [rsp+0C8h+var_88] ; +0x4b6, 0x1401222a6 add rsp, 88h ; +0x4bc, 0x1401222ac pop r15 ; +0x4c3, 0x1401222b3 pop r14 ; +0x4c5, 0x1401222b5 pop r13 ; +0x4c7, 0x1401222b7 pop r12 ; +0x4c9, 0x1401222b9 pop rdi ; +0x4cb, 0x1401222bb pop rsi ; +0x4cc, 0x1401222bc pop rbp ; +0x4cd, 0x1401222bd pop rbx ; +0x4ce, 0x1401222be retn ; +0x4cf, 0x1401222bf