Function at 0x140011302
Capabilities:
Terminate process

Disassembly:
jmp 0x140014200
push rbp
push rsi
push rdi
sub rsp, 0x4f0
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0xd4
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [section..data]
xor rax, rbp
mov qword [rbp + 0x4c8], rax
lea rcx, [0x14002702f]
call fcn.140011442
mov qword [rbp + 8], 0
mov qword [rbp + 0x28], 0
mov qword [rbp + 0x50], 0
mov rax, qword [rbp + 0x50]
mov qword [rbp + 0x48], rax
lea rdx, str.Patients.txt
lea rcx, [rbp + 8]
call fcn.140011460
lea rdx, str.Doctors.txt
lea rcx, [rbp + 0x28]
call fcn.1400112fd
lea r8, str.Line.txt
lea rdx, [rbp + 8]
lea rcx, [rbp + 0x48]
call fcn.14001117c
xor eax, eax
cmp eax, 1
je 0x14001471d
call fcn.14001141f
lea rdx, [rbp + 0x74]
lea rcx, [0x14001df5c]
call fcn.1400110be
cmp eax, 1
je 0x1400142ca
lea rcx, str.Invalid_input._Please_try_again._n
call fcn.140011203
call fcn.140011267
jmp 0x140014292
call fcn.140011267
mov eax, dword [rbp + 0x74]
mov dword [rbp + 0x4c4], eax
cmp dword [rbp + 0x4c4], 0xc
ja case.default.0x1400142fd
movsxd rax, dword [rbp + 0x4c4]
lea rcx, [0x140000000]
mov eax, dword [rcx + rax*4 + 0x14750]
add rax, rcx
jmp rax
mov r8, qword [rbp + 0x28]
lea rdx, [rbp + 0x48]
lea rcx, [rbp + 8]
call fcn.140011118
jmp 0x140014718
lea rax, [rbp + 0x420]
lea rcx, [rbp + 0x48]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea rcx, [rbp + 0x420]
call fcn.14001127b
lea rcx, str.Enter_patient_ID_to_check_allergies:
call fcn.140011203
lea rdx, [rbp + 0x98]
lea rcx, str._19s
call fcn.1400110be
cmp eax, 1
je 0x140014373
lea rcx, str.Invalid_input._Please_try_again._n
call fcn.140011203
call fcn.140011267
jmp 0x140014718
call fcn.140011267
lea rdx, [rbp + 0x98]
mov rcx, qword [rbp + 8]
call fcn.140011069
jmp 0x140014718
lea rcx, [rbp + 8]
call fcn.140011401
jmp 0x140014718
lea rcx, str.Enter_patient_ID_to_display_admissions:
call fcn.140011203
lea rdx, [rbp + 0xc8]
lea rcx, str._19s
call fcn.1400110be
cmp eax, 1
je 0x1400143d5
lea rcx, str.Invalid_input._Please_try_again._n
call fcn.140011203
call fcn.140011267
jmp 0x140014718
call fcn.140011267
lea rdx, [rbp + 0xc8]
mov rcx, qword [rbp + 8]
call fcn.14001139d
mov qword [rbp + 0xf8], rax
cmp qword [rbp + 0xf8], 0
je 0x140014406
mov rcx, qword [rbp + 8]
call fcn.14001137a
jmp 0x140014419
lea rdx, [rbp + 0xc8]
lea rcx, str.Patient_with_ID__s_not_found._n
call fcn.140011203
jmp 0x140014718
lea rax, [rbp + 0x450]
lea rcx, [rbp + 0x48]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea rcx, [rbp + 0x450]
call fcn.14001127b
jmp 0x140014718
mov rdx, qword [rbp + 0x28]
lea rcx, [rbp + 0x48]
call fcn.1400113d4
lea rax, [rbp + 0x480]
lea rcx, [rbp + 0x48]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea rcx, [rbp + 0x480]
call fcn.14001127b
jmp 0x140014718
mov rcx, qword [rbp + 0x28]
call fcn.140011343
jmp 0x140014718
lea rcx, str.Enter_doctors_name:
call fcn.140011203
lea rdx, [rbp + 0x120]
lea rcx, str._99__n_
call fcn.1400110be
cmp eax, 1
je 0x1400144c5
lea rcx, str.Invalid_input._Please_try_again._n
call fcn.140011203
call fcn.140011267
jmp 0x140014718
call fcn.140011267
lea rdx, [rbp + 0x120]
mov rcx, qword [rbp + 0x28]
call fcn.140011357
jmp 0x140014718
lea rcx, str.Enter_patient_ID_to_discharge:
call fcn.140011203
lea rdx, [rbp + 0x1a8]
lea rcx, str._19s
call fcn.1400110be
cmp eax, 1
je 0x140014519
lea rcx, str.Invalid_input._Please_try_again._n
call fcn.140011203
call fcn.140011267
jmp 0x140014718
call fcn.140011267
lea rdx, [rbp + 0x1a8]
mov rcx, qword [rbp + 8]
call fcn.140011113
lea rax, [rbp + 0x4b0]
lea rcx, [rbp + 0x48]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea rcx, [rbp + 0x4b0]
call fcn.14001127b
jmp 0x140014718
lea rcx, str.Enter_patient_ID:
call fcn.140011203
lea rdx, [rbp + 0x1d8]
lea rcx, str._19s
call fcn.1400110be
cmp eax, 1
je 0x140014591
lea rcx, str.Invalid_input._Please_try_again._n
call fcn.140011203
call fcn.140011267
jmp 0x140014718
lea rcx, str.Enter_visit_index_to_remove:
call fcn.140011203
lea rdx, [rbp + 0x204]
lea rcx, [0x14001df5c]
call fcn.1400110be
cmp eax, 1
je 0x1400145cb
lea rcx, str.Invalid_input._Please_try_again._n
call fcn.140011203
call fcn.140011267
jmp 0x140014718
call fcn.140011267
lea rdx, [rbp + 0x1d8]
mov rcx, qword [rbp + 8]
call fcn.14001139d
mov qword [rbp + 0x228], rax
cmp qword [rbp + 0x228], 0
je 0x14001460a
mov r8d, dword [rbp + 0x204]
lea rdx, [rbp + 0x1d8]
mov rcx, qword [rbp + 8]
call fcn.140011177
jmp 0x14001461d
lea rdx, [rbp + 0x1d8]
lea rcx, str.Patient_with_ID__s_not_found._n
call fcn.140011203
jmp 0x140014718
lea rcx, str.Enter_patient_ID_to_remove:
call fcn.140011203
lea rdx, [rbp + 0x248]
lea rcx, str._19s
call fcn.1400110be
cmp eax, 1
je 0x14001465c
lea rcx, str.Invalid_input._Please_try_again._n
call fcn.140011203
call fcn.140011267
jmp 0x140014718
call fcn.140011267
lea rdx, [rbp + 0x248]
mov rcx, qword [rbp + 8]
call fcn.14001139d
mov qword [rbp + 0x278], rax
cmp qword [rbp + 0x278], 0
je 0x140014698
lea rdx, [rbp + 0x248]
mov rcx, qword [rbp + 8]
call fcn.140011352
mov qword [rbp + 8], rax
jmp 0x1400146ab
lea rdx, [rbp + 0x248]
lea rcx, str.Patient_with_ID__s_not_found._n
call fcn.140011203
jmp 0x140014718
lea r8, [rbp + 0x48]
lea rdx, [rbp + 0x28]
lea rcx, [rbp + 8]
call fcn.140011384
lea rcx, str.Hospital_is_now_closed._n
call fcn.140011203
lea r8, [rbp + 0x48]
lea rdx, [rbp + 0x28]
lea rcx, [rbp + 8]
call fcn.14001114f
xor ecx, ecx
call qword [sym.imp.ucrtbased.dll_exit]
jmp 0x140014718
lea r8, [rbp + 0x48]
lea rdx, [rbp + 0x28]
lea rcx, [rbp + 8]
call fcn.14001114f
lea rcx, str.Exiting_program..._n
call fcn.140011203
xor ecx, ecx
call qword [sym.imp.ucrtbased.dll_exit]
jmp 0x140014718
lea rcx, str.Invalid_choice._Please_try_again._n
call fcn.140011203
jmp 0x140014292
xor eax, eax
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x14001dbd0]
call fcn.1400113c5
mov rax, rdi
mov rcx, qword [rbp + 0x4c8]
xor rcx, rbp
call fcn.14001121c
lea rsp, [rbp + 0x4d0]
pop rdi
pop rsi
pop rbp
ret