Function at 0x40e6c0
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49e525
mov eax, dword fs:[0]
push eax
sub esp, 0xd0
mov eax, dword [0x4c8748]
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]
mov dword [ebp - 0xc4], 0
cmp dword [edi + 0x10], 0
je 0x40e906
cmp dword [ecx + 0x5c], 8
lea esi, [ecx + 0x48]
mov eax, esi
jb 0x40e711
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0xb0
lea eax, [ebp - 0xc0]
push 0
push eax
call fcn.00478960
add esp, 0xc
mov dword [ebp - 0xc0], 0x4a3d6c
push 0
lea eax, [ebp - 0xbc]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x58]
mov dword [ebp - 0xc4], 1
mov dword [ebp - 0x58], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov dword [ebp - 0x5c], 0x60
call fcn.0040f7b0
mov eax, dword [ebp - 0xc0]
push 0
mov dword [ebp - 4], 2
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xc0], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0xc0]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0xc4], eax
lea ecx, [ebp - 0xbc]
call fcn.00408660
cmp dword [esi + 0x14], 8
mov eax, esi
mov dword [ebp - 4], 3
jb 0x40e7b4
mov eax, dword [esi]
push 0x40
push 2
push eax
lea ecx, [ebp - 0xbc]
call fcn.0040fa10
test eax, eax
mov eax, dword [ebp - 0xc0]
mov ecx, dword [eax + 4]
jne 0x40e806
xor eax, eax
cmp dword [ebp + ecx - 0x88], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ebp + ecx - 0xb4]
and eax, 0x17
mov dword [ebp + ecx - 0xb4], eax
mov ecx, dword [ebp + ecx - 0xb0]
and ecx, eax
jne 0x40e923
jmp 0x40e843
xor edx, edx
mov eax, 4
cmp dword [ebp + ecx - 0x88], edx
cmovne eax, edx
mov dword [ebp + ecx - 0xb4], eax
test dword [ebp + ecx - 0xb0], eax
je 0x40e843
lea eax, [ebp - 0xc8]
push 1
push eax
call fcn.0040f940
add esp, 8
push eax
push str.ios_base::badbit_set
jmp 0x40e952
cmp dword [edi + 0x14], 0x10
mov eax, dword [edi + 0x10]
jb 0x40e84e
mov edi, dword [edi]
push eax
lea eax, [ebp - 0xc0]
push edi
push eax
call fcn.00408090
add esp, 0xc
lea edi, [ebp - 0xbc]
cmp dword [ebp - 0x70], 0
jne 0x40e86f
xor edi, edi
jmp 0x40e893
lea ecx, [ebp - 0xbc]
call fcn.0040ea60
push dword [ebp - 0x70]
xor ecx, ecx
test al, al
cmove edi, ecx
call fcn.0047fb15
xor ecx, ecx
add esp, 4
test eax, eax
cmovne edi, ecx
push 2
push 0
lea ecx, [ebp - 0xbc]
call fcn.0040eb50
test edi, edi
jne 0x40e8ea
mov eax, dword [ebp - 0xc0]
mov ecx, dword [eax + 4]
xor eax, eax
cmp dword [ebp + ecx - 0x88], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ebp + ecx - 0xb4]
and eax, 0x17
mov dword [ebp + ecx - 0xb4], eax
mov ecx, dword [ebp + ecx - 0xb0]
and ecx, eax
je 0x40e8ea
test cl, 4
je 0x40e92f
mov esi, str.ios_base::badbit_set
jmp 0x40e93f
cmp dword [esi + 0x14], 8
jb 0x40e8f2
mov esi, dword [esi]
push 2
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea ecx, [ebp - 0xc0]
call fcn.00409570
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.0047702f
mov esp, ebp
pop ebp
ret 4
test cl, 4
je 0x40e92f
mov esi, str.ios_base::badbit_set
jmp 0x40e93f
test cl, 2
mov esi, str.ios_base::failbit_set
mov eax, str.ios_base::eofbit_set
cmove esi, eax
lea eax, [ebp - 0xc8]
push 1
push eax
call fcn.0040f940
add esp, 8
push eax
push esi
lea ecx, [ebp - 0xdc]
call fcn.00408ae0
push 0x4bee4c
lea eax, [ebp - 0xdc]
push eax
call fcn.00478aba
int3