Function at 0x4010f2
Capabilities:
Manipulate boot configuration

Disassembly:
push ebx
push edi
mov edx, 0xa
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x4010f9
mov edx, dword [esp + 0x34]
lea ecx, [esp]
call fcn.00403000
mov edx, dword [esp]
push dword [0x407150]
push edx
call fcn.00404ac0
lea eax, [esp + 8]
push eax
call fcn.00404b20
mov edx, dword [0x407150]
push edx
push edx
push dword [esp + 0xc]
call fcn.0040465c
lea eax, [esp + 0xc]
push eax
call fcn.00404b20
mov edx, dword [0x407150]
push edx
push edx
push dword [esp + 8]
call fcn.00404510
lea eax, [esp + 0x10]
push eax
call fcn.00404b20
mov edx, dword [0x407134]
push dword [0x407150]
push edx
call fcn.00404ac0
mov edx, str.Boot.sdi
push edx
call fcn.00404ac0
lea eax, [esp + 0x14]
push eax
call fcn.00404b20
push dword [esp + 0x10]
call fcn.0040466e
push edx
push eax
pop ebx
pop edi
cmp ebx, 0xffffffff
jne 0x40119f
cmp edi, 0xffffffff
je 0x4011a3
xor eax, eax
jmp 0x4011a8
mov eax, 1
or eax, eax
je 0x4011dc
push 0xfffd
push 1
mov eax, 0x40653c
push eax
mov eax, str.Boot.Sdi
push eax
mov eax, 0x40633e
push eax
push 0
call fcn.00401c57
push 0
jmp 0x4010c3
mov edx, dword [0x407150]
push edx
push edx
push 1
push dword [0x407138]
call fcn.00403130
add dword [0x407150], 2
mov edx, 0x40619e
pop ecx
mov dword [0x407150], ecx
add ecx, dword [0x406aa4]
call fcn.00403090
je 0x401253
mov edx, dword [0x407150]
push edx
push edx
push 1
push dword [0x407134]
call fcn.00403130
add dword [0x407150], 2
mov edx, 0x40619e
pop ecx
mov dword [0x407150], ecx
add ecx, dword [0x406aa4]
call fcn.00403090
je 0x401253
mov eax, 1
jmp 0x401255
xor eax, eax
and eax, eax
je 0x4012bf
push dword [0x407150]
mov edx, dword [esp + 0x10]
push dword [0x407150]
push edx
call fcn.00404ac0
mov edx, str.Boot.sdi
push edx
call fcn.00404ac0
add dword [0x407150], 2
push dword [esp + 0x18]
mov edx, dword [0x406aa4]
add dword [esp + 4], edx
call fcn.004047c5
pop dword [0x407150]
mov edx, dword [esp + 0xc]
push dword [0x407150]
push edx
call fcn.00404ac0
mov edx, str.Boot.sdi
push edx
call fcn.00404ac0
lea eax, [esp + 0x14]
push eax
call fcn.00404b20
mov edx, dword [0x407150]
push edx
push edx
push 2
push dword [esp + 0x1c]
call fcn.00403130
lea eax, [esp + 0x18]
push eax
call fcn.00404b20
mov edx, dword [0x407150]
push edx
push edx
push dword [esp + 0x18]
call fcn.004031a0
push eax
push 3
push dword [esp + 0x20]
call fcn.004031d0
lea eax, [esp + 0x1c]
push eax
call fcn.00404b20
mov byte [esp + 0x1c], 0
push dword [0x407150]
push 0xfffb
push 0xa
push dword [0x407150]
mov edx, 0x4067da
push edx
call fcn.00404ac0
mov edx, dword [esp + 0x18]
push edx
call fcn.00404ac0
mov edx, str._r_n_r_n
push edx
call fcn.00404ac0
add dword [0x407150], 2
mov eax, 0x406712
push eax
mov eax, 0x40633e
push eax
push 0
mov edx, dword [0x406aa4]
add dword [esp + 0xc], edx
call fcn.00401c57
pop dword [0x407150]
mov byte [esp + 0x1c], al
movsx ebx, byte [esp + 0x1c]
cmp ebx, 6
jne 0x401632
mov edx, dword [0x407150]
push edx
push edx
push 2
push dword [esp + 0x10]
call fcn.00403130
lea eax, [esp + 0x24]
push eax
call fcn.00404b20
push dword [0x407150]
mov edx, 0x406164
push edx
call fcn.00404ac0
mov edx, dword [esp + 0x24]
push edx
call fcn.00404ac0
mov edx, 0x40616c
push edx
call fcn.00404ac0
mov edx, dword [0x407150]
push edx
push edx
push dword [esp + 0x10]
call fcn.004031a0
push eax
push 3
push dword [esp + 0x18]
call fcn.004031d0
pop eax
lea eax, [esp + 0x28]
push eax
call fcn.00404b20
push 3
mov eax, 0x406028
push eax
mov eax, str._delete_11111111_1111_1111_1111_111111111112__cleanup__f
push eax
mov eax, str.bcdedit.exe
push eax
call fcn.00403abc
push 3
mov eax, 0x406028
push eax
mov eax, str._delete_11111111_1111_1111_1111_111111111111__cleanup__f
push eax
mov eax, str.bcdedit.exe
push eax
call fcn.00403abc
push 3
mov eax, 0x406028
push eax
mov eax, 0x40604c
push eax
mov eax, str.bcdedit.exe
push eax
call fcn.00403abc
push dword [0x407150]
push 3
mov eax, 0x406028
push eax
push dword [0x407150]
mov edx, str._set_11111111_1111_1111_1111_111111111112_ramdisksdidevice_partition
push edx
call fcn.00404ac0
mov edx, dword [esp + 0x24]
push edx
call fcn.00404ac0
add dword [0x407150], 2
mov eax, str.bcdedit.exe
push eax
mov edx, dword [0x406aa4]
add dword [esp + 4], edx
call fcn.00403abc
pop dword [0x407150]
push dword [0x407150]
push 3
mov eax, 0x406028
push eax
push dword [0x407150]
mov edx, str._set_11111111_1111_1111_1111_111111111112_ramdisksdipath
push edx
call fcn.00404ac0
mov edx, dword [esp + 0x28]
push edx
call fcn.00404ac0
add dword [0x407150], 2
mov eax, str.bcdedit.exe
push eax
mov edx, dword [0x406aa4]
add dword [esp + 4], edx
call fcn.00403abc
pop dword [0x407150]
push 3
mov eax, 0x406028
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.00403abc
push dword [0x407150]
push 3
mov eax, 0x406028
push eax
push dword [0x407150]
mov edx, str._set_11111111_1111_1111_1111_111111111111_device__ramdisk
push edx
call fcn.00404ac0
mov edx, dword [esp + 0x34]
push edx
call fcn.00404ac0
mov edx, str._11111111_1111_1111_1111_111111111112_
push edx
call fcn.00404ac0
add dword [0x407150], 2
mov eax, str.bcdedit.exe
push eax
mov edx, dword [0x406aa4]
add dword [esp + 4], edx
call fcn.00403abc
pop dword [0x407150]
push dword [0x407150]
push 3
mov eax, 0x406028
push eax
push dword [0x407150]
mov edx, str._set_11111111_1111_1111_1111_111111111111_osdevice__ramdisk
push edx
call fcn.00404ac0
mov edx, dword [esp + 0x34]
push edx
call fcn.00404ac0
mov edx, str._11111111_1111_1111_1111_111111111112_
push edx
call fcn.00404ac0
add dword [0x407150], 2
mov eax, str.bcdedit.exe
push eax
mov edx, dword [0x406aa4]
add dword [esp + 4], edx
call fcn.00403abc
pop dword [0x407150]
push 3
mov eax, 0x406028
push eax
mov eax, str._set_11111111_1111_1111_1111_111111111111_systemroot_Windows
push eax
mov eax, str.bcdedit.exe
push eax
call fcn.00403abc
push 3
mov eax, 0x406028
push eax
mov eax, str._set_11111111_1111_1111_1111_111111111111_detecthal_yes
push eax
mov eax, str.bcdedit.exe
push eax
call fcn.00403abc
push 3
mov eax, 0x406028
push eax
mov eax, str._set_11111111_1111_1111_1111_111111111111_winpe_yes
push eax
mov eax, str.bcdedit.exe
push eax
call fcn.00403abc
push 3
mov eax, 0x406028
push eax
mov eax, str._bootsequence_11111111_1111_1111_1111_111111111111
push eax
mov eax, str.bcdedit.exe
push eax
call fcn.00403abc
push 0
mov eax, 1
push eax
call fcn.00401741
jmp 0x4010be