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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56dd76
mov eax, dword fs:[0]
push eax
sub esp, 0x158
mov eax, dword [0x5d7f50]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
call fcn.0044b779
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x42d25b
push 0x80004005
call fcn.00402bc0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [ebp - 0x158], esi
mov dword [ebp - 4], 0
call fcn.0044b779
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x42d28e
push 0x80004005
call fcn.00402bc0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x15c], eax
mov byte [ebp - 4], 1
test ebx, ebx
jne 0x42d2ac
xor eax, eax
jmp 0x42d2ba
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x42d2b1
sub eax, edx
push eax
push ebx
lea ecx, [ebp - 0x15c]
call fcn.00402a20
push 4
push str..
lea ecx, [ebp - 0x15c]
call fcn.004078f0
mov edi, dword [ebp - 0x15c]
lea ecx, [ebp - 0x154]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x160], eax
cmp eax, 0xffffffff
jne 0x42d342
lea eax, [edi - 0x10]
mov byte [ebp - 4], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x42d318
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42d33b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x42d51e
lea ecx, [ebp - 0x128]
push 0x5b1b98
push ecx
call fcn.0053cf63
add esp, 8
test eax, eax
je 0x42d4ad
lea edx, [ebp - 0x128]
push 0x5b1e0c
push edx
call fcn.0053cf63
add esp, 8
test eax, eax
je 0x42d4ad
cmp dword [ebp + 0xc], 0
jne 0x42d39c
lea eax, [ebp - 0x128]
push str.desktop.ini
push eax
call fcn.0054084a
add esp, 8
test eax, eax
je 0x42d4ad
test ebx, ebx
jne 0x42d3a4
xor eax, eax
jmp 0x42d3b9
mov eax, ebx
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x42d3b0
sub eax, edx
push eax
push ebx
lea ecx, [ebp - 0x158]
call fcn.00402a20
mov eax, dword [ebp - 0x158]
mov edi, dword [eax - 0xc]
lea esi, [edi + 1]
test esi, esi
js 0x42d53a
mov ecx, dword [eax - 8]
mov edx, 1
sub edx, dword [eax - 4]
sub ecx, esi
or ecx, edx
jge 0x42d3fd
push esi
lea ecx, [ebp - 0x158]
call fcn.00402950
mov eax, dword [ebp - 0x158]
mov byte [edi + eax], 0x5c
cmp esi, dword [eax - 8]
jg 0x42d53a
mov dword [eax - 0xc], esi
mov byte [esi + eax], 0
lea eax, [ebp - 0x128]
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x42d420
sub eax, edx
push eax
lea ecx, [ebp - 0x128]
push ecx
lea ecx, [ebp - 0x158]
call fcn.004078f0
mov esi, dword [ebp - 0x158]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 1
je 0x42d458
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test byte [ebp - 0x154], 0x10
je 0x42d47b
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
push edx
push eax
push esi
call fcn.0042d210
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x42d4ad
cmp dword [ebp + 0x10], 0
je 0x42d4a6
lea ecx, [ebp - 0x128]
push str.index.dat
push ecx
call fcn.0054084a
add esp, 8
test eax, eax
jne 0x42d4a6
lea edx, [ebp - 0x128]
mov ecx, ebx
call fcn.0042d550
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edi, dword [ebp - 0x160]
lea edx, [ebp - 0x154]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x42d342
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x15c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42d4f6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42d519
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0053c99c
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00402bc0
int3