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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4547bd
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x46c018]
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 dword [ebp - 0x22c], edx
mov esi, ecx
test esi, esi
je 0x40fd32
push 0x20a
lea eax, [ebp - 0x220]
push 0
push eax
call fcn.0042f000
add esp, 0xc
lea eax, [ebp - 0x220]
push 0x104
push esi
push eax
call fcn.0043b05d
add esp, 0xc
test eax, eax
je 0x40fd32
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test eax, 0x410
jne 0x40fd32
test al, 2
je 0x40f96c
push 0x80
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x40f96c
lea eax, [ebp - 0x220]
push eax
push str.QMTFunction::DeleteFile_setAttri_error_File:_s.
push 0x46cca0
call fcn.00415860
add esp, 0xc
lea ecx, [ebp - 0x220]
call fcn.00411160
test al, al
je 0x40fd32
call fcn.00402c30
test eax, eax
je 0x40fd50
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x228], eax
lea eax, [ebp - 0x220]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x228]
call fcn.0040e500
test al, al
jne 0x40f9e4
lea ecx, [ebp - 0x220]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40f9c2
sub ecx, edx
lea eax, [ebp - 0x220]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x228]
call fcn.0040e740
mov dword [ebp - 4], 1
call fcn.00402c30
mov ecx, eax
test ecx, ecx
je 0x40fd50
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x224], eax
push str.File:
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 2
call fcn.0040e500
test al, al
jne 0x40fa32
push 5
push str.File:
lea ecx, [ebp - 0x224]
call fcn.0040e740
mov byte [ebp - 4], 3
mov edi, dword [ebp - 0x228]
mov esi, dword [ebp - 0x224]
push edi
push esi
push str._s_s
push 0x46cca0
call fcn.00415860
or ebx, 0xffffffff
add esp, 0x10
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40fa70
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x40fa8e
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 0x224], eax
test eax, eax
jne 0x40fd34
cmp dword [ebp - 0x22c], eax
je 0x40fd34
call fcn.00402c30
test eax, eax
je 0x40fd50
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x230], eax
lea eax, [ebp - 0x220]
mov dword [ebp - 4], 4
push eax
lea ecx, [ebp - 0x230]
call fcn.0040e500
test al, al
jne 0x40fb22
lea ecx, [ebp - 0x220]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40fb00
sub ecx, edx
lea eax, [ebp - 0x220]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x230]
call fcn.0040e740
push 4
lea eax, [ebp - 0x22c]
mov dword [ebp - 4], 5
push eax
lea ecx, [ebp - 0x230]
call fcn.0040e230
mov eax, dword [eax]
mov ecx, str..tmp
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40fb6a
test dx, dx
je 0x40fb66
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40fb6a
add eax, 4
add ecx, 4
test dx, dx
jne 0x40fb44
xor esi, esi
jmp 0x40fb6f
sbb esi, esi
or esi, 1
mov byte [ebp - 4], 5
mov eax, ebx
mov edx, dword [ebp - 0x22c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40fb90
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x230]
test esi, esi
je 0x40fd19
mov byte [ebp - 4], 7
call fcn.00402c30
mov ecx, eax
test ecx, ecx
je 0x40fd5a
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x228], esi
push 0x5c
push edi
mov byte [ebp - 4], 8
call fcn.0042e970
add esp, 8
test eax, eax
jne 0x40fbd7
or eax, 0xffffffff
jmp 0x40fbdb
sub eax, edi
sar eax, 1
push eax
lea eax, [ebp - 0x22c]
push eax
lea ecx, [ebp - 0x230]
call fcn.0040e170
mov byte [ebp - 4], 9
mov ecx, 1
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, 0x104
or ecx, eax
jge 0x40fc1c
push 0x104
lea ecx, [ebp - 0x228]
call fcn.0040f350
mov esi, dword [ebp - 0x228]
push esi
push 0
push 0x4634ac
push dword [ebp - 0x22c]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push dword [esi - 8]
mov dword [ebp - 0x234], eax
push esi
call fcn.0043a98b
add esp, 8
test eax, eax
js 0x40fd64
cmp eax, dword [esi - 8]
jg 0x40fd64
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
cmp dword [ebp - 0x234], ecx
jne 0x40fc87
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x228]
push str._s.tmp
push eax
call fcn.00411d90
mov esi, dword [ebp - 0x228]
add esp, 0xc
jmp 0x40fc8e
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x220]
push esi
push eax
call fcn.0043b0fc
add esp, 8
push 4
push 0
test eax, eax
jne 0x40fcaf
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
jmp 0x40fcc2
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov dword [ebp - 0x224], eax
mov edx, dword [ebp - 0x22c]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40fcdf
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40fcf6
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x224]
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x40fd34
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x224]
jmp 0x40fd34
push 4
push 0
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov dword [ebp - 0x224], eax
jmp 0x40fcfc
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.0042cd02
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.0040f2e0
push 0x80004005
call fcn.0040f2e0
push 0x80070057
call fcn.0040f2e0
int3