Function at 0x140048a33
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.140036717
test edi, edi
je 0x140048a8b
mov rax, qword [0x1400b1280]
cmp dword [rax + 0x18], 0xc
je 0x140048a8b
mov rax, qword [0x1400b12c0]
cmp dword [rax + 0xc], 0x3a97
ja 0x140048a8b
mov rax, qword [0x1400b1100]
mov dword [rax], 0xc0030032
jmp 0x140048acf
mov rbx, qword [0x1400b1a80]
cmp byte [rbx + 0x427], 0
jne 0x140048b1f
mov rax, qword [0x1400b1a70]
mov rcx, qword [rax]
call fcn.14001cbd0
mov rsi, rax
test rax, rax
jne 0x140048ad6
lea rcx, str.Could_not_mount_ISO_for_Windows_To_Go_installation
call fcn.140036717
mov rax, qword [0x1400b1100]
mov dword [rax], 0xe0031208
xor eax, eax
jmp 0x140048e53
movsxd rax, dword [0x140112ee8]
lea rcx, [rsp + 0x4c]
mov edx, pe_nt_image_headers64
mov r9, rsi
lea r8, [0x1400a4a24]
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.140036717
cmp byte [rbx + 0x427], 0
mov edx, dword [0x14007d314]
lea rcx, [rsp + 0x4c]
je 0x140048b3d
mov rax, qword [0x1400b1a70]
mov rcx, qword [rax]
mov r8, rbp
call fcn.140046f50
test eax, eax
jne 0x140048b7e
lea rcx, str.Failed_to_apply_Windows_To_Go_image
call fcn.140036717
mov rax, qword [0x1400b1100]
cmp dword [rax], 0
js 0x140048b67
mov dword [rax], 0xe0031208
cmp byte [rbx + 0x427], 0
jne 0x140048acf
call fcn.14001cb82
jmp 0x140048acf
cmp byte [rbx + 0x427], 0
jne 0x140048b8c
call fcn.14001cb82
test edi, edi
je 0x140048c3a
lea rcx, str.Setting_up_EFI_System_Partition
call fcn.140036717
mov rax, qword [0x1400b1280]
mov r8d, 0x400
mov eax, dword [rax + 0x10]
cmp eax, 0x400
jbe 0x140048bc4
mov r8d, 0x1000
cmp eax, r8d
cmovae r8d, eax
mov rsi, qword [0x1400b1bc0]
lea rax, [0x1400a4cf4]
mov r9d, 1
mov ecx, r12d
mov rdx, qword [rsi + 8]
mov dword [rsp + 0x28], 0x30003
mov qword [rsp + 0x20], rax
call fcn.140012bc0
test eax, eax
jne 0x140048c06
lea rcx, str.Could_not_format_EFI_System_Partition
call fcn.140036717
jmp 0x140048acf
mov ecx, 0xc8
call qword [sym.imp.KERNEL32.DLL_Sleep]
mov rdx, qword [rsi + 8]
xor r8d, r8d
mov ecx, r12d
call fcn.14000f2bf
mov rsi, rax
test rax, rax
jne 0x140048c3c
mov rax, qword [0x1400b1100]
mov dword [rax], 0xe003120b
jmp 0x140048acf
xor esi, esi
lea rcx, str.Enabling_boot_using_command:
mov r12, rsi
call fcn.140036717
test edi, edi
lea rax, str.UEFI
cmove r12, rbp
cmp byte [rbx + 0x434], 0
je 0x140048c7a
cmp byte [rbx + 0x435], 0
lea rax, str.BIOS
lea rdx, [0x1400a4c49]
cmovne rax, rdx
lea rbx, [rsp + 0xcc]
mov edx, 0x104
mov qword [rsp + 0x30], r12
mov r9, qword [0x1400b1cc0]
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, 0x2aa
test rax, rax
jne 0x140048de7
mov rcx, rbx
call fcn.140036717
mov r13, qword [0x1400b1dc0]
mov rdx, qword [0x1400b1cc0]
mov rcx, rbx
mov r8d, dword [r13]
call fcn.1400358c8
test eax, eax
je 0x140048d14
lea rcx, str.Failed_to_enable_boot
call fcn.140036717
mov rax, qword [0x1400b1100]
mov dword [rax], 0xe0031208
mov rax, qword [0x1400b1e00]
mov r15, qword [0x1400b1e10]
xor ecx, ecx
mov edx, dword [rax]
mov rax, qword [0x1400b1e20]
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.140043acc
test byte [0x140112eec], 0x10
je 0x140048d9d
lea rcx, str.Setting_the_targets_internal_drives_offline_using_command:
call fcn.140036717
mov edx, 0x104
mov r9, rbp
mov rcx, rbx
mov rax, qword [0x140112ee0]
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.140036717
mov r8d, dword [r13]
xor edx, edx
mov rcx, rbx
call fcn.1400358c8
lea rcx, str.Disabling_use_of_the_Windows_Recovery_Environment_using_command:
call fcn.140036717
mov edx, 0x104
mov rcx, rbx
mov qword [rsp + 0x20], r12
mov r9, qword [0x1400b1cc0]
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 0x140048dfb
mov r8d, 0x2c4
lea rdx, str.wue.c
lea rcx, str.strchr_cmd______NULL
call qword [sym.imp.msvcrt.dll__wassert]
mov rcx, rbx
call fcn.140036717
mov r8d, dword [r13]
mov rdx, qword [0x1400b1cc0]
mov rcx, rbx
call fcn.1400358c8
xor eax, eax
mov r8d, dword [r15]
mov edx, 0xcc3
mov dword [rsp + 0x20], eax
mov ecx, 7
mov r9, r8
call fcn.140043acc
test edi, edi
jne 0x140048e3c
mov eax, 1
jmp 0x140048e53
mov ecx, 0xc8
call qword [sym.imp.KERNEL32.DLL_Sleep]
xor edx, edx
mov rcx, rsi
call fcn.14000f3af
jmp 0x140048e35
add rsp, 0x1d8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret