Function at 0x41e870
Capabilities:
Delete directory
Delete file
Move file

Disassembly:
push 0xffffffffffffffff
push 0x457c11
mov eax, dword fs:[0]
push eax
sub esp, 0x278
mov eax, dword [0x46e3d8]
xor eax, esp
mov dword [esp + 0x270], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x46e3d8]
xor eax, esp
push eax
lea eax, [esp + 0x28c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x29c]
lea eax, [esp + 0x28]
mov esi, ecx
push eax
push esi
mov ecx, str.path
call fcn.00412d30
lea ecx, [esp + 0x44]
push ecx
push esi
mov ecx, 0x45ea1c
mov dword [esp + 0x29c], 0
call fcn.00412d30
mov ebx, 1
lea eax, [esp + 0x44]
mov byte [esp + 0x294], bl
call fcn.0043bc80
lea edx, [esp + 0x60]
push edx
push esi
mov ecx, 0x45e700
call fcn.00412d30
mov byte [esp + 0x294], 2
mov eax, dword [esi + 4]
push eax
push str.Folder
push str.__s____d_
push 0x46fa40
xor eax, eax
call fcn.00431730
add dword [0x46fa60], ebx
push 0
call fcn.00436e10
mov ebx, dword [esp + 0x40]
mov esi, 8
add esp, 0x14
cmp dword [esp + 0x40], esi
jae 0x41e949
lea ebx, [esp + 0x2c]
mov ecx, 0xbcc
call fcn.00439d60
mov eax, dword [esp + 0x74]
push str.prune
mov edi, 5
lea ecx, [esp + 0x64]
call fcn.004052d0
test eax, eax
jne 0x41ea52
cmp dword [esp + 0x40], esi
mov eax, dword [esp + 0x2c]
jae 0x41e980
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x80]
push 0x104
push ecx
call fcn.0043f42c
add esp, 0xc
push 0
lea edx, [esp + 0x80]
push edx
call dword [sym.imp.SHLWAPI.dll_PathIsSystemFolderW]
test eax, eax
jne 0x41eb20
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov edi, dword [sym.imp.SHLWAPI.dll_PathRemoveBackslashW]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [esp + 0x7c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsRootW]
test eax, eax
jne 0x41eb1b
lea ecx, [esp + 0x7c]
push ecx
push str.Removing_folder__s
push 0x46fa40
call fcn.00431730
add esp, 0xc
lea edx, [esp + 0x7c]
push edx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x41ea27
lea eax, [esp + 0x7c]
push eax
push str.Folder_delete_failed._Marking___s__for_deletion_on_reboot
push 0x46fa40
xor eax, eax
call fcn.00431730
add esp, 0xc
push 4
push 0
lea ecx, [esp + 0x84]
push ecx
call esi
mov dword [ebp + 0x34], 1
lea edx, [esp + 0x7c]
push edx
call edi
lea eax, [esp + 0x7c]
push eax
call ebx
push 0
lea ecx, [esp + 0x80]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathIsSystemFolderW]
test eax, eax
je 0x41e9c0
jmp 0x41eb1b
mov edx, dword [0x470c20]
mov eax, dword [esp + 0x58]
mov bl, byte [edx + 0xce4]
push 0x45ddc8
mov edi, 3
lea ecx, [esp + 0x48]
call fcn.004052d0
neg eax
sbb eax, eax
add eax, 1
mov dword [esp + 0x18], eax
xor eax, eax
cmp dword [esp + 0x40], esi
movzx ecx, bl
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x14], vtable.CSafeDeleteTree.0
mov dword [esp + 0x24], ecx
jae 0x41eaa7
lea eax, [esp + 0x2c]
push eax
push str.Recursively_deleting_folder__s
push 0x46fa40
xor eax, eax
call fcn.00431730
mov edi, dword [esp + 0x38]
add esp, 0xc
cmp dword [esp + 0x40], esi
jae 0x41eaca
lea edi, [esp + 0x2c]
push 0
push 0x45ea84
push edi
lea ecx, [esp + 0x20]
call fcn.00427090
mov esi, eax
test esi, esi
jne 0x41eaf2
mov edx, dword [esp + 0x14]
push eax
mov eax, dword [edx + 4]
push edi
lea ecx, [esp + 0x1c]
call eax
jmp 0x41eb0d
push esi
push str.Error_0x_X
push 0x46fa40
mov eax, 2
call fcn.00431730
add esp, 0xc
mov dword [ebp + 0x38], esi
cmp dword [esp + 0x20], 0
je 0x41eb1b
mov dword [ebp + 0x34], 1
mov esi, 8
push 1
call fcn.00436e10
sub dword [0x46fa60], 1
add esp, 4
cmp dword [esp + 0x78], esi
jb 0x41eb44
mov ecx, dword [esp + 0x64]
push ecx
call fcn.0043e965
add esp, 4
xor ebx, ebx
cmp dword [esp + 0x5c], esi
mov edi, 7
mov dword [esp + 0x78], edi
mov dword [esp + 0x74], ebx
mov word [esp + 0x64], bx
jb 0x41eb6b
mov edx, dword [esp + 0x48]
push edx
call fcn.0043e965
add esp, 4
cmp dword [esp + 0x40], esi
mov dword [esp + 0x5c], edi
mov dword [esp + 0x58], ebx
mov word [esp + 0x48], bx
jb 0x41eb8b
mov eax, dword [esp + 0x2c]
push eax
call fcn.0043e965
add esp, 4
mov ecx, dword [esp + 0x28c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x270]
xor ecx, esp
call fcn.0043d02a
add esp, 0x284
ret 4