Function at 0x14004aaa8
Capabilities:
Manipulate boot configuration

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x1d8
mov r12d, ecx
mov edi, r8d
lea rcx, str.Windows_To_Go_mode_selected
mov rbp, rdx
call fcn.1400380b9
test edi, edi
je 0x14004ab00
mov rax, qword [0x1400b4440]
cmp dword [rax + 0x18], 0xc
je 0x14004ab00
mov rax, qword [0x1400b4480]
cmp dword [rax + 0xc], 0x3a97
ja 0x14004ab00
mov rax, qword [0x1400b42b0]
mov dword [rax], 0xc0030032
jmp 0x14004ab44
mov rbx, qword [0x1400b4c60]
cmp byte [rbx + 0x557], 0
jne 0x14004ab94
mov rax, qword [0x1400b4c50]
mov rcx, qword [rax]
call fcn.140048315
mov rsi, rax
test rax, rax
jne 0x14004ab4b
lea rcx, str.Could_not_mount_ISO_for_Windows_To_Go_installation
call fcn.1400380b9
mov rax, qword [0x1400b42b0]
mov dword [rax], 0xe0031208
xor eax, eax
jmp 0x14004aed9
movsxd rax, dword [0x140118288]
lea rcx, [rsp + 0x4c]
mov edx, pe_nt_image_headers64
mov r9, rsi
lea r8, [0x1400a79fa]
shl rax, 6
lea rax, [rbx + rax + 0x282]
mov qword [rsp + 0x20], rax
call qword [sym.imp.msvcrt.dll__snprintf]
mov rdx, rsi
lea rcx, str.Mounted_ISO_as__s
mov byte [rsp + 0xcb], 0
call fcn.1400380b9
cmp byte [rbx + 0x557], 0
mov edx, dword [0x140083454]
lea rcx, [rsp + 0x4c]
je 0x14004abb2
mov rax, qword [0x1400b4c50]
mov rcx, qword [rax]
mov r8, rbp
call fcn.1400481bd
test eax, eax
jne 0x14004abf3
lea rcx, str.Failed_to_apply_Windows_To_Go_image
call fcn.1400380b9
mov rax, qword [0x1400b42b0]
cmp dword [rax], 0
js 0x14004abdc
mov dword [rax], 0xe0031208
cmp byte [rbx + 0x557], 0
jne 0x14004ab44
call fcn.14004826e
jmp 0x14004ab44
cmp byte [rbx + 0x557], 0
jne 0x14004ac01
call fcn.14004826e
test edi, edi
je 0x14004acaf
lea rcx, str.Setting_up_EFI_System_Partition
call fcn.1400380b9
mov rax, qword [0x1400b4440]
mov r8d, 0x400
mov eax, dword [rax + 0x10]
cmp eax, 0x400
jbe 0x14004ac39
mov r8d, 0x1000
cmp eax, r8d
cmovae r8d, eax
mov rsi, qword [0x1400b4db0]
lea rax, [0x1400a7d49]
mov r9d, 1
mov ecx, r12d
mov rdx, qword [rsi + 8]
mov dword [rsp + 0x28], 0x30003
mov qword [rsp + 0x20], rax
call fcn.14000e029
test eax, eax
jne 0x14004ac7b
lea rcx, str.Could_not_format_EFI_System_Partition
call fcn.1400380b9
jmp 0x14004ab44
mov ecx, 0xc8
call qword [sym.imp.KERNEL32.DLL_Sleep]
mov rdx, qword [rsi + 8]
xor r8d, r8d
mov ecx, r12d
call fcn.14000a62d
mov rsi, rax
test rax, rax
jne 0x14004acb1
mov rax, qword [0x1400b42b0]
mov dword [rax], 0xe003120b
jmp 0x14004ab44
xor esi, esi
lea rcx, str.Enabling_boot_using_command:
mov r12, rsi
call fcn.1400380b9
test edi, edi
lea rax, str.UEFI
cmove r12, rbp
cmp byte [rbx + 0x564], 0
je 0x14004acef
cmp byte [rbx + 0x565], 0
lea rax, str.BIOS
lea rdx, [0x1400a7c9e]
cmovne rax, rdx
lea rbx, [rsp + 0xcc]
mov edx, 0x104
mov qword [rsp + 0x30], r12
mov r9, qword [0x1400b4ee0]
lea r8, str._s_bcdboot.exe__sWindows__v__f__s__s__s
mov rcx, rbx
mov qword [rsp + 0x28], rax
mov r14, qword [sym.imp.msvcrt.dll__snprintf]
mov qword [rsp + 0x20], rbp
call r14
mov edx, 0x25
mov rcx, rbx
mov byte [rsp + 0x1cf], 0
call sub.msvcrt.dll_strchr
mov r8d, 0x2cd
test rax, rax
jne 0x14004ae6a
mov rcx, rbx
call fcn.1400380b9
mov r13, qword [0x1400b4fe0]
xor r9d, r9d
mov rcx, rbx
mov rdx, qword [0x1400b4ee0]
mov r8d, dword [r13]
call fcn.140036fa1
test eax, eax
je 0x14004ad8c
lea rcx, str.Failed_to_enable_boot
call fcn.1400380b9
mov rax, qword [0x1400b42b0]
mov dword [rax], 0xe0031208
mov rcx, r12
call fcn.14004a395
mov rax, qword [0x1400b5020]
mov r15, qword [0x1400b5030]
xor ecx, ecx
mov edx, dword [rax]
mov rax, qword [0x1400b5040]
mov r9d, dword [r15]
mov eax, dword [rax]
mov dword [rsp + 0x20], ecx
mov ecx, 7
lea r8d, [rax + rdx*2]
mov edx, 0xcc3
call fcn.140044e4a
test byte [0x14011828c], 0x10
je 0x14004ae20
lea rcx, str.Setting_the_targets_internal_drives_offline_using_command:
call fcn.1400380b9
mov r9, rbp
mov edx, 0x104
mov rcx, rbx
mov rax, qword [0x140118280]
lea r8, str.dism__Image:_s__Apply_Unattend:_s
mov qword [rsp + 0x20], rax
call r14
mov rcx, rbx
mov byte [rsp + 0x1cf], 0
call fcn.1400380b9
mov r8d, dword [r13]
xor r9d, r9d
xor edx, edx
mov rcx, rbx
call fcn.140036fa1
lea rcx, str.Disabling_use_of_the_Windows_Recovery_Environment_using_command:
call fcn.1400380b9
mov edx, 0x104
mov rcx, rbx
mov qword [rsp + 0x20], r12
mov r9, qword [0x1400b4ee0]
lea r8, str._s_bcdedit.exe__store__sEFIMicrosoftBootBCD__set_default_recoveryenabled_no
call r14
mov edx, 0x25
mov rcx, rbx
mov byte [rsp + 0x1cf], 0
call sub.msvcrt.dll_strchr
test rax, rax
je 0x14004ae7e
mov r8d, 0x2e9
lea rdx, str.wue.c
lea rcx, str.strchr_cmd______NULL
call qword [sym.imp.msvcrt.dll__wassert]
mov rcx, rbx
call fcn.1400380b9
mov r8d, dword [r13]
xor r9d, r9d
mov rcx, rbx
mov rdx, qword [0x1400b4ee0]
call fcn.140036fa1
xor eax, eax
mov r8d, dword [r15]
mov edx, 0xcc3
mov dword [rsp + 0x20], eax
mov ecx, 7
mov r9, r8
call fcn.140044e4a
test edi, edi
jne 0x14004aec2
mov eax, 1
jmp 0x14004aed9
mov ecx, 0xc8
call qword [sym.imp.KERNEL32.DLL_Sleep]
xor edx, edx
mov rcx, rsi
call fcn.14000a71d
jmp 0x14004aebb
add rsp, 0x1d8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret