Function at 0x40d980
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4eeb7e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x310
mov ecx, 0x52429a
call fcn.004c6bbd
lea eax, [ebp - 0x31c]
push eax
push 0x4f6970
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x9c]
call fcn.00406890
mov dword [ebp - 0x34], eax
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x38], edx
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x38]
push eax
lea ecx, [ebp - 0x84]
push ecx
call fcn.00403d10
add esp, 0xc
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x3c]
call fcn.00415bd0
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x28], eax
lea ecx, [ebp - 0x84]
call fcn.004030c0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x9c]
call fcn.004030c0
cmp dword [ebp - 0x28], 0xffffffff
jne 0x40da23
jmp 0x40dbdf
mov dword [ebp - 0x14], 0x4f6978
lea edx, [ebp - 0x2f0]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
mov cx, word [eax]
mov word [ebp - 0x1e], cx
mov edx, dword [ebp - 0x14]
cmp cx, word [edx]
jne 0x40da78
cmp word [ebp - 0x1e], 0
je 0x40da6f
mov eax, dword [ebp - 0x10]
mov cx, word [eax + 2]
mov word [ebp - 0x20], cx
mov edx, dword [ebp - 0x14]
cmp cx, word [edx + 2]
jne 0x40da78
add dword [ebp - 0x10], 4
add dword [ebp - 0x14], 4
cmp word [ebp - 0x20], 0
jne 0x40da33
mov dword [ebp - 0x2c], 0
jmp 0x40da80
sbb eax, eax
or eax, 1
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x40], ecx
cmp dword [ebp - 0x40], 0
je 0x40dbb2
mov dword [ebp - 0x1c], 0x4f697c
lea edx, [ebp - 0x2f0]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x18]
mov cx, word [eax]
mov word [ebp - 0x22], cx
mov edx, dword [ebp - 0x1c]
cmp cx, word [edx]
jne 0x40dae5
cmp word [ebp - 0x22], 0
je 0x40dadc
mov eax, dword [ebp - 0x18]
mov cx, word [eax + 2]
mov word [ebp - 0x24], cx
mov edx, dword [ebp - 0x1c]
cmp cx, word [edx + 2]
jne 0x40dae5
add dword [ebp - 0x18], 4
add dword [ebp - 0x1c], 4
cmp word [ebp - 0x24], 0
jne 0x40daa0
mov dword [ebp - 0x30], 0
jmp 0x40daed
sbb eax, eax
or eax, 1
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x44], ecx
cmp dword [ebp - 0x44], 0
je 0x40dbb2
lea edx, [ebp - 0x2f0]
push edx
push str._____SMDB
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0xcc]
call fcn.00406890
mov dword [ebp - 0x48], eax
mov ecx, dword [ebp - 0x48]
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 4], 1
mov edx, dword [ebp - 0x4c]
push edx
lea eax, [ebp - 0xb4]
push eax
call fcn.00403d10
add esp, 0xc
mov dword [ebp - 0x50], eax
mov ecx, dword [ebp - 0x50]
mov dword [ebp - 0x54], ecx
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x54]
push edx
lea eax, [ebp - 0x6c]
push eax
call fcn.00403d10
add esp, 0xc
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xb4]
call fcn.004030c0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0xcc]
call fcn.004030c0
mov ecx, dword [ebp - 0x31c]
and ecx, 0x10
je 0x40db94
lea ecx, [ebp - 0x6c]
call fcn.00415bd0
push eax
call fcn.0040d980
add esp, 4
jmp 0x40dba3
lea ecx, [ebp - 0x6c]
call fcn.00415bd0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x6c]
call fcn.004030c0
lea edx, [ebp - 0x31c]
push edx
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40da23
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret