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

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x10]
push ebx
xor ebx, ebx
push esi
cmp eax, ebx
mov dword [esp + 0xc], ebx
je 0x401e2e
cmp byte [eax], 0
je 0x401e2e
push ebp
push 0x140
call sub.MFC42.DLL_operatornew
mov esi, eax
add esp, 4
cmp esi, ebx
mov dword [esp + 0xc], esi
je 0x401e39
push edi
mov ecx, 0x50
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
push 0x104
call sub.MFC42.DLL_operatornew
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x401e40
mov ecx, 0x41
xor eax, eax
mov edi, ebp
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x20]
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 0x401b56
mov edi, 0x408050
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, 0x40804c
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 0x401e47
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 0x401bf5
mov edi, 0x408050
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 0x401c68
mov edi, dword [sym.imp.MSVCRT.dll__mbscmp]
add esi, 0x2c
push 0x408048
push esi
call edi
add esp, 8
test eax, eax
je 0x401c93
push 0x408044
push esi
call edi
add esp, 8
test eax, eax
je 0x401c93
push 1
push ebp
call fcn.00401a90
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x401c93
mov dword [esp + 0x14], ebx
jmp 0x401c93
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push ebp
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x401c93
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 4
mov ebx, eax
push 0
push ebp
mov dword [esp + 0x20], ebx
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 0x401dbd
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 0x401d07
mov edi, 0x408050
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 0x401d7a
mov edi, dword [sym.imp.MSVCRT.dll__mbscmp]
add esi, 0x2c
push 0x408048
push esi
call edi
add esp, 8
test eax, eax
je 0x401da5
push 0x408044
push esi
call edi
add esp, 8
test eax, eax
je 0x401da5
push 1
push ebp
call fcn.00401a90
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x401da5
mov dword [esp + 0x14], ebx
jmp 0x401da5
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push ebp
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x401da5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 4
mov ebx, eax
push 0
push ebp
mov dword [esp + 0x20], ebx
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 0x401cab
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
test ebx, ebx
jne 0x401e06
mov eax, dword [esp + 0x24]
test eax, eax
je 0x401e02
mov esi, dword [esp + 0x20]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x401e02
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 4
push 0
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test ebx, ebx
jne 0x401e06
mov ebx, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
test ebp, ebp
pop edi
je 0x401e18
push ebp
call sub.MFC42.DLL_operatordelete
add esp, 4
test esi, esi
pop ebp
je 0x401e26
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, ebx
pop esi
pop ebx
add esp, 0xc
ret
pop esi
mov eax, 0x57
pop ebx
add esp, 0xc
ret
mov ebx, 8
jmp 0x401e18
mov ebx, 8
jmp 0x401e0a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x401dc8