Function at 0x417e40
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
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x48cafc
mov eax, dword fs:[0]
push eax
sub esp, 0x27c
mov eax, dword [0x4bc704]
xor eax, esp
mov dword [esp + 0x274], eax
push esi
push edi
mov eax, dword [0x4bc704]
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
mov dword [esp + 0x1c], esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4181bf
push 0x24c
lea eax, [esp + 0x34]
push 0
push eax
mov dword [esp + 0x38], 0
call fcn.0046ae60
add esp, 0xc
push 0x49fbc8
lea ecx, [esp + 0x2c]
push esi
push ecx
call fcn.00409300
mov eax, dword [eax]
add esp, 0xc
lea edx, [esp + 0x2c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
mov dword [esp + 0x24], edi
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x417efb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp edi, 0xffffffff
jne 0x417f10
mov ecx, dword [esi]
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
xor eax, eax
jmp 0x4181c4
lea eax, [esp + 0x58]
shr eax, 0x10
mov dword [esp + 0x20], eax
jmp 0x417f20
mov edx, dword [section..data]
mov eax, dword [edx + 0xc]
mov ecx, section..data
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x14], edi
cmp dword [esp + 0x20], 0
mov dword [esp + 0x290], 0
jne 0x417fab
lea ecx, [esp + 0x58]
movzx esi, cx
push esi
call fcn.00404830
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x417f6f
lea edx, [esp + 0x14]
push edx
mov eax, esi
call fcn.004049f0
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
mov dword [esp + 0x290], 1
mov ecx, 0x49f2f4
mov eax, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x417fd7
test dx, dx
je 0x417fa7
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x417fd7
add eax, 4
add ecx, 4
test dx, dx
jne 0x417f85
xor eax, eax
jmp 0x417fdc
lea eax, [esp + 0x58]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x417fb2
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x1c]
push ecx
call fcn.00404c30
mov edi, dword [esp + 0x14]
jmp 0x417f73
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sete al
test al, al
jne 0x41814f
mov ecx, 0x49fbd0
mov eax, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x418016
test dx, dx
je 0x418012
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x418016
add eax, 4
add ecx, 4
test dx, dx
jne 0x417ff0
xor eax, eax
jmp 0x41801b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sete al
test al, al
jne 0x41814f
push 0x49f46c
lea edx, [esp + 0x14]
push esi
push edx
call fcn.00409300
add esp, 0xc
mov byte [esp + 0x290], 2
mov eax, dword [edi - 0xc]
push eax
push edi
lea eax, [esp + 0x18]
push eax
call fcn.00412aa0
test byte [esp + 0x2c], 1
je 0x418069
mov ecx, dword [esp + 0x10]
push 0x80
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test byte [esp + 0x2c], 0x10
je 0x418084
lea edx, [esp + 0x10]
push 1
push edx
call fcn.00417e40
add esp, 8
jmp 0x418127
mov eax, dword [esi]
sub eax, 0x10
call fcn.00404780
lea esi, [eax + 0x10]
mov dword [esp + 0x1c], esi
mov byte [esp + 0x290], 3
cmp dword [esi - 4], 1
jle 0x4180b5
mov eax, dword [esi - 0xc]
push eax
lea ecx, [esp + 0x20]
push ecx
call fcn.00404af0
mov esi, dword [esp + 0x1c]
push esi
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov eax, dword [esi - 8]
push eax
push esi
call fcn.00469425
add esp, 8
test eax, eax
js 0x4181b5
cmp eax, dword [esi - 8]
jg 0x4181b5
mov dword [esi - 0xc], eax
xor edx, edx
mov word [esi + eax*2], dx
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4180ff
lea ecx, [esp + 0x10]
push ecx
call fcn.004185c0
add esp, 4
lea eax, [esi - 0x10]
mov byte [esp + 0x290], 2
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x418123
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x18]
mov byte [esp + 0x290], 1
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41814f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov dword [esp + 0x290], edx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x418172
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [esp + 0x24]
lea ecx, [esp + 0x2c]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x417f20
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp byte [ebp + 0xc], 0
je 0x4181bf
mov edx, dword [esi]
push edx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
sete cl
mov eax, ecx
jmp 0x4181c4
push 0x80070057
call fcn.00404c10
mov eax, 1
mov ecx, dword [esp + 0x288]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x274]
xor ecx, esp
call fcn.00467ce1
mov esp, ebp
pop ebp
ret