Function at 0x40113f
Capabilities:
Manipulate boot configuration

Disassembly:
push 0
push ebx
push edi
mov edx, 0xe
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x401146
mov edx, dword [esp + 0x44]
lea ecx, [esp]
call fcn.00402000
push dword [0x40c8e8]
mov eax, str.BigTitle
push eax
mov eax, str.Setting
push eax
push dword [0x40c7c8]
call fcn.00401cf0
lea eax, [esp + 0x1c]
push eax
call fcn.004082e0
push dword [0x40c8e8]
mov eax, str.BarColor
push eax
mov eax, str.Setting
push eax
push dword [0x40c7c8]
call fcn.00401cf0
lea eax, [esp + 0x2c]
push eax
call fcn.004082e0
push dword [0x40c8e8]
mov eax, str.Message1
push eax
mov eax, str.Setting
push eax
push dword [0x40c7c8]
call fcn.00401cf0
lea eax, [esp + 0x20]
push eax
call fcn.004082e0
push dword [0x40c8e8]
mov eax, str.Message2
push eax
mov eax, str.Setting
push eax
push dword [0x40c7c8]
call fcn.00401cf0
lea eax, [esp + 0x24]
push eax
call fcn.004082e0
push dword [esp + 0x28]
mov edx, str.WHITE
mov ecx, dword [esp]
call fcn.00402080
je 0x40121b
mov dword [esp + 0x28], 0xfffd
jmp 0x4012a0
mov edx, str.BLUE
mov ecx, dword [esp]
call fcn.00402080
je 0x401234
mov dword [esp + 0x28], 0xfffb
jmp 0x4012a0
mov edx, str.YELLOW
mov ecx, dword [esp]
call fcn.00402080
je 0x40124d
mov dword [esp + 0x28], 0xfffa
jmp 0x4012a0
mov edx, 0x40b244
mov ecx, dword [esp]
call fcn.00402080
je 0x401266
mov dword [esp + 0x28], 0xfff9
jmp 0x4012a0
mov edx, str.GREEN
mov ecx, dword [esp]
call fcn.00402080
je 0x40127f
mov dword [esp + 0x28], 0xfff8
jmp 0x4012a0
mov edx, str.GRAY
mov ecx, dword [esp]
call fcn.00402080
je 0x401298
mov dword [esp + 0x28], 0xfff7
jmp 0x4012a0
mov dword [esp + 0x28], 0xfffa
pop eax
mov edx, dword [esp]
push dword [0x40c8e8]
push edx
call fcn.00408360
lea eax, [esp + 8]
push eax
call fcn.004082e0
mov edx, dword [0x40c8e8]
push edx
push edx
push dword [esp + 0xc]
call fcn.00406c8f
lea eax, [esp + 0xc]
push eax
call fcn.004082e0
mov edx, dword [0x40c7d4]
push dword [0x40c8e8]
push edx
call fcn.00408360
mov edx, 0x40b538
push edx
call fcn.00408360
lea eax, [esp + 0x10]
push eax
call fcn.004082e0
push dword [esp + 0xc]
call fcn.00406d1e
push edx
push eax
pop ebx
pop edi
cmp ebx, 0xffffffff
jne 0x401313
cmp edi, 0xffffffff
je 0x401317
xor eax, eax
jmp 0x40131c
mov eax, 1
or eax, eax
je 0x40134b
push 0xfffd
push 1
mov eax, 0x40b50a
push eax
mov eax, str.Boot.Sdi
push eax
mov eax, 0x40b43a
push eax
push 0
call fcn.004019bf
jmp 0x4010e3
mov edx, dword [0x40c8e8]
push edx
push edx
push 2
push dword [esp + 0x18]
call fcn.00405f20
lea eax, [esp + 0x14]
push eax
call fcn.004082e0
mov edx, dword [0x40c8e8]
push edx
push edx
push dword [esp + 0x14]
call fcn.00405f90
push eax
push 3
push dword [esp + 0x1c]
call fcn.00405fc0
lea eax, [esp + 0x18]
push eax
call fcn.004082e0
mov byte [esp + 0x2c], 0
push dword [0x40c8e8]
push dword [esp + 0x28]
push 0xa
push dword [0x40c8e8]
mov edx, 0x40b748
push edx
call fcn.00408360
mov edx, dword [0x40c7cc]
push edx
call fcn.00408360
mov edx, str._r_n_r_n
push edx
call fcn.00408360
mov edx, dword [esp + 0x2c]
push edx
call fcn.00408360
mov edx, 0x40b3a0
push edx
call fcn.00408360
mov edx, dword [esp + 0x30]
push edx
call fcn.00408360
add dword [0x40c8e8], 2
push dword [esp + 0x28]
mov eax, 0x40b43a
push eax
push 0
mov edx, dword [0x40b938]
add dword [esp + 0xc], edx
call fcn.004019bf
pop dword [0x40c8e8]
mov byte [esp + 0x2c], al
movsx ebx, byte [esp + 0x2c]
cmp ebx, 6
jne 0x4016dc
mov edx, dword [0x40c8e8]
push edx
push edx
push 2
push dword [esp + 0x10]
call fcn.00405f20
lea eax, [esp + 0x34]
push eax
call fcn.004082e0
push dword [0x40c8e8]
mov edx, 0x40b0fe
push edx
call fcn.00408360
mov edx, dword [esp + 0x34]
push edx
call fcn.00408360
mov edx, 0x40b102
push edx
call fcn.00408360
mov edx, dword [0x40c8e8]
push edx
push edx
push dword [esp + 0x10]
call fcn.00405f90
push eax
push 3
push dword [esp + 0x18]
call fcn.00405fc0
pop eax
lea eax, [esp + 0x38]
push eax
call fcn.004082e0
push 3
mov eax, 0x40b028
push eax
mov eax, str._delete_11111111_1111_1111_1111_111111111112__cleanup__f
push eax
mov eax, str.bcdedit.exe
push eax
call fcn.00406561
push 3
mov eax, 0x40b028
push eax
mov eax, str._delete_11111111_1111_1111_1111_111111111111__cleanup__f
push eax
mov eax, str.bcdedit.exe
push eax
call fcn.00406561
push 3
mov eax, 0x40b028
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.00406561
push dword [0x40c8e8]
push 3
mov eax, 0x40b028
push eax
push dword [0x40c8e8]
mov edx, str._set_11111111_1111_1111_1111_111111111112_ramdisksdidevice_partition
push edx
call fcn.00408360
mov edx, dword [esp + 0x20]
push edx
call fcn.00408360
add dword [0x40c8e8], 2
mov eax, str.bcdedit.exe
push eax
mov edx, dword [0x40b938]
add dword [esp + 4], edx
call fcn.00406561
pop dword [0x40c8e8]
push dword [0x40c8e8]
push 3
mov eax, 0x40b028
push eax
push dword [0x40c8e8]
mov edx, str._set_11111111_1111_1111_1111_111111111112_ramdisksdipath
push edx
call fcn.00408360
mov edx, dword [esp + 0x24]
push edx
call fcn.00408360
add dword [0x40c8e8], 2
mov eax, str.bcdedit.exe
push eax
mov edx, dword [0x40b938]
add dword [esp + 4], edx
call fcn.00406561
pop dword [0x40c8e8]
push 3
mov eax, 0x40b028
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.00406561
push dword [0x40c8e8]
push 3
mov eax, 0x40b028
push eax
push dword [0x40c8e8]
mov edx, str._set_11111111_1111_1111_1111_111111111111_device__ramdisk
push edx
call fcn.00408360
mov edx, dword [esp + 0x44]
push edx
call fcn.00408360
mov edx, str._11111111_1111_1111_1111_111111111112_
push edx
call fcn.00408360
add dword [0x40c8e8], 2
mov eax, str.bcdedit.exe
push eax
mov edx, dword [0x40b938]
add dword [esp + 4], edx
call fcn.00406561
pop dword [0x40c8e8]
push dword [0x40c8e8]
push 3
mov eax, 0x40b028
push eax
push dword [0x40c8e8]
mov edx, str._set_11111111_1111_1111_1111_111111111111_osdevice__ramdisk
push edx
call fcn.00408360
mov edx, dword [esp + 0x44]
push edx
call fcn.00408360
mov edx, str._11111111_1111_1111_1111_111111111112_
push edx
call fcn.00408360
add dword [0x40c8e8], 2
mov eax, str.bcdedit.exe
push eax
mov edx, dword [0x40b938]
add dword [esp + 4], edx
call fcn.00406561
pop dword [0x40c8e8]
push 3
mov eax, 0x40b028
push eax
mov eax, str._set_11111111_1111_1111_1111_111111111111_systemroot_Windows
push eax
mov eax, str.bcdedit.exe
push eax
call fcn.00406561
push 3
mov eax, 0x40b028
push eax
mov eax, str._set_11111111_1111_1111_1111_111111111111_detecthal_yes
push eax
mov eax, str.bcdedit.exe
push eax
call fcn.00406561
push 3
mov eax, 0x40b028
push eax
mov eax, str._set_11111111_1111_1111_1111_111111111111_winpe_yes
push eax
mov eax, str.bcdedit.exe
push eax
call fcn.00406561
push 3
mov eax, 0x40b028
push eax
mov eax, str._bootsequence_11111111_1111_1111_1111_111111111111
push eax
mov eax, str.bcdedit.exe
push eax
call fcn.00406561
push 0
mov eax, 1
push eax
call fcn.00401806
jmp 0x4010e3