Function at 0x4096a0
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49a08e
mov eax, dword fs:[0]
push eax
sub esp, 0x144
mov eax, dword [0x4c3718]
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, ecx
mov dword [ebp - 0x14c], 0
call fcn.00408f40
cmp dword [edi + 0x5c], 8
lea esi, [edi + 0x48]
jb 0x4096eb
mov eax, dword [esi]
jmp 0x4096ed
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4099aa
push 0x70
lea eax, [ebp - 0x148]
push 0
push eax
call fcn.00474170
add esp, 0xc
lea ecx, [ebp - 0x148]
call fcn.004686f0
xorps xmm0, xmm0
mov dword [ebp - 4], 0
push 0
lea ecx, [ebp - 0x20]
movups xmmword [ebp - 0x20], xmm0
call fcn.00464700
push 0xb8
lea eax, [ebp - 0xd8]
push 0
push eax
call fcn.00474170
add esp, 0xc
mov dword [ebp - 0xd8], 0x49ea20
push 0
lea eax, [ebp - 0xc8]
mov byte [ebp - 4], 2
xorps xmm0, xmm0
mov dword [ebp - 0x14c], 1
push eax
lea ecx, [ebp - 0x68]
mov dword [ebp - 0x68], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov dword [ebp - 0x6c], 0x58
movlpd qword [ebp - 0xd0], xmm0
call fcn.0040d530
mov eax, dword [ebp - 0xd8]
mov dword [ebp - 4], 4
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xd8], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0xd8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ebp + ecx - 0xdc], eax
lea ecx, [ebp - 0xc8]
call fcn.004079d0
lea eax, [ebp - 0xc4]
mov dword [ebp - 0xc8], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0xc0]
mov dword [ebp - 0xb8], eax
lea eax, [ebp - 0xb4]
mov dword [ebp - 0xac], eax
lea eax, [ebp - 0xb0]
mov dword [ebp - 0xa8], eax
lea eax, [ebp - 0xa4]
mov dword [ebp - 0x9c], eax
lea eax, [ebp - 0xa0]
mov dword [ebp - 0x98], eax
mov eax, dword [0x4c546c]
mov dword [ebp - 0x88], eax
mov eax, dword [0x4c5470]
mov byte [ebp - 0x80], 0
mov byte [ebp - 0x8b], 0
mov dword [ebp - 0xc0], 0
mov dword [ebp - 0xb0], 0
mov dword [ebp - 0xa0], 0
mov dword [ebp - 0xc4], 0
mov dword [ebp - 0xb4], 0
mov dword [ebp - 0xa4], 0
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x90], 0
cmp dword [esi + 0x14], 8
mov byte [ebp - 4], 5
jb 0x409891
mov eax, dword [esi]
jmp 0x409893
mov eax, esi
push 0x40
push 0x20
push eax
lea ecx, [ebp - 0xd8]
call fcn.0040d840
push 0
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0xd8]
push eax
lea ecx, [ebp - 0x148]
call fcn.0046b620
test al, al
je 0x409972
lea ecx, [ebp - 0x20]
call fcn.00467270
test al, al
jne 0x409972
lea ecx, [ebp - 0xd8]
call fcn.0040ce30
lea eax, [ebp - 0x20]
mov ecx, edi
push eax
call fcn.00409c40
mov esi, eax
mov eax, dword [ebp - 0xd8]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xd8], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0xd8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ebp + ecx - 0xdc], eax
lea ecx, [ebp - 0xc8]
call fcn.00408000
mov eax, dword [ebp - 0xd8]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xd8], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0xd8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x18]
mov dword [ebp + ecx - 0xdc], eax
lea eax, [ebp - 0x68]
mov byte [ebp - 4], 6
push eax
mov dword [ebp - 0x68], vtable.std::ios_base.0
call fcn.00471c69
add esp, 4
lea ecx, [ebp - 0x20]
call fcn.00464ad0
lea ecx, [ebp - 0x148]
call fcn.00408290
mov eax, esi
jmp 0x4099ac
lea ecx, [ebp - 0xd8]
call fcn.0040ce30
cmp dword [esi + 0x14], 8
jb 0x409985
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0xd8]
call fcn.00408500
lea ecx, [ebp - 0x20]
call fcn.00464ad0
lea ecx, [ebp - 0x148]
call fcn.00408290
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.00472961
mov esp, ebp
pop ebp
ret