Function at 0x450e32
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.0043d9e0
cmp dword [ebp + 0x10], 0
je 0x450e74
cmp dword [0x4df238], 0xc
je 0x450e74
cmp dword [0x524a2c], 0x3a97
ja 0x450e74
mov dword [0x4dfd80], 0xc0030032
jmp 0x450eb0
cmp byte [0x51076f], 0
jne 0x450f0a
xor edi, edi
mov dword [esp + 4], edi
mov eax, dword [0x522ec8]
mov dword [esp], eax
call fcn.0044e201
mov esi, eax
test eax, eax
jne 0x450eb7
mov dword [esp], str.Could_not_mount_ISO_for_Windows_To_Go_installation
call fcn.0043d9e0
mov dword [0x4dfd80], 0xe0031208
xor eax, eax
jmp 0x4512e4
mov eax, dword [0x528584]
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 0x4b3574
shl eax, 6
mov dword [esp + 8], 0xffffffff
add eax, 0x5104a2
mov dword [esp + 4], pe_nt_image_headers32
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x19c]
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll__snprintf_s]
mov byte [ebp - 0x11d], 0
mov dword [esp + 4], esi
mov dword [esp], str.Mounted_ISO_as__s
call fcn.0043d9e0
cmp byte [0x51076f], 0
mov edx, dword [0x48fcc4]
lea eax, [ebp - 0x19c]
je 0x450f24
mov eax, dword [0x522ec8]
mov ecx, dword [ebp + 0xc]
mov dword [esp + 4], edx
mov dword [esp], eax
mov dword [esp + 8], ecx
call fcn.0044e099
test eax, eax
jne 0x450f71
mov dword [esp], str.Failed_to_apply_Windows_To_Go_image
call fcn.0043d9e0
cmp dword [0x4dfd80], 0
js 0x450f5a
mov dword [0x4dfd80], 0xe0031208
cmp byte [0x51076f], 0
jne 0x450eb0
call fcn.0044e156
jmp 0x450eb0
cmp byte [0x51076f], 0
jne 0x450f7f
call fcn.0044e156
cmp dword [ebp + 0x10], 0
je 0x451052
mov dword [esp], str.Setting_up_EFI_System_Partition
call fcn.0043d9e0
mov edx, dword [0x4df230]
mov eax, 0x400
cmp edx, 0x400
jbe 0x450fb2
mov eax, 0x1000
cmp edx, eax
cmovae eax, edx
mov dword [esp + 0x18], 0x30003
mov dword [esp + 0x14], 0x4b38c3
mov dword [esp + 0x10], 1
mov dword [esp + 0xc], eax
imul eax, dword [0x4df20c], 0x58
mov edx, dword [eax + 0x4df294]
mov eax, dword [eax + 0x4df290]
mov dword [esp], ebx
mov dword [esp + 4], eax
mov dword [esp + 8], edx
call fcn.0040f79b
test eax, eax
jne 0x451006
mov dword [esp], str.Could_not_format_EFI_System_Partition
call fcn.0043d9e0
jmp 0x450eb0
mov dword [esp], 0xc8
xor esi, esi
call dword [sym.imp.KERNEL32.DLL_Sleep]
push ecx
mov dword [esp + 0xc], esi
imul eax, dword [0x4df20c], 0x58
mov edx, dword [eax + 0x4df294]
mov eax, dword [eax + 0x4df290]
mov dword [esp], ebx
mov dword [esp + 4], eax
mov dword [esp + 8], edx
call fcn.0040b17a
mov ebx, eax
test eax, eax
jne 0x451054
mov dword [0x4dfd80], 0xe003120b
jmp 0x450eb0
xor ebx, ebx
mov dword [esp], str.Enabling_boot_using_command:
mov edi, ebx
call fcn.0043d9e0
cmp dword [ebp + 0x10], 0
cmove edi, dword [ebp + 0xc]
mov eax, str.UEFI
cmp byte [0x51077c], 0
je 0x45108c
cmp byte [0x51077d], 0
mov eax, str.BIOS
mov edx, 0x4b3818
cmovne eax, edx
mov dword [esp + 0x1c], edi
lea esi, [ebp - 0x11c]
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x10], 0x523b20
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], str._s_bcdboot.exe__sWindows__v__f__s__s__s
mov dword [esp + 8], 0xffffffff
mov dword [esp + 4], 0x104
mov dword [esp], esi
call dword [sym.imp.msvcrt.dll__snprintf_s]
mov byte [ebp - 0x19], 0
mov dword [esp + 4], 0x25
mov dword [esp], esi
call sub.msvcrt.dll_strchr
test eax, eax
je 0x4510ef
mov dword [esp + 8], 0x2cd
jmp 0x45124c
mov dword [esp], esi
call fcn.0043d9e0
xor edx, edx
mov dword [esp + 0xc], edx
mov eax, dword [0x524104]
mov dword [esp + 4], 0x523b20
mov dword [esp + 8], eax
mov dword [esp], esi
call fcn.0043c721
test eax, eax
je 0x451130
mov dword [esp], str.Failed_to_enable_boot
call fcn.0043d9e0
mov dword [0x4dfd80], 0xe0031208
mov dword [esp], edi
call fcn.004506f9
xor eax, eax
mov dword [esp + 0x18], eax
mov eax, dword [0x527d2c]
mov dword [esp + 0x10], eax
xor eax, eax
mov dword [esp + 0x14], eax
mov eax, dword [0x527d24]
add eax, eax
add eax, dword [0x527d28]
mov dword [esp], 7
mov dword [esp + 8], eax
xor eax, eax
mov dword [esp + 0xc], eax
mov dword [esp + 4], 0xcc3
call fcn.0044a2e0
test byte [0x528588], 0x10
je 0x4511ed
mov dword [esp], str.Setting_the_targets_internal_drives_offline_using_command:
lea esi, [ebp - 0x11c]
call fcn.0043d9e0
mov eax, dword [0x528580]
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0xc], str.dism__Image:_s__Apply_Unattend:_s
mov dword [esp + 0x10], eax
mov dword [esp + 8], 0xffffffff
mov dword [esp + 4], 0x104
mov dword [esp], esi
call dword [sym.imp.msvcrt.dll__snprintf_s]
mov byte [ebp - 0x19], 0
mov dword [esp], esi
call fcn.0043d9e0
xor eax, eax
mov dword [esp + 0xc], eax
mov eax, dword [0x524104]
mov dword [esp], esi
mov dword [esp + 8], eax
xor eax, eax
mov dword [esp + 4], eax
call fcn.0043c721
mov dword [esp], str.Disabling_use_of_the_Windows_Recovery_Environment_using_command:
lea esi, [ebp - 0x11c]
call fcn.0043d9e0
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], 0x523b20
mov dword [esp + 0xc], str._s_bcdedit.exe__store__sEFIMicrosoftBootBCD__set_default_recoveryenabled_no
mov dword [esp + 8], 0xffffffff
mov dword [esp + 4], 0x104
mov dword [esp], esi
call dword [sym.imp.msvcrt.dll__snprintf_s]
mov byte [ebp - 0x19], 0
mov dword [esp + 4], 0x25
mov dword [esp], esi
call sub.msvcrt.dll_strchr
test eax, eax
je 0x451261
mov dword [esp + 8], 0x2e9
mov dword [esp + 4], str.wue.c
mov dword [esp], str.strchr_cmd______NULL
call dword [0x491228]
mov dword [esp], esi
call fcn.0043d9e0
xor ecx, ecx
mov dword [esp + 0xc], ecx
mov eax, dword [0x524104]
mov dword [esp], esi
xor esi, esi
mov dword [esp + 8], eax
mov dword [esp + 4], 0x523b20
call fcn.0043c721
mov eax, dword [0x527d2c]
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.0044a2e0
cmp dword [ebp + 0x10], 0
jne 0x4512c6
mov eax, 1
jmp 0x4512e4
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.0040b279
jmp 0x4512bf
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret