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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x874
mov eax, dword [0x4611f4]
xor eax, esp
mov dword [esp + 0x870], eax
push ebx
push esi
push edi
mov esi, ecx
push esi
mov edi, edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
jne 0x40d36e
push ecx
mov edx, edi
mov ecx, esi
call fcn.0040d5a0
add esp, 4
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x870]
xor ecx, esp
call fcn.00431c68
mov esp, ebp
pop ebp
ret
xor eax, eax
push 0x206
push eax
mov word [esp + 0x268], ax
lea eax, [esp + 0x26a]
push eax
call fcn.00434de0
add esp, 0xc
lea eax, [esp + 0x260]
push 0x104
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
lea eax, [esp + 0x260]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp word [esp + eax*2 + 0x25e], 0x5c
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatW]
je 0x40d3d0
push 0x455154
lea eax, [esp + 0x264]
push eax
call ebx
mov esi, dword [ebp + 8]
test esi, esi
jne 0x40d3e9
push ecx
mov edx, edi
lea ecx, [esp + 0x264]
call fcn.0040d5a0
add esp, 4
xor eax, eax
push 0x206
push eax
mov word [esp + 0x678], ax
lea eax, [esp + 0x67a]
push eax
call fcn.00434de0
add esp, 0xc
lea eax, [esp + 0x260]
push 0x104
push eax
lea eax, [esp + 0x678]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
push 0x458090
lea eax, [esp + 0x674]
push eax
call ebx
push 0x24c
lea eax, [esp + 0x18]
push 0
push eax
mov dword [esp + 0x1c], 0
call fcn.00434de0
add esp, 0xc
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x674]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40d571
lea ecx, [ecx]
mov eax, dword [esp + 0x10]
test eax, 0x4100
jne 0x40d556
test al, 4
jne 0x40d556
push 0x45549c
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x40d556
push 0x4554a0
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x40d556
xor eax, eax
push 0x206
push eax
mov word [esp + 0x470], ax
lea eax, [esp + 0x472]
push eax
call fcn.00434de0
add esp, 0xc
lea eax, [esp + 0x260]
push 0x104
push eax
lea eax, [esp + 0x470]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x46c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
test byte [esp + 0x10], 0x10
je 0x40d51d
push esi
mov edx, edi
lea ecx, [esp + 0x46c]
call fcn.0040d320
jmp 0x40d553
test esi, esi
je 0x40d544
push 0x80
lea eax, [esp + 0x46c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [esp + 0x468]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x40d556
push ecx
mov edx, edi
lea ecx, [esp + 0x46c]
call fcn.0040d5a0
add esp, 4
lea eax, [esp + 0x10]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40d470
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
test esi, esi
je 0x40d583
lea eax, [esp + 0x260]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ecx, dword [esp + 0x87c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00431c68
mov esp, ebp
pop ebp
ret