Function at 0x40b707
Capabilities:
Delete file
Move file

Disassembly:
push rbp
push rbx
sub rsp, 0x228
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x1c0], rcx
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
mov rdx, qword [rbp + 0x1c0]
lea rcx, [0x00512040]
call method.std::basic_fstream_char__std::char_traits_char___.open_std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_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, [0x00512118]
call method.std::basic_ios_char__std::char_traits_char___.fail___const
test al, al
je 0x40b7dd
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 0x40b93e
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 edx, 1
mov ecx, 0
call dbg.setcursor(bool, unsigned long)
mov r8d, 0xa8
lea rdx, [0x00512220]
lea rcx, [0x00512040]
call method.std::istream.read_char__long_long_
lea rcx, [0x00512118]
call method.std::basic_ios_char__std::char_traits_char___.eof___const
xor eax, 1
test al, al
je 0x40b8f5
lea rcx, [0x00512220]
call dbg.Patient::getID()
cmp dword [rbp + 0x198], eax
sete al
test al, al
je 0x40b8a1
mov byte [rbp + 0x19f], 1
lea rcx, [0x00512220]
call dbg.Patient::getID()
cmp dword [rbp + 0x198], eax
setne al
test al, al
je 0x40b8d7
lea rax, [rbp - 0x50]
add rax, 0x10
mov r8d, 0xa8
lea rdx, [0x00512220]
mov rcx, rax
call method.std::ostream.write_char_const__long_long_
mov r8d, 0xa8
lea rdx, [0x00512220]
lea rcx, [0x00512040]
call method.std::istream.read_char__long_long_
jmp 0x40b86e
movzx eax, byte [rbp + 0x19f]
test eax, eax
jne 0x40b919
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 0x40b93e
call dbg.cover()
call dbg.ClearBG()
call dbg.DeleteSuccess()
mov ecx, 0x5dc
call dbg.delay(int)
lea rcx, [0x00512040]
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__
mov rcx, qword [rbp + 0x1c0]
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___.c_str___const
mov rcx, rax
call sym.remove
mov rcx, qword [rbp + 0x1c0]
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___.c_str___const
mov rdx, rax
lea rcx, str.FilesTemp.bin
call sym.rename
lea rax, [rbp - 0x50]
mov rcx, rax
call fcn.0049f3a0
jmp 0x40b9ae
add rsp, 0x228
pop rbx
pop rbp
ret