// // sub_1000A3208 from 0x1000a3208 to 0x1000a3400 (504 bytes) // // 1 xrefs: // > GameLevelManager::onGetLevelLeaderboardCompleted @ 0x1000908e4 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // void __fastcall sub_1000A3208(std::string *__str, int *a2, int *a3, int *a4) { std::string::size_type v8; // x9 std::string *v9; // x8 std::string::size_type size; // x24 std::string *v11; // x9 std::string::size_type v12; // x11 std::string *v13; // x10 __int64 v14; // x8 __int64 v15; // x25 std::string::size_type v16; // x23 std::string::size_type v17; // x8 __int64 v18; // x26 bool v19; // zf int v20; // w8 std::string::size_type v21; // x11 bool v22; // cc std::string *v23; // x8 _BYTE *v24; // x9 _BYTE *v25; // x10 std::string::size_type v26; // x11 __int64 v27; // x8 __int64 v28; // x22 const char *v29; // x0 const char *v30; // x0 const char *v31; // x0 __int64 v32; // [xsp+0h] [xbp-80h] BYREF __int64 v33; // [xsp+8h] [xbp-78h] __int64 v34; // [xsp+10h] [xbp-70h] std::string v35; // [xsp+18h] [xbp-68h] BYREF std::allocator __a; // [xsp+37h] [xbp-49h] BYREF v8 = SHIBYTE(__str->__r_.__value_.__r.__words[2]); if ( (v8 & 0x8000000000000000LL) != 0 ) { if ( !__str->__r_.__value_.__l.__size_ ) return; } else if ( !*((_BYTE *)&__str->__r_.__value_.__s + 23) ) { return; } v32 = 0; v33 = 0; v34 = 0; v9 = (std::string *)__str->__r_.__value_.__r.__words[0]; if ( (v8 & 0x80000000) != 0LL ) { size = __str->__r_.__value_.__l.__size_; } else { v9 = __str; size = v8; } if ( size ) { v11 = (std::string *)((char *)v9 + size); v12 = size; v13 = v9; while ( v13->__r_.__value_.__s.__data_[0] != 95 ) { v13 = (std::string *)((char *)v13 + 1); if ( !--v12 ) { v13 = (std::string *)((char *)v9 + size); break; } } v14 = (char *)v13 - (char *)v9; if ( v13 == v11 ) v15 = -1; else v15 = v14; } else { v15 = -1; } v16 = 0; do { std::string::basic_string(&v35, __str, v16, v15 - v16, &__a); v17 = HIBYTE(v35.__r_.__value_.__r.__words[2]); if ( (v35.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) != 0LL ) v17 = v35.__r_.__value_.__l.__size_; if ( v16 != size || v17 ) sub_100017238((__int64)&v32); if ( v15 == -1 ) goto LABEL_24; v16 = v15 + 1; v20 = SHIBYTE(__str->__r_.__value_.__r.__words[2]); v21 = __str->__r_.__value_.__l.__size_; v22 = v20 < 0; if ( v20 >= 0 ) v23 = __str; else v23 = (std::string *)__str->__r_.__value_.__r.__words[0]; if ( !v22 ) v21 = HIBYTE(__str->__r_.__value_.__r.__words[2]); if ( v21 <= v16 ) { LABEL_24: v18 = -1; } else { v24 = (char *)v23 + v21; v25 = (char *)v23 + v16; v26 = ~v15 + v21; while ( *v25 != 95 ) { ++v25; if ( !--v26 ) { v25 = v24; break; } } v27 = v25 - (_BYTE *)v23; if ( v25 == v24 ) v18 = -1; else v18 = v27; } if ( SHIBYTE(v35.__r_.__value_.__r.__words[2]) < 0 ) operator delete(v35.__r_.__value_.__l.__data_); v19 = v15 == -1; v15 = v18; } while ( !v19 ); v28 = v32; if ( v33 - v32 == 96 ) { v29 = (const char *)(v32 + 24); if ( *(char *)(v32 + 47) < 0 ) v29 = *(const char **)v29; *a2 = atoi(v29); v30 = (const char *)(v28 + 48); if ( *(char *)(v28 + 71) < 0 ) v30 = *(const char **)v30; *a3 = atoi(v30); v31 = (const char *)(v28 + 72); if ( *(char *)(v28 + 95) < 0 ) v31 = *(const char **)v31; *a4 = atoi(v31); } v35.__r_.__value_.__r.__words[0] = (std::string::size_type)&v32; sub_1000177FC((void ***)&v35); }
GD Web Decomp Icon

GD Web Decomp

Raw Source