Function at 0x42ab0c
Capabilities:
Get file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x46c
push edi
push esi
push ebx
add esp, 0xfffffffc
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x43c], 0
mov eax, dword [ebp + 8]
push eax
lea ebx, [ebp - 0x100]
push 0x42aaaf
push ebx
call sub.cygwin1.dll_sprintf
add esp, 0xfffffff8
push 0x42a31b
push ebx
call sub.cygwin1.dll_fopen
mov dword [ebp - 0x434], eax
add esp, 0x20
test eax, eax
jne 0x42ab60
xor eax, eax
jmp 0x42b057
add esp, 0xfffffff8
push 0x42aab9
push esi
call sub.cygwin1.dll_fopen
mov dword [ebp - 0x438], eax
add esp, 0x10
test eax, eax
jne 0x42aba4
add esp, 0xfffffffc
push esi
push 0x42aabd
push 0x20
call fcn.00437adc
add esp, 0xfffffff4
mov edx, dword [ebp - 0x434]
push edx
call sub.cygwin1.dll_fclose
xor eax, eax
jmp 0x42b057
mov eax, dword [ebp + 8]
push eax
push 0x42aae4
push 0x427dcb
push 0x100
call fcn.00437adc
add esp, 0xfffffff4
mov edx, dword [ebp - 0x438]
push edx
call sub.cygwin1.dll_ftell
mov dword [ebp - 0x440], eax
add esp, 0x20
mov eax, dword [ebp - 0x434]
test byte [eax + 0xc], 0x20
jne 0x42b01e
add esp, 0xfffffffc
mov edx, dword [ebp - 0x434]
push edx
lea eax, [ebp - 0x100]
push 0x78
push eax
call sub.cygwin1.dll_fgets
lea eax, [ebp - 0x100]
mov edx, dword [ebp - 0x444]
add esp, 0x10
mov edx, dword [eax]
test dh, dl
jne 0x42ac19
test dl, dl
je 0x42ac31
test dh, dh
je 0x42ac30
test edx, 0xff0000
je 0x42ac2f
add eax, 4
test edx, 0xff000000
jne 0x42ac0b
sub eax, 3
inc eax
inc eax
cmp byte [eax - 1], 0xa
jne 0x42ac6d
lea eax, [ebp - 0x100]
mov edx, dword [ebp - 0x448]
mov edx, dword [eax]
test dh, dl
jne 0x42ac51
test dl, dl
je 0x42ac69
test dh, dh
je 0x42ac68
test edx, 0xff0000
je 0x42ac67
add eax, 4
test edx, 0xff000000
jne 0x42ac43
sub eax, 3
inc eax
inc eax
mov byte [eax - 1], 0
mov eax, dword [ebp - 0x434]
test byte [eax + 0xc], 0x20
jne 0x42b01e
add esp, 0xfffffff8
lea edx, [ebp - 0x100]
push edx
lea edi, [ebp - 0x140]
push edi
call fcn.00438fc4
add esp, 0xfffffff4
push edi
call fcn.00411bec
add esp, 0x20
mov al, byte [ebp - 0x140]
test al, al
je 0x42b00e
cmp al, 0x3b
je 0x42b00e
cmp al, 0x23
je 0x42b00e
cmp al, 0x2d
jne 0x42add4
cmp dword [ebp - 0x43c], 0
je 0x42b00e
add esp, 0xfffffff4
lea eax, [ebp - 0x100]
push eax
lea ebx, [ebp - 0x33b]
call fcn.00411bec
lea esi, [ebp - 0x380]
lea eax, [ebp - 0x100]
mov edx, dword [ebp - 0x44c]
mov ecx, ebx
add esp, 0x10
mov edx, dword [eax]
test dh, dl
jne 0x42ad0c
test dl, dl
je 0x42ad24
test dh, dh
je 0x42ad23
test edx, 0xff0000
je 0x42ad22
add eax, 4
test edx, 0xff000000
jne 0x42acfe
sub eax, 3
inc eax
inc eax
lea edx, [ebp - 0x100]
sub eax, edx
mov edx, ebx
and ecx, 3
je 0x42ad49
jp 0x42ad44
cmp ecx, 2
je 0x42ad3f
cmp byte [edx], ch
je 0x42ad6f
inc edx
cmp byte [edx], ch
je 0x42ad6f
inc edx
cmp byte [edx], ch
je 0x42ad6f
inc edx
mov ecx, dword [edx]
test ch, cl
jne 0x42ad57
test cl, cl
je 0x42ad6f
test ch, ch
je 0x42ad6e
test ecx, 0xff0000
je 0x42ad6d
add edx, 4
test ecx, 0xff000000
jne 0x42ad49
sub edx, 3
inc edx
inc edx
sub edx, ebx
add eax, edx
cmp eax, 0x258
ja 0x42b00e
add esp, 0xfffffff8
push 0x42ab0a
push ebx
call sub.cygwin1.dll_strcat
add esp, 0xfffffff8
lea eax, [ebp - 0x100]
push eax
push ebx
call sub.cygwin1.dll_strcat
add esp, 0x20
add esp, 0xfffffffc
push 0
mov edx, dword [ebp - 0x440]
push edx
mov eax, dword [ebp - 0x438]
push eax
call sub.cygwin1.dll_fseek
mov edx, dword [ebp - 0x438]
push edx
push 1
push 0x200
push esi
call sub.cygwin1.dll_fwrite
add esp, 0x20
jmp 0x42b00e
add esp, 0xfffffff4
mov dword [ebp - 0x43c], 1
mov eax, dword [ebp - 0x438]
lea ebx, [ebp - 0x160]
push eax
lea esi, [ebp - 0x180]
call sub.cygwin1.dll_ftell
lea edx, [ebp - 0x100]
mov dword [ebp - 0x440], eax
add esp, 0xfffffff4
push edx
call fcn.00411bec
add esp, 0x20
lea eax, [ebp - 0x100]
add esp, 0xfffffff8
push eax
push ebx
call fcn.00438fc4
add esp, 0xfffffff4
push ebx
call fcn.00411bec
add esp, 0x20
lea edx, [ebp - 0x100]
add esp, 0xfffffff4
push edx
call fcn.00411bec
lea eax, [ebp - 0x100]
add esp, 0xfffffff8
push eax
push esi
call fcn.00438fc4
add esp, 0x20
add esp, 0xfffffff4
push esi
call fcn.00411bec
add esp, 0xfffffff4
lea edx, [ebp - 0x100]
push edx
call fcn.00411bec
mov eax, edi
mov edx, dword [ebp - 0x450]
add esp, 0x20
mov edx, dword [eax]
test dh, dl
jne 0x42ae80
test dl, dl
je 0x42ae98
test dh, dh
je 0x42ae97
test edx, 0xff0000
je 0x42ae96
add eax, 4
test edx, 0xff000000
jne 0x42ae72
sub eax, 3
inc eax
inc eax
cmp byte [eax - 1], 0x2f
jne 0x42aed0
mov eax, edi
mov edx, dword [ebp - 0x454]
mov edx, dword [eax]
test dh, dl
jne 0x42aeb4
test dl, dl
je 0x42aecc
test dh, dh
je 0x42aecb
test edx, 0xff0000
je 0x42aeca
add eax, 4
test edx, 0xff000000
jne 0x42aea6
sub eax, 3
inc eax
inc eax
mov byte [eax - 1], 0
add esp, 0xfffffff8
mov byte [ebp - 0x380], 1
mov word [ebp - 0x37e], 0
mov byte [ebp - 0x33b], 0
push edi
lea eax, [ebp - 0x378]
push eax
call sub.cygwin1.dll_strcpy
add esp, 0xfffffff8
lea eax, [ebp - 0x20e]
push ebx
push eax
call sub.cygwin1.dll_strcpy
add esp, 0x20
lea eax, [ebp - 0x100]
add esp, 0xfffffff4
push eax
call sub.cygwin1.dll_atoi
add esp, 0xfffffff4
mov word [ebp - 0x1f0], ax
mov byte [ebp - 0x1ee], 0
push esi
call sub.cygwin1.dll_atol
mov dword [ebp - 0x1f8], eax
add esp, 0x20
mov byte [ebp - 0x204], 0
lea eax, [ebp - 0x100]
push edi
mov edx, dword [ebp + 8]
push edx
push 0x427d81
push eax
call sub.cygwin1.dll_sprintf
add esp, 0xfffffff8
lea eax, [ebp - 0x3c0]
push eax
lea edx, [ebp - 0x100]
push edx
call sub.cygwin1.dll_stat
add esp, 0x20
test eax, eax
jne 0x42b004
mov eax, dword [ebp - 0x3b8]
and eax, 0xf000
cmp eax, 0x4000
jne 0x42afd7
or byte [ebp - 0x37e], 2
cmp byte [ebp - 0x160], 0x2b
jne 0x42afd7
add esp, 0xfffffff8
lea ebx, [ebp - 0x430]
push ebx
lea eax, [ebp - 0x15f]
add esp, 0xfffffff4
push eax
call fcn.00452e14
add esp, 0x10
push eax
call fcn.00453540
add esp, 0xfffffffc
lea eax, [ebp - 0x204]
push 0xa
push ebx
push eax
call sub.cygwin1.dll_strncpy
mov byte [ebp - 0x1fa], 0
add esp, 0x20
mov eax, dword [ebp - 0x3ac]
mov dword [ebp - 0x1f4], eax
mov eax, dword [ebp - 0x438]
push eax
push 1
lea eax, [ebp - 0x380]
push 0x200
push eax
call sub.cygwin1.dll_fwrite
add esp, 0x10
jmp 0x42b00e
mov dword [ebp - 0x43c], 0
mov edx, dword [ebp - 0x434]
test byte [edx + 0xc], 0x20
je 0x42abe4
add esp, 0xfffffffc
push 2
push 0
mov eax, dword [ebp - 0x438]
push eax
call sub.cygwin1.dll_fseek
add esp, 0xfffffff4
mov edx, dword [ebp - 0x438]
push edx
call sub.cygwin1.dll_fclose
add esp, 0x20
mov eax, dword [ebp - 0x434]
add esp, 0xfffffff4
push eax
call sub.cygwin1.dll_fclose
mov eax, 1
lea esp, [ebp - 0x478]
pop ebx
pop esi
pop edi
mov esp, ebp
pop ebp
ret