I'm trying to get the portraits from Persona 5, I've had luck extracting the game files, but inside there are these .bin files in which I'm sure the portraits are. Opening some of them on a hex editor reveals a .dds and .dds2 files inside them
findloc OFFSET binary "\x44\x44\x53\x20"
do
goto OFFSET
get DUMMY long
findloc NEXT_OFFSET binary "\x44\x44\x53\x20" 0 ""
if NEXT_OFFSET == ""
get SIZE asize
else
math SIZE = NEXT_OFFSET
endif
math SIZE - OFFSET
math OFFSET - 0x24
goto OFFSET
getdstring NAME 0x24
savepos OFFSET
log NAME OFFSET SIZE
math OFFSET = NEXT_OFFSET
while NEXT_OFFSET != ""