Function at 0x40cac0
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 0x425436
mov eax, dword fs:[0]
push eax
sub esp, 0x29c
mov eax, dword [0x443624]
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 0x40cdac
push edi
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsSameRootW]
test eax, eax
jne 0x40cb78
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 0x40cb4e
movzx eax, word [ecx + esi]
test ax, ax
je 0x40cb4e
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x40cb30
test edx, edx
lea eax, [ecx - 2]
cmovne eax, ecx
xor ecx, ecx
mov word [eax], cx
test edx, edx
je 0x40cdac
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
je 0x40cdac
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_e74132eba9d7c9c0b8c6ffc185f9f590___void__wchar_t__.virtual_0], vtable.std::_Func_impl_no_alloc_class__lambda_e74132eba9d7c9c0b8c6ffc185f9f590___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 0x40cc0f
lea eax, [ebp - 0x240]
cmp ecx, eax
jne 0x40cc01
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 0x40cc0f
mov edx, dword [ecx]
lea eax, [ebp - 0x240]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
jmp 0x40cc07
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 0x40cc3a
mov edx, dword [ecx]
lea eax, [ebp - 0x240]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov esi, dword [ebp - 0x248]
test esi, esi
jne 0x40cc4d
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor edi, edi
jmp 0x40cd5d
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.00407920], 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.004027c0
push eax
lea ecx, [ebp - 0x2a0]
call fcn.00401350
mov ecx, dword [ebp - 0x21c]
test ecx, ecx
je 0x40ccd0
mov edx, dword [ecx]
lea eax, [ebp - 0x240]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov eax, dword [ebp - 0x278]
test eax, eax
je 0x40cd50
push eax
lea eax, [ebp - 0x218]
push eax
push 0x4262a8
push 0x1800
push 0
push 0
push 0x200
push dword [ebp - 0x248]
call fcn.00406ab0
add esp, 0x20
test eax, eax
js 0x40cd50
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
push 9
push dword [ebp - 0x248]
push edi
call esi
test eax, eax
je 0x40cd3e
push 4
push 0
push dword [ebp - 0x248]
call esi
test eax, eax
je 0x40cd3e
push 2
push dword [ebp - 0x248]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x40cd49
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x40cd50
mov edi, 1
jmp 0x40cd52
xor edi, edi
lea ecx, [ebp - 0x2a0]
call fcn.00402550
mov eax, dword [ebp - 0x248]
mov dword [ebp - 4], 2
test eax, eax
je 0x40cd8a
mov ecx, dword [ebp - 0x24c]
mov dword [ebp - 0x2a8], eax
test ecx, ecx
je 0x40cdc9
mov eax, dword [ecx]
lea edx, [ebp - 0x2a8]
push edx
call dword [eax + 8]
mov ecx, dword [ebp - 0x24c]
test ecx, ecx
je 0x40cda8
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 0x40cdae
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 fcn.00411faa
mov esp, ebp
pop ebp
ret
call fcn.00411cb0
int3