Function at 0x14004aece
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.140038472
test edi, edi
je 0x14004af26
mov rax, qword [0x1400b5f80]
cmp dword [rax + 0x18], 0xc
je 0x14004af26
mov rax, qword [0x1400b5fc0]
cmp dword [rax + 0xc], 0x3a97
ja 0x14004af26
mov rax, qword [0x1400b5de0]
mov dword [rax], 0xc0030032
jmp 0x14004af6c
mov rbx, qword [0x1400b67d0]
cmp byte [rbx + 0x54f], 0
jne 0x14004afc2
mov rax, qword [0x1400b67c0]
xor edx, edx
mov rcx, qword [rax]
call fcn.140048664
mov rsi, rax
test rax, rax
jne 0x14004af73
lea rcx, str.Could_not_mount_ISO_for_Windows_To_Go_installation
call fcn.140038472
mov rax, qword [0x1400b5de0]
mov dword [rax], 0xe0031208
xor eax, eax
jmp 0x14004b327
movsxd rax, dword [0x1401196a8]
lea rcx, [rsp + 0x4c]
or r8, 0xffffffffffffffff
mov edx, pe_nt_image_headers64
mov qword [rsp + 0x20], rsi
lea r9, [0x1400a94f8]
shl rax, 6
lea rax, [rbx + rax + 0x282]
mov qword [rsp + 0x28], rax
call qword [sym.imp.msvcrt.dll_clearerr]
mov rdx, rsi
lea rcx, str.Mounted_ISO_as__s
mov byte [rsp + 0xcb], 0
call fcn.140038472
cmp byte [rbx + 0x54f], 0
mov edx, dword [0x140084794]
lea rcx, [rsp + 0x4c]
je 0x14004afe0
mov rax, qword [0x1400b67c0]
mov rcx, qword [rax]
mov r8, rbp
call fcn.14004850f
test eax, eax
jne 0x14004b021
lea rcx, str.Failed_to_apply_Windows_To_Go_image
call fcn.140038472
mov rax, qword [0x1400b5de0]
cmp dword [rax], 0
js 0x14004b00a
mov dword [rax], 0xe0031208
cmp byte [rbx + 0x54f], 0
jne 0x14004af6c
call fcn.1400485c0
jmp 0x14004af6c
cmp byte [rbx + 0x54f], 0
jne 0x14004b02f
call fcn.1400485c0
test edi, edi
je 0x14004b0ef
lea rcx, str.Setting_up_EFI_System_Partition
call fcn.140038472
mov rsi, qword [0x1400b5f80]
mov r8d, 0x400
mov eax, dword [rsi + 0x10]
cmp eax, 0x400
jbe 0x14004b067
mov r8d, 0x1000
cmp eax, r8d
cmovae r8d, eax
mov r13, qword [0x1400b6950]
lea rdx, [0x1400a9847]
mov r9d, 1
mov ecx, r12d
movsxd rax, dword [r13 + 4]
mov dword [rsp + 0x28], 0x30003
mov qword [rsp + 0x20], rdx
imul rax, rax, 0x58
mov rdx, qword [rsi + rax + 0x70]
call fcn.14000db80
test eax, eax
jne 0x14004b0b2
lea rcx, str.Could_not_format_EFI_System_Partition
call fcn.140038472
jmp 0x14004af6c
mov ecx, 0xc8
call qword [0x14011c770]
movsxd rax, dword [r13 + 4]
xor r8d, r8d
mov ecx, r12d
imul rax, rax, 0x58
mov rdx, qword [rsi + rax + 0x70]
call fcn.14000a135
mov rsi, rax
test rax, rax
jne 0x14004b0f1
mov rax, qword [0x1400b5de0]
mov dword [rax], 0xe003120b
jmp 0x14004af6c
xor esi, esi
lea rcx, str.Enabling_boot_using_command:
mov r15, rsi
call fcn.140038472
test edi, edi
lea rax, str.UEFI
cmove r15, rbp
cmp byte [rbx + 0x55c], 0
je 0x14004b12d
cmp byte [rbx + 0x55d], 0
lea rax, str.BIOS
je 0x14004b12d
lea rax, [0x1400a979c]
mov r12, qword [0x1400b6a80]
or r8, 0xffffffffffffffff
lea rbx, [rsp + 0xcc]
lea r9, str._s_bcdboot.exe__sWindows__v__f__s__s__s
mov edx, 0x104
mov rcx, rbx
mov qword [rsp + 0x38], r15
mov r14, qword [sym.imp.msvcrt.dll_clearerr]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], r12
call r14
mov edx, 0x25
mov rcx, rbx
mov byte [rsp + 0x1cf], 0
call fcn.1400797c8
mov r8d, 0x2cd
test rax, rax
jne 0x14004b2b5
mov rcx, rbx
call fcn.140038472
xor r9d, r9d
mov rdx, r12
mov rcx, rbx
mov r13, qword [0x1400b6b80]
mov r8d, dword [r13]
call fcn.140037341
test eax, eax
je 0x14004b1cf
lea rcx, str.Failed_to_enable_boot
call fcn.140038472
mov rax, qword [0x1400b5de0]
mov dword [rax], 0xe0031208
mov rcx, r15
call fcn.14004a7e0
mov rax, qword [0x1400b6bf0]
xor ecx, ecx
mov r9d, dword [rax]
mov rax, qword [0x1400b6be0]
mov edx, dword [rax]
mov rax, qword [0x1400b6c00]
mov eax, dword [rax]
mov dword [rsp + 0x20], ecx
mov ecx, 7
lea r8d, [rax + rdx*2]
mov edx, 0xcc3
call fcn.140045210
test byte [0x1401196ac], 0x10
je 0x14004b269
lea rcx, str.Setting_the_targets_internal_drives_offline_using_command:
call fcn.140038472
mov rax, qword [0x1401196a0]
or r8, 0xffffffffffffffff
lea r9, str.dism__Image:_s__Apply_Unattend:_s
mov edx, 0x104
mov rcx, rbx
mov qword [rsp + 0x20], rbp
mov qword [rsp + 0x28], rax
call r14
mov rcx, rbx
mov byte [rsp + 0x1cf], 0
call fcn.140038472
mov r8d, dword [r13]
xor r9d, r9d
xor edx, edx
mov rcx, rbx
call fcn.140037341
lea rcx, str.Disabling_use_of_the_Windows_Recovery_Environment_using_command:
call fcn.140038472
or r8, 0xffffffffffffffff
mov edx, 0x104
mov rcx, rbx
mov qword [rsp + 0x28], r15
lea r9, str._s_bcdedit.exe__store__sEFIMicrosoftBootBCD__set_default_recoveryenabled_no
mov qword [rsp + 0x20], r12
call r14
mov edx, 0x25
mov rcx, rbx
mov byte [rsp + 0x1cf], 0
call fcn.1400797c8
test rax, rax
je 0x14004b2c9
mov r8d, 0x2e9
lea rdx, str.wue.c
lea rcx, str.strchr_cmd______NULL
call qword [sym.imp.msvcrt.dll_memmove]
mov rcx, rbx
call fcn.140038472
mov r8d, dword [r13]
xor r9d, r9d
mov rdx, r12
mov rcx, rbx
call fcn.140037341
mov edx, 0xcc3
mov ecx, 7
mov rax, qword [0x1400b6bf0]
mov r8d, dword [rax]
xor eax, eax
mov dword [rsp + 0x20], eax
mov r9, r8
call fcn.140045210
test edi, edi
jne 0x14004b310
mov eax, 1
jmp 0x14004b327
mov ecx, 0xc8
call qword [0x14011c770]
xor edx, edx
mov rcx, rsi
call fcn.14000a225
jmp 0x14004b309
add rsp, 0x1d8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret