Function at 0x410cb0
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 0x4470fc
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 0x410f13
test al, 0x10
je 0x410f13
lea eax, [esp + 0x14]
push esi
push eax
mov ebx, 0x452750
call fcn.00406e70
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 0x410ed1
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, 0x452758
lea eax, [esp + 0x58]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x410d86
test dx, dx
je 0x410d82
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x410d86
add eax, 4
add ecx, 4
test dx, dx
jne 0x410d60
xor eax, eax
jmp 0x410d8b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x410eb9
mov ecx, 0x45275c
lea eax, [esp + 0x58]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x410dc6
test dx, dx
je 0x410dc2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x410dc6
add eax, 4
add ecx, 4
test dx, dx
jne 0x410da0
xor eax, eax
jmp 0x410dcb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x410eb9
test byte [esp + 0x2c], 0x10
push esi
mov ebx, 0x451924
je 0x410e48
lea eax, [esp + 0x24]
push eax
call fcn.00406e70
push eax
lea ecx, [esp + 0x34]
push ecx
lea ebx, [esp + 0x68]
mov byte [esp + 0x2a0], 1
call fcn.00406e70
push eax
mov byte [esp + 0x2a4], 2
call fcn.00410cb0
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 0x410e3a
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 0x410e9d
lea ecx, [esp + 0x20]
push ecx
call fcn.00406e70
push eax
lea edx, [esp + 0x24]
push edx
lea ebx, [esp + 0x68]
mov byte [esp + 0x2a0], 3
call fcn.00406e70
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 0x410e91
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 0x410eb9
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 0x410d50
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 0x410f0c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
jmp 0x410f15
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.0042decf
mov esp, ebp
pop ebp
ret