Function at 0x10098d80
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 [0x1013b3dc]
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 0x10098fcb
not eax
test al, 0x10
jne 0x10098fcb
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x10098fcb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x91
jne 0x10098fcb
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10098de0
sub ecx, edx
lea eax, [ecx + 5]
cmp eax, 0x104
ja 0x10098fcb
push edi
lea eax, [ebp - 0x21c]
push str._s.
push eax
call fcn.10002f10
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 0x10098fcb
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 0x10098e40
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov esi, dword [ebp - 0x360]
nop dword [eax]
mov ecx, 0x1011e094
lea eax, [ebp - 0x330]
nop dword [eax + eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10098e90
test dl, dl
je 0x10098e8c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10098e90
add eax, 2
add ecx, 2
test dl, dl
jne 0x10098e70
xor eax, eax
jmp 0x10098e95
sbb eax, eax
or eax, 1
test eax, eax
je 0x10098f9c
mov eax, 0x10129ea4
lea ecx, [ebp - 0x330]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x10098ec8
test dl, dl
je 0x10098ec4
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x10098ec8
add ecx, 2
add eax, 2
test dl, dl
jne 0x10098ea8
xor eax, eax
jmp 0x10098ecd
sbb eax, eax
or eax, 1
test eax, eax
je 0x10098f9c
lea ecx, [ebp - 0x21c]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10098ee0
sub ecx, edx
lea edx, [ebp - 0x330]
lea esi, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x10098ef2
sub edx, esi
lea eax, [edx + 1]
add eax, ecx
cmp eax, 0x104
ja 0x10098f96
push 0x104
lea eax, [ebp - 0x114]
push 0
push eax
call fcn.100c8550
add esp, 0xc
lea eax, [ebp - 0x330]
push eax
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x114]
push 0x10129e9c
push eax
call fcn.10002f10
mov eax, dword [ebp - 0x35c]
add esp, 0x10
test al, 0x10
je 0x10098f77
test al, 1
je 0x10098f64
and eax, 0xfffffffe
push eax
mov dword [ebp - 0x35c], eax
lea eax, [ebp - 0x114]
push eax
call ebx
lea eax, [ebp - 0x114]
mov ecx, 0x1018c9ba
push eax
call fcn.10098d80
jmp 0x10098f96
test al, 5
je 0x10098f89
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 0x10098e60
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x10098fcb
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.100c55b5
mov esp, ebp
pop ebp
ret 4