If you cut the nails holding one of the corner studs to the bottom plate and the top plate with a Sawzall, you can use a flat bar (or a flat bar plus a wrecking bar) to pull the stud off the sheathing nails. Either re-use the stud, or buy a new stud, and install the stud with toenails as shown in the link I provided in Comment #51 (this link: Outside corner detail).
How Much Will Spray Foam Save Me
Low-pressure spray polyurethane foam is typically applied around ductwork, electrical or piping penetrations, rim joists and roof repairs. This type of foam is used to insulate and seal small to mid-sized areas in homes and other buildings that are too large or extensive for smaller, insulating foam sealants. It is especially effective in weatherizing older homes that have many cracks, gaps and wall penetrations around doors, window frames, pipes and plumbing lines. The air- and heat-leakage improvements can be quite dramatic after a low-pressure SPF application, which can result in greater efficiencies.
For maximum durability and leak resistance, we recommend that two coats of topcoat be applied at 100 sq. ft. per gallon, or a minimum of 20 mils dry coating. If two complete topcoats are not applied, always apply two thick coats to problem areas such as scuppers, drain areas, ponding areas, seams, and repaired areas. Avoid using Elastek Solar Magic™ or The Shield™ on ponding roofs. Clean skin and tools promptly with water.
This tropic heat actually is the cause that the steel structure, which most roofs in that part of the world are built on, expands and contracts all the time. By doing so, the sun-battered steel structure causes the roof tiles to dislodge and slowly creates small openings between the roof tiles, through which rain water can run into, creating leaks that can cause much damage to plastered ceilings and electric wiring.