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

Disassembly:
push 0xffffffffffffffff
push 0x455eb7
mov eax, dword fs:[0]
push eax
sub esp, 0x2d0
mov eax, dword [0x471050]
xor eax, esp
mov dword [esp + 0x2c8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x471050]
xor eax, esp
push eax
lea eax, [esp + 0x2e4]
mov dword fs:[0], eax
cmp byte [esp + 0x2f4], 0
mov ebx, ecx
mov ebp, 8
jne 0x4055e4
lea esi, [ebx + 4]
cmp dword [ebx + 0x18], ebp
jb 0x4055c8
mov eax, dword [esi]
jmp 0x4055ca
mov eax, esi
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [ebx + 0x18], ebp
jb 0x4055dd
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea edi, [esp + 0x18]
mov dword [esp + 0x18], 0x5c
call fcn.00406a30
mov edi, eax
test edi, edi
je 0x405931
cmp edi, 0xffffffff
je 0x405931
push ebx
mov ecx, edi
xor edx, edx
lea esi, [esp + 0x3c]
call fcn.004067d0
mov dword [esp + 0x2ec], 0
mov eax, dword [esp + 0x4c]
lea esi, [eax - 1]
cmp esi, eax
jbe 0x405631
call fcn.0042ccd4
mov eax, dword [esp + 0x3c]
cmp dword [esp + 0x50], ebp
jae 0x40563f
lea eax, [esp + 0x3c]
cmp word [eax + esi*2], 0x5c
jne 0x405685
lea ecx, [edi - 1]
push ebx
xor edx, edx
lea esi, [esp + 0x58]
call fcn.004067d0
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x40]
mov byte [esp + 0x2f4], 1
call fcn.00402910
mov byte [esp + 0x2ec], 0
cmp dword [esp + 0x6c], ebp
jb 0x405685
mov eax, dword [esp + 0x58]
push eax
call fcn.0042ce2b
add esp, 4
lea ecx, [esp + 0x38]
push ecx
mov ebx, str..
lea esi, [esp + 0x58]
mov byte [esp + 0x1b], 0
call fcn.00406ce0
add esp, 4
mov byte [esp + 0x2ec], 2
mov eax, dword [esp + 0x58]
cmp dword [esp + 0x6c], ebp
jae 0x4056b6
lea eax, [esp + 0x58]
lea edx, [esp + 0x8c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40590b
mov bl, 1
mov ecx, 0x45ce24
lea eax, [esp + 0xb8]
mov edi, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x405706
test dx, dx
je 0x405702
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x405706
add eax, 4
add ecx, 4
test dx, dx
jne 0x4056e0
xor eax, eax
jmp 0x40570b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x405753
mov ecx, 0x45ce28
lea eax, [esp + 0xb8]
jmp 0x405720
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
jne 0x4057e5
lea eax, [esp + 0x8c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x4057e5
mov ecx, 0x45ce24
lea eax, [esp + 0xb8]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x405798
test dx, dx
je 0x405794
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x405798
add eax, 4
add ecx, 4
test dx, dx
jne 0x405772
xor eax, eax
jmp 0x40579d
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x405753
mov ecx, 0x45ce28
lea eax, [esp + 0xb8]
lea ecx, [ecx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4057d6
test dx, dx
je 0x4057d2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4057d6
add eax, 4
add ecx, 4
test dx, dx
jne 0x4057b0
xor eax, eax
jmp 0x4057db
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x405753
xor bl, bl
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
test bl, bl
je 0x4058e3
mov eax, dword [esp + 0x3c]
cmp dword [esp + 0x50], ebp
jae 0x405802
lea eax, [esp + 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x4058e3
lea edi, [esp + 0x18]
lea ebx, [esp + 0x38]
mov dword [esp + 0x18], 0x5c
call fcn.00406a30
mov edi, eax
cmp edi, 0xffffffff
je 0x4058e3
mov ecx, ebx
push ecx
mov ecx, edi
xor edx, edx
lea esi, [esp + 0x74]
call fcn.004067d0
mov bl, 3
mov byte [esp + 0x2ec], bl
mov eax, dword [esp + 0x84]
lea esi, [eax - 1]
cmp esi, eax
jbe 0x40585d
call fcn.0042ccd4
mov eax, dword [esp + 0x74]
cmp dword [esp + 0x88], ebp
jae 0x40586e
lea eax, [esp + 0x74]
cmp word [eax + esi*2], 0x5c
jne 0x4058b7
lea edx, [esp + 0x38]
push edx
lea ecx, [edi - 1]
xor edx, edx
lea esi, [esp + 0x20]
call fcn.004067d0
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x78]
mov byte [esp + 0x2f4], 4
call fcn.00402910
mov byte [esp + 0x2ec], bl
cmp dword [esp + 0x34], ebp
jb 0x4058b7
mov eax, dword [esp + 0x20]
push eax
call fcn.0042ce2b
add esp, 4
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x78]
lea ecx, [esp + 0x40]
call fcn.00402910
mov byte [esp + 0x17], 1
cmp dword [esp + 0x88], ebp
jb 0x4058e3
mov ecx, dword [esp + 0x74]
push ecx
call fcn.0042ce2b
add esp, 4
mov byte [esp + 0x2ec], 0
cmp dword [esp + 0x6c], ebp
jb 0x4058fe
mov edx, dword [esp + 0x58]
push edx
call fcn.0042ce2b
add esp, 4
cmp byte [esp + 0x17], 0
jne 0x405685
jmp 0x40591e
cmp dword [esp + 0x6c], ebp
jb 0x40591e
mov eax, dword [esp + 0x58]
push eax
call fcn.0042ce2b
add esp, 4
cmp dword [esp + 0x50], ebp
jb 0x405931
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.0042ce2b
add esp, 4
mov ecx, dword [esp + 0x2e4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2c8]
xor ecx, esp
call fcn.0042c9e9
add esp, 0x2dc
ret