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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x503ba6
mov eax, dword fs:[0]
push eax
sub esp, 0xa8
mov eax, dword [0x5473d8]
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 esi, ecx
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
call edi
test eax, eax
je 0x41b136
call fcn.00405dc0
mov ecx, eax
test ecx, ecx
je 0x41b279
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
lea eax, [ebp - 0x14]
push str.delete__s_suc__error_d
push eax
call fcn.00407640
lea ecx, [ebp - 0x1c]
call fcn.00418e90
add esp, 8
mov byte [ebp - 4], 1
mov edi, dword [eax]
lea ecx, [ebp - 0xb4]
call fcn.0040b430
mov byte [ebp - 4], 2
mov eax, 0x531ef4
mov esi, dword [ebp - 0x14]
test esi, esi
cmovne eax, esi
push eax
lea eax, [ebp - 0xb4]
push eax
call fcn.00409e50
mov eax, dword [edi]
lea ecx, [ebp - 0xb4]
add esp, 8
push ecx
mov ecx, edi
call dword [eax + 0xc]
mov eax, dword [ebp - 0xb4]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xb4], vtable.std::basic_ostringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov eax, dword [ebp - 0xb4]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x50]
mov dword [ebp + ecx - 0xb8], eax
lea ecx, [ebp - 0xb0]
call fcn.0040c1d0
mov eax, dword [ebp - 0xb4]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xb4], vtable.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [ebp - 0xb4]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0xb8], eax
lea eax, [ebp - 0x64]
mov byte [ebp - 4], 3
push eax
mov dword [ebp - 0x64], vtable.std::ios_base.0
call fcn.0041c00c
add esp, 4
mov byte [ebp - 4], 4
mov ebx, dword [ebp - 0x18]
or edi, 0xffffffff
test ebx, ebx
je 0x41b110
mov eax, edi
lock xadd dword [ebx + 4], eax
jne 0x41b110
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax]
mov eax, edi
lock xadd dword [ebx + 8], eax
jne 0x41b110
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], edi
dec edi
test edi, edi
jg 0x41b12c
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, 1
jmp 0x41b25d
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41b12c
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x41b250
push esi
call edi
test eax, eax
je 0x41b250
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], 0
call fcn.00404c90
mov dword [ebp - 4], 5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
lea eax, [ebp - 0x14]
push str.delete__s_suc__error_d
push eax
call fcn.00407640
lea ecx, [ebp - 0x1c]
call fcn.00418e90
add esp, 8
mov byte [ebp - 4], 6
mov edi, dword [eax]
lea ecx, [ebp - 0xb4]
call fcn.0040b430
mov byte [ebp - 4], 7
mov eax, 0x531ef4
mov esi, dword [ebp - 0x14]
test esi, esi
cmovne eax, esi
push eax
lea eax, [ebp - 0xb4]
push eax
call fcn.00409e50
mov eax, dword [edi]
lea ecx, [ebp - 0xb4]
add esp, 8
push ecx
mov ecx, edi
call dword [eax + 0xc]
mov eax, dword [ebp - 0xb4]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xb4], vtable.std::basic_ostringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov eax, dword [ebp - 0xb4]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x50]
mov dword [ebp + ecx - 0xb8], eax
lea ecx, [ebp - 0xb0]
call fcn.0040c1d0
mov eax, dword [ebp - 0xb4]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xb4], vtable.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [ebp - 0xb4]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0xb8], eax
lea eax, [ebp - 0x64]
mov byte [ebp - 4], 8
push eax
mov dword [ebp - 0x64], vtable.std::ios_base.0
call fcn.0041c00c
add esp, 4
mov byte [ebp - 4], 9
jmp 0x41b0e7
push 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
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.00499723
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00405ba0
int3