Function at 0x405f40
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x470
mov eax, dword [0x448044]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x212]
push edx
mov dword [ebp - 0x468], eax
mov word [ebp - 0x214], cx
call fcn.004279d0
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push edi
lea eax, [ebp - 0x214]
push str._s.
push eax
call esi
add esp, 0xc
lea ecx, [ebp - 0x464]
push ecx
lea edx, [ebp - 0x214]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x46c], eax
cmp eax, 0xffffffff
je 0x4061bb
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x405fc9
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
test byte [ebp - 0x464], 0x10
je 0x4060c4
mov ecx, 0x435944
lea eax, [ebp - 0x438]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x406007
test dx, dx
je 0x406003
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x406007
add eax, 4
add ecx, 4
test dx, dx
jne 0x405fe1
xor eax, eax
jmp 0x40600c
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x406191
mov ecx, 0x43aaf8
lea eax, [ebp - 0x438]
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x406046
test dx, dx
je 0x406042
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x406046
add eax, 4
add ecx, 4
test dx, dx
jne 0x406020
xor eax, eax
jmp 0x40604b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x406191
push 0x208
lea eax, [ebp - 0x214]
push 0
push eax
call fcn.004279d0
add esp, 0xc
lea ecx, [ebp - 0x438]
push ecx
push edi
lea edx, [ebp - 0x214]
push 0x43ab00
push edx
call esi
add esp, 0x10
push 0x80
lea eax, [ebp - 0x214]
push eax
call ebx
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x468]
push ecx
push edx
lea eax, [ebp - 0x214]
push eax
call fcn.00405f40
add esp, 0xc
test eax, eax
jne 0x406191
lea ecx, [ebp - 0x214]
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x406191
cmp dword [ebp - 0x468], 0
jne 0x406116
push 0x208
lea edx, [ebp - 0x214]
push 0
push edx
call fcn.004279d0
add esp, 0xc
lea eax, [ebp - 0x438]
push eax
push edi
lea ecx, [ebp - 0x214]
push 0x43ab00
push ecx
call esi
add esp, 0x10
push 0x80
lea edx, [ebp - 0x214]
push edx
call ebx
lea eax, [ebp - 0x214]
push eax
jmp 0x40618b
xor esi, esi
cmp dword [ebp + 0x10], esi
jbe 0x406143
lea ecx, [ecx]
mov ecx, dword [ebp - 0x468]
mov edx, dword [ecx + esi*4]
push edx
lea eax, [ebp - 0x438]
push eax
call fcn.0041fcb7
add esp, 8
test eax, eax
je 0x406191
inc esi
cmp esi, dword [ebp + 0x10]
jb 0x406120
push 0x208
lea ecx, [ebp - 0x214]
push 0
push ecx
call fcn.004279d0
add esp, 0xc
lea edx, [ebp - 0x438]
push edx
push edi
lea eax, [ebp - 0x214]
push 0x43ab00
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
push 0x80
lea ecx, [ebp - 0x214]
push ecx
call ebx
lea edx, [ebp - 0x214]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, dword [ebp - 0x46c]
lea eax, [ebp - 0x464]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x405fc3
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.0041fb1e
mov esp, ebp
pop ebp
ret