// // sub_10054CB00 from 0x10054cb00 to 0x10054ce10 (784 bytes) // // 3 xrefs: // > GameLevelManager::writePlatformerSaveJournal @ 0x10054c638 // > sub_10054E170 @ 0x10054e193 // > sub_1005839A0 @ 0x1005839fb // // 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:32:01 +0000 // void __fastcall sub_10054CB00(std::string *a1, __int64 a2) { unsigned __int8 v2; // al std::string *v3; // r15 __int64 v4; // rax const std::string::value_type *CString; // rax std::string *v6; // rax std::string *v7; // rax __int64 v8; // rax const std::string::value_type *v9; // rax std::string *v10; // rax const std::string::value_type *data; // rsi std::string::size_type size; // rdx __int64 v13; // rax const std::string::value_type *v14; // rax std::string *v15; // rax std::string *v16; // rax std::string::pointer v17; // rdi std::string v18; // [rsp+0h] [rbp-70h] BYREF std::string v19; // [rsp+20h] [rbp-50h] BYREF std::string v20; // [rsp+40h] [rbp-30h] BYREF if ( *(_DWORD *)(a2 + 1140) == 2 ) { *(_WORD *)&v18.__r_.__value_.__l.0 = 27650; v18.__r_.__value_.__s.__data_[1] = 0; v2 = *(_BYTE *)(a2 + 1440); if ( (v2 & 1) != 0 ) { v3 = (std::string *)(a2 + 1440); if ( *(_QWORD *)(a2 + 1448) ) { LABEL_4: if ( (v2 & 1) == 0 ) { LABEL_5: v19 = *v3; goto LABEL_16; } LABEL_15: sub_10001AD30(&v19, *(const void **)(a2 + 1456), *(_QWORD *)(a2 + 1448)); LABEL_16: if ( (*(_BYTE *)&v19.__r_.__value_.__s.0 & 1) != 0 ) { data = v19.__r_.__value_.__l.__data_; size = v19.__r_.__value_.__l.__size_; } else { size = *(_BYTE *)&v19.__r_.__value_.__l.0 >> 1; data = v19.__r_.__value_.__s.__data_; } v16 = std::string::append(&v18, data, size); *a1 = *v16; *(_OWORD *)&v16->__r_.__value_.__l.0 = 0; v16->__r_.__value_.__r.__words[2] = 0; if ( (*(_BYTE *)&v19.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v19.__r_.__value_.__l.__data_); if ( (*(_BYTE *)&v18.__r_.__value_.__s.0 & 1) != 0 ) { v17 = v18.__r_.__value_.__l.__data_; LABEL_31: operator delete(v17); return; } return; } } else { v3 = (std::string *)(a2 + 1440); if ( v2 >> 1 ) goto LABEL_4; } sub_1004EF000(&v20, 16); if ( (*(_BYTE *)&v3->__r_.__value_.__s.0 & 1) != 0 ) operator delete(*(void **)(a2 + 1456)); *v3 = v20; if ( (*(_BYTE *)&v3->__r_.__value_.__s.0 & 1) == 0 ) goto LABEL_5; goto LABEL_15; } if ( *(_DWORD *)(a2 + 920) > *(_DWORD *)(a2 + 924) ) { *(_WORD *)&v19.__r_.__value_.__l.0 = 25602; v19.__r_.__value_.__s.__data_[1] = 0; v4 = sub_10088E820("%i", *(_BYTE *)&v18.__r_.__value_.__l.0); CString = (const std::string::value_type *)cocos2d::CCString::getCString(v4); v6 = std::string::append(&v19, CString); v18 = *v6; *(_OWORD *)&v6->__r_.__value_.__l.0 = 0; v6->__r_.__value_.__r.__words[2] = 0; v7 = std::string::append(&v18, "_"); v20 = *v7; *(_OWORD *)&v7->__r_.__value_.__l.0 = 0; v7->__r_.__value_.__r.__words[2] = 0; v8 = sub_10088E820("%i", *(_BYTE *)&v18.__r_.__value_.__l.0); v9 = (const std::string::value_type *)cocos2d::CCString::getCString(v8); v10 = std::string::append(&v20, v9); *a1 = *v10; *(_OWORD *)&v10->__r_.__value_.__l.0 = 0; v10->__r_.__value_.__r.__words[2] = 0; if ( (*(_BYTE *)&v20.__r_.__value_.__s.0 & 1) != 0 ) { operator delete(v20.__r_.__value_.__l.__data_); if ( (*(_BYTE *)&v18.__r_.__value_.__s.0 & 1) == 0 ) { LABEL_9: if ( (*(_BYTE *)&v19.__r_.__value_.__s.0 & 1) == 0 ) return; LABEL_30: v17 = v19.__r_.__value_.__l.__data_; goto LABEL_31; } } else if ( (*(_BYTE *)&v18.__r_.__value_.__s.0 & 1) == 0 ) { goto LABEL_9; } operator delete(v18.__r_.__value_.__l.__data_); if ( (*(_BYTE *)&v19.__r_.__value_.__s.0 & 1) == 0 ) return; goto LABEL_30; } if ( *(_BYTE *)(a2 + 649) == 1 ) *(_WORD *)&v20.__r_.__value_.__l.0 = 26370; else *(_WORD *)&v20.__r_.__value_.__l.0 = 28418; v20.__r_.__value_.__s.__data_[1] = 0; v13 = sub_10088E820("%i", *(_BYTE *)&v18.__r_.__value_.__l.0); v14 = (const std::string::value_type *)cocos2d::CCString::getCString(v13); v15 = std::string::append(&v20, v14); *a1 = *v15; *(_OWORD *)&v15->__r_.__value_.__l.0 = 0; v15->__r_.__value_.__r.__words[2] = 0; if ( (*(_BYTE *)&v20.__r_.__value_.__s.0 & 1) != 0 ) { v17 = v20.__r_.__value_.__l.__data_; goto LABEL_31; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source