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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x268
mov eax, dword [0x103f89c]
xor eax, ebp
mov dword [ebp - 4], eax
or dword [ebp - 0x260], 0xffffffff
push ebx
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
push ebx
mov dword [ebp - 0x264], edi
mov dword [ebp - 0x258], ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp edi, ebx
jne 0x10245f1
mov dword [ebp - 0x258], 0x57
jmp 0x1024816
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x10245f6
sub eax, edx
sar eax, 1
push esi
lea esi, [eax + 3]
mov dword [ebp - 0x268], eax
lea eax, [esi + esi]
push eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push edi
push 0x1010fd4
push esi
push eax
mov dword [ebp - 0x25c], eax
call fcn.01023bc3
add esp, 0x10
test eax, eax
jl 0x102482c
lea eax, [ebp - 0x254]
push eax
push dword [ebp - 0x25c]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x260], eax
jne 0x102467f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
mov dword [ebp - 0x258], eax
jne 0x10247e6
and dword [ebp - 0x258], 0
jmp 0x10247cf
mov ecx, 0x1010fd0
lea eax, [ebp - 0x228]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x10246b0
test dx, dx
je 0x10246ac
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x10246b0
add eax, 4
add ecx, 4
test dx, dx
jne 0x102468a
xor eax, eax
jmp 0x10246b5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x102479b
mov ecx, 0x1010fc8
lea eax, [ebp - 0x228]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x10246ee
test dx, dx
je 0x10246ea
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x10246ee
add eax, 4
add ecx, 4
test dx, dx
jne 0x10246c8
xor eax, eax
jmp 0x10246f3
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x102479b
lea eax, [ebp - 0x228]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x1024704
mov ecx, dword [ebp - 0x268]
sub eax, edx
sar eax, 1
lea edi, [eax + ecx + 2]
cmp esi, edi
jae 0x1024748
push dword [ebp - 0x25c]
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov esi, edi
lea eax, [esi + esi]
push eax
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x25c], eax
lea eax, [ebp - 0x228]
push eax
push dword [ebp - 0x264]
push 0x1010fb0
push esi
push dword [ebp - 0x25c]
call fcn.01023bc3
add esp, 0x14
test eax, eax
jl 0x102482c
test byte [ebp - 0x254], 0x10
push dword [ebp - 0x25c]
je 0x1024791
call fcn.010245a8
test eax, eax
mov dword [ebp - 0x258], eax
jne 0x10247e6
jmp 0x102479b
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x10247da
lea eax, [ebp - 0x254]
push eax
push dword [ebp - 0x260]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x102467f
push dword [ebp - 0x260]
call dword [sym.imp.KERNEL32.dll_FindClose]
or dword [ebp - 0x260], 0xffffffff
mov edi, dword [ebp - 0x264]
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x10247e6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x258], eax
cmp dword [ebp - 0x25c], 0
pop esi
je 0x1024801
push dword [ebp - 0x25c]
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [ebp - 0x260], 0xffffffff
je 0x1024816
push dword [ebp - 0x260]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x258]
pop edi
xor ecx, ebp
pop ebx
call fcn.01017c0a
leave
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov dword [ebp - 0x258], eax
jne 0x10247e6
mov dword [ebp - 0x258], 1
jmp 0x10247e6