Function at 0x10f0d7c
Capabilities:
Check if file exists
Delete directory
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x668
mov eax, dword [0x111127c]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x668], 0
push ebx
push esi
push edi
lea eax, [ebp - 0x668]
push eax
call fcn.010f0a9b
mov edi, eax
test edi, edi
jl 0x10f1006
push dword [ebp - 0x668]
mov esi, 0x104
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.01025872
mov edi, eax
test edi, edi
jl 0x10f1006
mov ebx, dword [sym.imp.KERNEL32.dll_FindFirstFileW]
lea eax, [ebp - 0x664]
push eax
lea eax, [ebp - 0x20c]
push eax
call ebx
cmp eax, 0xffffffff
jne 0x10f0e8b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x10f0e38
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x10f100b
test byte [eax + 0x1c], 1
je 0x10f100b
cmp byte [eax + 0x19], 5
jb 0x10f100b
push 0x10124b0
push 0x19
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189d0
jmp 0x10f1006
test eax, eax
jle 0x10f0e46
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x10f100b
test byte [eax + 0x1c], 1
je 0x10f100b
cmp byte [eax + 0x19], 2
jb 0x10f100b
push edi
lea ecx, [ebp - 0x20c]
push ecx
push 0x10124b0
push 0x1a
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010196ed
jmp 0x10f1006
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0x10019e4
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.01040bdd
mov edi, eax
test edi, edi
jl 0x10f1006
push 0x101251c
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.01040bdd
mov edi, eax
test edi, edi
jl 0x10f1006
lea eax, [ebp - 0x664]
push eax
lea eax, [ebp - 0x20c]
push eax
call ebx
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x10f0fc5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x10f0f07
test eax, eax
jg 0x10f0efb
mov edi, eax
jmp 0x10f1006
and eax, 0xffff
or eax, 0x80070000
jmp 0x10f0ef4
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x10f100b
test byte [eax + 0x1c], 1
je 0x10f100b
cmp byte [eax + 0x19], 5
jb 0x10f100b
push 0x10124b0
push 0x1b
jmp 0x10f0e28
push 0x10019e4
push esi
lea eax, [ebp - 0x414]
push eax
call fcn.01040bdd
mov edi, eax
test edi, edi
jl 0x10f0fff
lea eax, [ebp - 0x638]
push eax
push esi
lea eax, [ebp - 0x414]
push eax
call fcn.01040bdd
mov edi, eax
test edi, edi
jl 0x10f0fff
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x10f0fb3
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x10f0fb3
test byte [eax + 0x1c], 1
je 0x10f0fb3
cmp byte [eax + 0x19], 2
jb 0x10f0fb3
lea ecx, [ebp - 0x414]
push ecx
push 0x10124b0
push 0x1c
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019680
lea eax, [ebp - 0x664]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x10f0fe4
push dword [ebp - 0x668]
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.01025872
mov edi, eax
test edi, edi
jge 0x10f0f37
jmp 0x10f0fff
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x10f0fff
test eax, eax
jle 0x10f0ffd
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [0x111124c]
cmp dword [ebp - 0x668], 0
je 0x10f1025
push dword [ebp - 0x668]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [0x111124c]
test edi, edi
jge 0x10f104f
cmp eax, 0x111124c
je 0x10f104f
test byte [eax + 0x1c], 1
je 0x10f104f
cmp byte [eax + 0x19], 2
jb 0x10f104f
push edi
push 0x10124b0
push 0x1d
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189f6
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0106f5f8
leave
ret