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

Disassembly:
sub esp, 0x464
mov eax, dword [0x1023d1bc]
xor eax, esp
mov dword [esp + 0x460], eax
push ebx
mov ebx, dword [esp + 0x46c]
push esi
mov esi, dword [esp + 0x478]
push edi
mov edi, dword [esp + 0x478]
movzx eax, si
push eax
movzx ecx, di
push ecx
movzx edx, bx
push edx
push str.due__u__x__x_
push 0xa
push 0x1023e498
call fcn.1000f850
mov eax, dword [esp + 0x488]
add esp, 0x18
push eax
mov ecx, 0x1023e240
call fcn.100061e0
test eax, eax
jne 0x1000598b
test edx, edx
jne 0x1000598b
push ebp
push esi
push edi
push ebx
call fcn.100053c0
mov ebp, eax
add esp, 0xc
mov dword [esp + 0x14], edx
test ebp, ebp
jne 0x100057a8
test edx, edx
je 0x100057be
push edx
push ebp
push str.due:A_I64x
push 0x28
push 0x1023e498
call fcn.1000f850
add esp, 0x14
push 0
push esi
push edi
lea eax, [esp + 0x274]
push ebx
push eax
call fcn.100043d0
add esp, 0x14
test eax, eax
jne 0x1000598a
test edx, edx
jne 0x1000598a
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x26c]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, 0xffffffff
jne 0x1000582e
call esi
cmp eax, 3
je 0x100058da
call esi
cmp eax, 2
je 0x100058da
call esi
push eax
push 0x220f1324
call fcn.1000e640
add esp, 8
jmp 0x1000598a
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
test byte [esp + 0x18], 0x10
jne 0x1000588f
lea eax, [esp + 0x268]
push 0x5c
push eax
call dword [sym.imp.MSVCR90.dll_wcsrchr]
add esp, 8
lea edx, [esp + 0x44]
xor ecx, ecx
push edx
mov word [eax + 2], cx
push 0x104
lea eax, [esp + 0x270]
push eax
call fcn.100023a0
lea ecx, [esp + 0x268]
push ecx
call ebx
test eax, eax
jne 0x1000588f
call esi
push eax
push 0x220f1323
call fcn.1000e640
add esp, 8
mov ebp, eax
mov dword [esp + 0x14], edx
lea edx, [esp + 0x18]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x10005834
call esi
cmp eax, 0x12
je 0x100058c0
call esi
push eax
push 0x220f1324
call fcn.1000e640
mov ebx, edx
add esp, 8
mov ebp, eax
mov dword [esp + 0x14], ebx
jmp 0x100058c4
mov ebx, dword [esp + 0x14]
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
test ebp, ebp
jne 0x100058d3
test ebx, ebx
je 0x100058da
mov edx, ebx
jmp 0x10005988
mov ebx, dword [sym.imp.MSVCR90.dll_wcsrchr]
lea eax, [esp + 0x268]
push 0x5c
push eax
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
add esp, 8
lea edx, [esp + 0x268]
xor ecx, ecx
push edx
mov word [eax], cx
call edi
test eax, eax
jne 0x10005935
call esi
cmp eax, 0x91
je 0x10005935
call esi
cmp eax, 2
je 0x10005935
call esi
cmp eax, 3
je 0x10005935
call esi
push eax
push 0x220f1009
call fcn.1000e640
add esp, 8
mov ebp, eax
mov dword [esp + 0x14], edx
lea eax, [esp + 0x268]
push 0x5c
push eax
call ebx
add esp, 8
lea edx, [esp + 0x268]
xor ecx, ecx
push edx
mov word [eax], cx
call edi
test eax, eax
jne 0x10005984
call esi
cmp eax, 0x91
je 0x10005984
call esi
cmp eax, 2
je 0x10005984
call esi
cmp eax, 3
je 0x10005984
call esi
push eax
push 0x220f1009
call fcn.1000e640
add esp, 8
mov ebp, eax
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x14]
mov eax, ebp
pop ebp
mov ecx, dword [esp + 0x46c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10010588
add esp, 0x464
ret 0xc