; ; FriendsProfilePage::setupUsersBrowser from 0x1401404b0 to 0x140140803 (851 bytes) ; ; 4 xrefs: ; > FriendsProfilePage::init @ 0x140140435 ; > FriendsProfilePage::getUserListFinished @ 0x14014085c ; > FriendsProfilePage::forceReloadList @ 0x140140a1c ; > @ 0x1406ca2a8 ; ; 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_18], rbx ; +0x0, 0x1401404b0 push rbp ; +0x5, 0x1401404b5 push rsi ; +0x6, 0x1401404b6 push rdi ; +0x7, 0x1401404b7 sub rsp, 50h ; +0x8, 0x1401404b8 movaps [rsp+68h+var_28], xmm7 ; +0xc, 0x1401404bc mov ebp, r8d ; +0x11, 0x1401404c1 mov rdi, rdx ; +0x14, 0x1401404c4 mov rsi, rcx ; +0x17, 0x1401404c7 xor ebx, ebx ; +0x1a, 0x1401404ca cmp [rcx+2B0h], rbx ; +0x1c, 0x1401404cc jz short loc_14014050F ; +0x23, 0x1401404d3 call cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x25, 0x1401404d5 mov r9, [rax] ; +0x2b, 0x1401404db mov rcx, rax ; +0x2e, 0x1401404de call qword ptr [r9+90h] ; +0x31, 0x1401404e1 mov rcx, rax ; +0x38, 0x1401404e8 mov rdx, [rsi+2B0h] ; +0x3b, 0x1401404eb call cs:?unregisterForcePrio@CCTouchDispatcher@cocos2d@@QEAAXPEAVCCObject@2@@Z; cocos2d::CCTouchDispatcher::unregisterForcePrio(cocos2d::CCObject *) ; +0x42, 0x1401404f2 mov rcx, [rsi+2B0h] ; +0x48, 0x1401404f8 mov rax, [rcx] ; +0x4f, 0x1401404ff call qword ptr [rax+200h] ; +0x52, 0x140140502 mov [rsi+2B0h], rbx ; +0x58, 0x140140508 call cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x5f, 0x14014050f mov rcx, rax ; +0x65, 0x140140515 lea rdx, [rsp+68h+arg_0] ; +0x68, 0x140140518 call cs:?getWinSize@CCDirector@cocos2d@@QEAA?AVCCSize@2@XZ; cocos2d::CCDirector::getWinSize(void) ; +0x6d, 0x14014051d movss xmm7, cs:dword_1406233CC ; +0x73, 0x140140523 test rdi, rdi ; +0x7b, 0x14014052b jz short loc_140140564 ; +0x7e, 0x14014052e mov eax, 11h ; +0x80, 0x140140530 mov ecx, 2 ; +0x85, 0x140140535 test ebp, ebp ; +0x8a, 0x14014053a cmovz eax, ecx ; +0x8c, 0x14014053c xorps xmm0, xmm0 ; +0x8f, 0x14014053f movss [rsp+68h+var_38], xmm0 ; +0x92, 0x140140542 mov [rsp+68h+var_40], eax ; +0x98, 0x140140548 movss xmm3, cs:dword_140623460 ; +0x9c, 0x14014054c movaps xmm2, xmm7 ; +0xa4, 0x140140554 xor edx, edx ; +0xa7, 0x140140557 mov rcx, rdi ; +0xa9, 0x140140559 call CustomListView__create ; +0xac, 0x14014055c mov rbx, rax ; +0xb1, 0x140140561 mov [rsp+68h+arg_10], 0FF3E72BFh ; +0xb4, 0x140140564 mov byte ptr [rsp+68h+var_40], 0 ; +0xbf, 0x14014056f movss [rsp+68h+var_48], xmm7 ; +0xc4, 0x140140574 movss xmm3, cs:dword_140623460 ; +0xca, 0x14014057a mov r8d, [rsp+68h+arg_10] ; +0xd2, 0x140140582 mov rcx, rbx ; +0xda, 0x14014058a call GJCommentListLayer__create ; +0xdd, 0x14014058d mov [rsi+2B0h], rax ; +0xe2, 0x140140592 mov rcx, [rsi+240h] ; +0xe9, 0x140140599 mov r8, [rcx] ; +0xf0, 0x1401405a0 mov rdx, rax ; +0xf3, 0x1401405a3 call qword ptr [r8+1C0h] ; +0xf6, 0x1401405a6 movss xmm1, [rsp+68h+arg_0] ; +0xfd, 0x1401405ad subss xmm1, cs:dword_140623460 ; +0x103, 0x1401405b3 mulss xmm1, cs:dword_140622B08 ; +0x10b, 0x1401405bb movss xmm2, [rsp+68h+arg_4] ; +0x113, 0x1401405c3 subss xmm2, xmm7 ; +0x119, 0x1401405c9 mulss xmm2, cs:dword_140622B08 ; +0x11d, 0x1401405cd subss xmm2, cs:flt_14062307C ; +0x125, 0x1401405d5 mov rax, [rsi+2B0h] ; +0x12d, 0x1401405dd mov rbx, [rax] ; +0x134, 0x1401405e4 addss xmm2, cs:flt_140623010 ; +0x137, 0x1401405e7 lea rcx, [rsp+68h+arg_8] ; +0x13f, 0x1401405ef call cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x144, 0x1401405f4 mov rdx, rax ; +0x14a, 0x1401405fa mov rcx, [rsi+2B0h] ; +0x14d, 0x1401405fd call qword ptr [rbx+0B8h] ; +0x154, 0x140140604 test ebp, ebp ; +0x15a, 0x14014060a jnz short loc_140140664 ; +0x15c, 0x14014060c test rdi, rdi ; +0x15e, 0x14014060e jz short loc_140140664 ; +0x161, 0x140140611 mov rcx, rdi ; +0x163, 0x140140613 call cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x166, 0x140140616 test eax, eax ; +0x16c, 0x14014061c jz short loc_140140664 ; +0x16e, 0x14014061e mov rax, [rsi+2A8h] ; +0x170, 0x140140620 mov rbx, [rax+168h] ; +0x177, 0x140140627 mov rcx, rdi ; +0x17e, 0x14014062e call cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x181, 0x140140631 mov edx, eax ; +0x187, 0x140140637 lea rcx, aTotalFriendsI; "Total friends: %i" ; +0x189, 0x140140639 call cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0x190, 0x140140640 mov rcx, rax ; +0x196, 0x140140646 call cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0x199, 0x140140649 mov rdx, rax ; +0x19f, 0x14014064f mov rcx, [rsi+2A8h] ; +0x1a2, 0x140140652 add rcx, 168h ; +0x1a9, 0x140140659 call qword ptr [rbx] ; +0x1b0, 0x140140660 jmp short loc_14014068F ; +0x1b2, 0x140140662 mov rcx, [rsi+2A8h] ; +0x1b4, 0x140140664 add rcx, 168h ; +0x1bb, 0x14014066b mov rax, [rcx] ; +0x1c2, 0x140140672 lea rdx, asc_140518984; " " ; +0x1c5, 0x140140675 call qword ptr [rax] ; +0x1cc, 0x14014067c test ebp, ebp ; +0x1ce, 0x14014067e jnz loc_1401407EE ; +0x1d0, 0x140140680 test rdi, rdi ; +0x1d6, 0x140140686 jz loc_1401407EE ; +0x1d9, 0x140140689 mov rcx, rdi ; +0x1df, 0x14014068f call cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x1e2, 0x140140692 test eax, eax ; +0x1e8, 0x140140698 jz loc_1401407EE ; +0x1ea, 0x14014069a mov rcx, cs:qword_1406C2ED8 ; +0x1f0, 0x1401406a0 test rcx, rcx ; +0x1f7, 0x1401406a7 jnz short loc_1401406DB ; +0x1fa, 0x1401406aa mov ecx, 668h; Size ; +0x1fc, 0x1401406ac call ??2@YAPEAX_K@Z; operator new(unsigned __int64) ; +0x201, 0x1401406b1 mov [rsp+68h+arg_8], rax ; +0x206, 0x1401406b6 mov rcx, rax ; +0x20b, 0x1401406bb call sub_14017AB00 ; +0x20e, 0x1401406be nop ; +0x213, 0x1401406c3 mov cs:qword_1406C2ED8, rax ; +0x214, 0x1401406c4 mov rdx, [rax] ; +0x21b, 0x1401406cb mov rcx, rax ; +0x21e, 0x1401406ce call qword ptr [rdx+48h] ; +0x221, 0x1401406d1 mov rcx, cs:qword_1406C2ED8 ; +0x224, 0x1401406d4 mov r8d, 64h ; 'd' ; +0x22b, 0x1401406db lea rdx, aGeometryAchFri; "geometry.ach.friends01" ; +0x231, 0x1401406e1 call GameManager__reportAchievementWithID ; +0x238, 0x1401406e8 mov rcx, rdi ; +0x23d, 0x1401406ed call cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x240, 0x1401406f0 mov ebx, eax ; +0x246, 0x1401406f6 cmp eax, 0Ah ; +0x248, 0x1401406f8 jl short loc_14014074A ; +0x24b, 0x1401406fb mov rcx, cs:qword_1406C2ED8 ; +0x24d, 0x1401406fd test rcx, rcx ; +0x254, 0x140140704 jnz short loc_140140738 ; +0x257, 0x140140707 mov ecx, 668h; Size ; +0x259, 0x140140709 call ??2@YAPEAX_K@Z; operator new(unsigned __int64) ; +0x25e, 0x14014070e mov [rsp+68h+arg_8], rax ; +0x263, 0x140140713 mov rcx, rax ; +0x268, 0x140140718 call sub_14017AB00 ; +0x26b, 0x14014071b nop ; +0x270, 0x140140720 mov cs:qword_1406C2ED8, rax ; +0x271, 0x140140721 mov rdx, [rax] ; +0x278, 0x140140728 mov rcx, rax ; +0x27b, 0x14014072b call qword ptr [rdx+48h] ; +0x27e, 0x14014072e mov rcx, cs:qword_1406C2ED8 ; +0x281, 0x140140731 mov r8d, 64h ; 'd' ; +0x288, 0x140140738 lea rdx, aGeometryAchFri_0; "geometry.ach.friends02" ; +0x28e, 0x14014073e call GameManager__reportAchievementWithID ; +0x295, 0x140140745 cmp ebx, 19h ; +0x29a, 0x14014074a jl short loc_14014079C ; +0x29d, 0x14014074d mov rcx, cs:qword_1406C2ED8 ; +0x29f, 0x14014074f test rcx, rcx ; +0x2a6, 0x140140756 jnz short loc_14014078A ; +0x2a9, 0x140140759 mov ecx, 668h; Size ; +0x2ab, 0x14014075b call ??2@YAPEAX_K@Z; operator new(unsigned __int64) ; +0x2b0, 0x140140760 mov [rsp+68h+arg_8], rax ; +0x2b5, 0x140140765 mov rcx, rax ; +0x2ba, 0x14014076a call sub_14017AB00 ; +0x2bd, 0x14014076d nop ; +0x2c2, 0x140140772 mov cs:qword_1406C2ED8, rax ; +0x2c3, 0x140140773 mov rdx, [rax] ; +0x2ca, 0x14014077a mov rcx, rax ; +0x2cd, 0x14014077d call qword ptr [rdx+48h] ; +0x2d0, 0x140140780 mov rcx, cs:qword_1406C2ED8 ; +0x2d3, 0x140140783 mov r8d, 64h ; 'd' ; +0x2da, 0x14014078a lea rdx, aGeometryAchFri_1; "geometry.ach.friends03" ; +0x2e0, 0x140140790 call GameManager__reportAchievementWithID ; +0x2e7, 0x140140797 cmp ebx, 32h ; '2' ; +0x2ec, 0x14014079c jl short loc_1401407EE ; +0x2ef, 0x14014079f mov rcx, cs:qword_1406C2ED8 ; +0x2f1, 0x1401407a1 test rcx, rcx ; +0x2f8, 0x1401407a8 jnz short loc_1401407DC ; +0x2fb, 0x1401407ab mov ecx, 668h; Size ; +0x2fd, 0x1401407ad call ??2@YAPEAX_K@Z; operator new(unsigned __int64) ; +0x302, 0x1401407b2 mov [rsp+68h+arg_8], rax ; +0x307, 0x1401407b7 mov rcx, rax ; +0x30c, 0x1401407bc call sub_14017AB00 ; +0x30f, 0x1401407bf nop ; +0x314, 0x1401407c4 mov cs:qword_1406C2ED8, rax ; +0x315, 0x1401407c5 mov rdx, [rax] ; +0x31c, 0x1401407cc mov rcx, rax ; +0x31f, 0x1401407cf call qword ptr [rdx+48h] ; +0x322, 0x1401407d2 mov rcx, cs:qword_1406C2ED8 ; +0x325, 0x1401407d5 mov r8d, 64h ; 'd' ; +0x32c, 0x1401407dc lea rdx, aGeometryAchFri_2; "geometry.ach.friends04" ; +0x332, 0x1401407e2 call GameManager__reportAchievementWithID ; +0x339, 0x1401407e9 mov rbx, [rsp+68h+arg_18] ; +0x33e, 0x1401407ee movaps xmm7, [rsp+68h+var_28] ; +0x346, 0x1401407f6 add rsp, 50h ; +0x34b, 0x1401407fb pop rdi ; +0x34f, 0x1401407ff pop rsi ; +0x350, 0x140140800 pop rbp ; +0x351, 0x140140801 retn ; +0x352, 0x140140802