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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b9946
mov eax, dword fs:[0]
push eax
mov eax, 0x11a4
call fcn.00462a70
mov eax, dword [0x4e949c]
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 0x41818f
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41818f
test esi, esi
je 0x41818f
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x417d72
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x1000
lea eax, [ebp - 0x1010]
push 0
push eax
call fcn.00464a00
add esp, 0xc
mov dword [ebp - 0x11b0], 0x4c1888
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.00419080
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.00416950
push 0x40
push 1
push edi
lea ecx, [ebp - 0x11a0]
mov byte [ebp - 4], 3
call fcn.004192a0
test eax, eax
jne 0x417e65
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 0x4181aa
mov dword [ebp - 4], 4
mov dword [ebp - 0x10f8], 0x4c18a8
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.00419080
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.00416950
push 0x40
push 2
push esi
lea ecx, [ebp - 0x10f4]
mov byte [ebp - 4], 8
call fcn.004192a0
test eax, eax
jne 0x417f4a
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 0x417f4a
test cl, 4
je 0x4181b6
mov esi, str.ios_base::badbit_set
jmp 0x4181c6
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 0x4180d4
nop dword [eax + eax]
mov eax, dword [ebp - 0x10f8]
mov eax, dword [eax + 4]
cmp dword [ebp + eax - 0x10ec], 0
jne 0x4180d4
test byte [ecx], 1
jne 0x4180d4
lea ecx, [ebp - 0x11b0]
push 0xa
add ecx, edx
call fcn.00419ce0
movzx eax, al
lea ecx, [ebp - 0x11b0]
push eax
push 0
push 0x1000
lea eax, [ebp - 0x1010]
push eax
call fcn.00418e10
lea eax, [ebp - 0x1010]
push str.check
push eax
call fcn.00465260
add esp, 8
test eax, eax
je 0x41807f
lea eax, [ebp - 0x1010]
push str._trate_
push eax
call fcn.00465260
add esp, 8
test eax, eax
jne 0x41800c
lea ecx, [ebp - 0x1010]
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x418000
jmp 0x41808f
push 0x4c18c4
push eax
call fcn.00465260
mov esi, eax
add esp, 8
test esi, esi
je 0x4180ba
lea ecx, [esi + 1]
push 0x4c18c4
push ecx
call fcn.00465260
mov edi, eax
add esp, 8
test edi, edi
je 0x4180ba
lea eax, [ebp - 0x1010]
sub esi, eax
lea ecx, [ebp - 0x10f8]
push 0
inc esi
push esi
push eax
call fcn.00419d80
push 0
push 5
push str.10000
lea ecx, [ebp - 0x10f8]
call fcn.00419d80
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x418070
push 0
sub ecx, edx
push ecx
push edi
jmp 0x41809b
lea ecx, [ebp - 0x1010]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x418088
push 0
sub ecx, edx
lea eax, [ebp - 0x1010]
push ecx
push eax
lea ecx, [ebp - 0x10f8]
call fcn.00419d80
push 0
push 2
push 0x4c18c0
lea ecx, [ebp - 0x10f8]
call fcn.00419d80
mov eax, dword [ebp - 0x11b0]
lea ecx, [ebp - 0x11a4]
mov edx, dword [eax + 4]
add ecx, edx
cmp dword [ecx], 0
je 0x417f70
lea ecx, [ebp - 0x11a0]
call fcn.004189c0
test eax, eax
jne 0x41811f
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 0x4181f5
lea ecx, [ebp - 0x10f4]
call fcn.004189c0
test eax, eax
jne 0x418179
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 0x418179
test cl, 4
je 0x418201
mov esi, str.ios_base::badbit_set
jmp 0x418211
lea ecx, [ebp - 0x10f8]
call fcn.004176b0
lea ecx, [ebp - 0x11b0]
call fcn.00417620
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.00462391
mov esp, ebp
pop ebp
ret
test cl, 4
je 0x4181b6
mov esi, str.ios_base::badbit_set
jmp 0x4181c6
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.004191c0
add esp, 8
lea ecx, [ebp - 0x1034]
push eax
push esi
call fcn.00416d90
push 0x4df038
lea eax, [ebp - 0x1034]
push eax
call fcn.00463a0d
test cl, 4
je 0x418201
mov esi, str.ios_base::badbit_set
jmp 0x418211
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.004191c0
add esp, 8
lea ecx, [ebp - 0x1048]
push eax
push esi
call fcn.00416d90
push 0x4df038
lea eax, [ebp - 0x1048]
push eax
call fcn.00463a0d
int3