Function at 0x41345d
Capabilities:
Delete file
Move file

Disassembly:
push rbp
push rbx
sub rsp, 0x268
lea rbp, [rsp + 0x80]
mov byte [rbp + 0x1df], 0
lea rax, [rbp - 0x10]
mov rcx, rax
call fcn.0049ef20
mov dword [rsp + 0x20], 6
mov r9d, 0x18
mov r8d, 0x46
mov edx, 2
mov ecx, 0x26
call dbg.DrawRectangle(int, int, int, int, int)
mov edx, 4
mov ecx, 8
call dbg.std::operator|(std::_Ios_Openmode, std::_Ios_Openmode)
mov r8d, eax
lea rdx, [0x00513cc0]
lea rcx, [0x00513ae0]
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_
mov edx, 1
mov ecx, 0x10
call dbg.std::operator|(std::_Ios_Openmode, std::_Ios_Openmode)
mov edx, 4
mov ecx, eax
call dbg.std::operator|(std::_Ios_Openmode, std::_Ios_Openmode)
mov edx, eax
lea rax, [rbp - 0x10]
mov r8d, edx
lea rdx, [0x00513ce0]
mov rcx, rax
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_
mov byte [rbp + 0x1de], 0
mov dword [rsp + 0x20], 7
mov r9d, 1
mov r8d, 0x37
mov edx, 0xa
mov ecx, 0x2d
call dbg.drawBoxSingleLine(int, int, int, int, int)
mov edx, 0xb
mov ecx, 0x2d
call dbg.gotoxy(int, int)
mov ecx, 6
call dbg.foreColor(int)
lea rdx, str.Enter_username_to_Delete_:
mov rcx, qword [0x004e8170]
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 rdx, qword [method.std::basic_ostream_char__std::char_traits_char____std::endl_char__std.char_traits_char____std::basic_ostream_char__std::char_traits_char____]
mov rcx, rax
call method.std::ostream.operator___std::ostream____std::ostream__
mov edx, 0xb
mov ecx, 0x48
call dbg.gotoxy(int, int)
mov ecx, 2
call dbg.foreColor(int)
lea rax, [rbp - 0x50]
mov r8d, 0x32
mov rdx, rax
mov rcx, qword [0x004e8140]
call method.std::istream.getline_char__long_long_
mov ecx, 0
mov rax, qword [dbg.__acrt_iob_func]
call rax
mov rcx, rax
call sym.fflush
mov edx, 0
mov rax, qword [0x004e8140]
lea rcx, [rax + 0x10]
call method.std::basic_ios_char__std::char_traits_char___.clear_std::_Ios_Iostate_
movzx eax, byte [rbp - 0x50]
movzx eax, al
test eax, eax
je 0x4135d0
mov byte [rbp + 0x1df], 1
cmp byte [rbp + 0x1df], 0
jne 0x41364a
mov edx, 0xb
mov ecx, 0x48
call dbg.gotoxy(int, int)
mov ecx, 2
call dbg.foreColor(int)
lea rax, [rbp - 0x50]
mov r8d, 0x32
mov rdx, rax
mov rcx, qword [0x004e8140]
call method.std::istream.getline_char__long_long_
mov ecx, 0
mov rax, qword [dbg.__acrt_iob_func]
call rax
mov rcx, rax
call sym.fflush
mov edx, 0
mov rax, qword [0x004e8140]
lea rcx, [rax + 0x10]
call method.std::basic_ios_char__std::char_traits_char___.clear_std::_Ios_Iostate_
movzx eax, byte [rbp - 0x50]
movzx eax, al
test eax, eax
je 0x4135d0
mov byte [rbp + 0x1df], 1
jmp 0x4135d0
mov r8d, 0xdc
lea rdx, [0x00513a00]
lea rcx, [0x00513ae0]
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 0x4136bb
lea rax, [rbp - 0x50]
lea rdx, [0x00513a00]
mov rcx, rax
call sym.strcmp
test eax, eax
je 0x4136b2
lea rax, [rbp - 0x10]
add rax, 0x10
mov r8d, 0xdc
lea rdx, [0x00513a00]
mov rcx, rax
call method.std::ostream.write_char_const__long_long_
jmp 0x4136b9
mov byte [rbp + 0x1de], 1
jmp 0x41364a
movzx eax, byte [rbp + 0x1de]
cmp eax, 1
jne 0x413730
mov edx, 0x12
mov ecx, 0x40
call dbg.gotoxy(int, int)
mov ecx, 6
call dbg.foreColor(int)
lea rdx, str.Deleted_successfully__
mov rcx, qword [0x004e8170]
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 rdx, qword [method.std::basic_ostream_char__std::char_traits_char____std::endl_char__std.char_traits_char____std::basic_ostream_char__std::char_traits_char____]
mov rcx, rax
call method.std::ostream.operator___std::ostream____std::ostream__
mov edx, 0x17
mov ecx, 0x50
call dbg.gotoxy(int, int)
mov ecx, 7
call dbg.foreColor(int)
lea rdx, str.Press_Enter__Do_it_again
mov rcx, qword [0x004e8170]
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_
jmp 0x413797
mov edx, 0x12
mov ecx, 0x43
call dbg.gotoxy(int, int)
mov ecx, 4
call dbg.foreColor(int)
lea rdx, str.Not_Found__
mov rcx, qword [0x004e8170]
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 rdx, qword [method.std::basic_ostream_char__std::char_traits_char____std::endl_char__std.char_traits_char____std::basic_ostream_char__std::char_traits_char____]
mov rcx, rax
call method.std::ostream.operator___std::ostream____std::ostream__
mov edx, 0x17
mov ecx, 0x50
call dbg.gotoxy(int, int)
mov ecx, 7
call dbg.foreColor(int)
lea rdx, str.Press_Enter__Do_it_again
mov rcx, qword [0x004e8170]
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, [0x00513ae0]
call method.std::basic_fstream_char__std::char_traits_char___.close__
lea rax, [rbp - 0x10]
mov rcx, rax
call method.std::basic_fstream_char__std::char_traits_char___.close__
lea rcx, [0x00513cc0]
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___.c_str___const
mov rcx, rax
call sym.remove
lea rcx, [0x00513cc0]
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___.c_str___const
mov rbx, rax
lea rcx, [0x00513ce0]
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___.c_str___const
mov rdx, rbx
mov rcx, rax
call sym.rename
mov edx, 0x17
mov ecx, 0x2c
call dbg.gotoxy(int, int)
mov ecx, 7
call dbg.foreColor(int)
lea rdx, str.Press_esc__Back_to_Login
mov rcx, qword [0x004e8170]
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 byte [rbp + 0x1dd], al
movsx eax, byte [rbp + 0x1dd]
cmp eax, 0xd
je 0x413873
cmp eax, 0x1b
jne 0x413815
mov edx, 0x17
mov ecx, 0x2c
call dbg.gotoxy(int, int)
mov ecx, 6
call dbg.foreColor(int)
lea rdx, str.Press_esc__Back_to_Login
mov rcx, qword [0x004e8170]
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, 0x12c
call dbg.delay(int)
call dbg.cls()
call dbg.accountadmin()
jmp 0x4138b3
mov edx, 0x17
mov ecx, 0x50
call dbg.gotoxy(int, int)
mov ecx, 6
call dbg.foreColor(int)
lea rdx, str.Press_Enter__Do_it_again
mov rcx, qword [0x004e8170]
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, 0xc8
call dbg.delay(int)
call dbg.cls()
call dbg.Delete()
lea rax, [rbp - 0x10]
mov rcx, rax
call fcn.0049f7c0
jmp 0x4138dc
add rsp, 0x268
pop rbx
pop rbp
ret