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

Disassembly:
sub esp, 0xe98
mov eax, dword [0x41a2b4]
xor eax, esp
mov dword [esp + 0xe94], eax
push ebx
push ebp
mov ebp, dword [esp + 0xea4]
push esi
push edi
push str.RemoveAll
lea eax, [esp + 0x26c]
push eax
mov dword [esp + 0x18], ebp
call fcn.00401b20
push str.Started.
mov ecx, 2
lea ebx, [esp + 0x26c]
call fcn.00401d00
add esp, 4
push 0x250
lea ecx, [esp + 0x1c]
push 0
push ecx
call fcn.00409a00
lea eax, [esp + 0xca4]
mov esi, ebp
mov ecx, eax
add esp, 0xc
xor edi, edi
mov edx, 0x104
sub esi, ecx
lea ecx, [edx + 0x7ffffefa]
test ecx, ecx
je 0x403b76
movzx ecx, word [esi + eax]
test cx, cx
je 0x403b76
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x403b56
jmp 0x403b7a
test edx, edx
jne 0x403b82
sub eax, 2
mov edi, 0x8007007a
xor edx, edx
mov word [eax], dx
test edi, edi
jge 0x403ba3
push edi
push str.StringCchCopy___failed_for_szDirName_with_pcszFolderName___08X_
lea ecx, [edx + 1]
lea ebx, [esp + 0x270]
call fcn.00401d00
add esp, 8
lea eax, [esp + 0xa90]
mov esi, ebp
mov ecx, eax
xor edi, edi
mov edx, 0x104
sub esi, ecx
jmp 0x403bc0
lea ecx, [edx + 0x7ffffefa]
test ecx, ecx
je 0x403be0
movzx ecx, word [esi + eax]
test cx, cx
je 0x403be0
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x403bc0
jmp 0x403be4
test edx, edx
jne 0x403bec
sub eax, 2
mov edi, 0x8007007a
xor edx, edx
mov word [eax], dx
test edi, edi
jge 0x403c0d
push edi
push str.StringCchCopy___failed_for_szFileName_with_pcszFolderName___08X_
lea ecx, [edx + 1]
lea ebx, [esp + 0x270]
call fcn.00401d00
add esp, 8
mov ecx, 0x104
lea eax, [esp + 0xa90]
lea esp, [esp]
cmp word [eax], 0
je 0x403df0
add eax, 2
sub ecx, 1
jne 0x403c20
xor esi, esi
push 0x80070057
push str.StringCchLength___failed_for_szFileName___08X_
lea ecx, [esi + 1]
lea ebx, [esp + 0x270]
call fcn.00401d00
add esp, 8
mov eax, 0x5c
cmp ax, word [esp + esi*2 + 0xa8e]
je 0x403ca3
push 0x415e7c
lea ecx, [esp + 0xa94]
push ecx
push 0x415e90
mov ecx, 0x104
lea ebx, [esp + 0xa9c]
call fcn.00401440
add esp, 0xc
test eax, eax
jge 0x403ca3
push eax
push str.StringCchPrintf___failed_for_szFileName_with__T_PATH_SEP_STR___08X_
mov ecx, 1
lea ebx, [esp + 0x270]
call fcn.00401d00
add esp, 8
lea edx, [esp + 0xa90]
push 0x415e9c
push edx
push 0x415e90
mov ecx, 0x104
mov ebx, edx
call fcn.00401440
add esp, 0xc
test eax, eax
jge 0x403ce2
push eax
push str.StringCchPrintf___failed_for_szFileName_with__T_PATH_COMPLETE_STR___08X_
mov ecx, 1
lea ebx, [esp + 0x270]
call fcn.00401d00
add esp, 8
lea eax, [esp + 0xa90]
push eax
push str.Calling_FindFirstFile___with_path__s_.
mov ecx, 2
lea ebx, [esp + 0x270]
call fcn.00401d00
add esp, 8
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0xa94]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0x14], eax
cmp eax, 0xffffffff
jne 0x403d47
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0xa94]
push eax
push str.FindFirstFile___failed_for___s__with_error_code:__u
mov ecx, 1
call fcn.00401d00
add esp, 0xc
push ebp
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ebp, dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea ecx, [ecx]
lea ecx, [esp + 0x44]
push 0x415ea4
push ecx
call fcn.00404e81
add esp, 8
test eax, eax
je 0x40410a
lea edx, [esp + 0x44]
push 0x415eac
push edx
call fcn.00404e81
add esp, 8
test eax, eax
je 0x40410a
test byte [esp + 0x18], 0x10
push 0x206
push 0
je 0x403f75
lea ecx, [esp + 0x892]
xor eax, eax
push ecx
mov word [esp + 0x894], ax
call fcn.00409a00
lea eax, [esp + 0x894]
lea esi, [esp + 0xca4]
mov ecx, eax
add esp, 0xc
xor edi, edi
mov edx, 0x104
sub esi, ecx
lea esp, [esp]
lea ecx, [edx + 0x7ffffefa]
test ecx, ecx
je 0x403e04
movzx ecx, word [esi + eax]
test cx, cx
je 0x403e04
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x403dd0
jmp 0x403e08
test ecx, ecx
je 0x403c32
mov esi, 0x104
sub esi, ecx
jmp 0x403c50
test edx, edx
jne 0x403e10
sub eax, 2
mov edi, 0x8007007a
xor edx, edx
mov word [eax], dx
test edi, edi
jge 0x403e31
push edi
push str.StringCchCopy___failed_for_szlDirName_with_szDirName___08X_
lea ecx, [edx + 1]
lea ebx, [esp + 0x270]
call fcn.00401d00
add esp, 8
mov ecx, 0x104
lea eax, [esp + 0x888]
lea ecx, [ecx]
cmp word [eax], 0
je 0x403f61
add eax, 2
sub ecx, 1
jne 0x403e40
xor esi, esi
push 0x80070057
push str.StringCchLength___failed_for_szlDirName___08X_
lea ecx, [esi + 1]
lea ebx, [esp + 0x270]
call fcn.00401d00
add esp, 8
mov eax, 0x5c
cmp ax, word [esp + esi*2 + 0x886]
je 0x403ec3
push 0x415e7c
lea ecx, [esp + 0x88c]
push ecx
push 0x415e90
mov ecx, 0x104
lea ebx, [esp + 0x894]
call fcn.00401440
add esp, 0xc
test eax, eax
jge 0x403ec3
push eax
push str.StringCchPrintf___failed_for_szlDirName_with__T_PATH_SEP_STR___08X_
mov ecx, 1
lea ebx, [esp + 0x270]
call fcn.00401d00
add esp, 8
lea edx, [esp + 0x44]
push edx
lea eax, [esp + 0x88c]
push eax
push 0x415e90
mov ecx, 0x104
mov ebx, eax
call fcn.00401440
add esp, 0xc
test eax, eax
jge 0x403f02
push eax
push str.StringCchPrintf___failed_for_szlDirName_with_FileAttributes.cFileName___08X_
mov ecx, 1
lea ebx, [esp + 0x270]
call fcn.00401d00
add esp, 8
lea ecx, [esp + 0x888]
push ecx
call fcn.00403ae0
add esp, 4
lea edx, [esp + 0x888]
push edx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x40410a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0x88c]
push eax
push str.RemoveDirectory___failed_for__s_with_error_code__u
mov ecx, 1
lea ebx, [esp + 0x274]
call fcn.00401d00
add esp, 0xc
push 4
push 0
lea ecx, [esp + 0x890]
push ecx
jmp 0x404108
test ecx, ecx
je 0x403e52
mov esi, 0x104
sub esi, ecx
jmp 0x403e70
lea eax, [esp + 0x892]
xor edx, edx
push eax
mov word [esp + 0x894], dx
call fcn.00409a00
mov esi, dword [esp + 0x1c]
lea eax, [esp + 0x894]
mov ecx, eax
add esp, 0xc
xor edi, edi
mov edx, 0x104
sub esi, ecx
lea ecx, [edx + 0x7ffffefa]
test ecx, ecx
je 0x403fc5
movzx ecx, word [esi + eax]
test cx, cx
je 0x403fc5
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x403fa5
jmp 0x403fc9
test edx, edx
jne 0x403fd1
sub eax, 2
mov edi, 0x8007007a
xor edx, edx
mov word [eax], dx
test edi, edi
jge 0x403ff2
push edi
push str.StringCchCopy___failed_for_szlFile_with_pcszFolderName___08X_
lea ecx, [edx + 1]
lea ebx, [esp + 0x270]
call fcn.00401d00
add esp, 8
mov ecx, 0x104
lea eax, [esp + 0x888]
mov edi, edi
cmp word [eax], 0
je 0x4041a1
add eax, 2
sub ecx, 1
jne 0x404000
xor esi, esi
push 0x80070057
push str.StringCchLength___failed_for_szlFile___08X_
lea ecx, [esi + 1]
lea ebx, [esp + 0x270]
call fcn.00401d00
add esp, 8
mov eax, 0x5c
cmp ax, word [esp + esi*2 + 0x886]
je 0x404083
push 0x415e7c
lea ecx, [esp + 0x88c]
push ecx
push 0x415e90
mov ecx, 0x104
lea ebx, [esp + 0x894]
call fcn.00401440
add esp, 0xc
test eax, eax
jge 0x404083
push eax
push str.StringCchPrintf___failed_for_szlFile_with__T_PATH_SEP_STR___08X_
mov ecx, 1
lea ebx, [esp + 0x270]
call fcn.00401d00
add esp, 8
lea edx, [esp + 0x44]
push edx
lea eax, [esp + 0x88c]
push eax
push 0x415e90
mov ecx, 0x104
mov ebx, eax
call fcn.00401440
add esp, 0xc
test eax, eax
jge 0x4040c2
push eax
push str.StringCchPrintf___failed_for_szlFile_with_FileAttributes.cFileName___08X_
mov ecx, 1
lea ebx, [esp + 0x270]
call fcn.00401d00
add esp, 8
lea ecx, [esp + 0x888]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40410a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [esp + 0x88c]
push edx
push str.DeleteFile___failed_for__s_with_error_code__u
mov ecx, 1
lea ebx, [esp + 0x274]
call fcn.00401d00
add esp, 0xc
push 4
push 0
lea eax, [esp + 0x890]
push eax
call ebp
push 0x250
lea ecx, [esp + 0x1c]
push 0
push ecx
call fcn.00409a00
mov edi, dword [esp + 0x20]
add esp, 0xc
lea edx, [esp + 0x18]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x403d50
mov esi, dword [esp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x404166
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.RemoveDirectory___failed_for__s_with_error_code__u
mov ecx, 1
lea ebx, [esp + 0x274]
call fcn.00401d00
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
push str.Finished
mov ecx, 2
lea ebx, [esp + 0x26c]
call fcn.00401d00
mov ecx, dword [esp + 0xea8]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
mov al, 1
call fcn.00404cda
add esp, 0xe98
ret
test ecx, ecx
je 0x404012
mov esi, 0x104
sub esi, ecx
jmp 0x404030