Function at 0x14006ed10
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.14004f910
test r14d, r14d
je 0x14006ed7f
cmp dword [0x1401e9118], 0xc
je 0x14006ed7f
cmp dword [0x1401d048c], 0x3a98
jae 0x14006ed7f
mov dword [0x14019f0a0], 0xc0030032
xor eax, eax
jmp 0x14006f27b
movzx ecx, byte [0x1401e8fcf]
mov qword [rsp + 0x200], rdi
test cl, cl
jne 0x14006ee20
mov rcx, qword [0x14019f508]
xor edx, edx
call fcn.14006b4b0
mov rdi, rax
test rax, rax
jne 0x14006edc9
lea rcx, str.Could_not_mount_ISO_for_Windows_To_Go_installation
call fcn.14004f910
xor eax, eax
mov dword [0x14019f0a0], 0xe0031208
jmp 0x14006f273
movsxd rax, dword [0x1401a0418]
lea rcx, [0x1401e8d02]
shl rax, 6
lea r9, [0x1401638d0]
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.140004960
mov rdx, rdi
mov byte [rbp + 0xef], bl
lea rcx, str.Mounted_ISO_as__s
call fcn.14004f910
movzx ecx, byte [0x1401e8fcf]
test cl, cl
mov qword [rsp + 0x28], r12
lea rax, [rbp + 0x70]
mov dword [rsp + 0x40], r12d
cmovne rax, qword [0x14019f508]
lea r9, [rsp + 0x48]
mov qword [rsp + 0x50], rax
lea r8, [0x14006ae40]
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 [0x1401d0548], rax
test rax, rax
jne 0x14006ee86
lea rcx, str.Unable_to_start_apply_image_thread
call fcn.14004f910
jmp 0x14006eecf
mov edx, dword [0x140196f64]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov rcx, qword [0x1401d0548]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [0x1401d0548]
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
mov eax, r12d
je 0x14006eec4
mov eax, dword [rsp + 0x40]
mov qword [0x1401d0548], r12
test eax, eax
jne 0x14006ef05
lea rcx, str.Failed_to_apply_Windows_To_Go_image
call fcn.14004f910
test dword [0x14019f0a0], 0x80000000
jne 0x14006eef1
mov dword [0x14019f0a0], 0xe0031208
cmp byte [0x1401e8fcf], bl
jne 0x14006eefe
call fcn.14006b900
xor eax, eax
jmp 0x14006f273
cmp byte [0x1401e8fcf], bl
jne 0x14006ef12
call fcn.14006b900
test r14d, r14d
je 0x14006effb
lea rcx, str.Setting_up_EFI_System_Partition
call fcn.14004f910
mov eax, dword [0x1401e9110]
mov r8d, 0x400
cmp eax, r8d
jbe 0x14006ef46
mov ecx, 0x1000
mov r8d, eax
cmp eax, ecx
cmovbe r8d, ecx
movsxd rax, dword [0x1401e90f4]
lea rbx, [0x1401e9100]
imul rcx, rax, 0x58
lea eax, [rsi - 0x80]
cmp eax, 0x80
ja 0x14006efde
test r8d, r8d
je 0x14006ef70
lea eax, [r8 - 1]
test r8d, eax
jne 0x14006efde
mov rdx, qword [rcx + rbx + 0x70]
lea rax, [0x14015644e]
mov r9, qword [0x14014ffa8]
mov ecx, esi
mov dword [rsp + 0x28], 0x30003
mov qword [rsp + 0x20], rax
mov dword [0x1401d0ae0], 1
call fcn.140015e70
test eax, eax
je 0x14006efe8
mov ecx, 0xc8
call qword [sym.imp.KERNEL32.dll_Sleep]
movsxd rax, dword [0x1401e90f4]
mov ecx, esi
imul rdx, rax, 0x58
mov rdx, qword [rdx + rbx + 0x70]
call fcn.14000a5c0
mov rbx, rax
test rax, rax
jne 0x14006effb
mov dword [0x14019f0a0], 0xe003120b
jmp 0x14006f273
mov dword [0x14019f0a0], 0xc0030057
lea rcx, str.Could_not_format_EFI_System_Partition
call fcn.14004f910
xor eax, eax
jmp 0x14006f273
lea rcx, str.Enabling_boot_using_command:
call fcn.14004f910
cmp byte [0x1401e8fdc], r12b
je 0x14006f02b
cmp byte [0x1401e8fdd], r12b
lea rcx, [0x140174240]
lea rax, str.BIOS
cmovne rax, rcx
jmp 0x14006f032
lea rax, str.UEFI
test r14d, r14d
lea rsi, [0x1401e85e0]
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.140004960
mov edx, 0x25
mov byte [rbp + 0x63], r12b
lea rcx, [rsp + 0x60]
call fcn.1400b35d4
test rax, rax
je 0x14006f0a5
mov r8d, 0x2cd
lea rdx, str.D:_a_rufus_rufus_srcwue.c
lea rcx, str.strchr_cmd______NULL
call fcn.1400fc264
lea rcx, [rsp + 0x60]
call fcn.14004f910
mov r8d, dword [0x1401e8840]
lea rcx, [rsp + 0x60]
xor r9d, r9d
mov rdx, rsi
call fcn.14004db10
test eax, eax
je 0x14006f0e0
lea rcx, str.Failed_to_enable_boot
call fcn.14004f910
mov dword [0x14019f0a0], 0xe0031208
mov rcx, rdi
call fcn.14006dfd0
mov ecx, dword [0x1401e6764]
mov edx, 0xcc3
mov eax, dword [0x1401e6760]
mov r9d, dword [0x1401e6768]
mov dword [rsp + 0x20], r12d
lea r8d, [rax + rcx*2]
mov ecx, 7
call fcn.140066e30
test byte [0x1401a0410], 0x10
je 0x14006f17a
lea rcx, str.Setting_the_targets_internal_drives_offline_using_command:
call fcn.14004f910
mov rax, qword [0x1401d0550]
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.140004960
lea rcx, [rsp + 0x60]
mov byte [rbp + 0x63], r12b
call fcn.14004f910
mov r8d, dword [0x1401e8840]
lea rcx, [rsp + 0x60]
xor r9d, r9d
xor edx, edx
call fcn.14004db10
lea rcx, str.Disabling_use_of_the_Windows_Recovery_Environment_using_command:
call fcn.14004f910
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.140004960
mov edx, 0x25
mov byte [rbp + 0x63], r12b
lea rcx, [rsp + 0x60]
call fcn.1400b35d4
test rax, rax
je 0x14006f1de
mov r8d, 0x2e9
lea rdx, str.D:_a_rufus_rufus_srcwue.c
lea rcx, str.strchr_cmd______NULL
call fcn.1400fc264
lea rcx, [rsp + 0x60]
call fcn.14004f910
mov r8d, dword [0x1401e8840]
lea rcx, [rsp + 0x60]
xor r9d, r9d
mov rdx, rsi
call fcn.14004db10
mov r8d, dword [0x1401e6768]
mov edx, 0xcc3
mov r9d, r8d
mov dword [rsp + 0x20], r12d
mov ecx, 7
call fcn.140066e30
test r14d, r14d
je 0x14006f26e
mov ecx, 0xc8
call qword [sym.imp.KERNEL32.dll_Sleep]
test rbx, rbx
je 0x14006f26e
xor r8d, r8d
mov rdx, rbx
lea ecx, [r8 + 0xa]
call qword [sym.imp.KERNEL32.dll_DefineDosDeviceA]
test eax, eax
jne 0x14006f25f
call fcn.140050120
mov r8, rax
lea rcx, str.Could_not_unmount__s:__s
mov rdx, rbx
call fcn.14004f910
jmp 0x14006f26e
mov rdx, rbx
lea rcx, str.Successfully_unmounted__s
call fcn.14004f910
mov eax, 1
mov rdi, qword [rsp + 0x200]
mov rcx, qword [rbp + 0xf0]
xor rcx, rsp
call fcn.1400b1f80
add rsp, 0x208
pop r15
pop r14
pop r12
pop rsi
pop rbx
pop rbp
ret