Function at 0x401223
Capabilities:
Manipulate boot configuration

Disassembly:
push ebx
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push eax
push dword [0x411cec]
push dword [0x411cec]
call fcn.0040b575
mov edx, str.WimBoot.Sdi
push edx
call fcn.0040cd30
add dword [0x411cec], 2
lea eax, [esp + 4]
push eax
call fcn.0040cd90
push dword [0x411cec]
push dword [0x411cec]
push 2
push dword [esp + 0xc]
call fcn.0040aa00
lea eax, [esp + 8]
push eax
call fcn.0040cd90
push dword [0x411cec]
push dword [0x411cec]
push dword [esp + 8]
call fcn.0040aa70
push eax
push 3
push dword [esp + 0x10]
call fcn.0040aaa0
lea eax, [esp + 0xc]
push eax
call fcn.0040cd90
push dword [0x411cec]
push dword [0x411cec]
call fcn.0040b575
mov edx, str.WimRecoveryPE.wim
push edx
call fcn.0040cd30
lea eax, [esp + 0x10]
push eax
call fcn.0040cd90
push dword [0x411cec]
push dword [0x411cec]
push 2
push dword [esp + 0x18]
call fcn.0040aa00
lea eax, [esp + 0x14]
push eax
call fcn.0040cd90
push dword [0x411cec]
mov edx, 0x40f1b4
push edx
call fcn.0040cd30
mov edx, dword [esp + 0x14]
push edx
call fcn.0040cd30
mov edx, 0x40f1b8
push edx
call fcn.0040cd30
push dword [0x411cec]
push dword [0x411cec]
push dword [esp + 0x18]
call fcn.0040aa70
push eax
push 3
push dword [esp + 0x20]
call fcn.0040aaa0
pop eax
lea eax, [esp + 0x18]
push eax
call fcn.0040cd90
push 3
mov eax, 0x40f028
push eax
mov eax, str._c_bcdedit.exe__delete_11111111_1111_1111_1111_111111111112__cleanup__f
push eax
mov eax, 0x40fe4e
push eax
call fcn.00404441
push 3
mov eax, 0x40f028
push eax
mov eax, str._c_bcdedit.exe__delete_11111111_1111_1111_1111_111111111111__cleanup__f
push eax
mov eax, 0x40fe4e
push eax
call fcn.00404441
push 3
mov eax, 0x40f028
push eax
mov eax, str._c_bcdedit.exe__create_11111111_1111_1111_1111_111111111112__device__d__PEBoot_
push eax
mov eax, 0x40fe4e
push eax
call fcn.00404441
push dword [0x411cec]
push 3
mov eax, 0x40f028
push eax
push dword [0x411cec]
mov edx, str._c_bcdedit.exe__set_11111111_1111_1111_1111_111111111112_ramdisksdidevice_partition
push edx
call fcn.0040cd30
mov edx, dword [esp + 0x14]
push edx
call fcn.0040cd30
add dword [0x411cec], 2
mov eax, 0x40fe4e
push eax
mov edx, dword [0x4107ac]
add dword [esp + 4], edx
call fcn.00404441
pop dword [0x411cec]
push dword [0x411cec]
push 3
mov eax, 0x40f028
push eax
push dword [0x411cec]
mov edx, str._c_bcdedit.exe__set_11111111_1111_1111_1111_111111111112_ramdisksdipath
push edx
call fcn.0040cd30
mov edx, dword [esp + 0x18]
push edx
call fcn.0040cd30
add dword [0x411cec], 2
mov eax, 0x40fe4e
push eax
mov edx, dword [0x4107ac]
add dword [esp + 4], edx
call fcn.00404441
pop dword [0x411cec]
push 3
mov eax, 0x40f028
push eax
mov eax, str._c_bcdedit.exe__create_11111111_1111_1111_1111_111111111111__application_osloader__d__PEBoot_
push eax
mov eax, 0x40fe4e
push eax
call fcn.00404441
push dword [0x411cec]
push 3
mov eax, 0x40f028
push eax
push dword [0x411cec]
mov edx, str._c_bcdedit.exe__set_11111111_1111_1111_1111_111111111111_device__ramdisk
push edx
call fcn.0040cd30
mov edx, dword [esp + 0x24]
push edx
call fcn.0040cd30
mov edx, str._11111111_1111_1111_1111_111111111112_
push edx
call fcn.0040cd30
add dword [0x411cec], 2
mov eax, 0x40fe4e
push eax
mov edx, dword [0x4107ac]
add dword [esp + 4], edx
call fcn.00404441
pop dword [0x411cec]
push dword [0x411cec]
push 3
mov eax, 0x40f028
push eax
push dword [0x411cec]
mov edx, str._c_bcdedit.exe__set_11111111_1111_1111_1111_111111111111_osdevice__ramdisk
push edx
call fcn.0040cd30
mov edx, dword [esp + 0x24]
push edx
call fcn.0040cd30
mov edx, str._11111111_1111_1111_1111_111111111112_
push edx
call fcn.0040cd30
add dword [0x411cec], 2
mov eax, 0x40fe4e
push eax
mov edx, dword [0x4107ac]
add dword [esp + 4], edx
call fcn.00404441
pop dword [0x411cec]
push 3
mov eax, 0x40f028
push eax
mov eax, str._c_bcdedit.exe__set_11111111_1111_1111_1111_111111111111_systemroot_Windows
push eax
mov eax, 0x40fe4e
push eax
call fcn.00404441
push 3
mov eax, 0x40f028
push eax
mov eax, str._c_bcdedit.exe__set_11111111_1111_1111_1111_111111111111_detecthal_yes
push eax
mov eax, 0x40fe4e
push eax
call fcn.00404441
push 3
mov eax, 0x40f028
push eax
mov eax, str._c_bcdedit.exe__set_11111111_1111_1111_1111_111111111111_winpe_yes
push eax
mov eax, 0x40fe4e
push eax
call fcn.00404441
push 3
mov eax, 0x40f028
push eax
mov eax, str._c_bcdedit.exe__bootsequence_11111111_1111_1111_1111_111111111111
push eax
mov eax, 0x40fe4e
push eax
call fcn.00404441
mov eax, 1
push eax
call fcn.00401b76
xor eax, eax
push dword [esp + 0xc]
call fcn.0040ce10
push dword [esp + 8]
call fcn.0040ce10
push dword [esp]
call fcn.0040ce10
push dword [esp + 4]
call fcn.0040ce10
push dword [esp + 0x14]
call fcn.0040ce10
push dword [esp + 0x10]
call fcn.0040ce10
add esp, 0x18
pop ebx
ret