Function at 0x4084d0
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 [0x44a044]
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.00427f40
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 0x40874b
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x408559
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
test byte [ebp - 0x464], 0x10
je 0x408654
mov ecx, 0x43b800
lea eax, [ebp - 0x438]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x408597
test dx, dx
je 0x408593
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x408597
add eax, 4
add ecx, 4
test dx, dx
jne 0x408571
xor eax, eax
jmp 0x40859c
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x408721
mov ecx, 0x43d418
lea eax, [ebp - 0x438]
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4085d6
test dx, dx
je 0x4085d2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4085d6
add eax, 4
add ecx, 4
test dx, dx
jne 0x4085b0
xor eax, eax
jmp 0x4085db
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x408721
push 0x208
lea eax, [ebp - 0x214]
push 0
push eax
call fcn.00427f40
add esp, 0xc
lea ecx, [ebp - 0x438]
push ecx
push edi
lea edx, [ebp - 0x214]
push 0x43aff8
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.004084d0
add esp, 0xc
test eax, eax
jne 0x408721
lea ecx, [ebp - 0x214]
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x408721
cmp dword [ebp - 0x468], 0
jne 0x4086a6
push 0x208
lea edx, [ebp - 0x214]
push 0
push edx
call fcn.00427f40
add esp, 0xc
lea eax, [ebp - 0x438]
push eax
push edi
lea ecx, [ebp - 0x214]
push 0x43aff8
push ecx
call esi
add esp, 0x10
push 0x80
lea edx, [ebp - 0x214]
push edx
call ebx
lea eax, [ebp - 0x214]
push eax
jmp 0x40871b
xor esi, esi
cmp dword [ebp + 0x10], esi
jbe 0x4086d3
lea ecx, [ecx]
mov ecx, dword [ebp - 0x468]
mov edx, dword [ecx + esi*4]
push edx
lea eax, [ebp - 0x438]
push eax
call fcn.00422853
add esp, 8
test eax, eax
je 0x408721
inc esi
cmp esi, dword [ebp + 0x10]
jb 0x4086b0
push 0x208
lea ecx, [ebp - 0x214]
push 0
push ecx
call fcn.00427f40
add esp, 0xc
lea edx, [ebp - 0x438]
push edx
push edi
lea eax, [ebp - 0x214]
push 0x43aff8
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 0x408553
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.00421294
mov esp, ebp
pop ebp
ret