// // sub_100995F90 from 0x100995f90 to 0x100996794 (2052 bytes) // // 1 xrefs: // > sub_1009948B0 @ 0x1009953d2 // // 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 12:39:11 +0000 // __int64 __fastcall sub_100995F90(__int64 a1) { int v1; // r13d _BOOL4 v2; // esi char v3; // cc int v4; // esi const char *v5; // rcx char *v6; // rax const char *v7; // r14 size_t v8; // rax std::string::size_type v9; // r15 char *data; // r12 const char *v11; // rsi char *v12; // rax const std::string::value_type *CString; // rax std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0 v14; // bl size_t v15; // rbx std::string *v16; // rax std::string::value_type v17; // r14 std::string::size_type v18; // r15 char v19; // cl const char *v20; // rsi const char *v21; // rdx std::string::size_type size; // rax char *v23; // rax const std::string::value_type *v24; // rsi const char *v25; // rsi const std::string::value_type *v26; // rax char *v27; // r12 _QWORD *v28; // rax _BYTE *v29; // r14 size_t v30; // rbx std::string::size_type v31; // r12 std::string::pointer v32; // rcx std::string::size_type v33; // r14 signed __int64 v34; // r12 __int64 v35; // r13 unsigned __int64 v36; // r15 _QWORD *v37; // rbx std::string::size_type v38; // r15 void *v39; // r13 void *v40; // r12 unsigned __int64 v41; // rbx unsigned __int64 v42; // r14 unsigned __int64 v43; // rcx char *v44; // rax char *v45; // rbx std::string::size_type v46; // r15 char *v47; // rbx std::string::size_type v48; // r15 std::string::size_type v49; // r12 signed __int64 v50; // r15 __int64 v51; // r13 unsigned __int64 v52; // r12 _QWORD *v53; // rbx void *v54; // r13 _QWORD *v55; // rax void *v56; // rbx std::string::size_type v58; // [rsp+18h] [rbp-B8h] std::string v59; // [rsp+20h] [rbp-B0h] BYREF void *__src; // [rsp+38h] [rbp-98h] __int64 v61; // [rsp+40h] [rbp-90h] size_t __n; // [rsp+48h] [rbp-88h] std::string __dst; // [rsp+50h] [rbp-80h] BYREF std::string v64; // [rsp+70h] [rbp-60h] BYREF _BYTE v65[14]; // [rsp+90h] [rbp-40h] v1 = a1; memset(&v59, 0, sizeof(v59)); if ( *(_BYTE *)(a1 + 1232) != 1 ) { if ( (*(_BYTE *)(a1 + 848) & 1) != 0 ) v11 = *(const char **)(a1 + 864); else v11 = (const char *)(a1 + 849); v12 = sub_10088E820("Close the case on %s?\nClears the reports and the case. What happened?", v11); CString = (const std::string::value_type *)cocos2d::CCString::getCString((__int64)v12); std::string::assign(&v59, CString); goto LABEL_44; } v2 = *(_DWORD *)(a1 + 1016) > 0; v3 = (*(_DWORD *)(a1 + 1004) + v2 < 0) ^ __OFADD__(*(_DWORD *)(a1 + 1004), v2) | (*(_DWORD *)(a1 + 1004) + v2 == 0); v4 = *(_DWORD *)(a1 + 1004) + v2; memset(&v64, 0, sizeof(v64)); if ( v3 ) { v14 = 0; goto LABEL_22; } v5 = "s"; if ( v4 == 1 ) v5 = ""; v6 = sub_10088E820("%i %s%s", v4, "item", v5); v7 = (const char *)cocos2d::CCString::getCString((__int64)v6); v8 = strlen(v7); if ( v8 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100003630(); v9 = v8; if ( v8 >= 0x17 ) { v15 = 26; if ( (v8 | 7) != 0x17 ) v15 = (v8 | 7) + 1; data = (char *)operator new(v15); __dst.__r_.__value_.__r.__words[2] = (std::string::size_type)data; __dst.__r_.__value_.__r.__words[0] = v15 | 1; __dst.__r_.__value_.__l.__size_ = v9; } else { __dst.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)(2 * v8); data = __dst.__r_.__value_.__s.__data_; if ( !v8 ) goto LABEL_18; } memmove(data, v7, v9); LABEL_18: data[v9] = 0; v16 = std::string::insert(&__dst, 0, "clears "); v14 = v16->__r_.__value_.__s.0; v17 = v16->__r_.__value_.__s.__data_[0]; *(_QWORD *)&v65[6] = v16->__r_.__value_.__l.__size_; *(_QWORD *)v65 = *(std::string::size_type *)((char *)v16->__r_.__value_.__r.__words + 2); v18 = v16->__r_.__value_.__r.__words[2]; *(_OWORD *)&v16->__r_.__value_.__l.0 = 0; v16->__r_.__value_.__r.__words[2] = 0; if ( (*(_BYTE *)&v64.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v64.__r_.__value_.__l.__data_); v64.__r_.__value_.__s.0 = v14; v64.__r_.__value_.__s.__data_[0] = v17; *(std::string::size_type *)((char *)v64.__r_.__value_.__r.__words + 2) = *(_QWORD *)v65; v64.__r_.__value_.__l.__size_ = *(_QWORD *)&v65[6]; v64.__r_.__value_.__r.__words[2] = v18; if ( (*(_BYTE *)&__dst.__r_.__value_.__s.0 & 1) != 0 ) { operator delete(__dst.__r_.__value_.__l.__data_); v14 = v64.__r_.__value_.__s.0; } LABEL_22: if ( *(_DWORD *)(a1 + 916) ) { if ( (*(_BYTE *)&v14 & 1) != 0 ) goto LABEL_24; } else { if ( (*(_BYTE *)&v14 & 1) != 0 ) size = v64.__r_.__value_.__l.__size_; else size = *(unsigned __int8 *)&v14 >> 1; v24 = " and the case"; if ( !size ) v24 = "closes the case"; std::string::append(&v64, v24); v14 = v64.__r_.__value_.__s.0; if ( (*(_BYTE *)&v64.__r_.__value_.__s.0 & 1) != 0 ) { LABEL_24: v19 = *(_BYTE *)(a1 + 848); if ( v64.__r_.__value_.__l.__size_ ) goto LABEL_25; goto LABEL_38; } } v19 = *(_BYTE *)(a1 + 848); if ( *(unsigned __int8 *)&v14 >> 1 ) { LABEL_25: if ( (v19 & 1) != 0 ) { v20 = *(const char **)(a1 + 864); if ( (*(_BYTE *)&v14 & 1) == 0 ) goto LABEL_27; } else { v20 = (const char *)(a1 + 849); if ( (*(_BYTE *)&v14 & 1) == 0 ) { LABEL_27: v21 = v64.__r_.__value_.__s.__data_; LABEL_32: v23 = sub_10088E820("Close the case on %s?\nEvery pick %s. What happened?", v20, v21); goto LABEL_42; } } v21 = v64.__r_.__value_.__l.__data_; goto LABEL_32; } LABEL_38: if ( (v19 & 1) != 0 ) v25 = *(const char **)(a1 + 864); else v25 = (const char *)(a1 + 849); v23 = sub_10088E820("Close the case on %s?\nNothing to clear, this just logs the review.", v25); LABEL_42: v26 = (const std::string::value_type *)cocos2d::CCString::getCString((__int64)v23); std::string::assign(&v59, v26); if ( (*(_BYTE *)&v64.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v64.__r_.__value_.__l.__data_); LABEL_44: memset(&v64, 0, sizeof(v64)); memset(&__dst, 0, sizeof(__dst)); v27 = (char *)operator new(0x18u); *v27 = 28; strcpy(v27 + 1, "Nothing Needed"); v64.__r_.__value_.__r.__words[0] = (std::string::size_type)v27; v64.__r_.__value_.__r.__words[2] = (std::string::size_type)(v27 + 24); v64.__r_.__value_.__l.__size_ = (std::string::size_type)(v27 + 24); v28 = operator new(8u); *v28 = "GJ_button_04.png"; __dst.__r_.__value_.__r.__words[0] = (std::string::size_type)v28; __dst.__r_.__value_.__r.__words[2] = (std::string::size_type)(v28 + 1); __dst.__r_.__value_.__l.__size_ = (std::string::size_type)(v28 + 1); v29 = operator new(0x30u); v30 = (size_t)(v29 + 48); v29[24] = 30; strcpy(v29 + 25, "Content Removed"); v29[41] = 0; *((_WORD *)v29 + 21) = 0; *((_DWORD *)v29 + 11) = 0; *(_OWORD *)v29 = *(_OWORD *)v27; *((_QWORD *)v29 + 2) = *((_QWORD *)v27 + 2); v64.__r_.__value_.__r.__words[0] = (std::string::size_type)v29; v64.__r_.__value_.__r.__words[2] = (std::string::size_type)(v29 + 48); operator delete(v27); v64.__r_.__value_.__l.__size_ = (std::string::size_type)(v29 + 48); v31 = __dst.__r_.__value_.__l.__size_; v61 = a1; if ( __dst.__r_.__value_.__l.__size_ >= __dst.__r_.__value_.__r.__words[2] ) { v34 = __dst.__r_.__value_.__l.__size_ - __dst.__r_.__value_.__r.__words[0]; v35 = (__int64)(__dst.__r_.__value_.__l.__size_ - __dst.__r_.__value_.__r.__words[0]) >> 3; if ( (unsigned __int64)(v35 + 1) >> 61 ) sub_100155630(); v36 = (__int64)(__dst.__r_.__value_.__r.__words[2] - __dst.__r_.__value_.__r.__words[0]) >> 2; if ( v36 <= ((__int64)(__dst.__r_.__value_.__l.__size_ - __dst.__r_.__value_.__r.__words[0]) >> 3) + 1 ) v36 = (v34 >> 3) + 1; if ( __dst.__r_.__value_.__r.__words[2] - __dst.__r_.__value_.__r.__words[0] >= 0x7FFFFFFFFFFFFFF8LL ) v36 = 0x1FFFFFFFFFFFFFFFLL; __n = (size_t)(v29 + 48); __src = (void *)__dst.__r_.__value_.__r.__words[0]; if ( v36 ) { if ( v36 > 0x1FFFFFFFFFFFFFFFLL ) sub_10001ADB0(); v37 = operator new(8 * v36); } else { v37 = nullptr; } v58 = (std::string::size_type)&v37[v36]; v37[v35] = "GJ_button_05.png"; v38 = (std::string::size_type)&v37[v35 + 1]; v39 = __src; memcpy(v37, __src, v34); __dst.__r_.__value_.__r.__words[0] = (std::string::size_type)v37; __dst.__r_.__value_.__l.__size_ = v38; __dst.__r_.__value_.__r.__words[2] = v58; if ( v39 ) operator delete(v39); v1 = v61; v30 = __n; __dst.__r_.__value_.__l.__size_ = v38; v32 = v64.__r_.__value_.__l.__data_; if ( __n < v64.__r_.__value_.__r.__words[2] ) goto LABEL_46; } else { *(_QWORD *)__dst.__r_.__value_.__l.__size_ = "GJ_button_05.png"; __dst.__r_.__value_.__l.__size_ = v31 + 8; v32 = v64.__r_.__value_.__l.__data_; if ( v30 < v64.__r_.__value_.__r.__words[2] ) { LABEL_46: v29[48] = 30; strcpy(v29 + 49, "Penalty Applied"); v29[65] = 0; *((_WORD *)v29 + 33) = 0; *((_DWORD *)v29 + 17) = 0; v33 = (std::string::size_type)(v29 + 72); goto LABEL_70; } } v40 = (void *)v64.__r_.__value_.__r.__words[0]; __n = v30 - v64.__r_.__value_.__r.__words[0]; v41 = 0xAAAAAAAAAAAAAAABLL * ((__int64)(v30 - v64.__r_.__value_.__r.__words[0]) >> 3); v42 = v41 + 1; if ( v41 + 1 > 0xAAAAAAAAAAAAAAALL ) sub_100056A70(); v43 = 0xAAAAAAAAAAAAAAABLL * ((__int64)&v32[-v64.__r_.__value_.__r.__words[0]] >> 3); if ( 2 * v43 > v42 ) v42 = 2 * v43; if ( v43 >= 0x555555555555555LL ) v42 = 0xAAAAAAAAAAAAAAALL; if ( v42 ) { if ( v42 > 0xAAAAAAAAAAAAAAALL ) sub_10001ADB0(); v44 = (char *)operator new(24 * v42); } else { v44 = nullptr; } v45 = &v44[24 * v41]; v46 = (std::string::size_type)&v44[24 * v42]; *v45 = 30; strcpy(v45 + 1, "Penalty Applied"); v45[17] = 0; *((_WORD *)v45 + 9) = 0; *((_DWORD *)v45 + 5) = 0; v33 = (std::string::size_type)(v45 + 24); v47 = &v45[-__n]; memcpy(v47, v40, __n); v64.__r_.__value_.__r.__words[0] = (std::string::size_type)v47; v64.__r_.__value_.__r.__words[2] = v46; if ( v40 ) operator delete(v40); LABEL_70: v64.__r_.__value_.__l.__size_ = v33; v48 = __dst.__r_.__value_.__l.__size_; if ( __dst.__r_.__value_.__l.__size_ >= __dst.__r_.__value_.__r.__words[2] ) { v50 = __dst.__r_.__value_.__l.__size_ - __dst.__r_.__value_.__r.__words[0]; v51 = (__int64)(__dst.__r_.__value_.__l.__size_ - __dst.__r_.__value_.__r.__words[0]) >> 3; if ( (unsigned __int64)(v51 + 1) >> 61 ) sub_100155630(); v52 = (__int64)(__dst.__r_.__value_.__r.__words[2] - __dst.__r_.__value_.__r.__words[0]) >> 2; if ( v52 <= ((__int64)(__dst.__r_.__value_.__l.__size_ - __dst.__r_.__value_.__r.__words[0]) >> 3) + 1 ) v52 = (v50 >> 3) + 1; if ( __dst.__r_.__value_.__r.__words[2] - __dst.__r_.__value_.__r.__words[0] >= 0x7FFFFFFFFFFFFFF8LL ) v52 = 0x1FFFFFFFFFFFFFFFLL; __n = __dst.__r_.__value_.__r.__words[0]; if ( v52 ) { if ( v52 > 0x1FFFFFFFFFFFFFFFLL ) sub_10001ADB0(); v53 = operator new(8 * v52); } else { v53 = nullptr; } __src = &v53[v52]; v53[v51] = "GJ_button_06.png"; v49 = (std::string::size_type)&v53[v51 + 1]; v54 = (void *)__n; memcpy(v53, (const void *)__n, v50); __dst.__r_.__value_.__r.__words[0] = (std::string::size_type)v53; __dst.__r_.__value_.__r.__words[2] = (std::string::size_type)__src; if ( v54 ) operator delete(v54); v1 = v61; } else { *(_QWORD *)__dst.__r_.__value_.__l.__size_ = "GJ_button_06.png"; v49 = v48 + 8; } __dst.__r_.__value_.__l.__size_ = v49; v55 = sub_100993630( v1 + 824, 2, (int)"Clear", (int)&v59, (int)&v64, (__int64)&__dst, 1, "All options clear the reports and close the case.\n" "Your choice only sets the label shown in History.\n" "\n" "Nothing Needed: No violation found.\n" "Content Removed: Content removed, no account penalty.\n" "Penalty Applied: Account banned or restricted.\n" "Pick this even if content was also removed.\n" "\n" "Only the highest action taken is shown."); (*(void (__fastcall **)(_QWORD *))(*v55 + 1312LL))(v55); if ( __dst.__r_.__value_.__r.__words[0] ) operator delete((void *)__dst.__r_.__value_.__r.__words[0]); v56 = (void *)v64.__r_.__value_.__r.__words[0]; if ( v64.__r_.__value_.__r.__words[0] ) { while ( (void *)v33 != v56 ) { if ( (*(_BYTE *)(v33 - 24) & 1) != 0 ) operator delete(*(void **)(v33 - 8)); v33 -= 24LL; } operator delete(v56); if ( (*(_BYTE *)&v59.__r_.__value_.__s.0 & 1) != 0 ) goto LABEL_88; } else if ( (*(_BYTE *)&v59.__r_.__value_.__s.0 & 1) != 0 ) { LABEL_88: operator delete(v59.__r_.__value_.__l.__data_); } return __stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source