https://github.com/bitcoin/bitcoin/blob/master/src/core_write.cpp#L95
Looking here the ASM will convert byte arrays of 4 or less to an integer. Specifically a 4 byte array is converted to little endian instead of hexstr for example. So if the 4 bytes is "cats" the ASM will output 1937006947.
So I am more interested in why this is in bitcoin and what functional purpose this serves?