Function at 0x406630
Capabilities:
Delete file
Get common file path
Get file attributes
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4221f7
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x42d00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
test esi, esi
je 0x4068ff
push 0x20a
lea eax, [ebp - 0x220]
push 0
push eax
call fcn.0040f860
add esp, 0xc
lea eax, [ebp - 0x220]
push 0x104
push esi
push eax
call fcn.0041586a
add esp, 0xc
test eax, eax
je 0x4068ff
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test eax, 0x410
jne 0x4068ff
test al, 2
je 0x4066e8
push 0x80
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x4066e8
lea eax, [ebp - 0x220]
push eax
push str.QMTFunction::DeleteFile_setAttri_error_File:_s.
push 0x42e7e0
call fcn.0040b840
add esp, 0xc
lea ecx, [ebp - 0x220]
call fcn.00407740
test al, al
je 0x4068ff
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x224]
call fcn.00404f30
mov esi, eax
push str.File:
lea ecx, [ebp - 0x228]
mov dword [ebp - 4], 0
call fcn.00404f30
mov byte [ebp - 4], 1
push dword [esi]
push dword [eax]
push str._s_s
push 0x42e7e0
call fcn.0040b840
add esp, 0x10
lea ecx, [ebp - 0x228]
call fcn.00401e70
lea ecx, [ebp - 0x224]
mov dword [ebp - 4], 0xffffffff
call fcn.00401e70
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebx, eax
mov dword [ebp - 0x230], ebx
test ebx, ebx
jne 0x4068fb
test edi, edi
je 0x4068fb
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x22c]
call fcn.00404f30
push 4
lea eax, [ebp - 0x228]
mov dword [ebp - 4], 2
push eax
lea ecx, [ebp - 0x22c]
call fcn.00404e50
mov edx, str..tmp
mov ecx, eax
call fcn.00404ce0
lea ecx, [ebp - 0x228]
mov bl, al
call fcn.00401e70
test bl, bl
je 0x4068dd
lea ecx, [ebp - 0x224]
call fcn.00404ff0
push ecx
lea ecx, [ebp - 0x22c]
mov byte [ebp - 4], 3
call fcn.00407b30
push eax
lea eax, [ebp - 0x228]
push eax
lea ecx, [ebp - 0x22c]
call fcn.00404de0
mov byte [ebp - 4], 4
mov ecx, 1
mov esi, dword [ebp - 0x224]
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, 0x104
or ecx, eax
jge 0x406832
push 0x104
lea ecx, [ebp - 0x224]
call fcn.00405fd0
mov esi, dword [ebp - 0x224]
push esi
push 0
push 0x428398
push dword [ebp - 0x228]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push ecx
lea ecx, [ebp - 0x224]
mov edi, eax
call fcn.004083c0
test edi, edi
jne 0x40687b
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x224]
push str._s.tmp
push eax
call fcn.00408340
mov esi, dword [ebp - 0x224]
add esp, 0xc
jmp 0x406882
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x220]
push esi
push eax
call fcn.004158c0
add esp, 8
push 4
push 0
test eax, eax
jne 0x4068a9
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov ebx, dword [ebp - 0x230]
jmp 0x4068b8
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov ebx, eax
lea ecx, [ebp - 0x228]
call fcn.00401e70
lea ecx, [ebp - 0x224]
call fcn.00401e70
lea ecx, [ebp - 0x22c]
call fcn.00401e70
mov eax, ebx
jmp 0x406901
push 4
push 0
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea ecx, [ebp - 0x22c]
mov ebx, eax
call fcn.00401e70
mov eax, ebx
jmp 0x406901
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040d320
mov esp, ebp
pop ebp
ret