Function at 0x408dd4
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__
call sym.IMQ__
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_FoodDataBackup.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 0x408e7f
call sym.FileNotFound__
mov ebx, 0
jmp 0x40911b
lea rcx, [0x0050e258]
call method.std::basic_ios_char__std::char_traits_char___.good___const
test al, al
je 0x4090df
mov byte [rbp + 0x18f], 0
mov dword [rsp + 0x20], 6
mov r9d, 1
mov r8d, 0x3c
mov edx, 0x11
mov ecx, 0x30
call sym.drawBoxSingleLineWithBG_int__int__int__int__int_
mov edx, 0x10
mov ecx, 0x30
call sym.gotoxy_int__int_
lea rdx, str.Enter_Code_For_Import
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, 0x12
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 0x408fe8
mov eax, dword [0x0050e06c]
cmp dword [rbp + 0x188], eax
jne 0x408fa3
lea rcx, [0x0050e040]
call method.Food._importqty__
lea rax, [rbp - 0x50]
mov r8d, 0x98
lea rdx, [0x0050e040]
mov rcx, rax
call method.std::ostream.write_char_const__long_long_
mov byte [rbp + 0x18f], 1
mov eax, dword [0x0050e06c]
cmp dword [rbp + 0x188], eax
je 0x408fca
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 0x408f50
movzx eax, byte [rbp + 0x18f]
cmp eax, 1
jne 0x40903d
call sym.IMQS__
mov edx, 0x24
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 edx, 0x26
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_
movzx eax, byte [rbp + 0x18f]
test eax, eax
jne 0x4090df
mov dword [rsp + 0x20], 6
mov r9d, 1
mov r8d, 0x3c
mov edx, 0x11
mov ecx, 0x30
call sym.drawBoxSingleLineWithBG_int__int__int__int__int_
mov ecx, 0xd
call sym.foreColor_int_
mov edx, 0x12
mov ecx, 0x32
call sym.gotoxy_int__int_
lea rdx, str.Wrong_barcode
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, 0x17
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 edx, 0x19
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_FoodDataBackup.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 0x409147
add rsp, 0x218
pop rbx
pop rbp
ret