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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4466ac
mov eax, dword fs:[0]
push eax
sub esp, 0x278
mov eax, dword [0x45c070]
xor eax, esp
mov dword [esp + 0x270], eax
push ebx
push esi
push edi
mov eax, dword [0x45c070]
xor eax, esp
push eax
lea eax, [esp + 0x288]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x410ec3
test al, 0x10
je 0x410ec3
lea eax, [esp + 0x14]
push esi
push eax
mov ebx, 0x452670
call fcn.00406e80
add esp, 8
lea ecx, [esp + 0x2c]
mov dword [esp + 0x290], 0
mov edx, dword [esp + 0x14]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
mov dword [esp + 0x24], ebx
cmp ebx, 0xffffffff
je 0x410e81
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, 0x452678
lea eax, [esp + 0x58]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x410d36
test dx, dx
je 0x410d32
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x410d36
add eax, 4
add ecx, 4
test dx, dx
jne 0x410d10
xor eax, eax
jmp 0x410d3b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x410e69
mov ecx, 0x45267c
lea eax, [esp + 0x58]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x410d76
test dx, dx
je 0x410d72
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x410d76
add eax, 4
add ecx, 4
test dx, dx
jne 0x410d50
xor eax, eax
jmp 0x410d7b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x410e69
test byte [esp + 0x2c], 0x10
push esi
mov ebx, 0x451824
je 0x410df8
lea eax, [esp + 0x24]
push eax
call fcn.00406e80
push eax
lea ecx, [esp + 0x34]
push ecx
lea ebx, [esp + 0x68]
mov byte [esp + 0x2a0], 1
call fcn.00406e80
push eax
mov byte [esp + 0x2a4], 2
call fcn.00410c60
mov byte [esp + 0x2a4], 1
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
add esp, 0x14
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x410dea
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x290], 0
mov eax, dword [esp + 0x20]
jmp 0x410e4d
lea ecx, [esp + 0x20]
push ecx
call fcn.00406e80
push eax
lea edx, [esp + 0x24]
push edx
lea ebx, [esp + 0x68]
mov byte [esp + 0x2a0], 3
call fcn.00406e80
mov eax, dword [eax]
add esp, 0x10
push eax
call edi
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410e41
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x290], 0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410e69
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, dword [esp + 0x24]
lea ecx, [esp + 0x2c]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x410d00
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov dword [esp + 0x290], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x410ebc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
jmp 0x410ec5
xor eax, eax
mov ecx, dword [esp + 0x288]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x270]
xor ecx, esp
call fcn.0042d4af
mov esp, ebp
pop ebp
ret