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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1ac
mov eax, dword [0x100302c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
cmp dword [ebx + 0x14], 0x10
mov dword [ebp - 0x1a8], esi
jb 0x10009bf6
mov eax, dword [ebx]
jmp 0x10009bf8
mov eax, ebx
lea ecx, [ebp - 0x58]
push ecx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExA]
test eax, eax
jne 0x10009c10
mov al, 1
jmp 0x10009f28
mov eax, dword [ebp - 0x58]
test al, 0x10
je 0x10009edd
lea eax, [ebp - 0x199]
mov word [ebp - 8], 0x104
push eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], ebx
push eax
lea eax, [ebp - 0x1a4]
push eax
call fcn.1000bab7
add esp, 0xc
cmp dword [eax], 0
jne 0x10009f26
cmp byte [ebp - 0x199], 0
je 0x10009f26
mov edx, dword [ebx + 0x10]
lea ecx, [edx + 3]
lea eax, [ecx + 8]
cmp eax, ecx
jbe 0x10009c96
lea eax, [edx + 0xb]
cmp eax, 0x400
ja 0x10009c7e
call fcn.10012180
mov edi, esp
test edi, edi
je 0x10009c98
mov dword [edi], 0xcccc
jmp 0x10009c91
push eax
call fcn.1000e670
mov edi, eax
pop ecx
test edi, edi
je 0x10009c98
mov dword [edi], 0xdddd
add edi, 8
jmp 0x10009c98
xor edi, edi
mov esi, dword [ebx + 0x10]
mov ecx, ebx
dec esi
push 0
lea eax, [esi + 1]
push eax
push edi
mov dword [ebp - 0x1a0], eax
call fcn.10009b86
add esi, edi
mov dword [ebp - 0x1ac], esi
cmp byte [esi], 0x2f
je 0x10009cce
mov esi, dword [ebp - 0x1a0]
add esi, edi
mov dword [ebp - 0x1ac], esi
mov byte [esi], 0x2f
cmp byte [ebp + 8], 0
mov word [esi + 1], 0x2a
je 0x10009e36
lea eax, [ebp - 0x198]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x1a0], eax
cmp eax, 0xffffffff
je 0x10009e8b
mov esi, dword [ebp - 0x1a0]
xor eax, eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
lea ecx, [ebp - 0x16c]
cmp byte [ecx], 0x2e
jne 0x10009d1f
movzx eax, byte [ecx + 1]
test al, al
je 0x10009d92
push 3
lea eax, [ebp - 0x16c]
push 0x10027114
push eax
call fcn.1000f045
add esp, 0xc
test eax, eax
je 0x10009d92
push ecx
push ecx
mov ecx, esp
push ebx
call fcn.10005285
lea ecx, [ebp - 0x34]
call fcn.100095ff
push ecx
push ecx
lea eax, [ebp - 0x16c]
mov edx, esp
mov ecx, eax
mov dword [edx], eax
lea eax, [ecx + 1]
mov dword [ebp - 0x1a0], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10009d62
sub ecx, dword [ebp - 0x1a0]
mov dword [edx + 4], ecx
lea ecx, [ebp - 0x34]
call fcn.10009ae9
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x10]
call fcn.1000a1d7
push 0
push 1
lea ecx, [ebp - 0x34]
call fcn.100015a4
lea eax, [ebp - 0x198]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x10009d0c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov dword [ebp - 0x1a0], eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x1a0]
cmp eax, 0x12
je 0x10009e10
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
push edi
call fcn.1000a244
mov dword [esp], str.:_Cant_read_directory:
lea eax, [ebp - 0x34]
push ebx
push eax
call fcn.10005014
push eax
push dword [ebp - 0x1a8]
call fcn.1000993c
add esp, 0x14
lea ecx, [ebp - 0x34]
mov bl, al
push 0
push 1
call fcn.100015a4
lea ecx, [ebp - 0x10]
call fcn.10009ac3
mov al, bl
jmp 0x10009f28
mov esi, dword [ebp - 0x10]
jmp 0x10009e23
push 0
push 1
mov ecx, esi
call fcn.10009bcb
add esi, 0x18
cmp esi, dword [ebp - 0xc]
jne 0x10009e15
lea ecx, [ebp - 0x10]
call fcn.10009ac3
mov esi, dword [ebp - 0x1ac]
push edi
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x10009ecf
push str.:_Cant_destroy_directory:
push edi
lea ecx, [ebp - 0x1c]
call fcn.10001397
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.10006aba
push eax
push dword [ebp - 0x1a8]
call fcn.1000993c
add esp, 0x14
lea ecx, [ebp - 0x34]
mov bl, al
push 0
push 1
call fcn.100015a4
push 0
push 1
lea ecx, [ebp - 0x1c]
call fcn.100015a4
jmp 0x10009ed1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x10009e36
push edi
call fcn.1000a244
mov dword [esp], str.:_Cant_read_directory:
lea eax, [ebp - 0x34]
push ebx
push eax
call fcn.10005014
push eax
push dword [ebp - 0x1a8]
call fcn.1000993c
add esp, 0x14
lea ecx, [ebp - 0x34]
mov bl, al
push 0
push 1
call fcn.100015a4
jmp 0x10009e09
xor bl, bl
push edi
call fcn.1000a244
pop ecx
jmp 0x10009e09
test al, 1
je 0x10009f0f
cmp dword [ebx + 0x14], 0x10
jb 0x10009eeb
mov ecx, dword [ebx]
jmp 0x10009eed
mov ecx, ebx
and eax, 0xfffffffe
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x10009f0f
push str.:_Cant_destroy_file:
lea eax, [ebp - 0x34]
push ebx
push eax
call fcn.10005014
push eax
push esi
jmp 0x10009eb4
cmp dword [ebx + 0x14], 0x10
jb 0x10009f19
mov eax, dword [ebx]
jmp 0x10009f1b
mov eax, ebx
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x10009efc
xor al, al
lea esp, [ebp - 0x1b8]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000d9f4
mov esp, ebp
pop ebp
ret 8