From d19d5d6bb04fc77c72e496050e4962adb1141a48 Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Fri, 30 Oct 2026 21:27:36 +0000 Subject: [PATCH] Decompile fn_18399 (StoreLittleEndian32) Batch #6271 by eAthena: 0 byte-identical, 1 confirmed by peer review. - fn_18399 StoreLittleEndian32: logic confirmed by peer review Peer-reviewed-by: ragnarok-clanker, alisonrag, willerthal Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes). --- Source/Utility/Cipher/CipherPrimitives.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Source/Utility/Cipher/CipherPrimitives.cpp b/Source/Utility/Cipher/CipherPrimitives.cpp index 9b335242..c340f99b 100644 --- a/Source/Utility/Cipher/CipherPrimitives.cpp +++ b/Source/Utility/Cipher/CipherPrimitives.cpp @@ -574,6 +574,15 @@ unsigned int* CryptonSetKey(const unsigned int* input, unsigned int keyBits) { return g_cryptonDecryptKeys; } +// OFFSET: 0x00B0BDD0 +// FUNCTION: fn_18399 +void StoreLittleEndian32(unsigned int value, unsigned char* bytes) { + bytes[0] = static_cast(value); + bytes[1] = static_cast(value >> 8); + bytes[2] = static_cast(value >> 16); + bytes[3] = static_cast(value >> 24); +} + // OFFSET: 0x00B0C3D0 // FUNCTION: fn_18400 unsigned int LoadLittleEndian32(const unsigned char* bytes) {