// // GJGameLevel::scoreStringToVector from 0x14016d680 to 0x14016d810 (400 bytes) // // 3 xrefs: // > GJGameLevel::storeNewLocalScore @ 0x14016d468 // > LevelLeaderboard::getLocalScores @ 0x1403021a2 // > @ 0x1406cae18 // // 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 // // Hidden C++ exception states: #wind=2 void GJGameLevel::scoreStringToVector(GJGameLevel *a1, std::string *a2, std::vector *a3) { __int64 v4; // rax const char *v5; // rcx int v6; // eax std::_Vector_val>::pointer Mylast; // rdx __int64 v8; // rax char *v9; // rcx _DWORD v10[4]; // [rsp+20h] [rbp-E0h] BYREF _QWORD v11[3]; // [rsp+30h] [rbp-D0h] BYREF _BYTE v12[8]; // [rsp+48h] [rbp-B8h] BYREF _BYTE v13[120]; // [rsp+50h] [rbp-B0h] BYREF _BYTE v14[104]; // [rsp+C8h] [rbp-38h] BYREF char *String[2]; // [rsp+130h] [rbp+30h] BYREF __int64 v16; // [rsp+140h] [rbp+40h] unsigned __int64 v17; // [rsp+148h] [rbp+48h] if ( a2->m_data.m_size ) { sub_140178B00(v11); *(_OWORD *)String = 0; v16 = 0; v17 = 15; LOBYTE(String[0]) = 0; v4 = sub_140179B40(v11, String); if ( (unsigned __int8)std::ios_base::operator bool(v4 + *(int *)(*(_QWORD *)v4 + 4LL)) ) { do { v5 = (const char *)String; if ( v17 > 0xF ) v5 = String[0]; v6 = atoi(v5); v10[0] = v6; Mylast = a3->_Mypair._Myval2._Mylast; if ( Mylast == a3->_Mypair._Myval2._Myend ) { sub_140063270((const void **)&a3->_Mypair._Myval2._Myfirst, Mylast, v10); } else { *Mylast = v6; ++a3->_Mypair._Myval2._Mylast; } v8 = sub_140179B40(v11, String); } while ( (unsigned __int8)std::ios_base::operator bool(v8 + *(int *)(*(_QWORD *)v8 + 4LL)) ); } if ( v17 > 0xF ) { v9 = String[0]; if ( v17 + 1 >= 0x1000 ) { v9 = *((char **)String[0] - 1); if ( (unsigned __int64)(String[0] - v9 - 8) > 0x1F ) invalid_parameter_noinfo_noreturn(); } j_j_free(v9); } v16 = 0; v17 = 15; LOBYTE(String[0]) = 0; *(_QWORD *)((char *)v11 + *(int *)(v11[0] + 4LL)) = &std::basic_stringstream,std::allocator>::`vftable'; *(_DWORD *)((char *)&v10[3] + *(int *)(v11[0] + 4LL)) = *(_DWORD *)(v11[0] + 4LL) - 152; sub_140178A10(v12); std::iostream::~iostream>(v13); std::ios::~ios>(v14); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source