Function at 0x40968f
Capabilities:
Delete file
Move file

Disassembly:
push rbp
push rbx
sub rsp, 0x218
lea rbp, [rsp + 0x80]
call sym.DisplayFood__
lea rdx, str._n_n_t_t_t_tClick___Any_Key___To_Continue
mov rcx, qword [0x004e2870]
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.getch
mov ecx, 7
call sym.foreColor_int_
call sym.cls__
mov dword [rsp + 0x20], 6
mov r9d, 1
mov r8d, 0x50
mov edx, 0xd
mov ecx, 0x30
call sym.drawBoxSingleLineWithBG_int__int__int__int__int_
call sym.REF__
lea rax, [rbp - 0x50]
mov rcx, rax
call fcn.004a3d20
mov edx, 4
mov ecx, 8
call method.std.operator_std::_Ios_Openmode__std::_Ios_Openmode_
mov r8d, eax
lea rdx, str.Data_file_FoodData.bin
lea rcx, [0x0050e180]
call method.std::basic_fstream_char__std::char_traits_char___.open_char_const__std::_Ios_Openmode_
lea rax, [rbp - 0x50]
mov r8d, 4
lea rdx, str.Data_file_FoodDataDelete.bin
mov rcx, rax
call method.std::basic_ofstream_char__std::char_traits_char___.open_char_const__std::_Ios_Openmode_
lea rcx, [0x0050e258]
call method.std::basic_ios_char__std::char_traits_char___.fail___const
test al, al
je 0x40975d
call sym.FileNotFound__
mov ebx, 0
jmp 0x409950
lea rcx, [0x0050e258]
call method.std::basic_ios_char__std::char_traits_char___.good___const
test al, al
je 0x4098bc
mov edx, 0xc
mov ecx, 0x30
call sym.gotoxy_int__int_
lea rdx, [0x004dccee]
mov rcx, qword [0x004e2870]
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 edx, 0xe
mov ecx, 0x32
call sym.gotoxy_int__int_
lea rdx, str.Code_:
mov rcx, qword [0x004e2870]
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 + 0x188], eax
mov ecx, 0
mov rax, qword [dbg.__acrt_iob_func]
call rax
mov rcx, rax
call sym.fflush
mov edx, 0
mov rax, qword [0x004e2840]
lea rcx, [rax + 0x10]
call method.std::basic_ios_char__std::char_traits_char___.clear_std::_Ios_Iostate_
mov r8d, 0x98
lea rdx, [0x0050e040]
lea rcx, [0x0050e180]
call method.std::istream.read_char__long_long_
lea rcx, [0x0050e258]
call method.std::basic_ios_char__std::char_traits_char___.eof___const
movzx eax, al
cmp eax, 1
setne al
test al, al
je 0x409874
mov eax, dword [0x0050e06c]
cmp dword [rbp + 0x188], eax
jne 0x409832
mov byte [rbp + 0x18f], 1
mov eax, dword [0x0050e06c]
cmp dword [rbp + 0x188], eax
je 0x409859
lea rax, [rbp - 0x50]
mov r8d, 0x98
lea rdx, [0x0050e040]
mov rcx, rax
call method.std::ostream.write_char_const__long_long_
mov r8d, 0x98
lea rdx, [0x0050e040]
lea rcx, [0x0050e180]
call method.std::istream.read_char__long_long_
jmp 0x409804
movzx eax, byte [rbp + 0x18f]
cmp eax, 1
jne 0x409885
call sym.REFS__
movzx eax, byte [rbp + 0x18f]
test eax, eax
jne 0x4098bc
mov ecx, 2
call sym.foreColor_int_
mov edx, 0xe
mov ecx, 0x32
call sym.gotoxy_int__int_
lea rdx, str.Wrong_Code_
mov rcx, qword [0x004e2870]
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 ecx, 5
call sym.foreColor_int_
mov edx, 0x11
mov ecx, 0x30
call sym.gotoxy_int__int_
lea rdx, str._Please_Click_Any_Key_To_Input_Again
mov rcx, qword [0x004e2870]
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 ecx, 2
call sym.foreColor_int_
mov edx, 0x13
mov ecx, 0x30
call sym.gotoxy_int__int_
lea rdx, str._Please_Click_ESC_Return_To_Menu
mov rcx, qword [0x004e2870]
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_
lea rcx, [0x0050e180]
call method.std::basic_fstream_char__std::char_traits_char___.close__
lea rax, [rbp - 0x50]
mov rcx, rax
call method.std::basic_ofstream_char__std::char_traits_char___.close__
lea rcx, str.Data_file_FoodData.bin
call sym.remove
lea rdx, str.Data_file_FoodData.bin
lea rcx, str.Data_file_FoodDataDelete.bin
call sym.rename
mov ebx, 1
lea rax, [rbp - 0x50]
mov rcx, rax
call method.std::basic_ofstream_char__std::char_traits_char___.basic_ofstream__
cmp ebx, 1
jmp 0x40997c
add rsp, 0x218
pop rbx
pop rbp
ret