title: IDA - positive sp value has been found error
body: <p>We have a DLL which we have lost the source for so I am trying to figure out how it works via IDA Dissembler. However there seems to be function that I can't access because I get the following error:</p>
  
  <pre><code>Decompilation failure:
  46AFAF: positive sp value has been found
  </code></pre>
  
  <p>Looking on the IDA website it has this to say:</p>
  
  <pre><code>The stack pointer at the specified address is higher than the initial stack pointer.
  Functions behaving so strangely can not be decompiled. If you see that the stack
  pointer values are incorrect, modify them with the Alt-K (Edit, Functions, Change
  stack pointer) command in IDA. 
  </code></pre>
  
  <p><a href="http://www.hex-rays.com/products/decompiler/manual/failures.shtml#04" rel="noreferrer">http://www.hex-rays.com/products/decompiler/manual/failures.shtml#04</a></p>
  
  <p>Since I am new to the whole Dissembling scene is anyone able to provide more information on what causes the stack pointer to be higher than the initial stack pointer and whether this is fixable.
  Thanks for your time</p>