// // cocos2d::CCFileUtils::getPathForFilename from 0x1001cfcd4 to 0x1001cfecc (504 bytes) // // 2 xrefs: // > @ 0x1008ef900 // > @ 0x1009203c8 // // This function is hookable on this platform (idp: arm, 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 11:00:22 +0000 // void __usercall cocos2d::CCFileUtils::getPathForFilename( __int64 a1@, const std::string *a2@, __int64 a3@, __int64 a4@, __int64 a5@) { __int64 v10; // x8 const std::string *v11; // x9 std::string::size_type size; // x10 __int64 v13; // x8 char *v14; // x9 int v15; // t1 std::string::size_type v16; // x24 std::string *p_p; // x1 std::string::size_type v18; // x2 int v19; // w9 const std::string::value_type *v20; // x1 std::string::size_type v21; // x2 std::string v22; // [xsp+8h] [xbp-88h] BYREF std::string __p; // [xsp+20h] [xbp-70h] BYREF std::string __dst; // [xsp+40h] [xbp-50h] BYREF std::allocator __a; // [xsp+5Fh] [xbp-31h] BYREF if ( SHIBYTE(a2->__r_.__value_.__r.__words[2]) < 0 ) sub_1000097D0(&__dst, a2->__r_.__value_.__l.__data_, a2->__r_.__value_.__l.__size_); else __dst = *a2; sub_100009900(&__p, ""); v10 = SHIBYTE(a2->__r_.__value_.__r.__words[2]); v11 = (const std::string *)a2->__r_.__value_.__r.__words[0]; size = a2->__r_.__value_.__l.__size_; if ( v10 >= 0 ) v11 = a2; if ( (int)v10 >= 0 ) size = SHIBYTE(a2->__r_.__value_.__r.__words[2]); v13 = ~size; v14 = (char *)v11 + size - 1; while ( v13 != -1 ) { v15 = (unsigned __int8)*v14--; ++v13; if ( v15 == 47 ) { if ( v13 ) { v16 = -v13; std::string::basic_string(&v22, a2, 0, -v13, &__a); if ( SHIBYTE(__p.__r_.__value_.__r.__words[2]) < 0 ) operator delete(__p.__r_.__value_.__l.__data_); __p = v22; std::string::basic_string(&v22, a2, v16, 0xFFFFFFFFFFFFFFFFLL, &__a); if ( SHIBYTE(__dst.__r_.__value_.__r.__words[2]) < 0 ) operator delete(__dst.__r_.__value_.__l.__data_); __dst = v22; } break; } } if ( *(char *)(a4 + 23) < 0 ) { sub_1000097D0((_BYTE *)a5, *(void **)a4, *(_QWORD *)(a4 + 8)); } else { *(_OWORD *)a5 = *(_OWORD *)a4; *(_QWORD *)(a5 + 16) = *(_QWORD *)(a4 + 16); } if ( (__p.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL ) p_p = &__p; else p_p = (std::string *)__p.__r_.__value_.__r.__words[0]; if ( (__p.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL ) v18 = HIBYTE(__p.__r_.__value_.__r.__words[2]); else v18 = __p.__r_.__value_.__l.__size_; std::string::append((std::string *)a5, (const std::string::value_type *)p_p, v18); v19 = *(char *)(a3 + 23); if ( v19 >= 0 ) v20 = (const std::string::value_type *)a3; else v20 = *(const std::string::value_type **)a3; if ( v19 >= 0 ) v21 = *(unsigned __int8 *)(a3 + 23); else v21 = *(_QWORD *)(a3 + 8); std::string::append((std::string *)a5, v20, v21); (*(void (__fastcall **)(std::string *__return_ptr, __int64, __int64, std::string *))(*(_QWORD *)a1 + 232LL))( &v22, a1, a5, &__dst); if ( *(char *)(a5 + 23) < 0 ) operator delete(*(void **)a5); *(std::string *)a5 = v22; if ( SHIBYTE(__p.__r_.__value_.__r.__words[2]) < 0 ) operator delete(__p.__r_.__value_.__l.__data_); if ( SHIBYTE(__dst.__r_.__value_.__r.__words[2]) < 0 ) operator delete(__dst.__r_.__value_.__l.__data_); }
GD Web Decomp Icon

GD Web Decomp

Raw Source