Function at 0x454040
Capabilities:
Manipulate boot configuration

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1bc
mov ebx, dword [ebp + 8]
mov dword [esp], str.Windows_To_Go_mode_selected
call fcn.0043efa9
cmp dword [ebp + 0x10], 0
je 0x454082
cmp dword [0x4e2238], 0xc
je 0x454082
cmp dword [0x5275cc], 0x3a97
ja 0x454082
mov dword [0x4e2900], 0xc0030032
jmp 0x4540b4
cmp byte [0x5132f7], 0
jne 0x454106
mov eax, dword [0x525a68]
mov dword [esp], eax
call fcn.00451503
mov esi, eax
test eax, eax
jne 0x4540bb
mov dword [esp], str.Could_not_mount_ISO_for_Windows_To_Go_installation
call fcn.0043efa9
mov dword [0x4e2900], 0xe0031208
xor eax, eax
jmp 0x4544b8
mov eax, dword [0x52b144]
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0x4b62ba
shl eax, 6
mov dword [esp + 4], pe_nt_image_headers32
add eax, 0x513022
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x19c]
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll__snprintf]
mov byte [ebp - 0x11d], 0
mov dword [esp + 4], esi
mov dword [esp], str.Mounted_ISO_as__s
call fcn.0043efa9
cmp byte [0x5132f7], 0
mov edx, dword [0x492b24]
lea eax, [ebp - 0x19c]
je 0x454120
mov eax, dword [0x525a68]
mov ecx, dword [ebp + 0xc]
mov dword [esp + 4], edx
mov dword [esp], eax
mov dword [esp + 8], ecx
call fcn.0045139b
test eax, eax
jne 0x45416d
mov dword [esp], str.Failed_to_apply_Windows_To_Go_image
call fcn.0043efa9
cmp dword [0x4e2900], 0
js 0x454156
mov dword [0x4e2900], 0xe0031208
cmp byte [0x5132f7], 0
jne 0x4540b4
call fcn.00451458
jmp 0x4540b4
cmp byte [0x5132f7], 0
jne 0x45417b
call fcn.00451458
cmp dword [ebp + 0x10], 0
je 0x45423e
mov dword [esp], str.Setting_up_EFI_System_Partition
call fcn.0043efa9
mov edx, dword [0x4e2230]
mov eax, 0x400
cmp edx, 0x400
jbe 0x4541ae
mov eax, 0x1000
cmp edx, eax
cmovae eax, edx
mov dword [esp + 0x18], 0x30003
mov dword [esp + 0x14], 0x4b6609
mov dword [esp + 0x10], 1
mov dword [esp + 0xc], eax
mov eax, dword [0x4e2210]
mov edx, dword [0x4e2214]
mov dword [esp], ebx
mov dword [esp + 4], eax
mov dword [esp + 8], edx
call fcn.0040fe66
test eax, eax
jne 0x4541fa
mov dword [esp], str.Could_not_format_EFI_System_Partition
call fcn.0043efa9
jmp 0x4540b4
mov dword [esp], 0xc8
xor esi, esi
call dword [sym.imp.KERNEL32.DLL_Sleep]
push ecx
mov dword [esp + 0xc], esi
mov eax, dword [0x4e2210]
mov edx, dword [0x4e2214]
mov dword [esp], ebx
mov dword [esp + 4], eax
mov dword [esp + 8], edx
call fcn.0040b740
mov ebx, eax
test eax, eax
jne 0x454240
mov dword [0x4e2900], 0xe003120b
jmp 0x4540b4
xor ebx, ebx
mov dword [esp], str.Enabling_boot_using_command:
mov edi, ebx
call fcn.0043efa9
cmp dword [ebp + 0x10], 0
cmove edi, dword [ebp + 0xc]
mov eax, str.UEFI
cmp byte [0x513304], 0
je 0x454278
cmp byte [0x513305], 0
mov eax, str.BIOS
mov edx, 0x4b655e
cmovne eax, edx
mov dword [esp + 0x18], edi
lea esi, [ebp - 0x11c]
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0xc], 0x5266c0
mov dword [esp + 0x10], eax
mov dword [esp + 8], str._s_bcdboot.exe__sWindows__v__f__s__s__s
mov dword [esp + 4], 0x104
mov dword [esp], esi
call dword [sym.imp.msvcrt.dll__snprintf]
mov byte [ebp - 0x19], 0
mov dword [esp + 4], 0x25
mov dword [esp], esi
call sub.msvcrt.dll_strchr
test eax, eax
je 0x4542d3
mov dword [esp + 8], 0x2cd
jmp 0x454420
mov dword [esp], esi
call fcn.0043efa9
xor edx, edx
mov dword [esp + 0xc], edx
mov eax, dword [0x526ca4]
mov dword [esp + 4], 0x5266c0
mov dword [esp + 8], eax
mov dword [esp], esi
call fcn.0043dd22
test eax, eax
je 0x454314
mov dword [esp], str.Failed_to_enable_boot
call fcn.0043efa9
mov dword [0x4e2900], 0xe0031208
mov dword [esp], edi
call fcn.004538c6
xor eax, eax
mov dword [esp + 0x18], eax
mov eax, dword [0x52a8ec]
mov dword [esp + 0x10], eax
xor eax, eax
mov dword [esp + 0x14], eax
mov eax, dword [0x52a8e4]
add eax, eax
add eax, dword [0x52a8e8]
mov dword [esp], 7
mov dword [esp + 8], eax
xor eax, eax
mov dword [esp + 0xc], eax
mov dword [esp + 4], 0xcc3
call fcn.0044d5f3
test byte [0x52b148], 0x10
je 0x4543c9
mov dword [esp], str.Setting_the_targets_internal_drives_offline_using_command:
lea esi, [ebp - 0x11c]
call fcn.0043efa9
mov eax, dword [0x52b140]
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 8], str.dism__Image:_s__Apply_Unattend:_s
mov dword [esp + 0xc], eax
mov dword [esp + 4], 0x104
mov dword [esp], esi
call dword [sym.imp.msvcrt.dll__snprintf]
mov byte [ebp - 0x19], 0
mov dword [esp], esi
call fcn.0043efa9
xor eax, eax
mov dword [esp + 0xc], eax
mov eax, dword [0x526ca4]
mov dword [esp], esi
mov dword [esp + 8], eax
xor eax, eax
mov dword [esp + 4], eax
call fcn.0043dd22
mov dword [esp], str.Disabling_use_of_the_Windows_Recovery_Environment_using_command:
lea esi, [ebp - 0x11c]
call fcn.0043efa9
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], 0x5266c0
mov dword [esp + 8], str._s_bcdedit.exe__store__sEFIMicrosoftBootBCD__set_default_recoveryenabled_no
mov dword [esp + 4], 0x104
mov dword [esp], esi
call dword [sym.imp.msvcrt.dll__snprintf]
mov byte [ebp - 0x19], 0
mov dword [esp + 4], 0x25
mov dword [esp], esi
call sub.msvcrt.dll_strchr
test eax, eax
je 0x454435
mov dword [esp + 8], 0x2e9
mov dword [esp + 4], str.wue.c
mov dword [esp], str.strchr_cmd______NULL
call dword [0x494088]
mov dword [esp], esi
call fcn.0043efa9
xor ecx, ecx
mov dword [esp + 0xc], ecx
mov eax, dword [0x526ca4]
mov dword [esp], esi
xor esi, esi
mov dword [esp + 8], eax
mov dword [esp + 4], 0x5266c0
call fcn.0043dd22
mov eax, dword [0x52a8ec]
xor edx, edx
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
mov dword [esp + 4], 0xcc3
mov dword [esp], 7
call fcn.0044d5f3
cmp dword [ebp + 0x10], 0
jne 0x45449a
mov eax, 1
jmp 0x4544b8
mov dword [esp], 0xc8
call dword [sym.imp.KERNEL32.DLL_Sleep]
xor edx, edx
push eax
mov dword [esp + 4], edx
mov dword [esp], ebx
call fcn.0040b83f
jmp 0x454493
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret