Function at 0x40cd8f
Capabilities:
Delete file
Move file

Disassembly:
push rbp
push rbx
sub rsp, 0x228
lea rbp, [rsp + 0x80]
mov edx, 1
mov ecx, 1
call dbg.setcursor(bool, unsigned long)
mov edx, 4
mov ecx, 8
call dbg.std::operator|(std::_Ios_Openmode, std::_Ios_Openmode)
mov r8d, eax
lea rdx, str.FilesStaff.bin
lea rcx, [0x00512380]
call method.std::basic_fstream_char__std::char_traits_char___.open_char_const__std::_Ios_Openmode_
lea rax, [rbp - 0x50]
mov rcx, rax
call fcn.0049eb00
mov edx, 4
mov ecx, 0x10
call dbg.std::operator|(std::_Ios_Openmode, std::_Ios_Openmode)
mov edx, eax
lea rax, [rbp - 0x50]
mov r8d, edx
lea rdx, str.FilesTemp.bin
mov rcx, rax
call method.std::basic_fstream_char__std::char_traits_char___.open_char_const__std::_Ios_Openmode_
mov byte [rbp + 0x19f], 0
lea rcx, [0x00512458]
call method.std::basic_ios_char__std::char_traits_char___.fail___const
test al, al
je 0x40ce5e
mov edx, 1
mov ecx, 0
call dbg.setcursor(bool, unsigned long)
mov edx, 0xf
mov ecx, 0x4b
call dbg.gotoxy(int, int)
lea rdx, str.____File_Not_Found____
mov rcx, qword [0x004e6fd0]
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, 0x5dc
call dbg.delay(int)
jmp 0x40cfbf
mov dword [rsp + 0x20], 3
mov r9d, 1
mov r8d, 0x26
mov edx, 4
mov ecx, 0x40
call dbg.drawBoxSingleLine(int, int, int, int, int)
mov edx, 5
mov ecx, 0x41
call dbg.gotoxy(int, int)
mov ecx, 0xe
call dbg.foreColor(int)
lea rdx, str.Enter_ID_You_want_to_Delete_:
mov rcx, qword [0x004e6fd0]
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, 5
mov ecx, 0x5f
call dbg.gotoxy(int, int)
call dbg.inputNumber()
mov dword [rbp + 0x198], eax
mov r8d, 0x84
lea rdx, [0x005122e0]
lea rcx, [0x00512380]
call method.std::istream.read_char__long_long_
lea rcx, [0x00512458]
call method.std::basic_ios_char__std::char_traits_char___.eof___const
xor eax, 1
test al, al
je 0x40cf67
lea rcx, [0x005122e0]
call dbg.Staff::getID()
cmp dword [rbp + 0x198], eax
sete al
test al, al
je 0x40cf13
mov byte [rbp + 0x19f], 1
lea rcx, [0x005122e0]
call dbg.Staff::getID()
cmp dword [rbp + 0x198], eax
setne al
test al, al
je 0x40cf49
lea rax, [rbp - 0x50]
add rax, 0x10
mov r8d, 0x84
lea rdx, [0x005122e0]
mov rcx, rax
call method.std::ostream.write_char_const__long_long_
mov r8d, 0x84
lea rdx, [0x005122e0]
lea rcx, [0x00512380]
call method.std::istream.read_char__long_long_
jmp 0x40cee0
mov edx, 1
mov ecx, 0
call dbg.setcursor(bool, unsigned long)
movzx eax, byte [rbp + 0x19f]
test eax, eax
jne 0x40cf9a
call dbg.cover()
call dbg.ClearBG()
call dbg.NotFind()
mov ecx, 0x3e8
call dbg.delay(int)
movzx eax, byte [rbp + 0x19f]
cmp eax, 1
jne 0x40cfbf
call dbg.cover()
call dbg.ClearBG()
call dbg.DeleteSuccess()
mov ecx, 0x5dc
call dbg.delay(int)
lea rcx, [0x00512380]
call method.std::basic_fstream_char__std::char_traits_char___.close__
lea rax, [rbp - 0x50]
mov rcx, rax
call method.std::basic_fstream_char__std::char_traits_char___.close__
lea rcx, str.FilesStaff.bin
call sym.remove
lea rdx, str.FilesStaff.bin
lea rcx, str.FilesTemp.bin
call sym.rename
lea rax, [rbp - 0x50]
mov rcx, rax
call fcn.0049f3a0
jmp 0x40d01f
add rsp, 0x228
pop rbx
pop rbp
ret