Function at 0x4047ef
Capabilities:
Delete file
Move file

Disassembly:
push rbp
push rbx
sub rsp, 0x208
lea rbp, [rsp + 0x80]
call sym.cls__
call sym.Views__
lea rax, [rbp - 0x60]
mov rcx, rax
call fcn.00498fe0
mov edx, 4
mov ecx, 8
call method.std.operator_std::_Ios_Openmode__std::_Ios_Openmode_
mov r8d, eax
lea rdx, str.StudentRecords.bin
lea rcx, [0x004fd140]
call method.std::basic_fstream_char__std::char_traits_char___.open_char_const__std::_Ios_Openmode_
mov edx, 4
mov ecx, 0x10
call method.std.operator_std::_Ios_Openmode__std::_Ios_Openmode_
mov edx, eax
lea rax, [rbp - 0x60]
mov r8d, edx
lea rdx, str.TempFile.bin
mov rcx, rax
call method.std::basic_ofstream_char__std::char_traits_char___.open_char_const__std::_Ios_Openmode_
lea rcx, [0x004fd218]
call method.std::basic_ios_char__std::char_traits_char___.fail___const
test al, al
je 0x404894
lea rdx, str._nFile_was_not_found__
mov rcx, qword [0x004d23d0]
call method.std::basic_ostream_char__std::char_traits_char____std::operator____std.char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
mov rdx, qword [method.std::basic_ostream_char__std::char_traits_char____std::endl_char__std.char_traits_char____std::basic_ostream_char__std::char_traits_char____]
mov rcx, rax
call method.std::ostream.operator___std::ostream____std::ostream__
lea rcx, [0x004fd218]
call method.std::basic_ios_char__std::char_traits_char___.good___const
test al, al
je 0x4049c5
mov byte [rbp + 0x17f], 0
mov edx, 0
mov ecx, 0
call sym.gotoxy_int__int_
lea rdx, str._nEnter_product_id_you_want_to_delete_:
mov rcx, qword [0x004d23d0]
call method.std::basic_ostream_char__std::char_traits_char____std::operator____std.char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
call sym.inputNumber__
mov dword [rbp + 0x178], eax
call sym.cls__
mov r8d, 0xf0
lea rdx, [0x004fd040]
lea rcx, [0x004fd140]
call method.std::istream.read_char__long_long_
lea rcx, [0x004fd218]
call method.std::basic_ios_char__std::char_traits_char___.eof___const
movzx eax, al
cmp eax, 1
setne al
test al, al
je 0x40496a
mov eax, dword [0x004fd040]
cmp dword [rbp + 0x178], eax
jne 0x404928
mov byte [rbp + 0x17f], 1
mov eax, dword [0x004fd040]
cmp dword [rbp + 0x178], eax
je 0x40494f
lea rax, [rbp - 0x60]
mov r8d, 0xf0
lea rdx, [0x004fd040]
mov rcx, rax
call method.std::ostream.write_char_const__long_long_
mov r8d, 0xf0
lea rdx, [0x004fd040]
lea rcx, [0x004fd140]
call method.std::istream.read_char__long_long_
jmp 0x4048fa
movzx eax, byte [rbp + 0x17f]
test eax, eax
jne 0x404997
lea rdx, str._n_n_t_t_t_t_tERROR:_Student_id_is_invalid__
mov rcx, qword [0x004d23d0]
call method.std::basic_ostream_char__std::char_traits_char____std::operator____std.char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
mov rdx, qword [method.std::basic_ostream_char__std::char_traits_char____std::endl_char__std.char_traits_char____std::basic_ostream_char__std::char_traits_char____]
mov rcx, rax
call method.std::ostream.operator___std::ostream____std::ostream__
movzx eax, byte [rbp + 0x17f]
cmp eax, 1
jne 0x4049c5
lea rdx, str._n_n_t_t_t_t_tRecord_is_deleted_successfully...
mov rcx, qword [0x004d23d0]
call method.std::basic_ostream_char__std::char_traits_char____std::operator____std.char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
mov rdx, qword [method.std::basic_ostream_char__std::char_traits_char____std::endl_char__std.char_traits_char____std::basic_ostream_char__std::char_traits_char____]
mov rcx, rax
call method.std::ostream.operator___std::ostream____std::ostream__
lea rcx, [0x004fd140]
call method.std::basic_fstream_char__std::char_traits_char___.close__
lea rax, [rbp - 0x60]
mov rcx, rax
call method.std::basic_ofstream_char__std::char_traits_char___.close__
lea rcx, str.StudentRecords.bin
call sym.remove
lea rdx, str.StudentRecords.bin
lea rcx, str.TempFile.bin
call sym.rename
lea rax, [rbp - 0x60]
mov rcx, rax
call method.std::basic_ofstream_char__std::char_traits_char___.basic_ofstream__
jmp 0x404a25
add rsp, 0x208
pop rbx
pop rbp
ret