// // GJGameLevel::saveNewScore from 0x140264b10 to 0x140264cda (458 bytes) // // 6 xrefs: // > GJGameLevel::handleStatsConflict @ 0x14026a851 // > GJGameLevel::handleStatsConflict @ 0x14026a8ac // > PlayLayer::levelComplete @ 0x140506a63 // > PlayLayer::levelComplete @ 0x140506af4 // > PlayLayer::levelComplete @ 0x140506b6c // > @ 0x14091c8b0 // // 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 11:28:49 +0000 // // Hidden C++ exception states: #wind=1 __int64 __fastcall GJGameLevel::saveNewScore( __int64 a1, int a2, unsigned int a3, int a4, int a5, int a6, _QWORD *a7, char a8) { unsigned __int8 v11; // bp int v12; // eax _QWORD *v13; // rdx int v14; // eax _QWORD *v15; // rdx v11 = 0; if ( a3 ) { if ( a2 ) { v14 = *(_DWORD *)(a1 + 1464); if ( a2 > v14 || !v14 || a8 ) { *(_DWORD *)(a1 + 1464) = a2; *(_DWORD *)(a1 + 1468) = a4; *(_DWORD *)(a1 + 1472) = a5; *(_DWORD *)(a1 + 1476) = a6; *(_DWORD *)(a1 + 1512) = sub_1402649C0( *(_DWORD *)(a1 + 1416), a2, *(_DWORD *)(a1 + 1424), *(_DWORD *)(a1 + 1420), *(_DWORD *)(a1 + 1428), a5, a4, a6); if ( (_QWORD *)(a1 + 1480) != a7 ) { v15 = a7; if ( a7[3] > 0xFu ) v15 = (_QWORD *)*a7; sub_1400405A0((void **)(a1 + 1480), v15, a7[2]); } *(_BYTE *)(a1 + 1585) = 1; goto LABEL_20; } } } else if ( a2 > 0 ) { v12 = *(_DWORD *)(a1 + 1416); if ( a2 < v12 || !v12 || a8 ) { *(_DWORD *)(a1 + 1416) = a2; *(_DWORD *)(a1 + 1420) = a4; *(_DWORD *)(a1 + 1424) = a5; *(_DWORD *)(a1 + 1428) = a6; *(_DWORD *)(a1 + 1512) = sub_1402649C0( a2, *(_DWORD *)(a1 + 1464), a5, a4, a6, *(_DWORD *)(a1 + 1472), *(_DWORD *)(a1 + 1468), *(_DWORD *)(a1 + 1476)); if ( (_QWORD *)(a1 + 1432) != a7 ) { v13 = a7; if ( a7[3] > 0xFu ) v13 = (_QWORD *)*a7; sub_1400405A0((void **)(a1 + 1432), v13, a7[2]); } *(_BYTE *)(a1 + 1584) = 1; LABEL_20: v11 = 1; } } GJGameLevel::storeNewLocalScore(a1, (unsigned int)a2, a3); sub_14003D310((__int64)a7); return v11; }
GD Web Decomp Icon

GD Web Decomp

Raw Source