Can I group functions based on their place in the binary? Can I assume functions next to each othe belong to the same logical group, or at least they have similar functionality? I suspect that the ordering/layout of the functions are decided compile time, however I still don't know what exactly controls this.
Anyway, here is an example for better understanding my question. Let's say I have 3 functions that IDA named for me :
sub_00543210
sub_00543211
sub_00543212
Later during the analysis I find out the name of two functions.
foo_bar1
sub_00543211
foo_bar3
At this point I would say that the name of the 2nd function, surrounded by found function names is definitely has something to do with "foo" so I'll name it "foo_bar2". (Which later it turned out to be true.)
Is this a valid assumption, or was this a special occasion?