Function at 0x101e5b8
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 [0x1033f70]
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 0x101e601
mov dword [ebp - 0x258], 0x57
jmp 0x101e826
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x101e606
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 0x1011ad8
push esi
push eax
mov dword [ebp - 0x25c], eax
call fcn.01018ea1
add esp, 0x10
test eax, eax
jl 0x101e83c
lea eax, [ebp - 0x254]
push eax
push dword [ebp - 0x25c]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x260], eax
cmp eax, 0xffffffff
jne 0x101e68f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x258], eax
cmp eax, 2
jne 0x101e7f6
and dword [ebp - 0x258], 0
jmp 0x101e7df
mov ecx, 0x1011ad4
lea eax, [ebp - 0x228]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x101e6c0
test dx, dx
je 0x101e6bc
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x101e6c0
add eax, 4
add ecx, 4
test dx, dx
jne 0x101e69a
xor eax, eax
jmp 0x101e6c5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x101e7ab
mov ecx, 0x1011acc
lea eax, [ebp - 0x228]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x101e6fe
test dx, dx
je 0x101e6fa
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x101e6fe
add eax, 4
add ecx, 4
test dx, dx
jne 0x101e6d8
xor eax, eax
jmp 0x101e703
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x101e7ab
lea eax, [ebp - 0x228]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x101e714
mov ecx, dword [ebp - 0x268]
sub eax, edx
sar eax, 1
lea edi, [eax + ecx + 2]
cmp esi, edi
jae 0x101e758
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 0x1011ac0
push esi
push dword [ebp - 0x25c]
call fcn.01018ea1
add esp, 0x14
test eax, eax
jl 0x101e83c
test byte [ebp - 0x254], 0x10
push dword [ebp - 0x25c]
je 0x101e7a1
call fcn.0101e5b8
mov dword [ebp - 0x258], eax
test eax, eax
jne 0x101e7f6
jmp 0x101e7ab
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x101e7ea
lea eax, [ebp - 0x254]
push eax
push dword [ebp - 0x260]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x101e68f
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 0x101e7f6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x258], eax
cmp dword [ebp - 0x25c], 0
pop esi
je 0x101e811
push dword [ebp - 0x25c]
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [ebp - 0x260], 0xffffffff
je 0x101e826
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.0101c23d
leave
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x258], eax
test eax, eax
jne 0x101e7f6
mov dword [ebp - 0x258], 1
jmp 0x101e7f6