Function at 0x40108f
Capabilities:
Manipulate boot configuration

Disassembly:
push ebx
mov edx, 0xc
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x401095
mov edx, dword [esp + 0x38]
lea ecx, [esp]
call fcn.00402000
mov edx, dword [0x404a0c]
push edx
push edx
mov eax, str.SystemRoot
push eax
call fcn.00402221
mov edx, 0x4040b4
push edx
call fcn.00402bf0
lea eax, [esp + 8]
push eax
call fcn.00402c50
mov edx, dword [0x404a0c]
push edx
push edx
mov edx, dword [0x404a0c]
push edx
push edx
call fcn.0040225e
mov edx, dword [0x4046b0]
add dword [esp], edx
call fcn.0040285b
lea eax, [esp + 0xc]
push eax
call fcn.00402c50
mov edx, dword [esp]
push dword [0x404a0c]
push edx
call fcn.00402bf0
lea eax, [esp + 0x10]
push eax
call fcn.00402c50
mov edx, dword [0x404a0c]
push edx
push edx
push dword [esp + 0x14]
call fcn.00402997
lea eax, [esp + 0x14]
push eax
call fcn.00402c50
mov edx, dword [0x404a0c]
push edx
push edx
push dword [esp + 8]
call fcn.0040285b
lea eax, [esp + 0x18]
push eax
call fcn.00402c50
mov edx, dword [esp + 8]
push dword [0x404a0c]
push edx
call fcn.00402bf0
mov edx, str.Boot.sdi
push edx
call fcn.00402bf0
lea eax, [esp + 0x1c]
push eax
call fcn.00402c50
mov edx, dword [0x404a0c]
push edx
push edx
push 2
push dword [esp + 0x24]
call fcn.00402070
lea eax, [esp + 0x20]
push eax
call fcn.00402c50
mov edx, dword [0x404a0c]
push edx
push edx
push dword [esp + 0x20]
call fcn.004020e0
push eax
push 3
push dword [esp + 0x28]
call fcn.00402110
lea eax, [esp + 0x24]
push eax
call fcn.00402c50
mov byte [esp + 0x24], 0
movsx ebx, byte [esp + 0x24]
cmp ebx, 6
jne 0x401473
mov edx, dword [0x404a0c]
push edx
push edx
push 2
push dword [esp + 0x18]
call fcn.00402070
lea eax, [esp + 0x2c]
push eax
call fcn.00402c50
push dword [0x404a0c]
mov edx, 0x4040b0
push edx
call fcn.00402bf0
mov edx, dword [esp + 0x2c]
push edx
call fcn.00402bf0
mov edx, 0x4040b8
push edx
call fcn.00402bf0
mov edx, dword [0x404a0c]
push edx
push edx
push dword [esp + 0x18]
call fcn.004020e0
push eax
push 3
push dword [esp + 0x20]
call fcn.00402110
pop eax
lea eax, [esp + 0x30]
push eax
call fcn.00402c50
push 3
mov eax, 0x404028
push eax
mov eax, str._delete_11111111_1111_1111_1111_111111111112__cleanup__f
push eax
mov eax, str.bcdedit.exe
push eax
call fcn.004022fd
push 3
mov eax, 0x404028
push eax
mov eax, 0x4040bc
push eax
mov eax, str.bcdedit.exe
push eax
call fcn.004022fd
push 3
mov eax, 0x404028
push eax
mov eax, str._create_11111111_1111_1111_1111_111111111112__device__d__PEBoot_
push eax
mov eax, str.bcdedit.exe
push eax
call fcn.004022fd
push dword [0x404a0c]
push 3
mov eax, 0x404028
push eax
push dword [0x404a0c]
mov edx, str._set_11111111_1111_1111_1111_111111111112_ramdisksdidevice_partition
push edx
call fcn.00402bf0
mov edx, dword [esp + 0x2c]
push edx
call fcn.00402bf0
add dword [0x404a0c], 2
mov eax, str.bcdedit.exe
push eax
mov edx, dword [0x4046b0]
add dword [esp + 4], edx
call fcn.004022fd
pop dword [0x404a0c]
push dword [0x404a0c]
push 3
mov eax, 0x404028
push eax
push dword [0x404a0c]
mov edx, str._set_11111111_1111_1111_1111_111111111112_ramdisksdipath
push edx
call fcn.00402bf0
mov edx, dword [esp + 0x30]
push edx
call fcn.00402bf0
add dword [0x404a0c], 2
mov eax, str.bcdedit.exe
push eax
mov edx, dword [0x4046b0]
add dword [esp + 4], edx
call fcn.004022fd
pop dword [0x404a0c]
push 3
mov eax, 0x404028
push eax
mov eax, str._create_11111111_1111_1111_1111_111111111111__application_osloader__d__PEBoot_
push eax
mov eax, str.bcdedit.exe
push eax
call fcn.004022fd
push dword [0x404a0c]
push 3
mov eax, 0x404028
push eax
push dword [0x404a0c]
mov edx, str._set_11111111_1111_1111_1111_111111111111_device__ramdisk
push edx
call fcn.00402bf0
mov edx, dword [esp + 0x3c]
push edx
call fcn.00402bf0
mov edx, str._11111111_1111_1111_1111_111111111112_
push edx
call fcn.00402bf0
add dword [0x404a0c], 2
mov eax, str.bcdedit.exe
push eax
mov edx, dword [0x4046b0]
add dword [esp + 4], edx
call fcn.004022fd
pop dword [0x404a0c]
push dword [0x404a0c]
push 3
mov eax, 0x404028
push eax
push dword [0x404a0c]
mov edx, str._set_11111111_1111_1111_1111_111111111111_osdevice__ramdisk
push edx
call fcn.00402bf0
mov edx, dword [esp + 0x3c]
push edx
call fcn.00402bf0
mov edx, str._11111111_1111_1111_1111_111111111112_
push edx
call fcn.00402bf0
add dword [0x404a0c], 2
mov eax, str.bcdedit.exe
push eax
mov edx, dword [0x4046b0]
add dword [esp + 4], edx
call fcn.004022fd
pop dword [0x404a0c]
push 3
mov eax, 0x404028
push eax
mov eax, str._set_11111111_1111_1111_1111_111111111111_systemroot_Windows
push eax
mov eax, str.bcdedit.exe
push eax
call fcn.004022fd
push 3
mov eax, 0x404028
push eax
mov eax, str._set_11111111_1111_1111_1111_111111111111_detecthal_yes
push eax
mov eax, str.bcdedit.exe
push eax
call fcn.004022fd
push 3
mov eax, 0x404028
push eax
mov eax, str._set_11111111_1111_1111_1111_111111111111_winpe_yes
push eax
mov eax, str.bcdedit.exe
push eax
call fcn.004022fd
push 3
mov eax, 0x404028
push eax
mov eax, str._bootsequence_11111111_1111_1111_1111_111111111111
push eax
mov eax, str.bcdedit.exe
push eax
call fcn.004022fd
jmp 0x401060