Function at 0x10040f750
Capabilities:
Get file attributes

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x120
cmp ecx, 0x22
mov ebx, ecx
je 0x10040f7f0
test ecx, ecx
je 0x10040f7e3
cmp ecx, 0x25
je 0x10040f7c3
mov rax, qword [0x10041b4d0]
test rax, rax
je 0x10040f830
cmp word [rax + 0xa], 0
jne 0x10040f830
mov rdx, qword [0x10041b4d8]
lea rcx, [rdx + 8]
mov qword [0x10041b4d8], rcx
mov rcx, qword [rdx + 8]
test rcx, rcx
je 0x10040fcfb
cmp ebx, 0x17
ja case.0x10040f7c1.0
lea rax, [0x100415898]
mov edx, ebx
movsxd rdx, dword [rax + rdx*4]
add rax, rdx
jmp rax
mov rax, qword [0x10041b4d8]
lea rcx, [rax + 8]
mov qword [0x10041b4d8], rcx
call fcn.10040f660
cmp eax, 0x26
jne 0x10040f871
xor eax, eax
add rsp, 0x120
pop rbx
pop rsi
pop rdi
ret
mov rax, qword [0x10041b4d8]
lea rbx, [rax + 8]
mov rcx, rbx
call fcn.10040f660
test eax, eax
je 0x10040f80e
mov qword [0x10041b4d8], rbx
mov ecx, eax
call fcn.10040f750
test eax, eax
sete al
movzx eax, al
add rsp, 0x120
pop rbx
pop rsi
pop rdi
ret
mov rbx, qword [0x10041b4d8]
lea rsi, [rbx + 8]
mov rcx, rsi
call fcn.10040f660
mov rax, qword [0x10041b4d0]
test rax, rax
je 0x10040f85a
cmp word [rax + 0xa], 1
je 0x10040fa83
mov rax, qword [rbx]
cmp byte [rax], 0
setne al
movzx eax, al
add rsp, 0x120
pop rbx
pop rsi
pop rdi
ret
mov ecx, eax
call fcn.10040fd30
mov ebx, eax
mov rax, qword [0x10041b4d8]
lea rcx, [rax + 8]
mov qword [0x10041b4d8], rcx
call fcn.10040f660
cmp eax, 0x26
jne 0x10040fd0a
mov eax, ebx
jmp 0x10040f7e5
xor eax, eax
cmp byte [rcx], 0
setne al
jmp 0x10040f7e5
xor eax, eax
cmp byte [rcx], 0
sete al
jmp 0x10040f7e5
call fcn.10040a950
mov ecx, eax
call sub.cygwin1.dll_isatty
jmp 0x10040f7e5
mov r9d, 1
mov r8d, 1
mov rdx, rcx
mov ecx, 0xfffffffe
call sub.cygwin1.dll_faccessat
test eax, eax
sete al
movzx eax, al
jmp 0x10040f7e5
mov r9d, 1
mov r8d, 2
jmp 0x10040f8dd
mov r9d, 1
mov r8d, 4
jmp 0x10040f8dd
cmp ebx, 0xb
lea rdx, [rsp + 0xa0]
je 0x10040fcd2
call sub.cygwin1.dll_stat
test eax, eax
jne 0x10040f7e3
sub ebx, 5
cmp ebx, 0x10
ja case.0x10040f954.11
lea rax, [0x1004158f8]
movsxd rdx, dword [rax + rbx*4]
add rax, rdx
jmp rax
mov eax, 1
jmp 0x10040f7e5
mov eax, dword [rsp + 0xb0]
shr eax, 9
and eax, 1
jmp 0x10040f7e5
mov eax, dword [rsp + 0xb0]
shr eax, 0xa
and eax, 1
jmp 0x10040f7e5
mov eax, dword [rsp + 0xb0]
shr eax, 0xb
and eax, 1
jmp 0x10040f7e5
xor eax, eax
cmp qword [rsp + 0xc8], 0
setne al
jmp 0x10040f7e5
mov ebx, dword [rsp + 0xb8]
call sub.cygwin1.dll_geteuid
cmp ebx, eax
sete al
movzx eax, al
jmp 0x10040f7e5
mov eax, dword [rsp + 0xb0]
and eax, 0xf000
cmp eax, 0xc000
sete al
movzx eax, al
jmp 0x10040f7e5
mov eax, dword [rsp + 0xb0]
and eax, 0xf000
cmp eax, 0x1000
sete al
movzx eax, al
jmp 0x10040f7e5
mov eax, dword [rsp + 0xb0]
and eax, 0xf000
cmp eax, 0x6000
sete al
movzx eax, al
jmp 0x10040f7e5
mov eax, dword [rsp + 0xb0]
and eax, 0xf000
cmp eax, 0x2000
sete al
movzx eax, al
jmp 0x10040f7e5
mov eax, dword [rsp + 0xb0]
and eax, 0xf000
cmp eax, 0x4000
sete al
movzx eax, al
jmp 0x10040f7e5
mov eax, dword [rsp + 0xb0]
and eax, 0xf000
cmp eax, 0x8000
sete al
movzx eax, al
jmp 0x10040f7e5
mov ebx, dword [rsp + 0xbc]
call sub.cygwin1.dll_getegid
cmp ebx, eax
sete al
movzx eax, al
jmp 0x10040f7e5
mov rcx, rsi
mov rdi, qword [rbx]
call fcn.10040f660
lea rax, [rbx + 0x10]
mov rbx, qword [rbx + 0x10]
mov rcx, qword [0x10041b4d0]
mov qword [0x10041b4d8], rax
test rbx, rbx
je 0x10040fd1d
movzx eax, word [rcx + 8]
sub eax, 0x11
cmp ax, 0x10
ja case.0x10040facf.3
lea rdx, [0x10041593c]
movzx eax, ax
movsxd rax, dword [rdx + rax*4]
add rdx, rax
jmp rdx
mov rcx, rdi
call fcn.10040a950
mov rcx, rbx
mov rsi, rax
call fcn.10040a950
cmp rsi, rax
setl al
movzx eax, al
jmp 0x10040f7e5
mov rcx, rdi
call fcn.10040a950
mov rcx, rbx
mov rsi, rax
call fcn.10040a950
cmp rsi, rax
setle al
movzx eax, al
jmp 0x10040f7e5
mov rcx, rdi
call fcn.10040a950
mov rcx, rbx
mov rsi, rax
call fcn.10040a950
cmp rsi, rax
setg al
movzx eax, al
jmp 0x10040f7e5
mov rcx, rdi
call fcn.10040a950
mov rcx, rbx
mov rsi, rax
call fcn.10040a950
cmp rsi, rax
setge al
movzx eax, al
jmp 0x10040f7e5
mov rcx, rdi
call fcn.10040a950
mov rcx, rbx
mov rsi, rax
call fcn.10040a950
cmp rsi, rax
setne al
movzx eax, al
jmp 0x10040f7e5
mov rcx, rdi
call fcn.10040a950
mov rcx, rbx
mov rsi, rax
call fcn.10040a950
cmp rsi, rax
sete al
movzx eax, al
jmp 0x10040f7e5
mov rdx, rbx
mov rcx, rdi
call sub.cygwin1.dll_strcmp
test eax, eax
setg al
movzx eax, al
jmp 0x10040f7e5
mov rdx, rbx
mov rcx, rdi
call sub.cygwin1.dll_strcmp
shr eax, 0x1f
jmp 0x10040f7e5
mov rdx, rbx
mov rcx, rdi
call sub.cygwin1.dll_strcmp
test eax, eax
setne al
movzx eax, al
jmp 0x10040f7e5
lea rdx, [rsp + 0x20]
mov rcx, rdi
call sub.cygwin1.dll_stat
test eax, eax
jne 0x10040f7e3
lea rdx, [rsp + 0xa0]
mov rcx, rbx
call sub.cygwin1.dll_stat
test eax, eax
jne 0x10040f7e3
mov eax, dword [rsp + 0xa0]
cmp dword [rsp + 0x20], eax
jne 0x10040f7e3
mov rax, qword [rsp + 0xa8]
cmp qword [rsp + 0x28], rax
sete al
movzx eax, al
jmp 0x10040f7e5
lea rdx, [rsp + 0x20]
mov rcx, rdi
call sub.cygwin1.dll_stat
test eax, eax
jne 0x10040f7e3
lea rdx, [rsp + 0xa0]
mov rcx, rbx
call sub.cygwin1.dll_stat
test eax, eax
jne 0x10040f7e3
mov rax, qword [rsp + 0xe0]
cmp qword [rsp + 0x60], rax
setl al
movzx eax, al
jmp 0x10040f7e5
lea rdx, [rsp + 0x20]
mov rcx, rdi
call sub.cygwin1.dll_stat
test eax, eax
jne 0x10040f7e3
lea rdx, [rsp + 0xa0]
mov rcx, rbx
call sub.cygwin1.dll_stat
test eax, eax
jne 0x10040f7e3
mov rax, qword [rsp + 0xe0]
cmp qword [rsp + 0x60], rax
setg al
movzx eax, al
jmp 0x10040f7e5
mov rdx, rbx
mov rcx, rdi
call sub.cygwin1.dll_strcmp
test eax, eax
sete al
movzx eax, al
jmp 0x10040f7e5
call sub.cygwin1.dll_lstat
test eax, eax
jne 0x10040f7e3
mov eax, dword [rsp + 0xb0]
and eax, 0xf000
cmp eax, 0xa000
sete al
movzx eax, al
jmp 0x10040f7e5
mov rcx, qword [rax]
lea rdx, str.argument_expected
call fcn.100412390
lea rdx, str.closing_paren_expected
lea rcx, [0x100415867]
call fcn.100402660
mov rcx, qword [rcx]
lea rdx, str.argument_expected
call fcn.100412390
nop
nop dword [rax]