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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5057e5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1a4
push ebx
push esi
push edi
push 0x5374a0
mov esi, ecx
mov dword [ebp - 0x10], 0x5374a0
call fcn.004de812
add esp, 4
test eax, eax
jne 0x40ab2d
mov dword [ebp - 4], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], al
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], al
mov byte [ebp - 4], 2
mov eax, closesocket
mov ecx, dword [esi + 0x10]
sub eax, ecx
cmp eax, 4
jb 0x40ab33
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x40a7e5
mov eax, dword [esi]
push 4
push str..
push ecx
push eax
push ecx
push dword [ebp - 0x10]
lea ecx, [ebp - 0x58]
call fcn.004720e0
mov ecx, dword [ebp - 0x2c]
cmp ecx, 0x10
jb 0x40a82e
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40a824
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ab38
push ecx
push edx
call fcn.004df511
add esp, 8
mov eax, dword [ebp - 0x54]
lea ecx, [ebp - 0x40]
mov edx, dword [ebp - 0x58]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x2c], eax
cmp eax, 0x10
jb 0x40a85c
mov ecx, edx
lea eax, [ebp - 0x1b0]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40aa83
lea eax, [ebp - 0x184]
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40a880
mov cl, byte [ebp - 0x184]
sub eax, edx
cmp eax, 1
jne 0x40a89d
cmp cl, 0x2e
je 0x40aa13
cmp eax, 2
jne 0x40a8b3
cmp cl, 0x2e
jne 0x40a8b3
cmp byte [ebp - 0x183], cl
je 0x40aa13
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
jb 0x40a8bf
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov byte [eax], 0
mov eax, closesocket
mov ecx, dword [esi + 0x10]
sub eax, ecx
cmp eax, 1
jb 0x40ab33
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x40a8e6
mov eax, dword [esi]
push 1
push 0x5224ac
push ecx
push eax
push ecx
push dword [ebp - 0x10]
lea ecx, [ebp - 0x70]
call fcn.004720e0
lea eax, [ebp - 0x184]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x70]
call fcn.0046a480
mov edx, eax
mov ecx, dword [edx]
mov eax, dword [edx + 0x14]
mov dword [ebp - 0x58], ecx
mov ecx, dword [edx + 4]
mov dword [ebp - 0x54], ecx
mov ecx, dword [edx + 8]
mov dword [ebp - 0x50], ecx
mov ecx, dword [edx + 0xc]
mov dword [ebp - 0x4c], ecx
mov ecx, dword [edx + 0x10]
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x58]
mov dword [ebp - 0x48], ecx
lea ecx, [ebp - 0x28]
push eax
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0xf
mov byte [edx], 0
call fcn.0046a5f0
mov ecx, dword [ebp - 0x44]
cmp ecx, 0x10
jb 0x40a984
mov edx, dword [ebp - 0x58]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40a97a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ab38
push ecx
push edx
call fcn.004df511
add esp, 8
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x5c]
cmp ecx, 0x10
jb 0x40a9bc
mov edx, dword [ebp - 0x70]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40a9b2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ab38
push ecx
push edx
call fcn.004df511
add esp, 8
test byte [ebp - 0x1b0], 0x10
je 0x40a9e0
push 0
mov dl, 1
lea ecx, [ebp - 0x28]
call fcn.0040a750
mov edi, eax
add esp, 4
test edi, edi
jne 0x40aa85
jmp 0x40aa13
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
jb 0x40a9ec
mov eax, dword [ebp - 0x28]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
je 0x40aa79
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
jb 0x40aa08
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x40aa79
lea eax, [ebp - 0x1b0]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
cmp eax, 1
je 0x40a875
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
mov edi, eax
cmp edi, 0x12
jne 0x40aa85
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x40aa4a
mov eax, dword [esi]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x40aa60
call ebx
mov edi, eax
jmp 0x40aa85
cmp dword [esi + 0x14], 0x10
jb 0x40aa68
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x40aa83
call ebx
mov edi, eax
jmp 0x40aa85
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x40aa85
xor edi, edi
mov ecx, dword [ebp - 0x2c]
cmp ecx, 0x10
jb 0x40aab9
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40aaaf
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ab38
push ecx
push edx
call fcn.004df511
add esp, 8
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
cmp ecx, 0x10
jb 0x40aafb
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40aaf1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ab38
push ecx
push edx
call fcn.004df511
add esp, 8
push 0x5374a0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.004de823
mov ecx, dword [ebp - 0xc]
add esp, 4
mov eax, edi
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push eax
call fcn.004de4bb
call fcn.00402270
call fcn.004e47b0
int3