Function at 0x42b5c8
Capabilities:
Get file attributes
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x56c
push edi
push esi
push ebx
mov esi, dword [ebp + 8]
mov eax, dword [0x45cc24]
cmp eax, 1
jle 0x42b5f6
push eax
push 0x42b550
push 0x427dcb
push 0x20
call fcn.00437adc
add esp, 0x10
push esi
lea ebx, [ebp - 0x200]
push 0x45c334
mov edi, ebx
push 0x427d91
push ebx
call sub.cygwin1.dll_sprintf
add esp, 0x10
cmp byte [0x45cba8], 0
je 0x42b6d8
add esp, 0xfffffff8
lea ebx, [ebp - 0x540]
push esi
push ebx
lea esi, [ebp - 0x100]
call sub.cygwin1.dll_strcpy
add esp, 0x10
lea edx, [ebp - 0x53f]
mov ecx, ebx
cmp byte [ebp - 0x540], 0
je 0x42b65b
lea esi, [esi]
cmp byte [edx], 0x2f
jne 0x42b654
mov byte [edx], 0x2e
mov al, byte [edx]
inc edx
test al, al
jne 0x42b64c
push ecx
push 0x45cba8
push 0x42b56e
push esi
call sub.cygwin1.dll_sprintf
mov eax, esi
mov edx, dword [ebp - 0x554]
add esp, 0x10
mov edx, dword [eax]
test dh, dl
jne 0x42b685
test dl, dl
je 0x42b69d
test dh, dh
je 0x42b69c
test edx, 0xff0000
je 0x42b69b
add eax, 4
test edx, 0xff000000
jne 0x42b677
sub eax, 3
inc eax
inc eax
cmp byte [eax - 1], 0x2e
jne 0x42b6f2
mov eax, esi
mov edx, dword [ebp - 0x558]
mov edx, dword [eax]
test dh, dl
jne 0x42b6b9
test dl, dl
je 0x42b6d1
test dh, dh
je 0x42b6d0
test edx, 0xff0000
je 0x42b6cf
add eax, 4
test edx, 0xff000000
jne 0x42b6ab
sub eax, 3
inc eax
inc eax
mov byte [eax - 1], 0
jmp 0x42b6f2
add esp, 0xfffffffc
lea ebx, [ebp - 0x100]
push edi
mov esi, ebx
push 0x42b57a
push ebx
call sub.cygwin1.dll_sprintf
add esp, 0x10
add esp, 0xfffffff8
push 0x42b585
push esi
call sub.cygwin1.dll_fopen
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x42b7c8
add esp, 0xfffffff8
push esi
push edi
call fcn.0042ab0c
add esp, 0x10
test eax, eax
je 0x42b7a8
add esp, 0xfffffff8
push 0x42b585
push esi
call sub.cygwin1.dll_fopen
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x42b750
add esp, 0xfffffffc
push edi
push 0x42b5a4
push 0x20
call fcn.00437adc
xor eax, eax
jmp 0x42b874
mov word [ebp - 0x550], 2
mov dword [ebp - 0x54c], 0
mov word [ebp - 0x54e], 0
mov dword [ebp - 0x548], 0
add esp, 0xfffffffc
lea eax, [ebp - 0x550]
push eax
push 9
add esp, 0xfffffff4
push ebx
call sub.cygwin1.dll_fileno
add esp, 0x10
push eax
call sub.cygwin1.dll_fcntl
add esp, 0x10
add esp, 0xfffffff8
push ebx
push edi
call fcn.0042b08c
jmp 0x42b86c
add esp, 0xfffffff8
push 0x42aab9
push esi
call sub.cygwin1.dll_fopen
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x42b750
xor eax, eax
jmp 0x42b874
mov word [ebp - 0x550], 2
mov dword [ebp - 0x54c], 0
mov word [ebp - 0x54e], 0
mov dword [ebp - 0x548], 0
add esp, 0xfffffffc
lea eax, [ebp - 0x550]
push eax
push 9
add esp, 0xfffffff4
push ebx
call sub.cygwin1.dll_fileno
add esp, 0x10
push eax
call sub.cygwin1.dll_fcntl
add esp, 0x10
lea eax, [ebp - 0x400]
push ebx
push 1
push 0x200
push eax
call sub.cygwin1.dll_fread
add esp, 0xfffffff8
lea eax, [ebp - 0x440]
push eax
push edi
call sub.cygwin1.dll_stat
add esp, 0x20
add esp, 0xfffffff4
push 0
call sub.cygwin1.dll_time
mov edx, dword [ebp - 0x3fc]
add esp, 0x10
sub eax, edx
cmp eax, 0x5460
jg 0x42b862
cmp edx, dword [ebp - 0x420]
jl 0x42b862
cmp edx, dword [ebp - 0x418]
jge 0x42b86c
add esp, 0xfffffff8
push ebx
push edi
call fcn.0042b08c
inc dword [0x45cc24]
mov eax, ebx
lea esp, [ebp - 0x578]
pop ebx
pop esi
pop edi
mov esp, ebp
pop ebp
ret