Function at 0x40d8dc
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x11c
mov ebx, dword [ebp + 8]
mov dword [ebp - 0xe0], 0xfffffffe
mov eax, dword [ebx + 4]
test eax, eax
je 0x40d905
mov eax, dword [eax + 0xc]
mov dword [ebp - 0xe0], eax
mov dword [esp], ebx
call fcn.00412278
cmp dword [ebx + 4], 0
mov esi, dword [0x440290]
mov dword [ebp - 0xf8], eax
mov edi, dword [0x43c7cc]
je 0x40d928
lea edi, [ebx + 0x79]
mov dword [esp], ebx
call fcn.0041224c
test eax, eax
je 0x40da1d
mov eax, dword [ebx + 0x20]
mov dword [ebp - 0xe4], esi
and eax, 0xf000
cmp eax, 0x4000
jne 0x40d961
cmp byte [ebx + 0x78], 0
je 0x40d97c
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0xdc], eax
jmp 0x40e2c5
cmp eax, 0xa000
jne 0x40d97c
bt dword [ebp - 0xe4], 8
jae 0x40d97c
or dword [ebp - 0xe4], 0x200
mov eax, dword [ebx + 0x10]
cmp dword [0x43c7d0], eax
jne 0x40d9a6
mov eax, dword [0x43c7d8]
mov ecx, dword [ebx + 0x1c]
cmp dword [0x43c7dc], ecx
jne 0x40d9a6
cmp eax, dword [ebx + 0x18]
jne 0x40d9a6
mov edi, dword [0x43c7cc]
test edi, edi
jne 0x40d9ef
lea eax, [ebp - 0xd8]
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
mov eax, dword [ebp - 0xe0]
mov dword [esp + 4], edi
mov dword [esp], eax
call sub.cygwin1.dll_fstatat
test eax, eax
jne 0x40da24
mov eax, dword [ebx + 0x10]
cmp dword [ebp - 0xd8], eax
jne 0x40da24
mov eax, dword [ebp - 0xd0]
mov ecx, dword [ebx + 0x1c]
cmp dword [ebp - 0xcc], ecx
jne 0x40da24
cmp eax, dword [ebx + 0x18]
jne 0x40da24
mov dword [esp], ebx
mov dword [esp + 4], 0
call fcn.00412290
mov dword [esp + 4], edi
mov dword [esp + 8], eax
mov ebx, eax
mov dword [esp], str._s_is__s
call fcn.004190e0
mov dword [esp], ebx
call sub.cygwin1.dll_free
xor esi, esi
jmp 0x40e2e1
mov eax, dword [ebp - 0xe0]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], edi
mov dword [esp], eax
call sub.cygwin1.dll_faccessat
mov esi, eax
test eax, eax
je 0x40da93
test byte [ebp - 0xe4], 0x10
je 0x40db9f
mov dword [esp + 4], 0
mov dword [esp], ebx
call fcn.00412290
mov dword [esp + 8], eax
mov esi, eax
mov eax, dword [0x440280]
mov eax, dword [eax]
mov dword [esp], str._s__s_n
mov dword [esp + 4], eax
call sub.cygwin1.dll_printf
mov dword [esp], esi
call sub.cygwin1.dll_free
jmp 0x40db9f
mov eax, dword [ebp - 0xc8]
and eax, 0xf000
cmp eax, 0x4000
je 0x40da4c
mov eax, dword [ebx + 0x20]
and eax, 0xf000
cmp eax, 0x4000
jne 0x40dae3
mov dword [esp], ebx
mov dword [esp + 4], 0
call fcn.00412290
mov dword [esp], str.dir_at__s
mov dword [esp + 4], eax
mov ebx, eax
call fcn.004190e0
mov dword [esp], ebx
call sub.cygwin1.dll_free
jmp 0x40e2e1
test byte [ebp - 0xe4], 4
je 0x40db1f
mov eax, dword [ebp - 0xe0]
mov dword [esp + 8], 0
mov dword [esp + 4], edi
mov dword [esp], eax
call sub.cygwin1.dll_unlinkat
test eax, eax
je 0x40db1f
mov dword [esp + 4], edi
mov dword [esp], 0x454d51
call fcn.004190e0
jmp 0x40e2e1
test byte [ebp - 0xe4], 8
jne 0x40da1d
test byte [ebp - 0xe4], 1
je 0x40da4c
mov dword [esp + 4], 0
mov dword [esp], ebx
call fcn.00412290
mov esi, eax
mov eax, dword [0x440280]
mov edx, dword [eax]
mov dword [ebp - 0xdc], edx
call sub.cygwin1.dll___getreent
mov edx, dword [ebp - 0xdc]
mov dword [esp + 0xc], esi
mov dword [esp + 4], str._s:_overwrite__s
mov dword [esp + 8], edx
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call sub.cygwin1.dll_fprintf
mov dword [esp], esi
call sub.cygwin1.dll_free
mov dword [esp], 1
call fcn.00439b50
test eax, eax
jne 0x40da4c
jmp 0x40da1d
mov dword [ebp - 0xe8], 0x454d24
mov dword [ebp - 0xdc], 0xffffffff
mov eax, dword [ebx + 0x20]
mov edx, eax
and edx, 0xf000
cmp edx, 0x4000
jne 0x40dc81
test dword [ebp - 0xe4], 0x4280
jne 0x40dbe8
mov dword [ebp - 0xe8], str.Skipped_dir__s
lea edi, [ebx + 0x79]
jmp 0x40e2b3
or al, 0x80
mov dword [esp + 4], edi
mov dword [esp + 8], eax
mov eax, dword [ebp - 0xe0]
mov dword [esp], eax
call sub.cygwin1.dll_mkdirat
test eax, eax
jne 0x40dc2c
mov eax, dword [ebp - 0xe0]
mov dword [esp + 8], 0x100000
mov dword [esp + 4], edi
mov dword [esp], eax
call sub.cygwin1.dll_openat
mov dword [ebx + 0xc], eax
cmp eax, 0xffffffff
je 0x40e081
jmp 0x40dc3c
call sub.cygwin1.dll___errno
cmp dword [eax], 0x11
jne 0x40e081
jmp 0x40dc04
lea edx, [ebp - 0x78]
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.cygwin1.dll__fstat64
test eax, eax
jne 0x40e081
mov eax, dword [ebp - 0x68]
and eax, 0xf000
cmp eax, 0x4000
jne 0x40e081
mov esi, dword [0x440290]
mov edi, dword [0x440294]
shrd esi, edi, 9
and esi, 8
or esi, 4
jmp 0x40e2e1
test byte [ebp - 0xe4], 0x20
je 0x40dcbc
mov eax, dword [ebp - 0xe0]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], edi
mov dword [esp + 8], eax
lea eax, [ebx + 0x79]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xf8]
mov dword [esp], eax
call sub.cygwin1.dll_linkat
test eax, eax
jmp 0x40e07b
test byte [ebp - 0xe4], 0x40
je 0x40dd94
mov dword [esp + 4], 0
mov dword [esp], ebx
call fcn.00412290
xor ecx, ecx
mov esi, eax
mov eax, ebx
mov edx, dword [eax + 4]
test edx, edx
je 0x40dceb
inc ecx
mov eax, edx
jmp 0x40dcdf
cmp byte [eax + 0x79], 0x2f
je 0x40dd4b
test ecx, ecx
je 0x40dd4b
lea eax, [ecx + ecx*2]
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0x20
mov dword [esp + 4], eax
mov dword [esp], str._c_s
mov dword [ebp - 0xf0], ecx
call fcn.00437b4c
mov dword [esp], esi
mov dword [ebp - 0xec], eax
call sub.cygwin1.dll_free
mov eax, dword [ebp - 0xec]
mov ecx, dword [ebp - 0xf0]
mov edx, eax
sub ecx, 1
jb 0x40dd49
mov word [edx], 0x2e2e
add edx, 3
mov byte [edx - 1], 0x2f
jmp 0x40dd36
mov esi, eax
mov eax, dword [ebp - 0xe0]
mov dword [esp + 8], edi
mov dword [esp], esi
mov dword [esp + 4], eax
call sub.cygwin1.dll_symlinkat
mov dword [esp], esi
test eax, eax
mov eax, 0
cmovne eax, dword [ebp - 0xe8]
mov dword [ebp - 0xe8], eax
mov eax, 0xfffffffe
cmovne eax, dword [ebp - 0xdc]
mov dword [ebp - 0xdc], eax
call sub.cygwin1.dll_free
jmp 0x40e074
cmp edx, 0x8000
je 0x40de3d
cmp dword [ebx + 4], 0
jne 0x40ddb6
test dword [ebp - 0xe4], 0x280
je 0x40de3d
cmp edx, 0xa000
jne 0x40de0e
lea eax, [ebx + 0x79]
mov dword [esp + 0xc], 0x1000
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xf8]
mov dword [esp + 8], 0x43f280
mov dword [esp], eax
call fcn.00429fbc
test eax, eax
je 0x40de09
mov eax, dword [ebp - 0xe0]
mov dword [esp + 8], edi
mov dword [esp], 0x43f280
mov dword [esp + 4], eax
call sub.cygwin1.dll_symlinkat
test eax, eax
sete al
movzx eax, al
and eax, 1
jmp 0x40de30
mov edx, dword [ebx + 0x30]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0xe0]
mov dword [esp + 4], edi
mov dword [esp + 0xc], edx
mov dword [esp], eax
call sub.cygwin1.dll_mknodat
test eax, eax
sete al
test al, al
je 0x40e081
jmp 0x40e0b5
mov eax, dword [ebp - 0xf8]
lea esi, [ebx + 0x79]
mov dword [esp + 8], 0
mov dword [esp + 4], esi
mov dword [esp], eax
call sub.cygwin1.dll_openat
mov dword [ebp - 0xec], eax
test eax, eax
js 0x40e2b1
mov eax, dword [ebx + 0x20]
and eax, 0xf000
cmp eax, 0xa000
jne 0x40de8c
lea eax, [ebx + 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xec]
mov dword [esp], eax
call sub.cygwin1.dll__fstat64
mov eax, dword [ebx + 0x20]
mov dword [esp + 8], 0x602
mov dword [esp + 4], edi
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0xe0]
mov dword [esp], eax
call sub.cygwin1.dll_openat
mov dword [ebp - 0xdc], eax
test eax, eax
js 0x40ded3
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xec]
mov dword [esp], eax
call fcn.004382ec
mov dword [ebp - 0xe8], 0
test byte [0x43c83c], 0x18
je 0x40e066
mov eax, dword [ebp - 0xec]
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], eax
call sub.cygwin1.dll_flistxattr
mov dword [ebp - 0xf0], eax
test eax, eax
jle 0x40e066
mov dword [esp], eax
call fcn.00437aac
mov dword [ebp - 0xf4], eax
mov eax, dword [ebp - 0xf0]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0xf4]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xec]
mov dword [esp], eax
call sub.cygwin1.dll_flistxattr
mov eax, dword [ebp - 0xf4]
mov ecx, dword [ebp - 0xf0]
mov byte [eax + ecx - 1], 0
mov esi, eax
test byte [0x43c83c], 0x10
jne 0x40df78
mov dword [esp + 8], 9
mov dword [esp + 4], str.security.
mov dword [esp], esi
call sub.cygwin1.dll_strncmp
test eax, eax
jne 0x40e038
mov eax, dword [ebp - 0xec]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], esi
mov dword [esp], eax
call sub.cygwin1.dll_fgetxattr
test eax, eax
jle 0x40e038
mov dword [esp], eax
mov dword [ebp - 0x100], eax
call fcn.00437aac
mov edx, dword [ebp - 0x100]
mov dword [esp + 4], esi
mov dword [ebp - 0xfc], eax
mov dword [esp + 8], eax
mov eax, dword [ebp - 0xec]
mov dword [esp + 0xc], edx
mov dword [esp], eax
call sub.cygwin1.dll_fgetxattr
mov edx, dword [ebp - 0x100]
cmp eax, edx
jne 0x40e02a
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0xfc]
mov dword [esp + 0x10], 0
mov dword [esp + 8], eax
mov eax, dword [ebp - 0xdc]
mov dword [esp + 4], esi
mov dword [esp], eax
call sub.cygwin1.dll_fsetxattr
test eax, eax
je 0x40e02a
mov eax, dword [ebp - 0xfc]
mov dword [esp + 8], esi
mov dword [esp + 4], edi
mov dword [esp + 0xc], eax
mov dword [esp], str._s_setxattr__s_s_
call fcn.00427b14
mov eax, dword [ebp - 0xfc]
mov dword [esp], eax
call sub.cygwin1.dll_free
mov dword [esp], esi
call sub.cygwin1.dll_strlen
lea esi, [esi + eax + 1]
mov eax, esi
sub eax, dword [ebp - 0xf4]
cmp eax, dword [ebp - 0xf0]
jl 0x40df4f
mov eax, dword [ebp - 0xf4]
mov dword [esp], eax
call sub.cygwin1.dll_free
mov eax, dword [ebp - 0xec]
mov dword [esp], eax
call sub.cygwin1.dll_close
cmp dword [ebp - 0xe8], 0
je 0x40e2c5
test byte [ebp - 0xe4], 0xa
je 0x40e2b3
mov eax, dword [ebp - 0xe0]
mov dword [esp + 8], 0
mov dword [esp + 4], edi
mov dword [esp], eax
call sub.cygwin1.dll_unlinkat
test eax, eax
je 0x40dbb3
jmp 0x40e2b3
mov dword [ebp - 0xe8], 0
mov dword [ebp - 0xdc], 0xfffffffe
test byte [0x43c83c], 2
je 0x40e156
cmp dword [ebp - 0xdc], 0xfffffffe
mov edx, dword [ebx + 0x2c]
mov eax, dword [ebx + 0x28]
jne 0x40e109
mov dword [esp + 8], eax
mov eax, dword [ebp - 0xe0]
mov dword [esp + 0x10], 2
mov dword [esp + 0xc], edx
mov dword [esp + 4], edi
mov dword [esp], eax
call sub.cygwin1.dll_fchownat
jmp 0x40e11f
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xdc]
mov dword [esp + 8], edx
mov dword [esp], eax
call sub.cygwin1.dll__fchown32
test eax, eax
je 0x40e156
call sub.cygwin1.dll__geteuid32
test eax, eax
jne 0x40e156
mov dword [esp + 4], 0
mov dword [esp], ebx
call fcn.00412290
mov dword [esp], str.chown__s
mov dword [esp + 4], eax
mov esi, eax
call fcn.00427b14
mov dword [esp], esi
call sub.cygwin1.dll_free
test byte [0x43c83c], 4
je 0x40e1b5
mov eax, dword [ebx + 0x40]
mov edx, dword [ebx + 0x44]
cmp dword [ebp - 0xdc], 0xfffffffe
mov dword [ebp - 0x78], eax
mov eax, dword [ebx + 0x48]
mov dword [ebp - 0x74], edx
mov edx, dword [ebx + 0x4c]
mov dword [ebp - 0x70], eax
lea eax, [ebp - 0x78]
mov dword [ebp - 0x6c], edx
jne 0x40e1a3
mov dword [esp + 8], eax
mov eax, dword [ebp - 0xe0]
mov dword [esp + 0xc], 2
mov dword [esp + 4], edi
mov dword [esp], eax
call sub.cygwin1.dll_utimensat
jmp 0x40e1ea
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xdc]
mov dword [esp], eax
call sub.cygwin1.dll_futimens
cmp dword [ebp - 0xdc], 0xfffffffe
je 0x40e1ea
test byte [0x43c83c], 1
je 0x40e1dc
mov eax, dword [ebx + 0x20]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xdc]
mov dword [esp], eax
call sub.cygwin1.dll_fchmod
mov eax, dword [ebp - 0xdc]
mov dword [esp], eax
call fcn.004372e4
mov eax, dword [0x440280]
mov eax, dword [eax]
cmp byte [eax], 0x6d
je 0x40e204
cmp dword [ebp - 0xe8], 0
jne 0x40e241
jmp 0x40da1d
mov eax, dword [ebx + 0x20]
and eax, 0xf000
cmp eax, 0x4000
sete al
movzx eax, al
shl eax, 3
mov dword [esp + 8], eax
lea eax, [ebx + 0x79]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xf8]
mov dword [esp], eax
call sub.cygwin1.dll_unlinkat
test eax, eax
je 0x40e1f6
mov dword [ebp - 0xe8], 0x454d24
lea eax, [ebx + 0x79]
xor esi, esi
cmp edi, eax
jne 0x40e297
mov dword [esp + 4], 0
mov dword [esp], ebx
call fcn.00412290
mov esi, eax
mov eax, ebx
mov ebx, dword [ebx + 4]
test ebx, ebx
jne 0x40e25c
add eax, 0x79
mov dword [esp], eax
call sub.cygwin1.dll_strlen
mov dword [esp], 0x454da7
add eax, esi
mov dword [esp + 8], eax
mov eax, dword [0x43c7cc]
mov dword [esp + 4], eax
call fcn.00437b4c
mov dword [esp], esi
mov edi, eax
mov esi, edi
call sub.cygwin1.dll_free
mov eax, dword [ebp - 0xe8]
mov dword [esp + 4], edi
mov dword [esp], eax
call fcn.00427b14
mov dword [esp], esi
jmp 0x40da18
mov edi, esi
cmp dword [ebp - 0xdc], 0xffffffff
jne 0x40e0c9
jmp 0x40e241
cmp dword [ebp - 0xdc], 0xffffffff
mov dword [ebp - 0xe8], 0
jne 0x40e0c9
jmp 0x40da1d
add esp, 0x11c
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret