Function at 0x6101baa0
Capabilities:
Delete directory
Get file attributes
Set current directory
Set file attributes

Disassembly:
push ebp
mov eax, 0xffffffff
mov ebp, esp
sub esp, 0x398
mov ecx, 0x22
mov edx, dword [ebp + 8]
mov dword [ebp - 0x36c], eax
lea eax, [ebp - 0x368]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], esi
mov dword [ebp - 4], edi
mov dword [esp], 0
call fcn.610620e0
mov eax, dword [ebp - 0x140]
test eax, eax
jne 0x6101bd70
mov eax, dword [ebp - 0x138]
cmp eax, 0xfa
je 0x6101bd60
cmp eax, 0xf9
je 0x6101bd60
cmp eax, 0xf8
je 0x6101bd60
mov eax, dword [ebp - 0x368]
cmp eax, 0xffffffff
je 0x6101bd4d
xor edx, edx
cmp eax, 0xffffffff
je 0x6101bb30
test al, 0x10
je 0x6101bb30
mov edx, 1
nop
lea esi, [esi]
test edx, edx
je 0x6101bd3d
cmp eax, 0xffffffff
je 0x6101bb45
test al, 1
jne 0x6101bd20
lea edi, [ebp - 0x11c]
mov dword [esp], edi
call sub.KERNEL32.dll_RemoveDirectoryA
sub esp, 4
mov ebx, eax
mov dword [esp], edi
call sub.KERNEL32.dll_GetFileAttributesA
sub esp, 4
test ebx, ebx
jne 0x6101bd0d
inc eax
je 0x6101bd00
mov eax, dword [0x610ed768]
lea esi, [ebp - 0x11c]
mov ecx, dword [eax + 0x180]
mov edi, ecx
cld
and eax, 0xff
lodsb al, byte [esi]
scasb al, byte es:[edi]
je 0x6101bb9a
xor al, byte [eax + 0x610ef1e4]
cmp al, byte [edi - 1]
jne 0x6101bba5
test al, al
jne 0x6101bb8b
mov eax, 1
jmp 0x6101bba7
xor eax, eax
test eax, eax
je 0x6101bbdc
mov esi, 0x6101ba7f
mov edi, ecx
cld
and eax, 0xff
lodsb al, byte [esi]
scasb al, byte es:[edi]
je 0x6101bbc7
xor al, byte [eax + 0x610ef1e4]
cmp al, byte [edi - 1]
jne 0x6101bbd2
test al, al
jne 0x6101bbb8
mov eax, 1
jmp 0x6101bbd4
xor eax, eax
test eax, eax
je 0x6101bca5
call sub.KERNEL32.dll_GetLastError
cmp eax, 5
je 0x6101bc7e
mov edx, 0x172
mov eax, 0x6101b860
call fcn.61022e70
mov eax, dword [ebp - 0x368]
cmp eax, 0xffffffff
je 0x6101bc10
test al, 1
jne 0x6101bc67
nop
lea esi, [esi]
mov esi, dword [0x610f08a0]
test esi, esi
jne 0x6101bc30
mov eax, dword [ebp - 0x36c]
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov dword [esp + 0xc], 0x6101ba83
mov eax, dword [ebp + 8]
mov edi, dword [ebp - 0x36c]
mov dword [esp + 8], 0x6101ba68
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], edi
mov dword [esp + 4], 0x10
mov dword [esp], 0x610f089c
call fcn.6108fd50
jmp 0x6101bc1a
mov dword [esp + 4], eax
lea edi, [ebp - 0x11c]
mov dword [esp], edi
call sub.KERNEL32.dll_SetFileAttributesA
sub esp, 8
jmp 0x6101bc10
mov eax, dword [0x61148914]
movzx eax, byte [eax + 0xc]
shr al, 2
and eax, 1
test al, al
je 0x6101bbea
call sym.cygwin1.dll___errno
mov dword [eax], 0x5a
jmp 0x6101bbf9
call sub.KERNEL32.dll_GetLastError
mov dword [esp], 0x6101ba7f
mov ebx, eax
call sub.KERNEL32.dll_SetCurrentDirectoryA
sub esp, 4
test eax, eax
jne 0x6101bccf
mov dword [esp], ebx
call sub.KERNEL32.dll_SetLastError
sub esp, 4
jmp 0x6101bbdc
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.6101baa0
mov dword [ebp - 0x36c], eax
test eax, eax
je 0x6101bc10
mov eax, dword [0x610ed768]
mov eax, dword [eax + 0x180]
mov dword [esp], eax
call sub.KERNEL32.dll_SetCurrentDirectoryA
jmp 0x6101bcc7
xor edi, edi
mov dword [ebp - 0x36c], edi
jmp 0x6101bc10
inc eax
je 0x6101bd00
call sym.cygwin1.dll___errno
mov dword [eax], 0x5a
jmp 0x6101bc10
and eax, 0xfffffffe
mov dword [esp + 4], eax
lea eax, [ebp - 0x11c]
mov dword [esp], eax
call sub.KERNEL32.dll_SetFileAttributesA
sub esp, 8
jmp 0x6101bb45
call sym.cygwin1.dll___errno
mov dword [eax], 0x14
jmp 0x6101bc10
call sym.cygwin1.dll___errno
mov dword [eax], 2
jmp 0x6101bc10
call sym.cygwin1.dll___errno
mov dword [eax], 0x1e
jmp 0x6101bc10
call sym.cygwin1.dll___errno
mov edx, dword [ebp - 0x140]
mov dword [eax], edx
jmp 0x6101bc10