Function at 0x40afa4
Capabilities:
Delete file
Move file

Disassembly:
push rbp
push rbx
sub rsp, 0x218
lea rbp, [rsp + 0x80]
call sym.DisplayStaff__
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__
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_Staff_Record.bin
lea rcx, [0x0050e680]
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_StaffDataDelete.bin
mov rcx, rax
call method.std::basic_ofstream_char__std::char_traits_char___.open_char_const__std::_Ios_Openmode_
lea rcx, [0x0050e758]
call method.std::basic_ios_char__std::char_traits_char___.fail___const
test al, al
je 0x40b04a
call sym.FileNotFound__
mov ebx, 0
jmp 0x40b2a5
lea rcx, [0x0050e758]
call method.std::basic_ios_char__std::char_traits_char___.good___const
test al, al
je 0x40b269
call sym.RE__
mov dword [rsp + 0x20], 8
mov r9d, 1
mov r8d, 0x50
mov edx, 0x11
mov ecx, 0x2d
call sym.drawBoxSingleLineWithBG_int__int__int__int__int_
mov ecx, 6
call sym.foreColor_int_
mov edx, 0xf
mov ecx, 0x2d
call sym.gotoxy_int__int_
lea rdx, str._Enter_ID_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 ecx, 0xc
call sym.foreColor_int_
mov edx, 0x12
mov ecx, 0x2e
call sym.gotoxy_int__int_
lea rdx, [0x004dc62a]
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, 0x68
lea rdx, [0x0050e860]
lea rcx, [0x0050e680]
call method.std::istream.read_char__long_long_
lea rcx, [0x0050e758]
call method.std::basic_ios_char__std::char_traits_char___.eof___const
movzx eax, al
cmp eax, 1
setne al
test al, al
je 0x40b19d
mov eax, dword [0x0050e8c4]
cmp dword [rbp + 0x188], eax
jne 0x40b15b
mov byte [rbp + 0x18f], 1
mov eax, dword [0x0050e8c4]
cmp dword [rbp + 0x188], eax
je 0x40b182
lea rax, [rbp - 0x50]
mov r8d, 0x68
lea rdx, [0x0050e860]
mov rcx, rax
call method.std::ostream.write_char_const__long_long_
mov r8d, 0x68
lea rdx, [0x0050e860]
lea rcx, [0x0050e680]
call method.std::istream.read_char__long_long_
jmp 0x40b12d
movzx eax, byte [rbp + 0x18f]
cmp eax, 1
jne 0x40b206
call sym.RS__
mov ecx, 0x1a
call sym.foreColor_int_
mov edx, 0x1d
mov ecx, 0x2d
call sym.gotoxy_int__int_
lea rdx, str._Please_Click_ESC_Back_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_
mov ecx, 0x1b
call sym.foreColor_int_
mov edx, 0x1f
mov ecx, 0x2d
call sym.gotoxy_int__int_
lea rdx, str._Please_Input_Again_Click_Any_Key
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 0x40b269
mov ecx, 6
call sym.foreColor_int_
mov edx, 0x12
mov ecx, 0x2e
call sym.gotoxy_int__int_
lea rdx, str._Wrong_ID__Please_Input_Again_Click_Any_Key
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, 0x1a
call sym.foreColor_int_
mov edx, 0x16
mov ecx, 0x2d
call sym.gotoxy_int__int_
lea rdx, str._Please_Click_ESC_Back_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, [0x0050e680]
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_Staff_Record.bin
call sym.remove
lea rdx, str.Data_file_Staff_Record.bin
lea rcx, str.Data_file_StaffDataDelete.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 0x40b2d1
add rsp, 0x218
pop rbx
pop rbp
ret