Function at 0x1009a980
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
push 0xffffffffffffffff
push 0x101ea7b3
mov eax, dword fs:[0]
push eax
sub esp, 0x2cc
mov eax, dword [0x102683e0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1009a9c3
xor eax, eax
jmp 0x1009ad80
push 0x24c
lea eax, [ebp - 0x2d4]
mov dword [ebp - 0x2d8], 0
push 0
push eax
call fcn.101a01b0
add esp, 0xc
lea ecx, [ebp - 0x70]
push esi
call fcn.100031d0
mov dword [ebp - 4], 0
xor eax, eax
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
mov byte [ebp - 4], 1
lea eax, [ebp - 0x70]
cmp dword [ebp - 0x5c], 8
cmovae eax, dword [ebp - 0x70]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveBackslashW]
test eax, eax
jne 0x1009aa28
xor esi, esi
jmp 0x1009ad48
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x40]
call fcn.100040d0
push 4
push str..
lea ecx, [ebp - 0x70]
call fcn.10003b30
cmp dword [ebp - 0x5c], 8
lea ecx, [ebp - 0x2d8]
lea eax, [ebp - 0x70]
cmovae eax, dword [ebp - 0x70]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x1009ad34
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileW]
lea eax, [ebp - 0x2d8]
push eax
push edi
call ebx
test eax, eax
je 0x1009ad2d
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea esp, [esp]
test byte [ebp - 0x2d8], 0x10
je 0x1009ac34
xor eax, eax
mov dword [ebp - 0x74], 7
mov dword [ebp - 0x78], 0
mov word [ebp - 0x88], ax
cmp word [ebp - 0x2ac], ax
jne 0x1009aac1
xor ecx, ecx
jmp 0x1009aadf
lea ecx, [ebp - 0x2ac]
lea edx, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1009aad0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x2ac]
push eax
lea ecx, [ebp - 0x88]
call fcn.10003c10
push 1
push 0x102285f0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x88]
push dword [ebp - 0x78]
push 0
call fcn.1001fb30
test eax, eax
je 0x1009ac1b
push 2
push 0x102285f4
push dword [ebp - 0x78]
lea ecx, [ebp - 0x88]
push 0
call fcn.1001fb30
test eax, eax
je 0x1009ac1b
push 0x102285e4
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.10004650
lea ecx, [ebp - 0x2ac]
mov byte [ebp - 4], 3
push ecx
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.1001edd0
add esp, 0x18
cmp dword [eax + 0x14], 8
jb 0x1009ab66
mov eax, dword [eax]
push 0x80
push eax
call esi
cmp dword [ebp - 0x14], 8
jb 0x1009ab7f
push dword [ebp - 0x28]
call fcn.101a02f0
add esp, 4
xor eax, eax
mov byte [ebp - 4], 2
cmp dword [ebp - 0x44], 8
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
jb 0x1009aba8
push dword [ebp - 0x58]
call fcn.101a02f0
add esp, 4
push 0x102285e4
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.10004650
lea ecx, [ebp - 0x2ac]
mov byte [ebp - 4], 4
push ecx
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.1001edd0
add esp, 0x18
mov byte [ebp - 4], 5
cmp dword [eax + 0x14], 8
jb 0x1009abde
mov eax, dword [eax]
mov ecx, eax
call fcn.1009a980
cmp dword [ebp - 0x14], 8
jb 0x1009abf6
push dword [ebp - 0x28]
call fcn.101a02f0
add esp, 4
xor eax, eax
mov dword [ebp - 0x14], 7
cmp dword [ebp - 0x44], 8
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
jb 0x1009ac1b
push dword [ebp - 0x58]
call fcn.101a02f0
add esp, 4
mov byte [ebp - 4], 1
cmp dword [ebp - 0x74], 8
jb 0x1009ad1b
push dword [ebp - 0x88]
jmp 0x1009ad13
push 0x102285e4
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.10004650
lea ecx, [ebp - 0x2ac]
mov byte [ebp - 4], 6
push ecx
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.1001edd0
add esp, 0x18
cmp dword [eax + 0x14], 8
jb 0x1009ac66
mov eax, dword [eax]
push 0x80
push eax
call esi
cmp dword [ebp - 0x14], 8
jb 0x1009ac7f
push dword [ebp - 0x28]
call fcn.101a02f0
add esp, 4
xor eax, eax
mov byte [ebp - 4], 1
cmp dword [ebp - 0x44], 8
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
jb 0x1009aca8
push dword [ebp - 0x58]
call fcn.101a02f0
add esp, 4
push 0x102285e4
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.10004650
lea ecx, [ebp - 0x2ac]
mov byte [ebp - 4], 7
push ecx
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.1001edd0
add esp, 0x18
cmp dword [eax + 0x14], 8
jb 0x1009acda
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp - 0x14], 8
jb 0x1009acf2
push dword [ebp - 0x28]
call fcn.101a02f0
add esp, 4
xor eax, eax
mov byte [ebp - 4], 1
cmp dword [ebp - 0x44], 8
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
jb 0x1009ad1b
push dword [ebp - 0x58]
call fcn.101a02f0
add esp, 4
lea eax, [ebp - 0x2d8]
push eax
push edi
call ebx
test eax, eax
jne 0x1009aa90
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov esi, eax
cmp dword [ebp - 0x2c], 8
jb 0x1009ad59
push dword [ebp - 0x40]
call fcn.101a02f0
add esp, 4
xor eax, eax
mov dword [ebp - 0x2c], 7
cmp dword [ebp - 0x5c], 8
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
jb 0x1009ad7e
push dword [ebp - 0x70]
call fcn.101a02f0
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.101a0193
mov esp, ebp
pop ebp
ret