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

Disassembly:
sub esp, 0x878
mov eax, dword [0x434cd0]
xor eax, esp
mov dword [esp + 0x874], eax
push ebp
push esi
push edi
mov edi, dword [esp + 0x888]
push 0x20a
xor esi, esi
lea eax, [esp + 0x260]
push esi
push eax
mov ebp, ecx
call fcn.00410ff0
push edi
lea ecx, [esp + 0x26c]
push 0x104
push ecx
call fcn.0041106a
add esp, 0x18
lea edx, [esp + 0x25c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathRemoveBackslashW]
push 0x80
lea eax, [esp + 0x260]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea ecx, [esp + 0x25c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x4038dd
push ebx
push 0x20a
lea edx, [esp + 0x67c]
push esi
push edx
call fcn.00410ff0
mov ebx, dword [sym.imp.SHLWAPI.dll_PathCombineW]
add esp, 0xc
push 0x42ba9c
lea eax, [esp + 0x264]
push eax
lea ecx, [esp + 0x680]
push ecx
call ebx
push 0x24c
lea edx, [esp + 0x18]
push esi
push edx
mov dword [esp + 0x1c], esi
call fcn.00410ff0
add esp, 0xc
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x67c]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x403894
jmp 0x4037b0
mov edx, 0x2e
mov esi, 1
cmp dx, word [esp + 0x3c]
jne 0x4037dc
mov ax, word [esp + 0x3e]
mov ecx, edx
cmp cx, ax
je 0x403879
xor edx, edx
cmp dx, ax
je 0x403879
push 0x20a
lea eax, [esp + 0x470]
push 0
push eax
call fcn.00410ff0
add esp, 0xc
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0x264]
push edx
lea eax, [esp + 0x474]
push eax
call ebx
mov ecx, dword [esp + 0x10]
and ecx, 0x10
cmp cl, 0x10
jne 0x40382f
push 1
lea edx, [esp + 0x470]
push edx
mov ecx, ebp
call fcn.004036c0
mov esi, eax
test esi, esi
je 0x40388d
jmp 0x403879
push 0x80
lea eax, [esp + 0x470]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea ecx, [esp + 0x46c]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x403879
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 2
je 0x403879
push 4
push 0
lea edx, [esp + 0x268]
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov esi, eax
neg esi
sbb esi, esi
neg esi
lea eax, [esp + 0x10]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4037b0
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [esp + 0x890], 0
pop ebx
je 0x403914
lea ecx, [esp + 0x25c]
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x403914
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 2
je 0x4038d6
push 4
push 0
lea edx, [esp + 0x264]
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
neg eax
sbb eax, eax
neg eax
jmp 0x403916
mov eax, 1
jmp 0x403916
lea eax, [esp + 0x25c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x403914
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 2
je 0x4038d6
push 4
push 0
lea ecx, [esp + 0x264]
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
neg eax
sbb eax, eax
neg eax
jmp 0x403916
mov eax, esi
mov ecx, dword [esp + 0x880]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.0041161f
add esp, 0x878
ret 8