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

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1c]
xor ebx, ebx
xor ebp, ebp
cmp esi, ebx
push edi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], ebx
je 0x401de9
cmp byte [esi], 0
je 0x401e04
push 0x140
call sub.MFC42.DLL_operatornew
mov edi, eax
add esp, 4
test edi, edi
mov dword [esp + 0x10], edi
je 0x401e1f
mov ecx, 0x50
xor eax, eax
rep stosd dword es:[edi], eax
push 0x104
call sub.MFC42.DLL_operatornew
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x401e3a
mov ecx, 0x41
xor eax, eax
mov edi, ebp
rep stosd dword es:[edi], eax
mov edi, esi
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [ecx + ebp - 1], 0x5c
je 0x401ad8
mov edi, 0x40812c
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x408128
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x10]
mov ecx, edx
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x18], eax
je 0x401e55
mov edi, dword [esp + 0x20]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [ecx + ebp - 1], 0x5c
je 0x401b77
mov edi, 0x40812c
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x10]
or ecx, 0xffffffff
lea edi, [eax + 0x2c]
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x10]
test byte [esi], 0x10
je 0x401bea
mov edi, dword [sym.imp.MSVCRT.dll__mbscmp]
add esi, 0x2c
push 0x408124
push esi
call edi
add esp, 8
test eax, eax
je 0x401c28
push 0x408120
push esi
call edi
add esp, 8
test eax, eax
je 0x401c28
push 1
push ebp
call fcn.00401a10
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x401c28
mov dword [esp + 0x14], ebx
jmp 0x401c28
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push ebp
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x401c28
push str.D:WorkGenSetupSetupStdAfx.cpp
push 0x168
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004015c0
add esp, 0xc
mov ebx, eax
mov dword [esp + 0x14], ebx
push 4
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x401d65
mov edi, dword [esp + 0x20]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [ecx + ebp - 1], 0x5c
je 0x401c9c
mov edi, 0x40812c
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x10]
or ecx, 0xffffffff
lea edi, [eax + 0x2c]
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x10]
test byte [esi], 0x10
je 0x401d0f
mov edi, dword [sym.imp.MSVCRT.dll__mbscmp]
add esi, 0x2c
push 0x408124
push esi
call edi
add esp, 8
test eax, eax
je 0x401d4d
push 0x408120
push esi
call edi
add esp, 8
test eax, eax
je 0x401d4d
push 1
push ebp
call fcn.00401a10
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x401d4d
mov dword [esp + 0x14], ebx
jmp 0x401d4d
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push ebp
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x401d4d
push str.D:WorkGenSetupSetupStdAfx.cpp
push 0x186
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004015c0
add esp, 0xc
mov ebx, eax
mov dword [esp + 0x14], ebx
push 4
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x401c40
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esi, dword [esp + 0x20]
test ebx, ebx
jne 0x401dc1
mov eax, dword [esp + 0x24]
test eax, eax
je 0x401dbd
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x401dbd
push str.D:WorkGenSetupSetupStdAfx.cpp
push 0x195
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004015c0
add esp, 0xc
mov ebx, eax
push 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test ebx, ebx
jne 0x401dc1
mov ebx, dword [esp + 0x14]
test ebp, ebp
je 0x401dce
push ebp
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, dword [esp + 0x10]
test eax, eax
je 0x401ddf
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0xc
ret
push str.D:WorkGenSetupSetupStdAfx.cpp
push 0x12f
push 0x57
call fcn.004015c0
add esp, 0xc
mov ebx, eax
jmp 0x401d74
push str.D:WorkGenSetupSetupStdAfx.cpp
push 0x133
push 0x57
call fcn.004015c0
add esp, 0xc
mov ebx, eax
jmp 0x401d74
push str.D:WorkGenSetupSetupStdAfx.cpp
push 0x139
push 8
call fcn.004015c0
add esp, 0xc
mov ebx, eax
jmp 0x401d74
push str.D:WorkGenSetupSetupStdAfx.cpp
push 0x140
push 8
call fcn.004015c0
add esp, 0xc
mov ebx, eax
jmp 0x401d74
push str.D:WorkGenSetupSetupStdAfx.cpp
push 0x14e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004015c0
add esp, 0xc
mov ebx, eax
jmp 0x401d70