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

Disassembly:
push 0xffffffffffffffff
push 0x451d51
mov eax, dword fs:[0]
push eax
sub esp, 0x278
mov eax, dword [0x4663e0]
xor eax, esp
mov dword [esp + 0x270], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4663e0]
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.00412330
lea ecx, [esp + 0x44]
push ecx
push esi
mov ecx, 0x45897c
mov dword [esp + 0x29c], 0
call fcn.00412330
mov ebx, 1
lea eax, [esp + 0x44]
mov byte [esp + 0x294], bl
call fcn.00436480
lea edx, [esp + 0x60]
push edx
push esi
mov ecx, 0x458660
call fcn.00412330
mov byte [esp + 0x294], 2
mov eax, dword [esi + 4]
push eax
push str.Folder
push str.__s____d_
push 0x4676a0
xor eax, eax
call fcn.0042cad0
add dword [0x4676c0], ebx
push 0
call fcn.00432010
mov ebx, dword [esp + 0x40]
mov esi, 8
add esp, 0x14
cmp dword [esp + 0x40], esi
jae 0x41e0e9
lea ebx, [esp + 0x2c]
mov ecx, 0xbcc
call fcn.00434620
mov eax, dword [esp + 0x74]
push str.prune
mov edi, 5
lea ecx, [esp + 0x64]
call fcn.004052b0
test eax, eax
jne 0x41e1f2
cmp dword [esp + 0x40], esi
mov eax, dword [esp + 0x2c]
jae 0x41e120
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x80]
push 0x104
push ecx
call fcn.00439323
add esp, 0xc
push 0
lea edx, [esp + 0x80]
push edx
call dword [sym.imp.SHLWAPI.dll_PathIsSystemFolderW]
test eax, eax
jne 0x41e2c0
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 0x41e2bb
lea ecx, [esp + 0x7c]
push ecx
push str.Removing_folder__s
push 0x4676a0
call fcn.0042cad0
add esp, 0xc
lea edx, [esp + 0x7c]
push edx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x41e1c7
lea eax, [esp + 0x7c]
push eax
push str.Folder_delete_failed._Marking___s__for_deletion_on_reboot
push 0x4676a0
xor eax, eax
call fcn.0042cad0
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 0x41e160
jmp 0x41e2bb
mov edx, dword [0x468b8c]
mov eax, dword [esp + 0x58]
mov bl, byte [edx + 0xce4]
push 0x457d28
mov edi, 3
lea ecx, [esp + 0x48]
call fcn.004052b0
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 0x41e247
lea eax, [esp + 0x2c]
push eax
push str.Recursively_deleting_folder__s
push 0x4676a0
xor eax, eax
call fcn.0042cad0
mov edi, dword [esp + 0x38]
add esp, 0xc
cmp dword [esp + 0x40], esi
jae 0x41e26a
lea edi, [esp + 0x2c]
push 0
push 0x4589e4
push edi
lea ecx, [esp + 0x20]
call fcn.00426790
mov esi, eax
test esi, esi
jne 0x41e292
mov edx, dword [esp + 0x14]
push eax
mov eax, dword [edx + 4]
push edi
lea ecx, [esp + 0x1c]
call eax
jmp 0x41e2ad
push esi
push str.Error_0x_X
push 0x4676a0
mov eax, 2
call fcn.0042cad0
add esp, 0xc
mov dword [ebp + 0x38], esi
cmp dword [esp + 0x20], 0
je 0x41e2bb
mov dword [ebp + 0x34], 1
mov esi, 8
push 1
call fcn.00432010
sub dword [0x4676c0], 1
add esp, 4
cmp dword [esp + 0x78], esi
jb 0x41e2e4
mov ecx, dword [esp + 0x64]
push ecx
call fcn.00439059
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 0x41e30b
mov edx, dword [esp + 0x48]
push edx
call fcn.00439059
add esp, 4
cmp dword [esp + 0x40], esi
mov dword [esp + 0x5c], edi
mov dword [esp + 0x58], ebx
mov word [esp + 0x48], bx
jb 0x41e32b
mov eax, dword [esp + 0x2c]
push eax
call fcn.00439059
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.0043782a
add esp, 0x284
ret 4