Function at 0x40c6a3
Capabilities:
Delete file
Move file

Disassembly:
push rbp
push rbx
sub rsp, 0x3f8
lea rbp, [rsp + 0x80]
call sym.DisplayDrink__
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.RVD__
lea rax, [rbp + 0x190]
mov r8d, 4
lea rdx, str.Data_file_DrinkData.bin
mov rcx, rax
call method.std::basic_ifstream_char__std::char_traits_char___.basic_ifstream_char_const__std::_Ios_Openmode_
lea rax, [rbp - 0x40]
mov r8d, 4
lea rdx, str.Data_file_DrinkDataDelete.bin
mov rcx, rax
call method.std::basic_ofstream_char__std::char_traits_char___.basic_ofstream_char_const__std::_Ios_Openmode_
lea rax, [rbp + 0x190]
add rax, 0xd0
mov rcx, rax
call method.std::basic_ios_char__std::char_traits_char___.operator____const
test al, al
je 0x40c765
call sym.FileNotFound__
mov ebx, 0
jmp 0x40c8fc
mov byte [rbp + 0x36f], 0
mov edx, 0xc
mov ecx, 0x30
call sym.gotoxy_int__int_
lea rdx, str.Enter_Code_for_Delete
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_
lea rax, [rbp - 0x44]
mov rdx, rax
mov rcx, qword [0x004e2840]
call method.std::istream.operator___int_
lea rax, [rbp + 0x190]
mov r8d, 0x98
lea rdx, [0x0050e360]
mov rcx, rax
call method.std::istream.read_char__long_long_
mov rdx, qword [rax]
sub rdx, 0x18
mov rdx, qword [rdx]
add rax, rdx
mov rcx, rax
call method.std::basic_ios_char__std::char_traits_char___.operator_bool___const
test al, al
je 0x40c829
mov edx, dword [0x0050e38c]
mov eax, dword [rbp - 0x44]
cmp edx, eax
jne 0x40c80e
mov byte [rbp + 0x36f], 1
jmp 0x40c7c3
lea rax, [rbp - 0x40]
mov r8d, 0x98
lea rdx, [0x0050e360]
mov rcx, rax
call method.std::ostream.write_char_const__long_long_
jmp 0x40c7c3
cmp byte [rbp + 0x36f], 0
je 0x40c839
call sym.REFS__
jmp 0x40c865
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 rax, [rbp + 0x190]
mov rcx, rax
call method.std::basic_ifstream_char__std::char_traits_char___.close__
lea rax, [rbp - 0x40]
mov rcx, rax
call method.std::basic_ofstream_char__std::char_traits_char___.close__
lea rcx, str.Data_file_DrinkData.bin
call sym.remove
lea rdx, str.Data_file_DrinkData.bin
lea rcx, str.Data_file_DrinkDataDelete.bin
call sym.rename
mov ebx, 1
lea rax, [rbp - 0x40]
mov rcx, rax
call method.std::basic_ofstream_char__std::char_traits_char___.basic_ofstream__
cmp ebx, 1
je 0x40c914
mov ebx, 0
jmp 0x40c919
mov ebx, 1
lea rax, [rbp + 0x190]
mov rcx, rax
call fcn.004a1c30
cmp ebx, 1
jmp 0x40c95c
add rsp, 0x3f8
pop rbx
pop rbp
ret