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

Disassembly:
sub esp, 0x464
mov eax, dword [0x1023d1a4]
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.1000f390
mov eax, dword [esp + 0x488]
add esp, 0x18
push eax
mov ecx, 0x1023e240
call fcn.10006110
test eax, eax
jne 0x100058bb
test edx, edx
jne 0x100058bb
push ebp
push esi
push edi
push ebx
call fcn.100052f0
mov ebp, eax
add esp, 0xc
mov dword [esp + 0x14], edx
test ebp, ebp
jne 0x100056d8
test edx, edx
je 0x100056ee
push edx
push ebp
push str.due:A_I64x
push 0x28
push 0x1023e498
call fcn.1000f390
add esp, 0x14
push 0
push esi
push edi
lea eax, [esp + 0x274]
push ebx
push eax
call fcn.10004300
add esp, 0x14
test eax, eax
jne 0x100058ba
test edx, edx
jne 0x100058ba
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 0x1000575e
call esi
cmp eax, 3
je 0x1000580a
call esi
cmp eax, 2
je 0x1000580a
call esi
push eax
push 0x220f1324
call fcn.1000e150
add esp, 8
jmp 0x100058ba
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
test byte [esp + 0x18], 0x10
jne 0x100057bf
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.100061c0
lea ecx, [esp + 0x268]
push ecx
call ebx
test eax, eax
jne 0x100057bf
call esi
push eax
push 0x220f1323
call fcn.1000e150
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 0x10005764
call esi
cmp eax, 0x12
je 0x100057f0
call esi
push eax
push 0x220f1324
call fcn.1000e150
mov ebx, edx
add esp, 8
mov ebp, eax
mov dword [esp + 0x14], ebx
jmp 0x100057f4
mov ebx, dword [esp + 0x14]
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
test ebp, ebp
jne 0x10005803
test ebx, ebx
je 0x1000580a
mov edx, ebx
jmp 0x100058b8
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 0x10005865
call esi
cmp eax, 0x91
je 0x10005865
call esi
cmp eax, 2
je 0x10005865
call esi
cmp eax, 3
je 0x10005865
call esi
push eax
push 0x220f1009
call fcn.1000e150
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 0x100058b4
call esi
cmp eax, 0x91
je 0x100058b4
call esi
cmp eax, 2
je 0x100058b4
call esi
cmp eax, 3
je 0x100058b4
call esi
push eax
push 0x220f1009
call fcn.1000e150
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.10010586
add esp, 0x464
ret 0xc