Function at 0x10f0d30
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 [0x111027c]
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.010f0a4f
mov edi, eax
test edi, edi
jl 0x10f0fba
push dword [ebp - 0x668]
mov esi, 0x104
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.010257dc
mov edi, eax
test edi, edi
jl 0x10f0fba
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 0x10f0e3f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x10f0dec
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x10f0fbf
test byte [eax + 0x1c], 1
je 0x10f0fbf
cmp byte [eax + 0x19], 5
jb 0x10f0fbf
push 0x10124c0
push 0x19
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101894a
jmp 0x10f0fba
test eax, eax
jle 0x10f0dfa
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x10f0fbf
test byte [eax + 0x1c], 1
je 0x10f0fbf
cmp byte [eax + 0x19], 2
jb 0x10f0fbf
push edi
lea ecx, [ebp - 0x20c]
push ecx
push 0x10124c0
push 0x1a
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01048c37
jmp 0x10f0fba
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0x10019e4
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.01040cf0
mov edi, eax
test edi, edi
jl 0x10f0fba
push 0x101252c
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.01040cf0
mov edi, eax
test edi, edi
jl 0x10f0fba
lea eax, [ebp - 0x664]
push eax
lea eax, [ebp - 0x20c]
push eax
call ebx
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x10f0f79
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x10f0ebb
test eax, eax
jg 0x10f0eaf
mov edi, eax
jmp 0x10f0fba
and eax, 0xffff
or eax, 0x80070000
jmp 0x10f0ea8
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x10f0fbf
test byte [eax + 0x1c], 1
je 0x10f0fbf
cmp byte [eax + 0x19], 5
jb 0x10f0fbf
push 0x10124c0
push 0x1b
jmp 0x10f0ddc
push 0x10019e4
push esi
lea eax, [ebp - 0x414]
push eax
call fcn.01040cf0
mov edi, eax
test edi, edi
jl 0x10f0fb3
lea eax, [ebp - 0x638]
push eax
push esi
lea eax, [ebp - 0x414]
push eax
call fcn.01040cf0
mov edi, eax
test edi, edi
jl 0x10f0fb3
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x10f0f67
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x10f0f67
test byte [eax + 0x1c], 1
je 0x10f0f67
cmp byte [eax + 0x19], 2
jb 0x10f0f67
lea ecx, [ebp - 0x414]
push ecx
push 0x10124c0
push 0x1c
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019633
lea eax, [ebp - 0x664]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x10f0f98
push dword [ebp - 0x668]
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.010257dc
mov edi, eax
test edi, edi
jge 0x10f0eeb
jmp 0x10f0fb3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x10f0fb3
test eax, eax
jle 0x10f0fb1
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [0x111024c]
cmp dword [ebp - 0x668], 0
je 0x10f0fd9
push dword [ebp - 0x668]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [0x111024c]
test edi, edi
jge 0x10f1003
cmp eax, 0x111024c
je 0x10f1003
test byte [eax + 0x1c], 1
je 0x10f1003
cmp byte [eax + 0x19], 2
jb 0x10f1003
push edi
push 0x10124c0
push 0x1d
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019fa8
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0106f798
leave
ret