Function at 0x4462d0
Capabilities:
Check if file exists
Delete file
Get file attributes
Move file
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x4840c1
mov eax, dword fs:[0]
push eax
sub esp, 0x2b4
mov eax, dword [0x4a60f8]
xor eax, esp
mov dword [esp + 0x2b0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a60f8]
xor eax, esp
push eax
lea eax, [esp + 0x2c8]
mov dword fs:[0], eax
mov esi, dword [esp + 0x2d8]
mov edi, ecx
push esi
lea ecx, [esp + 0x18]
call fcn.0041d2c0
mov ebx, dword [edi + 0x2c]
xor ebp, ebp
mov dword [esp + 0x2d0], ebp
cmp ebx, ebp
je 0x446388
cmp dword [edi + 0x30], ebp
je 0x446388
push 0x2a0
lea eax, [esp + 0x28]
push ebp
push eax
call fcn.00461950
mov ecx, dword [edi + 0x40]
mov eax, dword [ecx - 8]
lea eax, [esi + eax*2]
add esp, 0xc
cmp word [eax], 0x5c
jne 0x446358
add eax, 2
mov edx, dword [ebx]
mov edx, dword [edx + 0x10]
lea ecx, [esp + 0x24]
push ecx
push eax
push ebx
call edx
test eax, eax
je 0x446388
cmp dword [esp + 0x2b8], ebp
jne 0x44637c
cmp dword [esp + 0x2b4], ebp
je 0x446388
mov eax, dword [edi + 0x30]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x20]
push esi
push eax
call edx
mov eax, dword [edi + 0x24]
cmp eax, ebp
je 0x4463aa
movzx ecx, word [edi + 0x38]
movzx edx, word [edi + 0x3c]
shl ecx, 0x10
or ecx, edx
push ecx
push esi
push 0x343f
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
inc dword [edi + 0x38]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp eax, 0xffffffff
je 0x4463f3
test al, 0x10
je 0x4463f3
push esi
mov ebp, 1
call fcn.00422670
add esp, 4
test eax, eax
je 0x44642a
push esi
push str.SafeDeleteFile_DeleteDirectory_Path_s_OK.
call fcn.0041aa30
add esp, 8
lea ecx, [esp + 0x14]
call fcn.0041b2e0
mov eax, ebp
jmp 0x4465ec
push esi
call ebx
test eax, eax
je 0x44642a
push esi
push str.SafeDeleteFile_DeleteFile_Path_s_OK.
call fcn.0041aa30
mov esi, dword [esp + 0x1c]
lea eax, [esi - 0xc]
add esp, 8
cmp eax, dword [0x4a4010]
je 0x4465e7
add esi, 0xfffffff4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
jmp 0x4465da
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x446475
push esi
test ebp, ebp
jne 0x446461
call ebx
test eax, eax
je 0x446475
push esi
push str.SafeDeleteFile_DeleteFile_BY_SetFileAttributes__Path_s_OK.
call fcn.0041aa30
add esp, 8
lea ecx, [esp + 0x14]
call fcn.0041b2e0
jmp 0x4465e7
call fcn.00422670
add esp, 4
test eax, eax
je 0x446475
push esi
push str.SafeDeleteFile_DeleteDirectory_BY_SetFileAttributes__Path_s_OK.
jmp 0x44644b
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x4464aa
push esi
mov ecx, edi
call fcn.00446220
mov eax, dword [esp + 0x14]
lea ecx, [eax - 0xc]
cmp ecx, dword [0x4a4010]
je 0x4465e7
lea esi, [eax - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
jmp 0x4465da
mov edx, dword [0x4a4014]
mov dword [esp + 0x1c], edx
lea eax, [esp + 0x1c]
push eax
mov byte [esp + 0x2d4], 1
call fcn.0041c490
mov ebx, dword [esp + 0x18]
lea eax, [ebx - 0xc]
add esp, 4
cmp dword [eax], 0
mov dword [esp + 0x20], eax
jl 0x4464e8
mov esi, ebx
push eax
mov dword [esp + 0x1c], esi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x446500
mov ecx, dword [0x4a4014]
mov dword [esp + 0x18], ecx
push ebx
lea ecx, [esp + 0x1c]
call fcn.0041be90
mov esi, dword [esp + 0x18]
mov ebp, dword [esp + 0x1c]
push ebp
push esi
mov byte [esp + 0x2d8], 2
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x44657e
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x44657e
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0x1c]
call fcn.0041be30
push ebp
push ebx
push str.SafeDeleteFile_MoveFile_Path_s_To_s_OK.
call fcn.0041aa30
mov esi, dword [esp + 0x24]
add esp, 0xc
push 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x44657e
push esi
push str.SafeDeleteFile_MoveFileEx_Path_s_OK.
call fcn.0041aa30
add esp, 8
lea ecx, [esp + 0x18]
call fcn.0041b2e0
lea ecx, [esp + 0x1c]
call fcn.0041b2e0
lea ecx, [esp + 0x14]
call fcn.0041b2e0
jmp 0x4465e7
push esi
mov ecx, edi
call fcn.00446220
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea eax, [esi - 0xc]
cmp eax, dword [0x4a4010]
je 0x4465aa
add esi, 0xfffffff4
push esi
call edi
test eax, eax
jg 0x4465aa
push esi
call fcn.00462471
add esp, 4
lea ecx, [ebp - 0xc]
cmp ecx, dword [0x4a4010]
je 0x4465c8
lea esi, [ebp - 0xc]
push esi
call edi
test eax, eax
jg 0x4465c8
push esi
call fcn.00462471
add esp, 4
add ebx, 0xfffffff4
cmp ebx, dword [0x4a4010]
je 0x4465e7
mov esi, dword [esp + 0x20]
push esi
call edi
test eax, eax
jg 0x4465e7
push esi
call fcn.00462471
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x2c8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2b0]
xor ecx, esp
call fcn.00461932
add esp, 0x2c0
ret 4