Function at 0x406a80
Capabilities:
Check if file exists
Delete file
Get common file path
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42535b
mov eax, dword fs:[0]
push eax
sub esp, 0x29c
mov eax, dword [0x444624]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x406d69
push edi
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsSameRootW]
test eax, eax
jne 0x406b38
lea ecx, [ebp - 0x218]
mov esi, edi
mov eax, ecx
mov edx, 0x104
sub esi, eax
lea ecx, [ecx]
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x406b0e
movzx eax, word [esi + ecx]
test ax, ax
je 0x406b0e
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x406af0
test edx, edx
lea eax, [ecx - 2]
cmovne eax, ecx
xor ecx, ecx
mov word [eax], cx
test edx, edx
je 0x406d69
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
je 0x406d69
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveBackslashW]
push 0x400
lea eax, [ebp - 0x240]
mov dword [ebp - method.std::_Func_impl_no_alloc_class__lambda_79488eb252e401e66bededc2985c902c___void__wchar_t__.virtual_0], vtable.std::_Func_impl_no_alloc_class__lambda_79488eb252e401e66bededc2985c902c___void__wchar_t__.0
push 8
mov dword [ebp - 0x21c], eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [ebp - 0x21c]
mov esi, eax
mov dword [ebp - 0x24c], 0
test ecx, ecx
je 0x406bce
lea eax, [ebp - 0x240]
cmp ecx, eax
jne 0x406bc0
mov eax, dword [ecx]
lea edx, [ebp - 0x270]
push edx
call dword [eax + 4]
mov ecx, dword [ebp - 0x21c]
mov dword [ebp - 0x24c], eax
test ecx, ecx
je 0x406bce
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
lea eax, [ebp - 0x240]
cmp ecx, eax
setne al
push eax
call edx
jmp 0x406bc6
mov dword [ebp - 0x24c], ecx
xor ecx, ecx
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x248], esi
mov dword [ebp - 4], 0
test ecx, ecx
je 0x406bf8
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
lea eax, [ebp - 0x240]
cmp ecx, eax
setne al
push eax
call edx
mov esi, dword [ebp - 0x248]
test esi, esi
jne 0x406c0b
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor edi, edi
jmp 0x406d1a
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov ecx, dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [ebp - 0x23c], ecx
mov cl, byte [ebp - 0x2a1]
mov dword [ebp - 0x230], eax
lea eax, [ebp - 0x240]
mov dword [ebp - fcn.00407e10], vtable.std::_Func_impl_no_alloc_class_std::_Binder_struct_std::_Unforced__int____stdcall___void___unsigned_long_int__void____void___int__struct_std::_Ph_1__const____int__wchar_t__.0
mov byte [ebp - 0x238], cl
mov dword [ebp - 0x234], 0
mov dword [ebp - 0x21c], eax
push eax
push str._Kvp
lea ecx, [ebp - 0x2a1]
mov byte [ebp - 4], 1
call fcn.00402920
push eax
lea ecx, [ebp - 0x2a0]
call fcn.004012d0
mov ecx, dword [ebp - 0x21c]
test ecx, ecx
je 0x406c8d
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
lea eax, [ebp - 0x240]
cmp ecx, eax
setne al
push eax
call edx
mov eax, dword [ebp - 0x278]
test eax, eax
je 0x406d0d
push eax
lea eax, [ebp - 0x218]
push eax
push 0x42629c
push 0x1800
push 0
push 0
push 0x200
push dword [ebp - 0x248]
call fcn.00406fc0
add esp, 0x20
test eax, eax
js 0x406d0d
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
push 9
push dword [ebp - 0x248]
push edi
call esi
test eax, eax
je 0x406cfb
push 4
push 0
push dword [ebp - 0x248]
call esi
test eax, eax
je 0x406cfb
push 2
push dword [ebp - 0x248]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x406d06
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x406d0d
mov edi, 1
jmp 0x406d0f
xor edi, edi
lea ecx, [ebp - 0x2a0]
call fcn.00402690
mov eax, dword [ebp - 0x248]
mov dword [ebp - 4], 2
test eax, eax
je 0x406d47
mov ecx, dword [ebp - 0x24c]
mov dword [ebp - 0x2a8], eax
test ecx, ecx
je 0x406d86
mov eax, dword [ecx]
lea edx, [ebp - 0x2a8]
push edx
call dword [eax + 8]
mov ecx, dword [ebp - 0x24c]
test ecx, ecx
je 0x406d65
mov esi, dword [ecx]
lea eax, [ebp - 0x270]
cmp ecx, eax
setne dl
movzx edx, dl
push edx
call dword [esi + 0x10]
mov eax, edi
jmp 0x406d6b
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call int.0041284a
mov esp, ebp
pop ebp
ret
call fcn.00412550
int3