Function at 0x457680
Capabilities:
Create thread
Manipulate boot configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1b0
mov eax, dword [0x4f22ec]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, edx
push str.Windows_To_Go_mode_selected
mov dword [ebp - 0x1a0], ecx
xor esi, esi
mov dword [ebp - 0x19c], edi
call fcn.004407e0
add esp, 4
test edi, edi
je 0x4576ec
cmp dword [0x543778], 0xc
je 0x4576ec
cmp dword [0x52b88c], 0x3a98
jae 0x4576ec
mov dword [0x4fa958], 0xc0030032
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00491940
mov esp, ebp
pop ebp
ret
mov cl, byte [0x543637]
test cl, cl
jne 0x45777e
mov ecx, dword [0x4fad9c]
call fcn.004549f0
mov edi, eax
test edi, edi
jne 0x457735
push str.Could_not_mount_ISO_for_Windows_To_Go_installation
call fcn.004407e0
add esp, 4
mov dword [0x4fa958], 0xe0031208
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00491940
mov esp, ebp
pop ebp
ret
mov eax, dword [0x52b940]
shl eax, 6
add eax, 0x543362
push eax
push edi
push 0x4da668
lea eax, [ebp - 0x194]
push 0x80
push eax
call fcn.00403820
add esp, 0x14
mov byte [ebp - 0x115], 0
push edi
push str.Mounted_ISO_as__s
call fcn.004407e0
mov cl, byte [0x543637]
add esp, 8
mov edi, dword [ebp - 0x19c]
test cl, cl
mov dword [ebp - 0x198], esi
lea eax, [ebp - 0x194]
mov dword [ebp - 0x1ac], esi
cmovne eax, dword [0x4fad9c]
push 0
mov dword [ebp - 0x1a8], eax
mov eax, dword [0x4f4348]
push 0
mov dword [ebp - 0x1b0], eax
lea eax, [ebp - 0x1b0]
push eax
push 0x4544a0
push 0
push 0
mov dword [ebp - 0x1a4], ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x52b93c], eax
test eax, eax
jne 0x4577e2
push str.Unable_to_start_apply_image_thread
call fcn.004407e0
add esp, 4
jmp 0x457822
push dword [0x4f431c]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push 0xffffffffffffffff
push dword [0x52b93c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x198]
push eax
push dword [0x52b93c]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
neg eax
mov dword [0x52b93c], esi
sbb eax, eax
and dword [ebp - 0x198], eax
jne 0x457867
push str.Failed_to_apply_Windows_To_Go_image
call fcn.004407e0
mov eax, dword [0x4fa958]
add esp, 4
test eax, 0x80000000
mov ecx, 0xe0031208
cmove eax, ecx
cmp byte [0x543637], 0
mov dword [0x4fa958], eax
jne 0x457854
call fcn.00454d80
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00491940
mov esp, ebp
pop ebp
ret
cmp byte [0x543637], 0
jne 0x457875
call fcn.00454d80
test edi, edi
je 0x45795e
push str.Setting_up_EFI_System_Partition
call fcn.004407e0
mov edx, dword [0x543770]
add esp, 4
cmp edx, 0x400
ja 0x45789f
mov edx, 0x400
jmp 0x4578a9
mov eax, 0x1000
cmp edx, eax
cmovbe edx, eax
mov esi, dword [ebp - 0x1a0]
lea eax, [esi - 0x80]
cmp eax, 0x80
ja 0x45793e
test edx, edx
je 0x4578c8
lea eax, [edx - 1]
test edx, eax
jne 0x45793e
push 0x30003
push 0x4ce59a
push dword [0x4c9ecc]
mov ecx, esi
mov dword [0x52beac], 1
push dword [0x54390c]
push dword [0x543908]
call fcn.004121d0
add esp, 0x14
test eax, eax
je 0x45793e
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [0x54390c]
mov ecx, esi
push dword [0x543908]
call fcn.00408010
mov esi, eax
add esp, 8
test esi, esi
jne 0x45795e
mov dword [0x4fa958], 0xe003120b
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00491940
mov esp, ebp
pop ebp
ret
push str.Could_not_format_EFI_System_Partition
call fcn.004407e0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00491940
mov esp, ebp
pop ebp
ret
push str.Enabling_boot_using_command:
call fcn.004407e0
add esp, 4
cmp byte [0x543644], 0
je 0x45798a
cmp byte [0x543645], 0
mov eax, 0x4e9f14
mov ecx, str.BIOS
cmove eax, ecx
jmp 0x45798f
mov eax, str.UEFI
cmp dword [ebp - 0x19c], 0
mov edi, ebx
cmovne edi, esi
push edi
push eax
push ebx
push 0x542d60
push str._s_bcdboot.exe__sWindows__v__f__s__s__s
lea eax, [ebp - 0x114]
push 0x104
push eax
call fcn.00403820
add esp, 0x1c
mov byte [ebp - 0x11], 0
lea eax, [ebp - 0x114]
push 0x25
push eax
call fcn.00492830
add esp, 8
test eax, eax
je 0x4579ec
push 0x2cd
push str.C:UsersgamerDownloads_rufus72_rufus_7_srcwue.c
push str.strchr_cmd______NULL
call fcn.0049ed6b
add esp, 0xc
lea eax, [ebp - 0x114]
push eax
call fcn.004407e0
add esp, 4
lea ecx, [ebp - 0x114]
mov edx, 0x542d60
push 0
push dword [0x542fb4]
call fcn.0043f6d0
add esp, 8
test eax, eax
je 0x457a31
push str.Failed_to_enable_boot
call fcn.004407e0
add esp, 4
mov dword [0x4fa958], 0xe0031208
mov ecx, edi
call fcn.00456c90
mov ecx, dword [0x540f20]
mov edx, 0xcc3
mov eax, dword [0x540f24]
push 0
push 0
push dword [0x540f28]
lea eax, [ecx + eax*2]
mov ecx, 7
push 0
push eax
call fcn.004510c0
add esp, 0x14
test byte [0x52b948], 0x10
je 0x457ac6
push str.Setting_the_targets_internal_drives_offline_using_command:
call fcn.004407e0
add esp, 4
lea eax, [ebp - 0x114]
push dword [0x52b944]
push ebx
push str.dism__Image:_s__Apply_Unattend:_s
push 0x104
push eax
call fcn.00403820
add esp, 0x14
mov byte [ebp - 0x11], 0
lea eax, [ebp - 0x114]
push eax
call fcn.004407e0
add esp, 4
lea ecx, [ebp - 0x114]
xor edx, edx
push 0
push dword [0x542fb4]
call fcn.0043f6d0
add esp, 8
push str.Disabling_use_of_the_Windows_Recovery_Environment_using_command:
call fcn.004407e0
add esp, 4
lea eax, [ebp - 0x114]
push edi
push 0x542d60
push str._s_bcdedit.exe__store__sEFIMicrosoftBootBCD__set_default_recoveryenabled_no
push 0x104
push eax
call fcn.00403820
add esp, 0x14
mov byte [ebp - 0x11], 0
lea eax, [ebp - 0x114]
push 0x25
push eax
call fcn.00492830
add esp, 8
test eax, eax
je 0x457b22
push 0x2e9
push str.C:UsersgamerDownloads_rufus72_rufus_7_srcwue.c
push str.strchr_cmd______NULL
call fcn.0049ed6b
add esp, 0xc
lea eax, [ebp - 0x114]
push eax
call fcn.004407e0
add esp, 4
lea ecx, [ebp - 0x114]
mov edx, 0x542d60
push 0
push dword [0x542fb4]
call fcn.0043f6d0
mov eax, dword [0x540f28]
mov edx, 0xcc3
push 0
push 0
push eax
push 0
push eax
mov ecx, 7
call fcn.004510c0
add esp, 0x1c
cmp dword [ebp - 0x19c], 0
je 0x457bb3
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
test esi, esi
je 0x457bb3
push 0
push esi
push 0xa
call dword [sym.imp.KERNEL32.dll_DefineDosDeviceA]
test eax, eax
jne 0x457ba5
call fcn.00440bb0
push eax
push esi
push str.Could_not_unmount__s:__s
call fcn.004407e0
add esp, 0xc
jmp 0x457bb3
push esi
push str.Successfully_unmounted__s
call fcn.004407e0
add esp, 8
mov ecx, dword [ebp - 8]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00491940
mov esp, ebp
pop ebp
ret