{"type": "func", "start": 4303031216, "end": 4303031764, "name": "InfoLayer::confirmReport", "pseudocode": "// \n// InfoLayer::confirmReport from 0x1007b0bb0 to 0x1007b0dd4 (548 bytes)\n// \n// 1 xrefs:\n// > InfoLayer::init @ 0x1007af25f\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 InfoLayer::confirmReport(InfoLayer *a1, cocos2d::CCObject *a2)\n{\n  GameLevelManager *v2; // rax\n  GJUserScore *m_score; // rcx\n  GJLevelList *m_levelList; // rcx\n  GJGameLevel *m_level; // rcx\n  const std::string::value_type *v6; // rsi\n  __int64 v7; // r14\n  const char *data; // r15\n  size_t v9; // rax\n  size_t v10; // r12\n  char *v11; // r13\n  char *v12; // rbx\n  int v13; // [rsp+0h] [rbp-80h]\n  _QWORD __dst[2]; // [rsp+8h] [rbp-78h] BYREF\n  void *__p; // [rsp+18h] [rbp-68h]\n  std::string __src; // [rsp+20h] [rbp-60h] BYREF\n  std::string v17; // [rsp+40h] [rbp-40h] BYREF\n\n  v2 = GameLevelManager::sharedState();\n  m_score = a1->m_score;\n  if ( m_score )\n  {\n    if ( GameLevelManager::hasReportedLevel(v2, m_score->m_userID) )\n      return;\n  }\n  else\n  {\n    m_levelList = a1->m_levelList;\n    if ( m_levelList )\n    {\n      if ( GameLevelManager::hasReportedLevel(v2, -m_levelList->m_listID) )\n        return;\n    }\n    else\n    {\n      m_level = a1->m_level;\n      if ( m_level )\n      {\n        if ( GameLevelManager::hasReportedLevel(v2, m_level->m_levelID.random - m_level->m_levelID.seed) )\n          return;\n      }\n      else if ( GameLevelManager::hasReportedLevel(v2, 0) )\n      {\n        return;\n      }\n    }\n  }\n  memset(&v17, 0, sizeof(v17));\n  memset(&__src, 0, sizeof(__src));\n  if ( a1->m_mode == User )\n  {\n    std::string::assign(&v17, \"Report List\");\n    v6 = \"Do you want to <cr>report</c> this list for breaking the <cg>upload guidelines</c> found in the editor? Valid r\"\n         \"easons include hateful, abusive, or otherwise inappropriate content, as well as hacks, cheats, or exploits.\";\n  }\n  else\n  {\n    std::string::assign(&v17, \"Report Level\");\n    v6 = \"Do you want to <cr>report</c> this level for breaking the <cg>upload guidelines</c> found in the editor? Valid \"\n         \"reasons include hateful, abusive, or otherwise inappropriate content, as well as hacks, cheats, or exploits.\";\n  }\n  std::string::assign(&__src, v6);\n  if ( (*(_BYTE *)&v17.__r_.__value_.__s.0 & 1) != 0 )\n  {\n    LODWORD(v7) = v17.__r_.__value_.__r.__words[2];\n    if ( (*(_BYTE *)&__src.__r_.__value_.__s.0 & 1) == 0 )\n    {\nLABEL_16:\n      data = __src.__r_.__value_.__s.__data_;\n      goto LABEL_19;\n    }\n  }\n  else\n  {\n    v7 = (__int64)v17.__r_.__value_.__r.__words + 1;\n    if ( (*(_BYTE *)&__src.__r_.__value_.__s.0 & 1) == 0 )\n      goto LABEL_16;\n  }\n  data = __src.__r_.__value_.__l.__data_;\nLABEL_19:\n  v9 = strlen(data);\n  if ( v9 >= 0xFFFFFFFFFFFFFFF8LL )\n    sub_100006BF0(0.0);\n  v10 = v9;\n  if ( v9 >= 0x17 )\n  {\n    v13 = v7;\n    v7 = 26;\n    if ( (v9 | 7) != 0x17 )\n      v7 = (v9 | 7) + 1;\n    v11 = (char *)operator new(v7);\n    __p = v11;\n    __dst[0] = v7 | 1;\n    __dst[1] = v10;\n    LODWORD(v7) = v13;\n  }\n  else\n  {\n    LOBYTE(__dst[0]) = 2 * v9;\n    v11 = (char *)__dst + 1;\n    if ( !v9 )\n      goto LABEL_27;\n  }\n  memmove(v11, data, v10);\nLABEL_27:\n  v11[v10] = 0;\n  v12 = FLAlertLayer::create_1((int)a1 + 648, v7, (__int64)__dst, (int)\"NO\", (int)\"YES\", COERCE_DOUBLE(1136525312));\n  if ( (__dst[0] & 1) != 0 )\n    operator delete(__p);\n  (*(void (__fastcall **)(char *, __int64))(*(_QWORD *)v12 + 72LL))(v12, 2);\n  (*(void (__fastcall **)(char *))(*(_QWORD *)v12 + 1288LL))(v12);\n  if ( (*(_BYTE *)&__src.__r_.__value_.__s.0 & 1) != 0 )\n    operator delete(__src.__r_.__value_.__l.__data_);\n  if ( (*(_BYTE *)&v17.__r_.__value_.__s.0 & 1) != 0 )\n    operator delete(v17.__r_.__value_.__l.__data_);\n}", "assembly": "; \n; InfoLayer::confirmReport from 0x1007b0bb0 to 0x1007b0dd4 (548 bytes)\n; \n; 1 xrefs:\n; > InfoLayer::init @ 0x1007af25f\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, 0x1007b0bb0\nmov     rbp, rsp                                                       ; +0x1, 0x1007b0bb1\npush    r15                                                            ; +0x4, 0x1007b0bb4\npush    r14                                                            ; +0x6, 0x1007b0bb6\npush    r13                                                            ; +0x8, 0x1007b0bb8\npush    r12                                                            ; +0xa, 0x1007b0bba\npush    rbx                                                            ; +0xc, 0x1007b0bbc\nsub     rsp, 58h                                                       ; +0xd, 0x1007b0bbd\nmov     rbx, rdi                                                       ; +0x11, 0x1007b0bc1\ncall    GameLevelManager__sharedState                                  ; +0x14, 0x1007b0bc4\nmov     rcx, [rbx+298h]                                                ; +0x19, 0x1007b0bc9\ntest    rcx, rcx                                                       ; +0x20, 0x1007b0bd0\njz      short loc_1007B0BEC                                            ; +0x23, 0x1007b0bd3\nmov     esi, [rcx+174h]                                                ; +0x25, 0x1007b0bd5\nmov     rdi, rax                                                       ; +0x2b, 0x1007b0bdb\ncall    GameLevelManager__hasReportedLevel                             ; +0x2e, 0x1007b0bde\ntest    al, al                                                         ; +0x33, 0x1007b0be3\njz      short loc_1007B0C4C                                            ; +0x35, 0x1007b0be5\njmp     loc_1007B0DC0                                                  ; +0x37, 0x1007b0be7\nmov     rcx, [rbx+2A0h]                                                ; +0x3c, 0x1007b0bec\ntest    rcx, rcx                                                       ; +0x43, 0x1007b0bf3\njz      short loc_1007B0C11                                            ; +0x46, 0x1007b0bf6\nxor     esi, esi                                                       ; +0x48, 0x1007b0bf8\nsub     esi, [rcx+158h]                                                ; +0x4a, 0x1007b0bfa\nmov     rdi, rax                                                       ; +0x50, 0x1007b0c00\ncall    GameLevelManager__hasReportedLevel                             ; +0x53, 0x1007b0c03\ntest    al, al                                                         ; +0x58, 0x1007b0c08\njz      short loc_1007B0C4C                                            ; +0x5a, 0x1007b0c0a\njmp     loc_1007B0DC0                                                  ; +0x5c, 0x1007b0c0c\nmov     rcx, [rbx+290h]                                                ; +0x61, 0x1007b0c11\ntest    rcx, rcx                                                       ; +0x68, 0x1007b0c18\njz      short loc_1007B0C3A                                            ; +0x6b, 0x1007b0c1b\nmov     esi, [rcx+148h]                                                ; +0x6d, 0x1007b0c1d\nsub     esi, [rcx+14Ch]                                                ; +0x73, 0x1007b0c23\nmov     rdi, rax                                                       ; +0x79, 0x1007b0c29\ncall    GameLevelManager__hasReportedLevel                             ; +0x7c, 0x1007b0c2c\ntest    al, al                                                         ; +0x81, 0x1007b0c31\njz      short loc_1007B0C4C                                            ; +0x83, 0x1007b0c33\njmp     loc_1007B0DC0                                                  ; +0x85, 0x1007b0c35\nxor     esi, esi                                                       ; +0x8a, 0x1007b0c3a\nmov     rdi, rax                                                       ; +0x8c, 0x1007b0c3c\ncall    GameLevelManager__hasReportedLevel                             ; +0x8f, 0x1007b0c3f\ntest    al, al                                                         ; +0x94, 0x1007b0c44\njnz     loc_1007B0DC0                                                  ; +0x96, 0x1007b0c46\nxorps   xmm0, xmm0                                                     ; +0x9c, 0x1007b0c4c\nmovaps  xmmword ptr [rbp+var_40.__r_.__value_], xmm0                   ; +0x9f, 0x1007b0c4f\nmov     qword ptr [rbp+var_40.__r_.__value_+10h], 0                    ; +0xa3, 0x1007b0c53\nmovaps  xmmword ptr [rbp+__src.__r_.__value_], xmm0                    ; +0xab, 0x1007b0c5b\nmov     qword ptr [rbp+__src.__r_.__value_+10h], 0                     ; +0xaf, 0x1007b0c5f\ncmp     dword ptr [rbx+32Ch], 2                                        ; +0xb7, 0x1007b0c67\njnz     short loc_1007B0C89                                            ; +0xbe, 0x1007b0c6e\nlea     rsi, aReportList; \"Report List\"                                ; +0xc0, 0x1007b0c70\nlea     rdi, [rbp+var_40]; this                                        ; +0xc7, 0x1007b0c77\ncall    __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6assignEPKc; std::string::assign(char const*) ; +0xcb, 0x1007b0c7b\nlea     rsi, aDoYouWantToCrR_0; \"Do you want to <cr>report</c> this list\"... ; +0xd0, 0x1007b0c80\njmp     short loc_1007B0CA0                                            ; +0xd7, 0x1007b0c87\nlea     rsi, aReportLevel; \"Report Level\"                              ; +0xd9, 0x1007b0c89\nlea     rdi, [rbp+var_40]; this                                        ; +0xe0, 0x1007b0c90\ncall    __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6assignEPKc; std::string::assign(char const*) ; +0xe4, 0x1007b0c94\nlea     rsi, aDoYouWantToCrR_1; \"Do you want to <cr>report</c> this leve\"... ; +0xe9, 0x1007b0c99\nlea     rdi, [rbp+__src]; this                                         ; +0xf0, 0x1007b0ca0\ncall    __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6assignEPKc; std::string::assign(char const*) ; +0xf4, 0x1007b0ca4\ntest    byte ptr [rbp+var_40.__r_.__value_], 1                         ; +0xf9, 0x1007b0ca9\njz      short loc_1007B0CBF                                            ; +0xfd, 0x1007b0cad\nmov     r14, qword ptr [rbp+var_40.__r_.__value_+10h]                  ; +0xff, 0x1007b0caf\ntest    byte ptr [rbp+__src.__r_.__value_], 1                          ; +0x103, 0x1007b0cb3\njnz     short loc_1007B0CC9                                            ; +0x107, 0x1007b0cb7\nlea     r15, [rbp+__src.__r_.__value_+1]                               ; +0x109, 0x1007b0cb9\njmp     short loc_1007B0CCD                                            ; +0x10d, 0x1007b0cbd\nlea     r14, [rbp+var_40.__r_.__value_+1]                              ; +0x10f, 0x1007b0cbf\ntest    byte ptr [rbp+__src.__r_.__value_], 1                          ; +0x113, 0x1007b0cc3\njz      short loc_1007B0CB9                                            ; +0x117, 0x1007b0cc7\nmov     r15, qword ptr [rbp+__src.__r_.__value_+10h]                   ; +0x119, 0x1007b0cc9\nmov     rdi, r15; __s                                                  ; +0x11d, 0x1007b0ccd\ncall    _strlen                                                        ; +0x120, 0x1007b0cd0\ncmp     rax, 0FFFFFFFFFFFFFFF8h                                        ; +0x125, 0x1007b0cd5\njnb     loc_1007B0DCF                                                  ; +0x129, 0x1007b0cd9\nmov     r12, rax                                                       ; +0x12f, 0x1007b0cdf\ncmp     rax, 17h                                                       ; +0x132, 0x1007b0ce2\njnb     short loc_1007B0CFA                                            ; +0x136, 0x1007b0ce6\nlea     eax, [r12+r12]                                                 ; +0x138, 0x1007b0ce8\nmov     byte ptr [rbp+__dst], al                                       ; +0x13c, 0x1007b0cec\nlea     r13, [rbp+__dst+1]                                             ; +0x13f, 0x1007b0cef\ntest    r12, r12                                                       ; +0x143, 0x1007b0cf3\njnz     short loc_1007B0D36                                            ; +0x146, 0x1007b0cf6\njmp     short loc_1007B0D44                                            ; +0x148, 0x1007b0cf8\nmov     [rbp+var_80], r14                                              ; +0x14a, 0x1007b0cfa\nmov     rax, r12                                                       ; +0x14e, 0x1007b0cfe\nor      rax, 7                                                         ; +0x151, 0x1007b0d01\nlea     rcx, [rax+1]                                                   ; +0x155, 0x1007b0d05\ncmp     rax, 17h                                                       ; +0x159, 0x1007b0d09\nmov     r14d, 1Ah                                                      ; +0x15d, 0x1007b0d0d\ncmovnz  r14, rcx                                                       ; +0x163, 0x1007b0d13\nmov     rdi, r14; __sz                                                 ; +0x167, 0x1007b0d17\ncall    __Znwm; operator new(ulong)                                    ; +0x16a, 0x1007b0d1a\nmov     r13, rax                                                       ; +0x16f, 0x1007b0d1f\nmov     [rbp+__p], rax                                                 ; +0x172, 0x1007b0d22\nor      r14, 1                                                         ; +0x176, 0x1007b0d26\nmov     [rbp+__dst], r14                                               ; +0x17a, 0x1007b0d2a\nmov     [rbp+var_70], r12                                              ; +0x17e, 0x1007b0d2e\nmov     r14, [rbp+var_80]                                              ; +0x182, 0x1007b0d32\nmov     rdi, r13; __dst                                                ; +0x186, 0x1007b0d36\nmov     rsi, r15; __src                                                ; +0x189, 0x1007b0d39\nmov     rdx, r12; __len                                                ; +0x18c, 0x1007b0d3c\ncall    _memmove                                                       ; +0x18f, 0x1007b0d3f\nmov     byte ptr [r13+r12+0], 0                                        ; +0x194, 0x1007b0d44\nadd     rbx, 288h                                                      ; +0x19a, 0x1007b0d4a\nlea     rcx, aNo; \"NO\"                                                 ; +0x1a1, 0x1007b0d51\nlea     r8, aYes_0; \"YES\"                                              ; +0x1a8, 0x1007b0d58\nlea     rdx, [rbp+__dst]                                               ; +0x1af, 0x1007b0d5f\nmovss   xmm0, cs:dword_1008152BC                                       ; +0x1b3, 0x1007b0d63\nmov     rdi, rbx                                                       ; +0x1bb, 0x1007b0d6b\nmov     rsi, r14                                                       ; +0x1be, 0x1007b0d6e\ncall    FLAlertLayer__create_1                                         ; +0x1c1, 0x1007b0d71\nmov     rbx, rax                                                       ; +0x1c6, 0x1007b0d76\ntest    byte ptr [rbp+__dst], 1                                        ; +0x1c9, 0x1007b0d79\njz      short loc_1007B0D88                                            ; +0x1cd, 0x1007b0d7d\nmov     rdi, [rbp+__p]; __p                                            ; +0x1cf, 0x1007b0d7f\ncall    __ZdlPv; operator delete(void *)                               ; +0x1d3, 0x1007b0d83\nmov     rax, [rbx]                                                     ; +0x1d8, 0x1007b0d88\nmov     rdi, rbx                                                       ; +0x1db, 0x1007b0d8b\nmov     esi, 2                                                         ; +0x1de, 0x1007b0d8e\ncall    qword ptr [rax+48h]                                            ; +0x1e3, 0x1007b0d93\nmov     rax, [rbx]                                                     ; +0x1e6, 0x1007b0d96\nmov     rdi, rbx                                                       ; +0x1e9, 0x1007b0d99\ncall    qword ptr [rax+508h]                                           ; +0x1ec, 0x1007b0d9c\ntest    byte ptr [rbp+__src.__r_.__value_], 1                          ; +0x1f2, 0x1007b0da2\njz      short loc_1007B0DB1                                            ; +0x1f6, 0x1007b0da6\nmov     rdi, qword ptr [rbp+__src.__r_.__value_+10h]; __p              ; +0x1f8, 0x1007b0da8\ncall    __ZdlPv; operator delete(void *)                               ; +0x1fc, 0x1007b0dac\ntest    byte ptr [rbp+var_40.__r_.__value_], 1                         ; +0x201, 0x1007b0db1\njz      short loc_1007B0DC0                                            ; +0x205, 0x1007b0db5\nmov     rdi, qword ptr [rbp+var_40.__r_.__value_+10h]; __p             ; +0x207, 0x1007b0db7\ncall    __ZdlPv; operator delete(void *)                               ; +0x20b, 0x1007b0dbb\nadd     rsp, 58h                                                       ; +0x210, 0x1007b0dc0\npop     rbx                                                            ; +0x214, 0x1007b0dc4\npop     r12                                                            ; +0x215, 0x1007b0dc5\npop     r13                                                            ; +0x217, 0x1007b0dc7\npop     r14                                                            ; +0x219, 0x1007b0dc9\npop     r15                                                            ; +0x21b, 0x1007b0dcb\npop     rbp                                                            ; +0x21d, 0x1007b0dcd\nretn                                                                   ; +0x21e, 0x1007b0dce\ncall    sub_100006BF0                                                  ; +0x21f, 0x1007b0dcf", "xrefs": ["InfoLayer::init @ 0x1007af25f"], "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"}