QuickLinks -- Click here to rapidly navigate through this document


Exhibit 10.4

[ORANGE COUNTY BUSINESS BANK LOGO]

LOAN NUMBER   LOAN NAME   ACCT. NUMBER   AGREEMENT DATE   INITIALS
010274428   THE WILLDAN GROUP OF COMPANIES       06/24/05   NG 1
NOTE AMOUNT   INDEX(W/Margin)   RATE   MATURITY DATE   LOAN PURPOSE
$900,000,000   Wall Street Journal Prime plus 0.250%   6.250%   07/01/07   Commercial
        Creditor Use Only        


COMMERCIAL LOAN AGREEMENT
Single Advance Loan

DATE AND PARTIES.    The date of this Commercial Loan Agreement (Agreement) is June 24, 2005. The parties and their addresses are as follows:

1.
DEFINITIONS.    For the purposes of this Agreement, the following terms have the following meanings.

A.
Accounting Terms.    In this Agreement, any accounting terms that are not specifically defined will have their customary meanings under generally accepted accounting principles.

B.
Insiders.    Insiders include those defined as insiders by the United States Bankruptcy Code, as amended; or to the extent left undefined, include without limitation any officer, employee, stockholder or member, director, partner, or any immediate family member of any of the foregoing, or any person or entity which, directly or indirectly, controls, is controlled by or is under common control with me.

C.
Loan.    The Loan refers to this transaction generally, including obligations and duties arising from the terms of all documents prepared or submitted for this transaction.

D.
Loan Documents.    Loan Documents refer to all the documents executed as a part of or in connection with the Loan.

E.
Pronouns.    The pronouns "I", "me" and "my" refer to every Borrower signing this Agreement, individually or together. "You" and "your" refer to the Loan's lender.

F.
Property.    Property is any property, real, personal or intangible, that secures my performance of the obligations of this Loan.

2.
SINGLE ADVANCE.    In accordance with the terms of this Agreement and other Loan Documents, you will provide me with a term note in the amount of $900,000,00 (Principal). I will receive the funds from this Loan in one advance. No additional advances are contemplated, except

1


3.
MATURITY DATE.    I agree to fully repay the Loan by July 1, 2007.

4.
WARRANTIES AND REPRESENTATIONS.    I make to you the following warranties and representations which will continue as long as this Loan is in effect, except when this Agreement provides otherwise.

A.
Power.    I am duly organized, and validly existing and in good standing in all jurisdictions in which I operate. I have the power and authority to enter into this transaction and to carry on my business or activity as it is now being conducted and, as applicable, am qualified to do so in each jurisdiction in which I operate.

B.
Authority.    The execution, delivery and performance of this Loan and the obligation evidenced by the Note are within my powers, have been duly authorized, have received all necessary governmental approval, will not violate any provision of law, or order of court or governmental agency, and will not violate any agreement to which I am a party or to which I am or any of my property is subject.

C.
Name and Place of Business.    Other than previously disclosed in writing to you I have not changed my name or principal place of business within the last 10 years and have not used any other trade or fictitious name. Without your prior written consent, I do not and will not use any other name and will preserve my existing name, trade names and franchises.

D.
Hazardous Substances.    Except as I previously disclosed in writing and you acknowledge in writing, no Hazardous Substances, underground tanks, private dumps or open wells are currently located at, on, in, under or about the Property.

E.
Use of Property.    After diligent inquiry, I do not know or have reason to know that any Hazardous Substance has been discharged, leached or disposed of, in violation of any Environmental Law, from the property onto, over or into any other property, or from any other property onto, over or into the property.

F.
Environmental Laws.    I have no knowledge or reason to believe that there is any pending or threatened investigation, claim, judgment or order, violation, lien, or other notice under any Environmental Law that concerns me or the property. The property and any activities on the property are in full compliance with all Environmental Law.

G.
Loan Purpose.    This Loan is for Commercial purposes.

H.
No Other Liens.    I own or lease all property that I need to conduct my business and activities. I have good and marketable title to all property that I own or lease. All of my Property is free and clear of all liens, security interests, encumbrances and other adverse claims and interests, except those to you or those you consent to in writing.

I.
Compliance With Laws.    I am not violating any laws, regulations, rules, orders, judgments or decrees applicable to me or my property, except for those which I am challenging in good faith through proper proceedings after providing adequate reserves to fully pay the claim and its challenge should I lose.

J.
Legal Dispute.    There are no pending or threatened lawsuits, arbitrations or other proceedings against me or my property that singly or together may materially and adversely affect my property, operations, financial condition, or business.

K.
Adverse Agreements.    I am not a party to, nor am I bound by, any agreement that is now or is likely to become materially adverse to my business, Property or operations.

2


5.
FINANCIAL STATEMENTS.    I will prepare and maintain my financial records using consistently applied generally accepted accounting principles then in effect. I will provide you with financial information in a form that you accept and under the following terms.

A.
Certification.    I represent and warrant that any financial statements that I provide you fairly represents my financial condition for the stated periods, is current, complete, true and accurate in all material respects, includes all of my direct or contingent liabilities and there has been no material adverse change in my financial condition, operations or business since the date the financial information was prepared.

B.
SEC Reports.    I will provide you with true and correct copies of all reports, notices of statements that I provide to the Securities and Exchange Commission, any securities exchange or my stockholders, owners, or the holders of any material indebtedness as soon as available or at least within days after issuance.

C.
Requested Information.    I will provide you with any other information about my operations, financial affairs and condition within twenty (20) days after your request.

6.
CONVENTS.    Until the Loan and all related debts, liabilities and obligations are paid and discharged, I will comply with the following terms, unless you waive compliance in writing.

A.
Participation.    I consent to you participating or syndicating the Loan and sharing any information that you decide is necessary about me and the Loan with the other participants or syndicators.

B.
Inspection.    Following your written request, I will immediately pay for all one-time and recurring out-of-pocket costs that are related to the inspection of my records, business or Property that secures the Loan. Upon reasonable notice, I will permit you or your agents to enter any of my premises and any location where my property is located during regular business hours to do the following.

(1)
You may inspect, audit, check, review and obtain copies from my books, records, journals, orders, receipts, and any correspondence and other business related data.

(2)
You may discuss my affairs, finances and business with any one who provides you with evidence that they are a creditor of mine, the sufficiency of which will be subject to your sole discretion.

(3)
You may inspect my Property, audit for the use and disposition of the Property's proceeds and proceeds of proceeds; or do whatever you decide is necessary to preserve and protect the Property and your Interest in the Property.

3


4


5


6


Borrower covenants and agrees with Lender that while this Agreement is in effect, Borrower shall submit to Lender in substance and form satisfactory to Lender:

Additional Financial Reporting Covenants

Financial Reporting Ratios

Additional Provisions

7.
DEFAULT.    I will be in default if any of the following occur:

A.
Payments.    I fail to make a payment in full within ten (10) days of due date.

7


8.
REMEDIES.    After I default, and after you give any legally recurred notice and opportunity to cure the default, you may at your option do any one or more of the following.

A.
Acceleration.    You make all or any part of the amount owing by terms of the Loan immediately due. If I am a debtor in a bankruptcy practice or in an application filed under section 5(a)(3) of the Securities Investor Protection Act, the Loan is automatically accelerated and immediately due and payable without notice or demand upon filing of the petition or application.

B.
Sources.    You may use any and all remedies you have under state or federal law or in any Loan Document.

C.
Insurance Benefits.    You may make a claim for any and all insurance benefits or refunds that may be available on my default.

D.
Payments Made On My Behalf.    Amounts advanced on my behalf will be immediately due and may be added to the balance owing under the terms of the Loan, and accrue interest at the highest post-maturity Interest rate.

E.
Set-Off.    You may use the right of set-off. This means you may set-off any amount due and payable under the terms of the Loan against any right I have to receive money from you.

8


9.
COLLECTION EXPENSES AND ATTORNEYS' FEES.    On or after Default, to the extent permitted by law, I agree to pay all expenses of collection, enforcement or protection or your rights and remedies under this Agreement or any other Loan Document. Expenses include, but are not limited to attorneys' fees, court costs and other legal expenses. These expenses are due and payable immediately. If not paid immediately, these expenses will bear interest from the date of payment until paid in full at the highest interest rate in effect as provided for in the terms of this Loan. All fess and expenses will be secured by the Property I have granted to you, if any. In addition, to the extent permitted by the United States Bankruptcy Code, I agree to pay the reasonable attorneys' fees incurred by you to protect your rights and interests in connection with any bankruptcy proceedings initiated by or against me.

10.
APPLICABLE LAW.    This Agreement is governed by the laws of California, the United States of America and to the extent required, by the laws of the jurisdiction where the Property is located. In the event of a dispute, the exclusive forum, venue and place of jurisdiction will be in California, unless otherwise required by law.

11.
JOINT AND INDIVIDUAL LIABILITY AND SUCCESSORS.    My obligation to pay the Loan is independent of the obligation of any other person who has also agreed to pay it. You may sue me alone, or anyone else who is obligated on the Loan, or any number of us together, to collect the Loan. Extending the Loan of now obligations under the Loan, will not affect my duty under the Loan and I will still be obligated to pay the Loan. You may assign all or part of your rights or duties under this Agreement of the Loan Documents without my consent. If you assign this Agreement, all of my covenants, agreements, representations and warranties contained in this Agreement or the Loan Documents will benefit your successors and assigns. I may not assign this Agreement of any of my rights under it without your prior written consent. The duties of the Loan will bind my successors and assigns.

9


12.
AMENDMENT, INTEGRATION AND SEVERABILITY.    This Agreement may not be amended or modified by oral agreement. No amendment or modification of this Agreement is effective unless made in writing and executed by you and me. This Agreement and the other Loan Documents are the complete and final expression of the understanding between you and me. If any provision of this Agreement is unenforceable, then the unenforceable provision will be severed and the remaining provisions will still be enforceable.

13.
INTERPRETATION.    Whenever used, the singular includes the plural and the plural includes the singular. The section headings are for convenience only and are not to be used to interpret or define the terms of this Agreement.

14.
NOTICE, FINANCIAL REPORTS AND ADDITIONAL DOCUMENTS.    Unless otherwise required by law, any notice will be given by delivering it or mailing it by first class mail to the appropriate party's address listed in the DATE AND PARTIES section, or to any other address designated in writing. Notice to one Borrower will be deemed to be notice to all Borrowers. I will inform you in writing of any change in my name, address or other application information. I will provide you any financial statement or information you request. All financial statements and information I give you will be correct and complete. I agree to sign, deliver, and file any additional documents or certifications that you may consider necessary to perfect, continue, and preserve my obligations under this Loan and to confirm your lien status on any Property. Time is of the essence.

15.
WAIVER OF JURY TRIAL.    All of the parties to this agreement agree to waive our respective right to trial by jury of any cause of action, claim, counterclaim or cross-complaint in any action, proceeding, or hearing brought by either party on any matter arising out of or in any way related to this transaction, the parties' relationship or any claim of injury or damage or the enforcement of any remedy under any law, statute, or regulation, in effect or as amended.

16.
SIGNATURE.    By signing, I agree to the terms contained in this Agreement. I also acknowledge receipt of a copy of this Agreement.

  BORROWER:    

 

 

THE WILLDAN GROUP OF COMPANIES

 

 

 

 

 

By:

/s/ Dan W. Heil


 

 
      DAN W. HEIL, CHAIRMAN OF THE BOARD    

10




QuickLinks

COMMERCIAL LOAN AGREEMENT Single Advance Loan