REA tool: procedure_pseudo_code {"procedure": "0x1003512"} on winmine.exe 5.1.2600.0 (sha256 bcff8931...eaaf41), Ghidra 12.1.4 provider, session winmine-q1-rea.
Short excerpt (the first-click branch) of the decompiler's output for the click routine; names such as FUN_ and DAT_ are Ghidra's placeholders.
DAT_010057a4 = squares revealed so far; DAT_01005338 = height; DAT_01005334 = width; DAT_01005340 = board, 32 bytes per row; 0x80 = mine bit.

    if (DAT_010057a4 == 0) {
      iVar1 = 1;
      if (DAT_01005338 < 2) {
        return;
      }
      puVar3 = &DAT_01005360;
      do {
        iVar2 = 1;
        if (1 < DAT_01005334) {
          do {
            if ((puVar3[iVar2] & 0x80) == 0) {
              (&DAT_01005340)[param_1 + param_2 * 0x20] = 0xf;
              (&DAT_01005340)[iVar2 + iVar1 * 0x20] = (&DAT_01005340)[iVar2 + iVar1 * 0x20] | 0x80;
              FUN_01003084(param_1,param_2);
              return;
            }
            iVar2 = iVar2 + 1;
          } while (iVar2 < DAT_01005334);
        }
        iVar1 = iVar1 + 1;
        puVar3 = puVar3 + 0x20;
      } while (iVar1 < DAT_01005338);
      return;
    }
