Function at 0x100967a0
Capabilities:
Check if file exists
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x360
mov eax, dword [0x101383dc]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x100969eb
not eax
test al, 0x10
jne 0x100969eb
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x100969eb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x91
jne 0x100969eb
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10096800
sub ecx, edx
lea eax, [ecx + 5]
cmp eax, 0x104
ja 0x100969eb
push edi
lea eax, [ebp - 0x21c]
push str._s.
push eax
call fcn.10002ee0
add esp, 0xc
lea eax, [ebp - 0x35c]
push eax
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x360], eax
cmp eax, 0xffffffff
je 0x100969eb
lea edx, [ebp - 0x21c]
mov ecx, edi
sub edx, edi
nop dword [eax]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x10096860
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov esi, dword [ebp - 0x360]
nop dword [eax]
mov ecx, 0x1011c224
lea eax, [ebp - 0x330]
nop dword [eax + eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x100968b0
test dl, dl
je 0x100968ac
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x100968b0
add eax, 2
add ecx, 2
test dl, dl
jne 0x10096890
xor eax, eax
jmp 0x100968b5
sbb eax, eax
or eax, 1
test eax, eax
je 0x100969bc
mov eax, 0x101274f0
lea ecx, [ebp - 0x330]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x100968e8
test dl, dl
je 0x100968e4
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x100968e8
add ecx, 2
add eax, 2
test dl, dl
jne 0x100968c8
xor eax, eax
jmp 0x100968ed
sbb eax, eax
or eax, 1
test eax, eax
je 0x100969bc
lea ecx, [ebp - 0x21c]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10096900
sub ecx, edx
lea edx, [ebp - 0x330]
lea esi, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x10096912
sub edx, esi
lea eax, [edx + 1]
add eax, ecx
cmp eax, 0x104
ja 0x100969b6
push 0x104
lea eax, [ebp - 0x114]
push 0
push eax
call fcn.100c5e70
add esp, 0xc
lea eax, [ebp - 0x330]
push eax
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x114]
push 0x1012750c
push eax
call fcn.10002ee0
mov eax, dword [ebp - 0x35c]
add esp, 0x10
test al, 0x10
je 0x10096997
test al, 1
je 0x10096984
and eax, 0xfffffffe
push eax
mov dword [ebp - 0x35c], eax
lea eax, [ebp - 0x114]
push eax
call ebx
lea eax, [ebp - 0x114]
mov ecx, 0x101896ed
push eax
call fcn.100967a0
jmp 0x100969b6
test al, 5
je 0x100969a9
push 0x80
lea eax, [ebp - 0x114]
push eax
call ebx
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov esi, dword [ebp - 0x360]
lea eax, [ebp - 0x35c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x10096880
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x100969eb
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100c2ed5
mov esp, ebp
pop ebp
ret 4