I need assistance in ida pro regarding sp analysis failure. The link to the dissembled function is here: http://pastebin.com/XRwzswgS The program has a lot of these errors which hinders hexrays decompilation. The analysis failure is shown in line 333 in pastebin. I have included the SP pointer values from ida
In a line 34 you have a following code:
.text:0046FC96 010 mov eax, 3AFCh .text:0046FC9B 010 call __alloca
This code allocates
0x3afc bytes on stack and this allocation is not reflected in IDA stack analysis (if the assumption that
_alloca function detected and defined correctly is correct, see linux alloca man page and MSDN alloca documentation for more details about this function).
To fix this you should go to
call _alloca instruction, press ALt-K and insert the needed value (probably
-0x3afc in your specific case, but I'm not sure).
This will hint IDA that there is a stack pointer change here.