// // AccountReviewPopup::adminCloseCaseFinished from 0x1009a46c0 to 0x1009a48f9 (569 bytes) // // 2 xrefs: // > sub_1009A4980 @ 0x1009a498c // > @ 0x100bd6cb8 // // 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:18 +0000 // void __fastcall AccountReviewPopup::adminCloseCaseFinished(__int64 a1, int a2, int a3, unsigned __int8 a4) { bool v7; // al const char *v8; // rcx char *v9; // rax const char *CString; // r15 size_t v11; // rax std::string::size_type v12; // r14 char *data; // r12 size_t v14; // r13 std::string *v15; // rax std::string *v16; // rax void *v17; // r14 char *v18; // rdi char *v19; // rdi char *v20; // rax __int128 v21; // [rsp+0h] [rbp-80h] BYREF void *__p; // [rsp+10h] [rbp-70h] std::string v23; // [rsp+20h] [rbp-60h] BYREF std::string __dst[2]; // [rsp+40h] [rbp-40h] BYREF if ( *(_DWORD *)(a1 + 840) == a2 ) { sub_10095D090(a1); *(_BYTE *)(a1 + 1248) = 1; v7 = 1; if ( *(_BYTE *)(a1 + 1232) == 1 ) { if ( *(int *)(a1 + 1004) > 0 ) { v7 = 0; if ( a3 <= 0 ) goto LABEL_29; LABEL_9: v8 = "s"; if ( a3 == 1 ) v8 = ""; v9 = sub_10088E820("%i %s%s", a3, "item", v8); CString = (const char *)cocos2d::CCString::getCString((__int64)v9); v11 = strlen(CString); if ( v11 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100003630(); v12 = v11; if ( v11 >= 0x17 ) { v14 = 26; if ( (v11 | 7) != 0x17 ) v14 = (v11 | 7) + 1; data = (char *)operator new(v14); __dst[0].__r_.__value_.__r.__words[2] = (std::string::size_type)data; __dst[0].__r_.__value_.__r.__words[0] = v14 + 1; __dst[0].__r_.__value_.__l.__size_ = v12; } else { __dst[0].__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)(2 * v11); data = __dst[0].__r_.__value_.__s.__data_; if ( !v11 ) { LABEL_19: data[v12] = 0; v15 = std::string::insert(__dst, 0, "Case closed, "); v23 = *v15; *(_OWORD *)&v15->__r_.__value_.__l.0 = 0; v15->__r_.__value_.__r.__words[2] = 0; v16 = std::string::append(&v23, " cleared"); __p = v16->__r_.__value_.__l.__data_; v21 = *(_OWORD *)&v16->__r_.__value_.__l.0; *(_OWORD *)&v16->__r_.__value_.__l.0 = 0; v16->__r_.__value_.__r.__words[2] = 0; v17 = __p; v18 = (char *)&v21 + 1; if ( (v21 & 1) != 0 ) v18 = (char *)__p; sub_1009A2760(v18, 1.6); if ( (v21 & 1) != 0 ) { operator delete(v17); if ( (*(_BYTE *)&v23.__r_.__value_.__s.0 & 1) == 0 ) { LABEL_23: if ( (*(_BYTE *)&__dst[0].__r_.__value_.__s.0 & 1) == 0 ) goto LABEL_33; goto LABEL_27; } } else if ( (*(_BYTE *)&v23.__r_.__value_.__s.0 & 1) == 0 ) { goto LABEL_23; } operator delete(v23.__r_.__value_.__l.__data_); if ( (*(_BYTE *)&__dst[0].__r_.__value_.__s.0 & 1) == 0 ) { LABEL_33: v20 = cocos2d::CCCallFunc::create(a1, (__int64)sub_1009A4960, 0); cocos2d::CCNode::runAction(a1, (__int64)v20); return; } LABEL_27: operator delete(__dst[0].__r_.__value_.__l.__data_); goto LABEL_33; } } memmove(data, CString, v12); goto LABEL_19; } if ( *(int *)(a1 + 1016) <= 0 ) { v7 = *(_DWORD *)(a1 + 916) != 0; if ( a3 > 0 ) goto LABEL_9; LABEL_29: if ( ((v7 | a4) & 1) != 0 ) v19 = "Case closed"; else v19 = "Already closed"; sub_1009A2760(v19, 1.6); goto LABEL_33; } v7 = 0; } if ( a3 > 0 ) goto LABEL_9; goto LABEL_29; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source