Function at 0x14000157c
Capabilities:
Manipulate boot configuration

Disassembly:
push r15
mov rax, 7
sub rsp, 8
mov qword [rsp], 0
dec rax
jne 0x140001585
sub rsp, 0x28
mov rcx, qword [0x1400346c8]
push qword [0x140034aa0]
sub rsp, 0x28
call fcn.140018160
add rsp, 0x28
movabs rcx, str.WimBoot.Sdi
sub rsp, 0x28
call fcn.140018160
add rsp, 0x28
add qword [0x140034aa0], 2
lea rcx, [rsp + 0x30]
pop rdx
call fcn.140018090
mov rax, qword [0x140034aa0]
push rax
sub rsp, 8
push rax
movabs rdx, 2
mov rcx, qword [rsp + 0x40]
pop r8
sub rsp, 0x20
call fcn.140013be0
add rsp, 0x28
lea rcx, [rsp + 0x38]
pop rdx
call fcn.140018090
mov rax, qword [0x140034aa0]
push rax
sub rsp, 8
push rax
sub rsp, 8
mov rcx, qword [rsp + 0x48]
sub rsp, 0x20
call fcn.140013c80
add rsp, 0x28
mov r8, rax
movabs rdx, 3
mov rcx, qword [rsp + 0x40]
pop r9
sub rsp, 0x20
call fcn.140013ca0
add rsp, 0x28
lea rcx, [rsp + 0x40]
pop rdx
call fcn.140018090
mov rcx, qword [0x1400346c8]
push qword [0x140034aa0]
sub rsp, 0x28
call fcn.140018160
add rsp, 0x28
movabs rcx, str.WimRecoveryPE.wim
sub rsp, 0x28
call fcn.140018160
add rsp, 0x28
lea rcx, [rsp + 0x48]
pop rdx
call fcn.140018090
mov rax, qword [0x140034aa0]
push rax
sub rsp, 8
push rax
movabs rdx, 2
mov rcx, qword [rsp + 0x58]
pop r8
sub rsp, 0x20
call fcn.140013be0
add rsp, 0x28
lea rcx, [rsp + 0x50]
pop rdx
call fcn.140018090
push qword [0x140034aa0]
movabs rcx, 0x14001e292
sub rsp, 0x28
call fcn.140018160
add rsp, 0x28
mov rcx, qword [rsp + 0x50]
sub rsp, 0x28
call fcn.140018160
add rsp, 0x28
movabs rcx, 0x14001e29a
sub rsp, 0x28
call fcn.140018160
add rsp, 0x28
mov rdx, qword [0x140034aa0]
push rdx
push rdx
sub rsp, 8
mov rcx, qword [rsp + 0x60]
sub rsp, 0x20
call fcn.140013c80
add rsp, 0x28
mov r8, rax
movabs rdx, 3
mov rcx, qword [rsp + 0x58]
pop r9
sub rsp, 0x20
call fcn.140013ca0
add rsp, 0x20
pop rax
lea rcx, [rsp + 0x58]
pop rdx
call fcn.140018090
push 3
movabs rax, 0x14001e028
push rax
movabs rax, str._delete_11111111_1111_1111_1111_111111111112__cleanup__f
push rax
movabs rax, str.bcdedit.exe
mov rcx, rax
pop rdx
pop r8
pop r9
call fcn.1400083f0
push 3
movabs rax, 0x14001e028
push rax
movabs rax, str._delete_11111111_1111_1111_1111_111111111111__cleanup__f
push rax
movabs rax, str.bcdedit.exe
mov rcx, rax
pop rdx
pop r8
pop r9
call fcn.1400083f0
push 3
movabs rax, 0x14001e028
push rax
movabs rax, str._create_11111111_1111_1111_1111_111111111112__device__d__PEBoot_
push rax
movabs rax, str.bcdedit.exe
mov rcx, rax
pop rdx
pop r8
pop r9
call fcn.1400083f0
push qword [0x140034aa0]
sub rsp, 8
push 3
movabs rax, 0x14001e028
push rax
push qword [0x140034aa0]
movabs rcx, str._set_11111111_1111_1111_1111_111111111112_ramdisksdidevice_partition
sub rsp, 0x28
call fcn.140018160
add rsp, 0x28
mov rcx, qword [rsp + 0x58]
sub rsp, 0x28
call fcn.140018160
add rsp, 0x28
add qword [0x140034aa0], 2
movabs rax, str.bcdedit.exe
push rax
mov rdx, qword [0x140034ac0]
add qword [rsp + 8], rdx
pop rcx
pop rdx
pop r8
pop r9
sub rsp, 0x20
call fcn.1400083f0
add rsp, 0x28
pop qword [0x140034aa0]
push qword [0x140034aa0]
sub rsp, 8
push 3
movabs rax, 0x14001e028
push rax
push qword [0x140034aa0]
movabs rcx, str._set_11111111_1111_1111_1111_111111111112_ramdisksdipath
sub rsp, 0x28
call fcn.140018160
add rsp, 0x28
mov rcx, qword [rsp + 0x60]
sub rsp, 0x28
call fcn.140018160
add rsp, 0x28
add qword [0x140034aa0], 2
movabs rax, str.bcdedit.exe
push rax
mov rdx, qword [0x140034ac0]
add qword [rsp + 8], rdx
pop rcx
pop rdx
pop r8
pop r9
sub rsp, 0x20
call fcn.1400083f0
add rsp, 0x28
pop qword [0x140034aa0]
push 3
movabs rax, 0x14001e028
push rax
movabs rax, str._create_11111111_1111_1111_1111_111111111111__application_osloader__d__PEBoot_
push rax
movabs rax, str.bcdedit.exe
mov rcx, rax
pop rdx
pop r8
pop r9
call fcn.1400083f0
push qword [0x140034aa0]
sub rsp, 8
push 3
movabs rax, 0x14001e028
push rax
push qword [0x140034aa0]
movabs rcx, 0x14001f338
sub rsp, 0x28
call fcn.140018160
add rsp, 0x28
mov rcx, qword [rsp + 0x78]
sub rsp, 0x28
call fcn.140018160
add rsp, 0x28
movabs rcx, str._11111111_1111_1111_1111_111111111112_
sub rsp, 0x28
call fcn.140018160
add rsp, 0x28
add qword [0x140034aa0], 2
movabs rax, str.bcdedit.exe
push rax
mov rdx, qword [0x140034ac0]
add qword [rsp + 8], rdx
pop rcx
pop rdx
pop r8
pop r9
sub rsp, 0x20
call fcn.1400083f0
add rsp, 0x28
pop qword [0x140034aa0]
push qword [0x140034aa0]
sub rsp, 8
push 3
movabs rax, 0x14001e028
push rax
push qword [0x140034aa0]
movabs rcx, str._set_11111111_1111_1111_1111_111111111111_osdevice__ramdisk
sub rsp, 0x28
call fcn.140018160
add rsp, 0x28
mov rcx, qword [rsp + 0x78]
sub rsp, 0x28
call fcn.140018160
add rsp, 0x28
movabs rcx, str._11111111_1111_1111_1111_111111111112_
sub rsp, 0x28
call fcn.140018160
add rsp, 0x28
add qword [0x140034aa0], 2
movabs rax, str.bcdedit.exe
push rax
mov rdx, qword [0x140034ac0]
add qword [rsp + 8], rdx
pop rcx
pop rdx
pop r8
pop r9
sub rsp, 0x20
call fcn.1400083f0
add rsp, 0x28
pop qword [0x140034aa0]
push 3
movabs rax, 0x14001e028
push rax
movabs rax, str._set_11111111_1111_1111_1111_111111111111_systemroot_Windows
push rax
movabs rax, str.bcdedit.exe
mov rcx, rax
pop rdx
pop r8
pop r9
call fcn.1400083f0
push 3
movabs rax, 0x14001e028
push rax
movabs rax, str._set_11111111_1111_1111_1111_111111111111_detecthal_yes
push rax
movabs rax, str.bcdedit.exe
mov rcx, rax
pop rdx
pop r8
pop r9
call fcn.1400083f0
push 3
movabs rax, 0x14001e028
push rax
movabs rax, str._set_11111111_1111_1111_1111_111111111111_winpe_yes
push rax
movabs rax, str.bcdedit.exe
mov rcx, rax
pop rdx
pop r8
pop r9
call fcn.1400083f0
push 3
movabs rax, 0x14001e028
push rax
movabs rax, str._bootsequence_11111111_1111_1111_1111_111111111111
push rax
movabs rax, str.bcdedit.exe
mov rcx, rax
pop rdx
pop r8
pop r9
call fcn.1400083f0
mov rax, 1
mov rcx, rax
call fcn.1400028e4
xor rax, rax
push rax
mov rcx, qword [rsp + 0x48]
sub rsp, 0x28
call fcn.1400182c0
add rsp, 0x28
mov rcx, qword [rsp + 0x40]
sub rsp, 0x28
call fcn.1400182c0
add rsp, 0x28
mov rcx, qword [rsp + 0x30]
sub rsp, 0x28
call fcn.1400182c0
add rsp, 0x28
mov rcx, qword [rsp + 0x38]
sub rsp, 0x28
call fcn.1400182c0
add rsp, 0x28
mov rcx, qword [rsp + 0x58]
sub rsp, 0x28
call fcn.1400182c0
add rsp, 0x28
mov rcx, qword [rsp + 0x50]
sub rsp, 0x28
call fcn.1400182c0
add rsp, 0x28
pop rax
add rsp, 0x60
pop r15
ret