Function at 0x1004018b0
Capabilities:
Get file attributes

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x4b0
mov rdi, qword [sym.imp.cygwin1.dll___stack_chk_guard]
xor ebp, ebp
mov rax, qword [rdi]
mov qword [rsp + 0x4a8], rax
xor eax, eax
lea r13, [rsp + 0x20]
mov rsi, rcx
mov rdx, r13
call sub.cygwin1.dll_stat
test eax, eax
jne 0x1004018fe
mov eax, dword [rsp + 0x30]
and eax, 0xf000
cmp eax, 0x6000
cmove ebp, dword [rsp + 0x40]
lea rdx, [0x100407c30]
lea rcx, str._proc_swaps
xor r14d, r14d
call sub.cygwin1.dll_fopen
mov r12, rax
test rax, rax
je 0x1004019c8
lea rbx, [rsp + 0xa0]
mov r8, rax
mov edx, 0x400
mov rcx, rbx
call sub.cygwin1.dll_fgets
test rax, rax
je 0x1004019bd
cmp byte [rsp + 0xa0], 0
je 0x1004019a8
movabs rax, 0x656d616e656c6946
cmp qword [rbx], rax
je 0x1004019f0
mov edx, 0x20
mov rcx, rbx
call sub.cygwin1.dll_strchr
test rax, rax
je 0x100401973
mov byte [rax], 0
mov edx, 9
mov rcx, rbx
call sub.cygwin1.dll_strchr
test rax, rax
je 0x100401988
mov byte [rax], 0
mov rdx, rsi
mov rcx, rbx
call sub.cygwin1.dll_strcmp
test eax, eax
jne 0x1004019a0
mov r14d, 1
jmp 0x1004019c0
test ebp, ebp
jne 0x100401a00
nop dword [rax]
mov r8, r12
mov edx, 0x400
mov rcx, rbx
call sub.cygwin1.dll_fgets
test rax, rax
jne 0x10040195e
xor r14d, r14d
mov rcx, r12
call sub.cygwin1.dll_fclose
mov rax, qword [rsp + 0x4a8]
xor rax, qword [rdi]
jne 0x100401a2a
mov eax, r14d
add rsp, 0x4b0
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
cmp byte [rbx + 8], 9
jne 0x10040195e
jmp 0x1004019a8
mov rdx, r13
mov rcx, rbx
call sub.cygwin1.dll_stat
test eax, eax
jne 0x1004019a8
mov eax, dword [rsp + 0x30]
and eax, 0xf000
cmp eax, 0x6000
jne 0x1004019a8
cmp dword [rsp + 0x40], ebp
jne 0x1004019a8
jmp 0x100401997
call sub.cygwin1.dll___stack_chk_fail
nop
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xd8
mov rax, qword [sym.imp.cygwin1.dll___stack_chk_guard]
mov dword [rsp + 0x138], r9d
mov rsi, rcx
mov rdi, rdx
mov r13, r8
mov rbx, qword [rax]
mov qword [rsp + 0xc8], rbx
xor ebx, ebx
call fcn.1004018b0
mov r12d, eax
test eax, eax
je 0x100401ae0
mov dword [rdi], 9
test r13, r13
je 0x100401ad8
mov ecx, dword [rsp + 0x138]
test ecx, ecx
je 0x100401ad8
movsxd r8, dword [rsp + 0x138]
lea rdx, str._SWAP_
mov rcx, r13
xor r12d, r12d
call sub.cygwin1.dll_strncpy
mov rax, qword [sym.imp.cygwin1.dll___stack_chk_guard]
mov rdi, qword [rsp + 0xc8]
xor rdi, qword [rax]
jne 0x100401d95
mov eax, r12d
add rsp, 0xd8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
xor r12d, r12d
jmp 0x100401aa4
mov dword [rdi], 0
lea rdx, [0x100407c50]
lea rcx, str._etc_mtab
call sub.cygwin1.dll_setmntent
mov r14, rax
test rax, rax
je 0x100401d18
lea r15, [rsp + 0x40]
mov rcx, rsi
mov rdx, r15
call sub.cygwin1.dll_stat
test eax, eax
je 0x100401c40
mov qword [rsp + 0x38], 0
xor ebp, ebp
mov dword [rsp + 0x34], 0
mov rcx, r14
call sub.cygwin1.dll_getmntent
mov rbx, rax
test rax, rax
je 0x100401ce0
mov r8, qword [rbx]
cmp byte [r8], 0x2f
jne 0x100401b30
mov rdx, r8
mov rcx, rsi
mov qword [rsp + 0x28], r8
call sub.cygwin1.dll_strcmp
test eax, eax
je 0x100401ba0
mov r8, qword [rsp + 0x28]
mov rdx, r15
mov rcx, r8
call sub.cygwin1.dll_stat
test eax, eax
jne 0x100401b30
mov eax, dword [rsp + 0x50]
and eax, 0xf000
cmp eax, 0x6000
je 0x100401c90
test ebp, ebp
je 0x100401b30
cmp ebp, dword [rsp + 0x40]
jne 0x100401b30
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 0x48], rax
jne 0x100401b30
nop
mov rcx, qword [rbx + 8]
mov rdx, r15
call sub.cygwin1.dll_stat
test eax, eax
js 0x100401cc0
mov edx, dword [rsp + 0x34]
test edx, edx
jne 0x100401c70
mov dword [rdi], 1
mov rdx, qword [rbx + 8]
test r13, r13
je 0x100401be3
movsxd r8, dword [rsp + 0x138]
mov rcx, r13
call sub.cygwin1.dll_strncpy
mov rdx, qword [rbx + 8]
cmp byte [rdx], 0x2f
jne 0x100401c80
cmp byte [rdx + 1], 0
jne 0x100401c80
mov eax, dword [rdi]
or eax, 2
mov dword [rdi], eax
mov r8d, 0x180
mov edx, 0x40202
lea rcx, str._.ismount_test_file
call sub.cygwin1.dll_open
mov ecx, eax
test eax, eax
js 0x100401d40
call sub.cygwin1.dll_close
lea rcx, str._.ismount_test_file
call sub.cygwin1.dll_unlink
mov rcx, r14
call sub.cygwin1.dll_endmntent
jmp 0x100401aa4
mov eax, dword [rsp + 0x50]
and eax, 0xf000
cmp eax, 0x6000
je 0x100401d28
mov rax, qword [rsp + 0x48]
mov ebp, dword [rsp + 0x40]
mov dword [rsp + 0x34], 0
mov qword [rsp + 0x38], rax
jmp 0x100401b30
mov eax, dword [rsp + 0x34]
cmp eax, dword [rsp + 0x40]
je 0x100401bc0
nop
mov rcx, r14
call sub.cygwin1.dll_endmntent
jmp 0x100401aa4
mov eax, dword [rsp + 0x34]
test eax, eax
je 0x100401b30
cmp eax, dword [rsp + 0x60]
jne 0x100401b30
mov rcx, qword [rbx + 8]
mov rdx, r15
call sub.cygwin1.dll_stat
test eax, eax
jns 0x100401c70
nop word cs:[rax + rax]
call sub.cygwin1.dll___errno
mov ebx, dword [rax]
cmp ebx, 2
je 0x100401c80
mov rcx, r14
mov r12d, ebx
call sub.cygwin1.dll_endmntent
jmp 0x100401aa4
mov eax, dword [rsp + 0x34]
test eax, eax
je 0x100401c80
mov rdx, r15
lea rcx, [0x100407c5c]
call sub.cygwin1.dll_stat
test eax, eax
jne 0x100401c80
mov eax, dword [rsp + 0x34]
cmp eax, dword [rsp + 0x40]
je 0x100401d60
mov rcx, r14
xor r12d, r12d
call sub.cygwin1.dll_endmntent
jmp 0x100401aa4
call sub.cygwin1.dll___errno
mov r12d, dword [rax]
jmp 0x100401aa4
mov qword [rsp + 0x38], 0
mov eax, dword [rsp + 0x60]
xor ebp, ebp
mov dword [rsp + 0x34], eax
jmp 0x100401b30
call sub.cygwin1.dll___errno
cmp dword [rax], 0x1e
jne 0x100401c23
or dword [rdi], 4
jmp 0x100401c23
mov dword [rdi], 1
mov eax, 3
test r13, r13
je 0x100401bfb
movsxd r8, dword [rsp + 0x138]
lea rdx, [0x100407c5c]
mov rcx, r13
call sub.cygwin1.dll_strncpy
mov eax, dword [rdi]
or eax, 2
jmp 0x100401bfb
call sub.cygwin1.dll___stack_chk_fail
nop
nop dword [rax + rax]