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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x464
mov eax, dword [0x42104c]
xor eax, ebp
mov dword [ebp - 4], eax
or dword [ebp - 0x464], 0xffffffff
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push esi
mov dword [ebp - 0x460], esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x417d8b
call edi
mov esi, eax
test esi, esi
jle 0x417d7f
and esi, 0xffff
or esi, 0x80070000
test esi, esi
js 0x417ffb
mov esi, dword [ebp - 0x460]
test bl, 0x10
je 0x417fbc
test bl, 1
je 0x417dc5
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x417dc5
call edi
mov esi, eax
test esi, esi
jle 0x417dbf
and esi, 0xffff
or esi, 0x80070000
test esi, esi
js 0x417ffb
cmp dword [ebp + 0xc], 0
jne 0x417dd8
cmp dword [ebp + 0x10], 0
jne 0x417dd8
xor esi, esi
jmp 0x417fd7
mov esi, dword [ebp - 0x460]
push 0xffffffffffffffff
push esi
mov ebx, 0x104
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.00411144
add esp, 0x10
cmp eax, 0x50
jne 0x417e05
mov esi, 0x8007007a
jmp 0x417ffb
push 0xffffffffffffffff
push 0x40378c
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.0041106e
add esp, 0x10
cmp eax, 0x50
je 0x417dfb
lea eax, [ebp - 0x45c]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x417e5e
call edi
mov esi, eax
test esi, esi
jle 0x417e52
and esi, 0xffff
or esi, 0x80070000
test esi, esi
js 0x417ffb
mov esi, dword [ebp - 0x460]
push 0x403770
lea eax, [ebp - 0x430]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x417f80
push 0x403784
lea eax, [ebp - 0x430]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x417f80
push 0xffffffffffffffff
push esi
mov esi, 0x104
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.00411144
add esp, 0x10
cmp eax, 0x50
je 0x417fa3
push 0xffffffffffffffff
lea eax, [ebp - 0x430]
push eax
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.0041106e
add esp, 0x10
cmp eax, 0x50
je 0x417fa3
cmp dword [ebp + 0x10], 0
je 0x417f1a
test byte [ebp - 0x45c], 0x10
je 0x417f1a
push 0xffffffffffffffff
push 0x40177c
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.0041106e
add esp, 0x10
cmp eax, 0x50
je 0x417fa3
push dword [ebp + 0x10]
lea eax, [ebp - 0x20c]
push dword [ebp + 0xc]
push eax
call fcn.00417d2f
mov esi, eax
jmp 0x417f7c
cmp dword [ebp + 0xc], 0
je 0x417f80
test byte [ebp - 0x45c], 7
je 0x417f57
push 0x80
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x417f57
call edi
mov esi, eax
test esi, esi
jle 0x417f55
and esi, 0xffff
or esi, 0x80070000
test esi, esi
js 0x417fc7
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x417f80
call edi
mov esi, eax
test esi, esi
jle 0x417f7e
and esi, 0xffff
or esi, 0x80070000
test esi, esi
js 0x417fc7
lea eax, [ebp - 0x45c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x417e58
call edi
mov esi, eax
cmp esi, 0x12
jne 0x417faa
xor esi, esi
jmp 0x417fc7
mov esi, 0x8007007a
jmp 0x417fc7
test esi, esi
jle 0x417fc7
and esi, 0xffff
or esi, 0x80070000
jmp 0x417fc7
mov ebx, dword [ebp - 0x464]
mov esi, 0x8000ffff
cmp ebx, 0xffffffff
je 0x417fd3
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
test esi, esi
js 0x417ffb
push dword [ebp - 0x460]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x417ffb
call edi
mov esi, eax
test esi, esi
jle 0x417ffb
and esi, 0xffff
or esi, 0x80070000
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.00410f5c
leave
ret 0xc