I often have some code like this on the beginning of every function of a decompiled program:
iVar1 = 0x42;
puVar2 = local_10c;
while (iVar1 != 0) {
iVar1 = iVar1 + -1;
*puVar2 = 0xcccccccc;
puVar2 = puVar2 + 1;
}
0xcccccccc in web search seems related to "uninitialized memory" but I don't see the link with this blanket code.
What is it? What purpose does it have? Why is it there as "template" for every function?