{"type": "func", "start": 4300553216, "end": 4300553928, "name": "GameLevelManager::getFriendRequests", "pseudocode": "// \n// GameLevelManager::getFriendRequests from 0x100553c00 to 0x100553ec8 (712 bytes)\n// \n// 1 xrefs:\n// > FRequestProfilePage::loadPage @ 0x100791063\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nvoid __fastcall GameLevelManager::getFriendRequests(GameLevelManager *a1, bool a2, int a3, int a4)\n{\n  __m128 v4; // xmm0\n  GameLevelManager *v5; // rbx\n  cocos2d::CCString *v6; // rax\n  const char *CString; // r14\n  cocos2d::CCString *v8; // rax\n  cocos2d::CCString *v9; // rax\n  const char *v10; // rax\n  const char *data; // r15\n  size_t v12; // rax\n  size_t v13; // r12\n  char *v14; // r13\n  size_t v15; // rbx\n  size_t v16; // rax\n  size_t v17; // r15\n  char *v18; // r12\n  GameLevelManager *v19; // r13\n  size_t v20; // rbx\n  char v21; // [rsp+0h] [rbp-A0h]\n  char v22; // [rsp+0h] [rbp-A0h]\n  std::string v23; // [rsp+18h] [rbp-88h] BYREF\n  std::string v24; // [rsp+30h] [rbp-70h] BYREF\n  _QWORD __dst[2]; // [rsp+48h] [rbp-58h] BYREF\n  void *v26; // [rsp+58h] [rbp-48h]\n  _QWORD v27[2]; // [rsp+60h] [rbp-40h] BYREF\n  void *__p; // [rsp+70h] [rbp-30h]\n\n  v5 = a1;\n  v6 = (cocos2d::CCString *)sub_1007AB580(\"fReq_%i_%i\", v21);\n  CString = cocos2d::CCString::getCString(v6);\n  if ( GameLevelManager::isDLActive(a1, CString) )\n    return;\n  GameLevelManager::addDLToActive(a1, CString);\n  GameLevelManager::getBasePostString(&v24, v4);\n  v8 = (cocos2d::CCString *)sub_1007AB580(\"%c%s%s%c%c%s\", (char)\"7\");\n  cocos2d::CCString::getCString(v8);\n  v9 = (cocos2d::CCString *)sub_1007AB580(\"&page=%i&total=%i&secret=%s\", v22);\n  v10 = cocos2d::CCString::getCString(v9);\n  std::string::append(&v24, v10);\n  if ( a2 )\n    std::string::append(&v24, \"&getSent=1\");\n  v23.__r_.__value_.__r.__words[2] = (std::string::size_type)operator new(0x40u);\n  v23.__r_.__value_.__r.__words[0] = 65;\n  v23.__r_.__value_.__l.__size_ = 60;\n  strcpy(v23.__r_.__value_.__l.__data_, \"https://www.boomlings.com/database/getGJFriendRequests20.php\");\n  if ( (*(_BYTE *)&v24.__r_.__value_.__s.0 & 1) != 0 )\n    data = v24.__r_.__value_.__l.__data_;\n  else\n    data = v24.__r_.__value_.__s.__data_;\n  v12 = strlen(data);\n  if ( v12 >= 0xFFFFFFFFFFFFFFF8LL )\n    sub_100006BF0(2.057594829120962e-81);\n  v13 = v12;\n  if ( v12 >= 0x17 )\n  {\n    v15 = 26;\n    if ( (v12 | 7) != 0x17 )\n      v15 = (v12 | 7) + 1;\n    v14 = (char *)operator new(v15);\n    v26 = v14;\n    __dst[0] = v15 | 1;\n    __dst[1] = v13;\n    v5 = a1;\n    goto LABEL_14;\n  }\n  LOBYTE(__dst[0]) = 2 * v12;\n  v14 = (char *)__dst + 1;\n  if ( v12 )\nLABEL_14:\n    memmove(v14, data, v13);\n  v14[v13] = 0;\n  v16 = strlen(CString);\n  if ( v16 >= 0xFFFFFFFFFFFFFFF8LL )\n    sub_100006BF0(2.057594829120962e-81);\n  v17 = v16;\n  if ( v16 >= 0x17 )\n  {\n    v19 = v5;\n    v20 = 26;\n    if ( (v16 | 7) != 0x17 )\n      v20 = (v16 | 7) + 1;\n    v18 = (char *)operator new(v20);\n    __p = v18;\n    v27[0] = v20 | 1;\n    v27[1] = v17;\n    v5 = v19;\n    goto LABEL_22;\n  }\n  LOBYTE(v27[0]) = 2 * v16;\n  v18 = (char *)v27 + 1;\n  if ( v16 )\nLABEL_22:\n    memmove(v18, CString, v17);\n  v18[v17] = 0;\n  GameLevelManager::ProcessHttpRequest(v5, &v23, (__int64)__dst, (__int64)v27, 28);\n  if ( (v27[0] & 1) == 0 )\n  {\n    if ( (__dst[0] & 1) == 0 )\n      goto LABEL_25;\nLABEL_30:\n    operator delete(v26);\n    if ( (*(_BYTE *)&v23.__r_.__value_.__s.0 & 1) == 0 )\n    {\nLABEL_26:\n      if ( (*(_BYTE *)&v24.__r_.__value_.__s.0 & 1) == 0 )\n        return;\n      goto LABEL_27;\n    }\n    goto LABEL_31;\n  }\n  operator delete(__p);\n  if ( (__dst[0] & 1) != 0 )\n    goto LABEL_30;\nLABEL_25:\n  if ( (*(_BYTE *)&v23.__r_.__value_.__s.0 & 1) == 0 )\n    goto LABEL_26;\nLABEL_31:\n  operator delete(v23.__r_.__value_.__l.__data_);\n  if ( (*(_BYTE *)&v24.__r_.__value_.__s.0 & 1) != 0 )\nLABEL_27:\n    operator delete(v24.__r_.__value_.__l.__data_);\n}", "assembly": "; \n; GameLevelManager::getFriendRequests from 0x100553c00 to 0x100553ec8 (712 bytes)\n; \n; 1 xrefs:\n; > FRequestProfilePage::loadPage @ 0x100791063\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\npush    rbp                                                            ; +0x0, 0x100553c00\nmov     rbp, rsp                                                       ; +0x1, 0x100553c01\npush    r15                                                            ; +0x4, 0x100553c04\npush    r14                                                            ; +0x6, 0x100553c06\npush    r13                                                            ; +0x8, 0x100553c08\npush    r12                                                            ; +0xa, 0x100553c0a\npush    rbx                                                            ; +0xc, 0x100553c0c\nsub     rsp, 78h                                                       ; +0xd, 0x100553c0d\nmov     r12d, ecx                                                      ; +0x11, 0x100553c11\nmov     r13d, edx                                                      ; +0x14, 0x100553c14\nmov     r15d, esi                                                      ; +0x17, 0x100553c17\nmov     rbx, rdi                                                       ; +0x1a, 0x100553c1a\nlea     rdi, aFreqII; \"fReq_%i_%i\"                                     ; +0x1d, 0x100553c1d\nxor     eax, eax                                                       ; +0x24, 0x100553c24\ncall    sub_1007AB580                                                  ; +0x26, 0x100553c26\nmov     rdi, rax                                                       ; +0x2b, 0x100553c2b\ncall    cocos2d__CCString__getCString                                  ; +0x2e, 0x100553c2e\nmov     r14, rax                                                       ; +0x33, 0x100553c33\nmov     rdi, rbx                                                       ; +0x36, 0x100553c36\nmov     rsi, rax                                                       ; +0x39, 0x100553c39\ncall    GameLevelManager__isDLActive                                   ; +0x3c, 0x100553c3c\ntest    al, al                                                         ; +0x41, 0x100553c41\njnz     loc_100553E79                                                  ; +0x43, 0x100553c43\nmov     rdi, rbx                                                       ; +0x49, 0x100553c49\nmov     rsi, r14                                                       ; +0x4c, 0x100553c4c\ncall    GameLevelManager__addDLToActive                                ; +0x4f, 0x100553c4f\nlea     rdi, [rbp+var_70]; this                                        ; +0x54, 0x100553c54\ncall    GameLevelManager__getBasePostString                            ; +0x58, 0x100553c58\nlea     rax, a7; \"7\"                                                   ; +0x5d, 0x100553c5d\nmov     qword ptr [rsp+0A0h+var_A0], rax; char                         ; +0x64, 0x100553c64\nlea     rdi, aCSSCCS; \"%c%s%s%c%c%s\"                                   ; +0x68, 0x100553c68\nlea     rdx, aMfd; \"mfd\"                                               ; +0x6f, 0x100553c6f\nlea     rcx, a2893; \"2893\"                                             ; +0x76, 0x100553c76\nmov     esi, 57h ; 'W'                                                 ; +0x7d, 0x100553c7d\nmov     r8d, 67h ; 'g'                                                 ; +0x82, 0x100553c82\nmov     r9d, 62h ; 'b'                                                 ; +0x88, 0x100553c88\nxor     eax, eax                                                       ; +0x8e, 0x100553c8e\ncall    sub_1007AB580                                                  ; +0x90, 0x100553c90\nmov     rdi, rax                                                       ; +0x95, 0x100553c95\ncall    cocos2d__CCString__getCString                                  ; +0x98, 0x100553c98\nlea     rdi, aPageITotalISec; \"&page=%i&total=%i&secret=%s\"            ; +0x9d, 0x100553c9d\nmov     esi, r13d                                                      ; +0xa4, 0x100553ca4\nmov     edx, r12d                                                      ; +0xa7, 0x100553ca7\nmov     rcx, rax                                                       ; +0xaa, 0x100553caa\nxor     eax, eax                                                       ; +0xad, 0x100553cad\ncall    sub_1007AB580                                                  ; +0xaf, 0x100553caf\nmov     rdi, rax                                                       ; +0xb4, 0x100553cb4\ncall    cocos2d__CCString__getCString                                  ; +0xb7, 0x100553cb7\nlea     rdi, [rbp+var_70]; this                                        ; +0xbc, 0x100553cbc\nmov     rsi, rax; __s                                                  ; +0xc0, 0x100553cc0\ncall    __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6appendEPKc; std::string::append(char const*) ; +0xc3, 0x100553cc3\ntest    r15b, r15b                                                     ; +0xc8, 0x100553cc8\njz      short loc_100553CDD                                            ; +0xcb, 0x100553ccb\nlea     rsi, aGetsent1; \"&getSent=1\"                                   ; +0xcd, 0x100553ccd\nlea     rdi, [rbp+var_70]; this                                        ; +0xd4, 0x100553cd4\ncall    __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6appendEPKc; std::string::append(char const*) ; +0xd8, 0x100553cd8\nmov     edi, 40h ; '@'; __sz                                           ; +0xdd, 0x100553cdd\ncall    __Znwm; operator new(ulong)                                    ; +0xe2, 0x100553ce2\nmov     [rbp+var_78], rax                                              ; +0xe7, 0x100553ce7\nmov     [rbp+var_88], 41h ; 'A'                                        ; +0xeb, 0x100553ceb\nmov     [rbp+var_80], 3Ch ; '<'                                        ; +0xf6, 0x100553cf6\nmovups  xmm0, xmmword ptr cs:aHttpsWwwBoomli_49+2Ch; \"ndRequests20.php\" ; +0xfe, 0x100553cfe\nmovups  xmmword ptr [rax+2Ch], xmm0                                    ; +0x105, 0x100553d05\nmovups  xmm0, xmmword ptr cs:aHttpsWwwBoomli_49+20h; \"se/getGJFriendRequests20.php\" ; +0x109, 0x100553d09\nmovups  xmmword ptr [rax+20h], xmm0                                    ; +0x110, 0x100553d10\nmovups  xmm0, xmmword ptr cs:aHttpsWwwBoomli_49+10h; \"lings.com/database/getGJFriendRequests2\"... ; +0x114, 0x100553d14\nmovups  xmmword ptr [rax+10h], xmm0                                    ; +0x11b, 0x100553d1b\nmovups  xmm0, xmmword ptr cs:aHttpsWwwBoomli_49; \"https://www.boomlings.com/database/getG\"... ; +0x11f, 0x100553d1f\nmovups  xmmword ptr [rax], xmm0                                        ; +0x126, 0x100553d26\nmov     byte ptr [rax+3Ch], 0                                          ; +0x129, 0x100553d29\ntest    byte ptr [rbp+var_70.__r_.__value_], 1                         ; +0x12d, 0x100553d2d\njz      short loc_100553D39                                            ; +0x131, 0x100553d31\nmov     r15, qword ptr [rbp+var_70.__r_.__value_+10h]                  ; +0x133, 0x100553d33\njmp     short loc_100553D3D                                            ; +0x137, 0x100553d37\nlea     r15, [rbp+var_70.__r_.__value_+1]                              ; +0x139, 0x100553d39\nmov     rdi, r15; __s                                                  ; +0x13d, 0x100553d3d\ncall    _strlen                                                        ; +0x140, 0x100553d40\ncmp     rax, 0FFFFFFFFFFFFFFF8h                                        ; +0x145, 0x100553d45\njnb     loc_100553EBA                                                  ; +0x149, 0x100553d49\nmov     r12, rax                                                       ; +0x14f, 0x100553d4f\ncmp     rax, 17h                                                       ; +0x152, 0x100553d52\njnb     short loc_100553D6A                                            ; +0x156, 0x100553d56\nlea     eax, [r12+r12]                                                 ; +0x158, 0x100553d58\nmov     byte ptr [rbp+__dst], al                                       ; +0x15c, 0x100553d5c\nlea     r13, [rbp+__dst+1]                                             ; +0x15f, 0x100553d5f\ntest    r12, r12                                                       ; +0x163, 0x100553d63\njnz     short loc_100553DAB                                            ; +0x166, 0x100553d66\njmp     short loc_100553DB9                                            ; +0x168, 0x100553d68\nmov     [rbp+var_90], rbx                                              ; +0x16a, 0x100553d6a\nmov     rax, r12                                                       ; +0x171, 0x100553d71\nor      rax, 7                                                         ; +0x174, 0x100553d74\nlea     rcx, [rax+1]                                                   ; +0x178, 0x100553d78\ncmp     rax, 17h                                                       ; +0x17c, 0x100553d7c\nmov     ebx, 1Ah                                                       ; +0x180, 0x100553d80\ncmovnz  rbx, rcx                                                       ; +0x185, 0x100553d85\nmov     rdi, rbx; __sz                                                 ; +0x189, 0x100553d89\ncall    __Znwm; operator new(ulong)                                    ; +0x18c, 0x100553d8c\nmov     r13, rax                                                       ; +0x191, 0x100553d91\nmov     [rbp+var_48], rax                                              ; +0x194, 0x100553d94\nor      rbx, 1                                                         ; +0x198, 0x100553d98\nmov     [rbp+__dst], rbx                                               ; +0x19c, 0x100553d9c\nmov     [rbp+var_50], r12                                              ; +0x1a0, 0x100553da0\nmov     rbx, [rbp+var_90]                                              ; +0x1a4, 0x100553da4\nmov     rdi, r13; __dst                                                ; +0x1ab, 0x100553dab\nmov     rsi, r15; __src                                                ; +0x1ae, 0x100553dae\nmov     rdx, r12; __len                                                ; +0x1b1, 0x100553db1\ncall    _memmove                                                       ; +0x1b4, 0x100553db4\nmov     byte ptr [r13+r12+0], 0                                        ; +0x1b9, 0x100553db9\nmov     rdi, r14; __s                                                  ; +0x1bf, 0x100553dbf\ncall    _strlen                                                        ; +0x1c2, 0x100553dc2\ncmp     rax, 0FFFFFFFFFFFFFFF8h                                        ; +0x1c7, 0x100553dc7\njnb     loc_100553EC1                                                  ; +0x1cb, 0x100553dcb\nmov     r15, rax                                                       ; +0x1d1, 0x100553dd1\ncmp     rax, 17h                                                       ; +0x1d4, 0x100553dd4\njnb     short loc_100553DEC                                            ; +0x1d8, 0x100553dd8\nlea     eax, [r15+r15]                                                 ; +0x1da, 0x100553dda\nmov     byte ptr [rbp+var_40], al                                      ; +0x1de, 0x100553dde\nlea     r12, [rbp+var_40+1]                                            ; +0x1e1, 0x100553de1\ntest    r15, r15                                                       ; +0x1e5, 0x100553de5\njnz     short loc_100553E25                                            ; +0x1e8, 0x100553de8\njmp     short loc_100553E33                                            ; +0x1ea, 0x100553dea\nmov     r13, rbx                                                       ; +0x1ec, 0x100553dec\nmov     rax, r15                                                       ; +0x1ef, 0x100553def\nor      rax, 7                                                         ; +0x1f2, 0x100553df2\nlea     rcx, [rax+1]                                                   ; +0x1f6, 0x100553df6\ncmp     rax, 17h                                                       ; +0x1fa, 0x100553dfa\nmov     ebx, 1Ah                                                       ; +0x1fe, 0x100553dfe\ncmovnz  rbx, rcx                                                       ; +0x203, 0x100553e03\nmov     rdi, rbx; __sz                                                 ; +0x207, 0x100553e07\ncall    __Znwm; operator new(ulong)                                    ; +0x20a, 0x100553e0a\nmov     r12, rax                                                       ; +0x20f, 0x100553e0f\nmov     [rbp+__p], rax                                                 ; +0x212, 0x100553e12\nor      rbx, 1                                                         ; +0x216, 0x100553e16\nmov     [rbp+var_40], rbx                                              ; +0x21a, 0x100553e1a\nmov     [rbp+var_38], r15                                              ; +0x21e, 0x100553e1e\nmov     rbx, r13                                                       ; +0x222, 0x100553e22\nmov     rdi, r12; __dst                                                ; +0x225, 0x100553e25\nmov     rsi, r14; __src                                                ; +0x228, 0x100553e28\nmov     rdx, r15; __len                                                ; +0x22b, 0x100553e2b\ncall    _memmove                                                       ; +0x22e, 0x100553e2e\nmov     byte ptr [r12+r15], 0                                          ; +0x233, 0x100553e33\nlea     rsi, [rbp+var_88]                                              ; +0x238, 0x100553e38\nlea     rdx, [rbp+__dst]                                               ; +0x23f, 0x100553e3f\nlea     rcx, [rbp+var_40]                                              ; +0x243, 0x100553e43\nmov     rdi, rbx                                                       ; +0x247, 0x100553e47\nmov     r8d, 1Ch                                                       ; +0x24a, 0x100553e4a\ncall    GameLevelManager__ProcessHttpRequest                           ; +0x250, 0x100553e50\ntest    byte ptr [rbp+var_40], 1                                       ; +0x255, 0x100553e55\njnz     short loc_100553E88                                            ; +0x259, 0x100553e59\ntest    byte ptr [rbp+__dst], 1                                        ; +0x25b, 0x100553e5b\njnz     short loc_100553E97                                            ; +0x25f, 0x100553e5f\ntest    byte ptr [rbp+var_88], 1                                       ; +0x261, 0x100553e61\njnz     short loc_100553EA9                                            ; +0x268, 0x100553e68\ntest    byte ptr [rbp+var_70.__r_.__value_], 1                         ; +0x26a, 0x100553e6a\njz      short loc_100553E79                                            ; +0x26e, 0x100553e6e\nmov     rdi, qword ptr [rbp+var_70.__r_.__value_+10h]; __p             ; +0x270, 0x100553e70\ncall    __ZdlPv; operator delete(void *)                               ; +0x274, 0x100553e74\nadd     rsp, 78h                                                       ; +0x279, 0x100553e79\npop     rbx                                                            ; +0x27d, 0x100553e7d\npop     r12                                                            ; +0x27e, 0x100553e7e\npop     r13                                                            ; +0x280, 0x100553e80\npop     r14                                                            ; +0x282, 0x100553e82\npop     r15                                                            ; +0x284, 0x100553e84\npop     rbp                                                            ; +0x286, 0x100553e86\nretn                                                                   ; +0x287, 0x100553e87\nmov     rdi, [rbp+__p]; __p                                            ; +0x288, 0x100553e88\ncall    __ZdlPv; operator delete(void *)                               ; +0x28c, 0x100553e8c\ntest    byte ptr [rbp+__dst], 1                                        ; +0x291, 0x100553e91\njz      short loc_100553E61                                            ; +0x295, 0x100553e95\nmov     rdi, [rbp+var_48]; __p                                         ; +0x297, 0x100553e97\ncall    __ZdlPv; operator delete(void *)                               ; +0x29b, 0x100553e9b\ntest    byte ptr [rbp+var_88], 1                                       ; +0x2a0, 0x100553ea0\njz      short loc_100553E6A                                            ; +0x2a7, 0x100553ea7\nmov     rdi, [rbp+var_78]; __p                                         ; +0x2a9, 0x100553ea9\ncall    __ZdlPv; operator delete(void *)                               ; +0x2ad, 0x100553ead\ntest    byte ptr [rbp+var_70.__r_.__value_], 1                         ; +0x2b2, 0x100553eb2\njnz     short loc_100553E70                                            ; +0x2b6, 0x100553eb6\njmp     short loc_100553E79                                            ; +0x2b8, 0x100553eb8\ncall    sub_100006BF0                                                  ; +0x2ba, 0x100553eba\njmp     short loc_100553EC6                                            ; +0x2bf, 0x100553ebf\ncall    sub_100006BF0                                                  ; +0x2c1, 0x100553ec1\nud2                                                                    ; +0x2c6, 0x100553ec6", "xrefs": ["FRequestProfilePage::loadPage @ 0x100791063"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}