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

Disassembly:
push 0xffffffffffffffff
push 0x481761
mov eax, dword fs:[0]
push eax
sub esp, 0x2b4
mov eax, dword [0x4a30f8]
xor eax, esp
mov dword [esp + 0x2b0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a30f8]
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.0041deb0
mov ebx, dword [edi + 0x2c]
xor ebp, ebp
mov dword [esp + 0x2d0], ebp
cmp ebx, ebp
je 0x446ee8
cmp dword [edi + 0x30], ebp
je 0x446ee8
push 0x2a0
lea eax, [esp + 0x28]
push ebp
push eax
call fcn.00461880
mov ecx, dword [edi + 0x40]
mov eax, dword [ecx - 8]
lea eax, [esi + eax*2]
add esp, 0xc
cmp word [eax], 0x5c
jne 0x446eb8
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 0x446ee8
cmp dword [esp + 0x2b8], ebp
jne 0x446edc
cmp dword [esp + 0x2b4], ebp
je 0x446ee8
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 0x446f0a
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 0x446f53
test al, 0x10
je 0x446f53
push esi
mov ebp, 1
call fcn.00403590
add esp, 4
test eax, eax
je 0x446f8a
push esi
push str.SafeDeleteFile_DeleteDirectory_Path_s_OK.
call fcn.0041b730
add esp, 8
lea ecx, [esp + 0x14]
call fcn.0041c130
mov eax, ebp
jmp 0x44714c
push esi
call ebx
test eax, eax
je 0x446f8a
push esi
push str.SafeDeleteFile_DeleteFile_Path_s_OK.
call fcn.0041b730
mov esi, dword [esp + 0x1c]
lea eax, [esi - 0xc]
add esp, 8
cmp eax, dword [0x4a1010]
je 0x447147
add esi, 0xfffffff4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
jmp 0x44713a
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x446fd5
push esi
test ebp, ebp
jne 0x446fc1
call ebx
test eax, eax
je 0x446fd5
push esi
push str.SafeDeleteFile_DeleteFile_BY_SetFileAttributes__Path_s_OK.
call fcn.0041b730
add esp, 8
lea ecx, [esp + 0x14]
call fcn.0041c130
jmp 0x447147
call fcn.00403590
add esp, 4
test eax, eax
je 0x446fd5
push esi
push str.SafeDeleteFile_DeleteDirectory_BY_SetFileAttributes__Path_s_OK.
jmp 0x446fab
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x44700a
push esi
mov ecx, edi
call fcn.00446d80
mov eax, dword [esp + 0x14]
lea ecx, [eax - 0xc]
cmp ecx, dword [0x4a1010]
je 0x447147
lea esi, [eax - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
jmp 0x44713a
mov edx, dword [0x4a1014]
mov dword [esp + 0x1c], edx
lea eax, [esp + 0x1c]
push eax
mov byte [esp + 0x2d4], 1
call fcn.0041d080
mov ebx, dword [esp + 0x18]
lea eax, [ebx - 0xc]
add esp, 4
cmp dword [eax], 0
mov dword [esp + 0x20], eax
jl 0x447048
mov esi, ebx
push eax
mov dword [esp + 0x1c], esi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x447060
mov ecx, dword [0x4a1014]
mov dword [esp + 0x18], ecx
push ebx
lea ecx, [esp + 0x1c]
call fcn.0041ca80
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 0x4470de
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4470de
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0x1c]
call fcn.0041ca20
push ebp
push ebx
push str.SafeDeleteFile_MoveFile_Path_s_To_s_OK.
call fcn.0041b730
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 0x4470de
push esi
push str.SafeDeleteFile_MoveFileEx_Path_s_OK.
call fcn.0041b730
add esp, 8
lea ecx, [esp + 0x18]
call fcn.0041c130
lea ecx, [esp + 0x1c]
call fcn.0041c130
lea ecx, [esp + 0x14]
call fcn.0041c130
jmp 0x447147
push esi
mov ecx, edi
call fcn.00446d80
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea eax, [esi - 0xc]
cmp eax, dword [0x4a1010]
je 0x44710a
add esi, 0xfffffff4
push esi
call edi
test eax, eax
jg 0x44710a
push esi
call fcn.00461ef0
add esp, 4
lea ecx, [ebp - 0xc]
cmp ecx, dword [0x4a1010]
je 0x447128
lea esi, [ebp - 0xc]
push esi
call edi
test eax, eax
jg 0x447128
push esi
call fcn.00461ef0
add esp, 4
add ebx, 0xfffffff4
cmp ebx, dword [0x4a1010]
je 0x447147
mov esi, dword [esp + 0x20]
push esi
call edi
test eax, eax
jg 0x447147
push esi
call fcn.00461ef0
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.00461862
add esp, 0x2c0
ret 4