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

Disassembly:
sub esp, 0x460
mov eax, dword [0x30015078]
or dword [esp], 0xffffffff
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x474]
push edi
mov dword [esp + 0x470], eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
mov ebp, 0x80070000
jne 0x30010faa
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x30010fa4
and esi, 0xffff
or esi, ebp
test esi, esi
jl 0x300111ff
test bl, 0x10
je 0x300111c1
test bl, 1
je 0x30010fe4
push 0x80
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x30010fe4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x30010fde
and esi, 0xffff
or esi, ebp
test esi, esi
jl 0x300111ff
xor esi, esi
cmp dword [esp + 0x478], esi
jne 0x30010ffc
cmp dword [esp + 0x47c], esi
je 0x300111db
push edi
mov edi, 0x104
push edi
lea eax, [esp + 0x1c]
push eax
call fcn.3000448f
mov esi, eax
test esi, esi
jl 0x300111ff
push 0x30002974
push edi
lea eax, [esp + 0x1c]
push eax
call fcn.300047bf
mov esi, eax
test esi, esi
jl 0x300111ff
lea eax, [esp + 0x21c]
push eax
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
jne 0x30011069
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x30011063
and esi, 0xffff
or esi, ebp
test esi, esi
jl 0x300111ff
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpW]
push 0x30002608
lea eax, [esp + 0x24c]
push eax
call ebx
test eax, eax
je 0x30011187
push 0x3000296c
lea eax, [esp + 0x24c]
push eax
call ebx
test eax, eax
je 0x30011187
push dword [esp + 0x474]
lea eax, [esp + 0x18]
push edi
push eax
call fcn.3000448f
mov esi, eax
test esi, esi
jl 0x300111c6
lea eax, [esp + 0x248]
push eax
push edi
lea eax, [esp + 0x1c]
push eax
call fcn.300047bf
mov esi, eax
test esi, esi
jl 0x300111c6
cmp dword [esp + 0x47c], 0
je 0x30011120
test byte [esp + 0x21c], 0x10
je 0x30011120
push 0x30001910
push edi
lea eax, [esp + 0x1c]
push eax
call fcn.300047bf
mov esi, eax
test esi, esi
jl 0x300111c6
push dword [esp + 0x47c]
lea eax, [esp + 0x18]
push dword [esp + 0x47c]
push eax
call fcn.30010f5a
mov esi, eax
jmp 0x30011183
cmp dword [esp + 0x478], 0
je 0x30011187
test byte [esp + 0x21c], 7
je 0x30011160
push 0x80
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x30011160
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x3001115e
and esi, 0xffff
or esi, ebp
test esi, esi
jl 0x300111c6
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x30011187
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x30011185
and esi, 0xffff
or esi, ebp
test esi, esi
jl 0x300111c6
lea eax, [esp + 0x21c]
push eax
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x3001106f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x300111b0
xor esi, esi
jmp 0x300111c6
test eax, eax
jg 0x300111b8
mov esi, eax
jmp 0x300111c6
and eax, 0xffff
or eax, ebp
jmp 0x300111b4
mov esi, 0x8000ffff
cmp dword [esp + 0x10], 0xffffffff
je 0x300111d7
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_FindClose]
test esi, esi
jl 0x300111ff
push dword [esp + 0x474]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x300111ff
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x300111fd
and eax, 0xffff
or eax, ebp
mov esi, eax
mov ecx, dword [esp + 0x46c]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
call fcn.30012b55
add esp, 0x460
ret 0xc