; ; GameLevelManager::deleteFriendRequests from 0x140160b70 to 0x140160f66 (1014 bytes) ; ; 6 xrefs: ; > GJUserCell::FLAlert_Clicked @ 0x1400bbe34 ; > GJRequestCell::FLAlert_Clicked @ 0x1400bd015 ; > FRequestProfilePage::deleteSelected @ 0x14013eb9a ; > FriendRequestPopup::onRemove @ 0x140296cab ; > ProfilePage::FLAlert_Clicked @ 0x1403c4b84 ; > @ 0x1406cab60 ; ; 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, 0x140160b70 push rbx ; +0x2, 0x140160b72 push rsi ; +0x3, 0x140160b73 push rdi ; +0x4, 0x140160b74 push r12 ; +0x5, 0x140160b75 push r13 ; +0x7, 0x140160b77 push r14 ; +0x9, 0x140160b79 push r15 ; +0xb, 0x140160b7b lea rbp, [rsp-1Fh] ; +0xd, 0x140160b7d sub rsp, 0E8h ; +0x12, 0x140160b82 mov rax, cs:__security_cookie ; +0x19, 0x140160b89 xor rax, rsp ; +0x20, 0x140160b90 mov [rbp+57h+var_48], rax ; +0x23, 0x140160b93 movzx ebx, r9b ; +0x27, 0x140160b97 mov rsi, r8 ; +0x2b, 0x140160b9b mov edi, edx ; +0x2e, 0x140160b9e mov r13, rcx ; +0x30, 0x140160ba0 test r8, r8 ; +0x33, 0x140160ba3 jz short loc_140160BC9 ; +0x36, 0x140160ba6 mov rcx, r8 ; +0x38, 0x140160ba8 call cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x3b, 0x140160bab cmp eax, 1 ; +0x41, 0x140160bb1 jnz short loc_140160BC9 ; +0x44, 0x140160bb4 xor edx, edx ; +0x46, 0x140160bb6 mov rcx, rsi ; +0x48, 0x140160bb8 call cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x4b, 0x140160bbb mov edi, [rax+188h] ; +0x51, 0x140160bc1 xor esi, esi ; +0x57, 0x140160bc7 test edi, edi ; +0x59, 0x140160bc9 jg short loc_140160BE7 ; +0x5b, 0x140160bcb test rsi, rsi ; +0x5d, 0x140160bcd jz loc_140160C9E ; +0x60, 0x140160bd0 mov rcx, rsi ; +0x66, 0x140160bd6 call cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x69, 0x140160bd9 test eax, eax ; +0x6f, 0x140160bdf jz loc_140160C9E ; +0x71, 0x140160be1 mov r12d, ebx ; +0x77, 0x140160be7 mov edx, edi ; +0x7a, 0x140160bea mov rbx, 0FFFFFFFFFFFFFFFFh ; +0x7c, 0x140160bec test rsi, rsi ; +0x83, 0x140160bf3 cmovnz edx, ebx ; +0x86, 0x140160bf6 mov r8d, r12d ; +0x89, 0x140160bf9 lea rcx, aDelfriendreqII; "delFriendReq_%i_%i" ; +0x8c, 0x140160bfc call cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0x93, 0x140160c03 mov rcx, rax ; +0x99, 0x140160c09 call cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0x9c, 0x140160c0c mov r14, rax ; +0xa2, 0x140160c12 xorps xmm0, xmm0 ; +0xa5, 0x140160c15 movups xmmword ptr [rbp+57h+Block], xmm0 ; +0xa8, 0x140160c18 xorps xmm1, xmm1 ; +0xac, 0x140160c1c movdqu [rbp+57h+var_98], xmm1 ; +0xaf, 0x140160c1f mov r8, rbx ; +0xb4, 0x140160c24 nop word ptr [rax+rax+00000000h] ; +0xb7, 0x140160c27 inc r8 ; +0xc0, 0x140160c30 cmp byte ptr [rax+r8], 0 ; +0xc3, 0x140160c33 jnz short loc_140160C30 ; +0xc8, 0x140160c38 mov rdx, r14 ; +0xca, 0x140160c3a lea rcx, [rbp+57h+Block] ; +0xcd, 0x140160c3d call sub_14003A930 ; +0xd1, 0x140160c41 nop ; +0xd6, 0x140160c46 lea rdx, [rbp+57h+Block] ; +0xd7, 0x140160c47 mov rcx, [r13+250h] ; +0xdb, 0x140160c4b call cs:?objectForKey@CCDictionary@cocos2d@@QEAAPEAVCCObject@2@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z; cocos2d::CCDictionary::objectForKey(std::string const &) ; +0xe2, 0x140160c52 mov r15, rax ; +0xe8, 0x140160c58 mov rdx, qword ptr [rbp+57h+var_98+8] ; +0xeb, 0x140160c5b cmp rdx, 0Fh ; +0xef, 0x140160c5f jbe short loc_140160C99 ; +0xf3, 0x140160c63 inc rdx ; +0xf5, 0x140160c65 mov rcx, [rbp+57h+Block]; Block ; +0xf8, 0x140160c68 mov rax, rcx ; +0xfc, 0x140160c6c cmp rdx, 1000h ; +0xff, 0x140160c6f jb short loc_140160C94 ; +0x106, 0x140160c76 add rdx, 27h ; ''' ; +0x108, 0x140160c78 mov rcx, [rcx-8] ; +0x10c, 0x140160c7c sub rax, rcx ; +0x110, 0x140160c80 add rax, 0FFFFFFFFFFFFFFF8h ; +0x113, 0x140160c83 cmp rax, 1Fh ; +0x117, 0x140160c87 jbe short loc_140160C94 ; +0x11b, 0x140160c8b call cs:_invalid_parameter_noinfo_noreturn ; +0x11d, 0x140160c8d align 4 ; +0x123, 0x140160c93 call j_j_free ; +0x124, 0x140160c94 test r15, r15 ; +0x129, 0x140160c99 jz short loc_140160CA5 ; +0x12c, 0x140160c9c xor al, al ; +0x12e, 0x140160c9e jmp loc_140160F46 ; +0x130, 0x140160ca0 xorps xmm0, xmm0 ; +0x135, 0x140160ca5 movups [rbp+57h+var_88], xmm0 ; +0x138, 0x140160ca8 xorps xmm1, xmm1 ; +0x13c, 0x140160cac movdqu [rbp+57h+var_78], xmm1 ; +0x13f, 0x140160caf mov r8, rbx ; +0x144, 0x140160cb4 nop word ptr [rax+rax+00000000h] ; +0x147, 0x140160cb7 inc r8 ; +0x150, 0x140160cc0 cmp byte ptr [r14+r8], 0 ; +0x153, 0x140160cc3 jnz short loc_140160CC0 ; +0x158, 0x140160cc8 mov rdx, r14 ; +0x15a, 0x140160cca lea rcx, [rbp+57h+var_88] ; +0x15d, 0x140160ccd call sub_14003A930 ; +0x161, 0x140160cd1 nop ; +0x166, 0x140160cd6 call cs:?create@CCNode@cocos2d@@SAPEAV12@XZ; cocos2d::CCNode::create(void) ; +0x167, 0x140160cd7 mov rdx, rax ; +0x16d, 0x140160cdd lea r8, [rbp+57h+var_88] ; +0x170, 0x140160ce0 mov rcx, [r13+250h] ; +0x174, 0x140160ce4 call cs:?setObject@CCDictionary@cocos2d@@QEAAXPEAVCCObject@2@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z; cocos2d::CCDictionary::setObject(cocos2d::CCObject *,std::string const &) ; +0x17b, 0x140160ceb nop ; +0x181, 0x140160cf1 lea rcx, [rbp+57h+var_88] ; +0x182, 0x140160cf2 call sub_14003A830 ; +0x186, 0x140160cf6 lea rdx, [rbp+57h+Src] ; +0x18b, 0x140160cfb call GameLevelManager__getBasePostString ; +0x18f, 0x140160cff nop ; +0x194, 0x140160d04 lea rax, word_140531E88 ; +0x195, 0x140160d05 mov [rsp+120h+var_F0], rax ; +0x19c, 0x140160d0c mov [rsp+120h+var_F8], 62h ; 'b' ; +0x1a1, 0x140160d11 mov [rsp+120h+var_100], 67h ; 'g' ; +0x1a9, 0x140160d19 lea r9, a2893; "2893" ; +0x1b1, 0x140160d21 lea r8, aMfd; "mfd" ; +0x1b8, 0x140160d28 mov edx, 57h ; 'W' ; +0x1bf, 0x140160d2f lea rcx, aCSSCCS; "%c%s%s%c%c%s" ; +0x1c4, 0x140160d34 call cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0x1cb, 0x140160d3b mov rcx, rax ; +0x1d1, 0x140160d41 call cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0x1d4, 0x140160d44 mov r9, rax ; +0x1da, 0x140160d4a mov r8d, r12d ; +0x1dd, 0x140160d4d mov edx, edi ; +0x1e0, 0x140160d50 lea rcx, aTargetaccounti_1; "&targetAccountID=%i&isSender=%i&secret="... ; +0x1e2, 0x140160d52 call cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0x1e9, 0x140160d59 mov rcx, rax ; +0x1ef, 0x140160d5f call cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0x1f2, 0x140160d62 mov r8, rbx ; +0x1f8, 0x140160d68 nop dword ptr [rax+rax+00h] ; +0x1fb, 0x140160d6b inc r8; Size ; +0x200, 0x140160d70 cmp byte ptr [rax+r8], 0 ; +0x203, 0x140160d73 jnz short loc_140160D70 ; +0x208, 0x140160d78 mov rdx, rax; void * ; +0x20a, 0x140160d7a lea rcx, [rbp+57h+Src]; Src ; +0x20d, 0x140160d7d call sub_140041270 ; +0x211, 0x140160d81 test rsi, rsi ; +0x216, 0x140160d86 jz loc_140160E25 ; +0x219, 0x140160d89 mov r8d, 0Ah; Size ; +0x21f, 0x140160d8f lea rdx, aAccounts; "&accounts=" ; +0x225, 0x140160d95 lea rcx, [rbp+57h+Src]; Src ; +0x22c, 0x140160d9c call sub_140041270 ; +0x230, 0x140160da0 xor edi, edi ; +0x235, 0x140160da5 mov rcx, rsi ; +0x237, 0x140160da7 call cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x23a, 0x140160daa test eax, eax ; +0x240, 0x140160db0 jz short loc_140160E25 ; +0x242, 0x140160db2 mov edx, edi ; +0x244, 0x140160db4 mov rcx, rsi ; +0x246, 0x140160db6 call cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x249, 0x140160db9 mov r15, rax ; +0x24f, 0x140160dbf test edi, edi ; +0x252, 0x140160dc2 jz short loc_140160DDC ; +0x254, 0x140160dc4 mov r8d, 1; Size ; +0x256, 0x140160dc6 lea rdx, asc_140533704; "," ; +0x25c, 0x140160dcc lea rcx, [rbp+57h+Src]; Src ; +0x263, 0x140160dd3 call sub_140041270 ; +0x267, 0x140160dd7 mov edx, [r15+188h] ; +0x26c, 0x140160ddc lea rcx, aI_11; "%i" ; +0x273, 0x140160de3 call cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0x27a, 0x140160dea mov rcx, rax ; +0x280, 0x140160df0 call cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0x283, 0x140160df3 mov r8, rbx ; +0x289, 0x140160df9 nop dword ptr [rax+00h] ; +0x28c, 0x140160dfc inc r8; Size ; +0x290, 0x140160e00 cmp byte ptr [rax+r8], 0 ; +0x293, 0x140160e03 jnz short loc_140160E00 ; +0x298, 0x140160e08 mov rdx, rax; void * ; +0x29a, 0x140160e0a lea rcx, [rbp+57h+Src]; Src ; +0x29d, 0x140160e0d call sub_140041270 ; +0x2a1, 0x140160e11 inc edi ; +0x2a6, 0x140160e16 mov rcx, rsi ; +0x2a8, 0x140160e18 call cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x2ab, 0x140160e1b cmp edi, eax ; +0x2b1, 0x140160e21 jb short loc_140160DB4 ; +0x2b3, 0x140160e23 lea rax, [rsp+120h+var_E0] ; +0x2b5, 0x140160e25 mov [rbp+57h+var_C0], rax ; +0x2ba, 0x140160e2a lea rax, [rbp+57h+var_88] ; +0x2be, 0x140160e2e mov [rbp+57h+var_B8], rax ; +0x2c2, 0x140160e32 xorps xmm0, xmm0 ; +0x2c6, 0x140160e36 movups [rsp+120h+var_E0], xmm0 ; +0x2c9, 0x140160e39 xor edi, edi ; +0x2ce, 0x140160e3e mov [rbp+57h+var_D0], rdi ; +0x2d0, 0x140160e40 mov [rbp+57h+var_C8], rdi ; +0x2d4, 0x140160e44 mov r8, rbx ; +0x2d8, 0x140160e48 nop dword ptr [rax+rax+00h] ; +0x2db, 0x140160e4b inc r8 ; +0x2e0, 0x140160e50 cmp [r14+r8], dil ; +0x2e3, 0x140160e53 jnz short loc_140160E50 ; +0x2e7, 0x140160e57 mov rdx, r14 ; +0x2e9, 0x140160e59 lea rcx, [rsp+120h+var_E0] ; +0x2ec, 0x140160e5c call sub_14003A930 ; +0x2f1, 0x140160e61 nop ; +0x2f6, 0x140160e66 lea rdx, [rbp+57h+Src] ; +0x2f7, 0x140160e67 cmp [rbp+57h+var_50], 0Fh ; +0x2fb, 0x140160e6b cmova rdx, [rbp+57h+Src] ; +0x300, 0x140160e70 xorps xmm0, xmm0 ; +0x305, 0x140160e75 movups [rbp+57h+var_88], xmm0 ; +0x308, 0x140160e78 mov qword ptr [rbp+57h+var_78], rdi ; +0x30c, 0x140160e7c mov qword ptr [rbp+57h+var_78+8], rdi ; +0x310, 0x140160e80 inc rbx ; +0x314, 0x140160e84 cmp byte ptr [rdx+rbx], 0 ; +0x317, 0x140160e87 jnz short loc_140160E84 ; +0x31b, 0x140160e8b mov r8, rbx ; +0x31d, 0x140160e8d lea rcx, [rbp+57h+var_88] ; +0x320, 0x140160e90 call sub_14003A930 ; +0x324, 0x140160e94 nop ; +0x329, 0x140160e99 xorps xmm0, xmm0 ; +0x32a, 0x140160e9a movups xmmword ptr [rbp+57h+Block], xmm0 ; +0x32d, 0x140160e9d mov qword ptr [rbp+57h+var_98], rdi ; +0x331, 0x140160ea1 mov qword ptr [rbp+57h+var_98+8], 0Fh ; +0x335, 0x140160ea5 mov ecx, 40h ; '@' ; +0x33d, 0x140160ead call sub_14003AA10 ; +0x342, 0x140160eb2 mov rdx, rax ; +0x347, 0x140160eb7 mov [rbp+57h+Block], rax ; +0x34a, 0x140160eba mov qword ptr [rbp+57h+var_98], 3Fh ; '?' ; +0x34e, 0x140160ebe mov qword ptr [rbp+57h+var_98+8], 3Fh ; '?' ; +0x356, 0x140160ec6 movaps xmm0, cs:xmmword_140559E10 ; +0x35e, 0x140160ece movups xmmword ptr [rax], xmm0 ; +0x365, 0x140160ed5 movaps xmm1, cs:xmmword_140559E20 ; +0x368, 0x140160ed8 movups xmmword ptr [rax+10h], xmm1 ; +0x36f, 0x140160edf movaps xmm0, cs:xmmword_140559E30 ; +0x373, 0x140160ee3 movups xmmword ptr [rax+20h], xmm0 ; +0x37a, 0x140160eea movsd xmm0, cs:qword_140559E40 ; +0x37e, 0x140160eee movsd qword ptr [rax+30h], xmm0 ; +0x386, 0x140160ef6 mov eax, cs:dword_140559E48 ; +0x38b, 0x140160efb mov [rdx+38h], eax ; +0x391, 0x140160f01 movzx eax, cs:word_140559E4C ; +0x394, 0x140160f04 mov [rdx+3Ch], ax ; +0x39b, 0x140160f0b movzx eax, cs:byte_140559E4E ; +0x39f, 0x140160f0f mov [rdx+3Eh], al ; +0x3a6, 0x140160f16 mov byte ptr [rdx+3Fh], 0 ; +0x3a9, 0x140160f19 mov [rsp+120h+var_100], 1Eh ; +0x3ad, 0x140160f1d lea r9, [rsp+120h+var_E0] ; +0x3b5, 0x140160f25 lea r8, [rbp+57h+var_88] ; +0x3ba, 0x140160f2a lea rdx, [rbp+57h+Block] ; +0x3be, 0x140160f2e mov rcx, r13 ; +0x3c2, 0x140160f32 call GameLevelManager__ProcessHttpRequest ; +0x3c5, 0x140160f35 nop ; +0x3ca, 0x140160f3a lea rcx, [rbp+57h+Src] ; +0x3cb, 0x140160f3b call sub_14003A830 ; +0x3cf, 0x140160f3f mov al, 1 ; +0x3d4, 0x140160f44 mov rcx, [rbp+57h+var_48] ; +0x3d6, 0x140160f46 xor rcx, rsp; StackCookie ; +0x3da, 0x140160f4a call __security_check_cookie ; +0x3dd, 0x140160f4d add rsp, 0E8h ; +0x3e2, 0x140160f52 pop r15 ; +0x3e9, 0x140160f59 pop r14 ; +0x3eb, 0x140160f5b pop r13 ; +0x3ed, 0x140160f5d pop r12 ; +0x3ef, 0x140160f5f pop rdi ; +0x3f1, 0x140160f61 pop rsi ; +0x3f2, 0x140160f62 pop rbx ; +0x3f3, 0x140160f63 pop rbp ; +0x3f4, 0x140160f64 retn ; +0x3f5, 0x140160f65