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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f3e86
mov eax, dword fs:[0]
push eax
mov eax, 0x11a4
call fcn.0046ac60
mov eax, dword [0x5374e4]
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 esi, dword [ebp + 0xc]
mov dword [ebp - 0x1014], 0
test edi, edi
je 0x41a25f
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41a25f
test esi, esi
je 0x41a25f
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x419e42
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x1000
lea eax, [ebp - 0x1010]
push 0
push eax
call fcn.0049a810
add esp, 0xc
mov dword [ebp - 0x11b0], 0x5039e8
push 0
lea eax, [ebp - 0x11a0]
mov dword [ebp - 4], 0
xorps xmm0, xmm0
mov dword [ebp - 0x1014], 1
push eax
lea ecx, [ebp - 0x1140]
mov dword [ebp - method.std::basic_istream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov dword [ebp - 0x1144], 0x58
movlpd qword [ebp - 0x11a8], xmm0
call fcn.0041b150
mov eax, dword [ebp - 0x11b0]
push 0
mov dword [ebp - 4], 2
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ifstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x11b0]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ebp + ecx - 0x11b4], eax
lea ecx, [ebp - 0x11a0]
call fcn.00418a30
push 0x40
push 1
push edi
lea ecx, [ebp - 0x11a0]
mov byte [ebp - 4], 3
call fcn.0041b370
test eax, eax
jne 0x419f35
mov eax, dword [ebp - 0x11b0]
mov ecx, dword [eax + 4]
xor eax, eax
cmp dword [ebp + ecx - 0x1178], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ebp + ecx - 0x11a4]
and eax, 0x17
mov dword [ebp + ecx - 0x11a4], eax
mov ecx, dword [ebp + ecx - 0x11a0]
and ecx, eax
jne 0x41a27a
mov dword [ebp - 4], 4
mov dword [ebp - 0x10f8], 0x503a08
push 0
lea eax, [ebp - 0x10f4]
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp - 0x1090]
mov dword [ebp - 0x1014], 5
mov dword [ebp - method.std::basic_ostream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov dword [ebp - 0x1094], 0x60
call fcn.0041b150
mov eax, dword [ebp - 0x10f8]
push 0
mov dword [ebp - 4], 7
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ofstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x10f8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x10fc], eax
lea ecx, [ebp - 0x10f4]
call fcn.00418a30
push 0x40
push 2
push esi
lea ecx, [ebp - 0x10f4]
mov byte [ebp - 4], 8
call fcn.0041b370
test eax, eax
jne 0x41a01a
mov eax, dword [ebp - 0x10f8]
mov ecx, dword [eax + 4]
xor eax, eax
cmp dword [ebp + ecx - 0x10c0], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ebp + ecx - 0x10ec]
and eax, 0x17
mov dword [ebp + ecx - 0x10ec], eax
mov ecx, dword [ebp + ecx - 0x10e8]
and ecx, eax
je 0x41a01a
test cl, 4
je 0x41a286
mov esi, str.ios_base::badbit_set
jmp 0x41a296
mov eax, dword [ebp - 0x11b0]
lea ecx, [ebp - 0x11a4]
mov byte [ebp - 4], 9
mov edx, dword [eax + 4]
add ecx, edx
cmp dword [ecx], 0
jne 0x41a1a4
nop dword [eax + eax]
mov eax, dword [ebp - 0x10f8]
mov eax, dword [eax + 4]
cmp dword [ebp + eax - 0x10ec], 0
jne 0x41a1a4
test byte [ecx], 1
jne 0x41a1a4
lea ecx, [ebp - 0x11b0]
push 0xa
add ecx, edx
call fcn.0041bdb0
movzx eax, al
lea ecx, [ebp - 0x11b0]
push eax
push 0
push 0x1000
lea eax, [ebp - 0x1010]
push eax
call fcn.0041aee0
lea eax, [ebp - 0x1010]
push str.check
push eax
call fcn.0049b070
add esp, 8
test eax, eax
je 0x41a14f
lea eax, [ebp - 0x1010]
push str._trate_
push eax
call fcn.0049b070
add esp, 8
test eax, eax
jne 0x41a0dc
lea ecx, [ebp - 0x1010]
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41a0d0
jmp 0x41a15f
push 0x503a24
push eax
call fcn.0049b070
mov esi, eax
add esp, 8
test esi, esi
je 0x41a18a
lea ecx, [esi + 1]
push 0x503a24
push ecx
call fcn.0049b070
mov edi, eax
add esp, 8
test edi, edi
je 0x41a18a
lea eax, [ebp - 0x1010]
sub esi, eax
lea ecx, [ebp - 0x10f8]
push 0
inc esi
push esi
push eax
call fcn.0041be50
push 0
push 5
push str.10000
lea ecx, [ebp - 0x10f8]
call fcn.0041be50
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41a140
push 0
sub ecx, edx
push ecx
push edi
jmp 0x41a16b
lea ecx, [ebp - 0x1010]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41a158
push 0
sub ecx, edx
lea eax, [ebp - 0x1010]
push ecx
push eax
lea ecx, [ebp - 0x10f8]
call fcn.0041be50
push 0
push 2
push 0x503a20
lea ecx, [ebp - 0x10f8]
call fcn.0041be50
mov eax, dword [ebp - 0x11b0]
lea ecx, [ebp - 0x11a4]
mov edx, dword [eax + 4]
add ecx, edx
cmp dword [ecx], 0
je 0x41a040
lea ecx, [ebp - 0x11a0]
call fcn.0041aa90
test eax, eax
jne 0x41a1ef
mov eax, dword [ebp - 0x11b0]
mov ecx, dword [eax + 4]
xor eax, eax
cmp dword [ebp + ecx - 0x1178], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ebp + ecx - 0x11a4]
and eax, 0x17
mov dword [ebp + ecx - 0x11a4], eax
mov ecx, dword [ebp + ecx - 0x11a0]
and ecx, eax
jne 0x41a2c5
lea ecx, [ebp - 0x10f4]
call fcn.0041aa90
test eax, eax
jne 0x41a249
mov eax, dword [ebp - 0x10f8]
mov ecx, dword [eax + 4]
xor eax, eax
cmp dword [ebp + ecx - 0x10c0], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ebp + ecx - 0x10ec]
and eax, 0x17
mov dword [ebp + ecx - 0x10ec], eax
mov ecx, dword [ebp + ecx - 0x10e8]
and ecx, eax
je 0x41a249
test cl, 4
je 0x41a2d1
mov esi, str.ios_base::badbit_set
jmp 0x41a2e1
lea ecx, [ebp - 0x10f8]
call fcn.00419790
lea ecx, [ebp - 0x11b0]
call fcn.00419700
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.0046a581
mov esp, ebp
pop ebp
ret
test cl, 4
je 0x41a286
mov esi, str.ios_base::badbit_set
jmp 0x41a296
test cl, 2
mov esi, str.ios_base::failbit_set
mov eax, str.ios_base::eofbit_set
cmove esi, eax
lea eax, [ebp - 0x1020]
push 1
push eax
call fcn.0041b290
add esp, 8
lea ecx, [ebp - 0x1034]
push eax
push esi
call fcn.00418e70
push 0x526734
lea eax, [ebp - 0x1034]
push eax
call fcn.0049981b
test cl, 4
je 0x41a2d1
mov esi, str.ios_base::badbit_set
jmp 0x41a2e1
test cl, 2
mov esi, str.ios_base::failbit_set
mov eax, str.ios_base::eofbit_set
cmove esi, eax
lea eax, [ebp - 0x1018]
push 1
push eax
call fcn.0041b290
add esp, 8
lea ecx, [ebp - 0x1048]
push eax
push esi
call fcn.00418e70
push 0x526734
lea eax, [ebp - 0x1048]
push eax
call fcn.0049981b
int3