Function at 0x14006e240
Capabilities:
Create thread
Manipulate boot configuration

Disassembly:
push rbp
push rbx
push rsi
push r12
push r14
push r15
lea rbp, [rsp - 0x108]
sub rsp, 0x208
mov rax, qword [0x140193440]
xor rax, rsp
mov qword [rbp + 0xf0], rax
mov esi, ecx
xor r12d, r12d
lea rcx, str.Windows_To_Go_mode_selected
mov ebx, r12d
mov r14d, r8d
mov r15, rdx
call fcn.14004f2f0
test r14d, r14d
je 0x14006e2af
cmp dword [0x1401e9098], 0xc
je 0x14006e2af
cmp dword [0x1401d050c], 0x3a98
jae 0x14006e2af
mov dword [0x14019f120], 0xc0030032
xor eax, eax
jmp 0x14006e82a
movzx ecx, byte [0x1401e8f4f]
mov qword [rsp + 0x200], rdi
test cl, cl
jne 0x14006e350
mov rcx, qword [0x14019f588]
xor edx, edx
call fcn.14006ab70
mov rdi, rax
test rax, rax
jne 0x14006e2f9
lea rcx, str.Could_not_mount_ISO_for_Windows_To_Go_installation
call fcn.14004f2f0
xor eax, eax
mov dword [0x14019f120], 0xe0031208
jmp 0x14006e822
movsxd rax, dword [0x1401a0498]
lea rcx, [0x1401e8c82]
shl rax, 6
lea r9, [0x140163980]
add rax, rcx
mov edx, 0x80
mov qword [rsp + 0x28], rax
lea rcx, [rbp + 0x70]
mov r8, 0xffffffffffffffff
mov qword [rsp + 0x20], rdi
call fcn.140004fd0
mov rdx, rdi
mov byte [rbp + 0xef], bl
lea rcx, str.Mounted_ISO_as__s
call fcn.14004f2f0
movzx ecx, byte [0x1401e8f4f]
test cl, cl
mov qword [rsp + 0x28], r12
lea rax, [rbp + 0x70]
mov dword [rsp + 0x40], r12d
cmovne rax, qword [0x14019f588]
lea r9, [rsp + 0x48]
mov qword [rsp + 0x50], rax
lea r8, [0x14006a530]
mov eax, dword [0x140196f9c]
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x48], eax
mov dword [rsp + 0x4c], r12d
mov qword [rsp + 0x58], r15
mov dword [rsp + 0x20], r12d
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [0x1401d05c8], rax
test rax, rax
jne 0x14006e3b6
lea rcx, str.Unable_to_start_apply_image_thread
call fcn.14004f2f0
jmp 0x14006e3ff
mov edx, dword [0x140196f64]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov rcx, qword [0x1401d05c8]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [0x1401d05c8]
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
mov eax, r12d
je 0x14006e3f4
mov eax, dword [rsp + 0x40]
mov qword [0x1401d05c8], r12
test eax, eax
jne 0x14006e474
lea rcx, str.Failed_to_apply_Windows_To_Go_image
call fcn.14004f2f0
test dword [0x14019f120], 0x80000000
jne 0x14006e421
mov dword [0x14019f120], 0xe0031208
cmp byte [0x1401e8f4f], bl
jne 0x14006e46d
mov rcx, qword [0x14019cca0]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14006e467
xor r8d, r8d
xor edx, edx
call qword [sym.imp.VirtDisk.dll_DetachVirtualDisk]
mov rcx, qword [0x14019cca0]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14006e467
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x14019cca0], 0xffffffffffffffff
mov byte [0x1401e5bd0], bl
xor eax, eax
jmp 0x14006e822
cmp byte [0x1401e8f4f], bl
jne 0x14006e4c0
mov rcx, qword [0x14019cca0]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14006e4ba
xor r8d, r8d
xor edx, edx
call qword [sym.imp.VirtDisk.dll_DetachVirtualDisk]
mov rcx, qword [0x14019cca0]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14006e4ba
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x14019cca0], 0xffffffffffffffff
mov byte [0x1401e5bd0], bl
test r14d, r14d
je 0x14006e5a9
lea rcx, str.Setting_up_EFI_System_Partition
call fcn.14004f2f0
mov eax, dword [0x1401e9090]
mov r8d, 0x400
cmp eax, r8d
jbe 0x14006e4f4
mov ecx, 0x1000
mov r8d, eax
cmp eax, ecx
cmovbe r8d, ecx
movsxd rax, dword [0x1401e9074]
lea rbx, [0x1401e9080]
imul rcx, rax, 0x58
lea eax, [rsi - 0x80]
cmp eax, 0x80
ja 0x14006e58c
test r8d, r8d
je 0x14006e51e
lea eax, [r8 - 1]
test r8d, eax
jne 0x14006e58c
mov rdx, qword [rcx + rbx + 0x70]
lea rax, [0x1401564ce]
mov r9, qword [0x14014ffd8]
mov ecx, esi
mov dword [rsp + 0x28], 0x30003
mov qword [rsp + 0x20], rax
mov dword [0x1401d0b60], 1
call fcn.140016630
test eax, eax
je 0x14006e596
mov ecx, 0xc8
call qword [sym.imp.KERNEL32.dll_Sleep]
movsxd rax, dword [0x1401e9074]
mov ecx, esi
imul rdx, rax, 0x58
mov rdx, qword [rdx + rbx + 0x70]
call fcn.14000ad10
mov rbx, rax
test rax, rax
jne 0x14006e5a9
mov dword [0x14019f120], 0xe003120b
jmp 0x14006e822
mov dword [0x14019f120], 0xc0030057
lea rcx, str.Could_not_format_EFI_System_Partition
call fcn.14004f2f0
xor eax, eax
jmp 0x14006e822
lea rcx, str.Enabling_boot_using_command:
call fcn.14004f2f0
cmp byte [0x1401e8f5c], r12b
je 0x14006e5d9
cmp byte [0x1401e8f5d], r12b
lea rcx, [0x1401742b0]
lea rax, str.BIOS
cmovne rax, rcx
jmp 0x14006e5e0
lea rax, str.UEFI
test r14d, r14d
lea rsi, [0x1401e8560]
mov rdi, r15
lea r9, str._s_bcdboot.exe__sWindows__v__f__s__s__s
cmovne rdi, rbx
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x38], rdi
mov edx, 0x104
mov qword [rsp + 0x30], rax
mov r8, 0xffffffffffffffff
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], rsi
call fcn.140004fd0
mov edx, 0x25
mov byte [rbp + 0x63], r12b
lea rcx, [rsp + 0x60]
call fcn.1400b41b4
test rax, rax
je 0x14006e653
mov r8d, 0x2d4
lea rdx, str.D:_a_rufus_rufus_srcwue.c
lea rcx, str.strchr_cmd______NULL
call fcn.1400fbe54
lea rcx, [rsp + 0x60]
call fcn.14004f2f0
mov r8d, dword [0x1401e87c0]
lea rcx, [rsp + 0x60]
xor r9d, r9d
mov rdx, rsi
call fcn.14004d560
test eax, eax
je 0x14006e68e
lea rcx, str.Failed_to_enable_boot
call fcn.14004f2f0
mov dword [0x14019f120], 0xe0031208
mov rcx, rdi
call fcn.14006d4a0
mov ecx, dword [0x1401e66e0]
mov edx, 0xcc3
mov eax, dword [0x1401e66e4]
mov r9d, dword [0x1401e66e8]
mov dword [rsp + 0x20], r12d
lea r8d, [rcx + rax*2]
mov ecx, 7
call fcn.140066570
test byte [0x1401a0490], 0x10
je 0x14006e728
lea rcx, str.Setting_the_targets_internal_drives_offline_using_command:
call fcn.14004f2f0
mov rax, qword [0x1401d05d0]
lea r9, str.dism__Image:_s__Apply_Unattend:_s
mov qword [rsp + 0x28], rax
lea rcx, [rsp + 0x60]
mov edx, 0x104
mov qword [rsp + 0x20], r15
mov r8, 0xffffffffffffffff
call fcn.140004fd0
lea rcx, [rsp + 0x60]
mov byte [rbp + 0x63], r12b
call fcn.14004f2f0
mov r8d, dword [0x1401e87c0]
lea rcx, [rsp + 0x60]
xor r9d, r9d
xor edx, edx
call fcn.14004d560
lea rcx, str.Disabling_use_of_the_Windows_Recovery_Environment_using_command:
call fcn.14004f2f0
lea r9, str._s_bcdedit.exe__store__sEFIMicrosoftBootBCD__set_default_recoveryenabled_no
mov qword [rsp + 0x28], rdi
mov edx, 0x104
mov qword [rsp + 0x20], rsi
mov r8, 0xffffffffffffffff
lea rcx, [rsp + 0x60]
call fcn.140004fd0
mov edx, 0x25
mov byte [rbp + 0x63], r12b
lea rcx, [rsp + 0x60]
call fcn.1400b41b4
test rax, rax
je 0x14006e78c
mov r8d, 0x2f0
lea rdx, str.D:_a_rufus_rufus_srcwue.c
lea rcx, str.strchr_cmd______NULL
call fcn.1400fbe54
lea rcx, [rsp + 0x60]
call fcn.14004f2f0
mov r8d, dword [0x1401e87c0]
lea rcx, [rsp + 0x60]
xor r9d, r9d
mov rdx, rsi
call fcn.14004d560
mov r8d, dword [0x1401e66e8]
mov edx, 0xcc3
mov r9d, r8d
mov dword [rsp + 0x20], r12d
mov ecx, 7
call fcn.140066570
test r14d, r14d
je 0x14006e81d
mov ecx, 0xc8
call qword [sym.imp.KERNEL32.dll_Sleep]
test rbx, rbx
je 0x14006e81d
xor r8d, r8d
mov rdx, rbx
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_DefineDosDeviceA]
test eax, eax
jne 0x14006e80e
call fcn.14004fba0
mov r8, rax
lea rcx, str.Could_not_unmount__s:__s
mov rdx, rbx
call fcn.14004f2f0
jmp 0x14006e81d
mov rdx, rbx
lea rcx, str.Successfully_unmounted__s
call fcn.14004f2f0
mov eax, 1
mov rdi, qword [rsp + 0x200]
mov rcx, qword [rbp + 0xf0]
xor rcx, rsp
call fcn.1400b2a30
add rsp, 0x208
pop r15
pop r14
pop r12
pop rsi
pop rbx
pop rbp
ret