Function at 0x405640
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 [0x446044]
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.00426670
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 0x4058bb
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x4056c9
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
test byte [ebp - 0x464], 0x10
je 0x4057c4
mov ecx, 0x434934
lea eax, [ebp - 0x438]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x405707
test dx, dx
je 0x405703
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x405707
add eax, 4
add ecx, 4
test dx, dx
jne 0x4056e1
xor eax, eax
jmp 0x40570c
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x405891
mov ecx, 0x439090
lea eax, [ebp - 0x438]
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x405746
test dx, dx
je 0x405742
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x405746
add eax, 4
add ecx, 4
test dx, dx
jne 0x405720
xor eax, eax
jmp 0x40574b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x405891
push 0x208
lea eax, [ebp - 0x214]
push 0
push eax
call fcn.00426670
add esp, 0xc
lea ecx, [ebp - 0x438]
push ecx
push edi
lea edx, [ebp - 0x214]
push 0x439098
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.00405640
add esp, 0xc
test eax, eax
jne 0x405891
lea ecx, [ebp - 0x214]
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x405891
cmp dword [ebp - 0x468], 0
jne 0x405816
push 0x208
lea edx, [ebp - 0x214]
push 0
push edx
call fcn.00426670
add esp, 0xc
lea eax, [ebp - 0x438]
push eax
push edi
lea ecx, [ebp - 0x214]
push 0x439098
push ecx
call esi
add esp, 0x10
push 0x80
lea edx, [ebp - 0x214]
push edx
call ebx
lea eax, [ebp - 0x214]
push eax
jmp 0x40588b
xor esi, esi
cmp dword [ebp + 0x10], esi
jbe 0x405843
lea ecx, [ecx]
mov ecx, dword [ebp - 0x468]
mov edx, dword [ecx + esi*4]
push edx
lea eax, [ebp - 0x438]
push eax
call fcn.0041e957
add esp, 8
test eax, eax
je 0x405891
inc esi
cmp esi, dword [ebp + 0x10]
jb 0x405820
push 0x208
lea ecx, [ebp - 0x214]
push 0
push ecx
call fcn.00426670
add esp, 0xc
lea edx, [ebp - 0x438]
push edx
push edi
lea eax, [ebp - 0x214]
push 0x439098
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 0x4056c3
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.0041e7be
mov esp, ebp
pop ebp
ret