Function at 0x40118a
Capabilities:
Manipulate boot configuration

Disassembly:
push 0
push ebp
push ebx
push edi
mov edx, 8
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x401192
mov ebx, dword [esp + 0x30]
mov ebp, dword [0x40fbb4]
shl ebx, 2
mov edx, dword [ebp + ebx]
push dword [0x40fe44]
push edx
call fcn.0040bf90
lea eax, [esp + 4]
push eax
call fcn.0040bf10
mov ebx, dword [esp + 0x30]
mov ebp, dword [0x40fbbc]
shl ebx, 2
mov edx, dword [ebp + ebx]
push dword [0x40fe44]
push edx
call fcn.0040bf90
lea eax, [esp + 8]
push eax
call fcn.0040bf10
push dword [esp]
call fcn.00401ff0
mov ebx, dword [0x40fba0]
and ebx, ebx
jne 0x401287
push dword [0x40fe44]
push 0xfff9
push 1
push dword [0x40fe44]
mov edx, 0x40e2f4
push edx
call fcn.0040bf90
mov edx, dword [esp + 0x14]
push edx
call fcn.0040bf90
mov edx, str._r_n_r_n
push edx
call fcn.0040bf90
add dword [0x40fe44], 2
mov eax, str.WIM
push eax
mov eax, 0x40e182
push eax
push 0
mov edx, dword [0x40ea58]
add dword [esp + 0xc], edx
call fcn.00401d4e
pop dword [0x40fe44]
mov eax, 0x40e028
push eax
push dword [0x40fb9c]
mov eax, 0x40e914
push eax
call fcn.00403376
jmp 0x40112e
mov ebx, dword [0x40fba0]
cmp ebx, 0xffffffff
jne 0x401311
push dword [0x40fe44]
push 0xfff9
push 1
push dword [0x40fe44]
mov edx, 0x40e2f4
push edx
call fcn.0040bf90
mov edx, dword [esp + 0x14]
push edx
call fcn.0040bf90
mov edx, 0x40e394
push edx
call fcn.0040bf90
add dword [0x40fe44], 2
mov eax, str.WIM
push eax
mov eax, 0x40e182
push eax
push 0
mov edx, dword [0x40ea58]
add dword [esp + 0xc], edx
call fcn.00401d4e
pop dword [0x40fe44]
mov eax, 0x40e028
push eax
push dword [0x40fb9c]
mov eax, 0x40e914
push eax
call fcn.00403376
jmp 0x40112e
mov edx, dword [0x40fb9c]
push dword [0x40fe44]
push edx
call fcn.0040bf90
mov edx, str.Boot.Sdi
push edx
call fcn.0040bf90
lea eax, [esp + 0xc]
push eax
call fcn.0040bf10
mov edx, dword [0x40fe44]
push edx
push edx
push 2
push dword [esp + 0x14]
call fcn.00409890
lea eax, [esp + 0x10]
push eax
call fcn.0040bf10
mov edx, dword [0x40fe44]
push edx
push edx
push dword [esp + 0x10]
call fcn.00409900
push eax
push 3
push dword [esp + 0x18]
call fcn.00409930
lea eax, [esp + 0x14]
push eax
call fcn.0040bf10
push dword [esp + 8]
call fcn.0040a1c9
push edx
push eax
pop ebx
pop edi
cmp ebx, 0xffffffff
jne 0x401399
cmp edi, 0xffffffff
je 0x40139d
xor eax, eax
jmp 0x4013a2
mov eax, 1
or eax, eax
je 0x4013d6
push 0xfffd
push 1
mov eax, 0x40e634
push eax
mov eax, 0x40e2d4
push eax
mov eax, 0x40e182
push eax
push 0
call fcn.00401d4e
push 0
jmp 0x401133
mov byte [esp + 0x14], 0
push dword [0x40fe44]
push 0xfffa
push 0xa
push dword [0x40fe44]
mov edx, 0x40e2f4
push edx
call fcn.0040bf90
mov edx, dword [esp + 0x14]
push edx
call fcn.0040bf90
mov edx, 0x40e0da
push edx
call fcn.0040bf90
add dword [0x40fe44], 2
mov eax, str.PE_1
push eax
mov eax, 0x40e182
push eax
push 0
mov edx, dword [0x40ea58]
add dword [esp + 0xc], edx
call fcn.00401d4e
pop dword [0x40fe44]
mov byte [esp + 0x14], al
movsx ebx, byte [esp + 0x14]
cmp ebx, 6
jne 0x4016ff
mov edx, dword [0x40fe44]
push edx
push edx
push 2
push dword [esp + 0xc]
call fcn.00409890
lea eax, [esp + 0x1c]
push eax
call fcn.0040bf10
push dword [0x40fe44]
mov edx, 0x40e148
push edx
call fcn.0040bf90
mov edx, dword [esp + 0x1c]
push edx
call fcn.0040bf90
mov edx, 0x40e150
push edx
call fcn.0040bf90
mov edx, dword [0x40fe44]
push edx
push edx
push dword [esp + 0xc]
call fcn.00409900
push eax
push 3
push dword [esp + 0x14]
call fcn.00409930
pop eax
lea eax, [esp + 0x20]
push eax
call fcn.0040bf10
push 3
mov eax, 0x40e028
push eax
mov eax, str._delete_11111111_1111_1111_1111_111111111112__cleanup__f
push eax
mov eax, str.bcdedit.exe
push eax
call fcn.0040338e
push 3
mov eax, 0x40e028
push eax
mov eax, str._delete_11111111_1111_1111_1111_111111111111__cleanup__f
push eax
mov eax, str.bcdedit.exe
push eax
call fcn.0040338e
push 3
mov eax, 0x40e028
push eax
mov eax, 0x40e054
push eax
mov eax, str.bcdedit.exe
push eax
call fcn.0040338e
push dword [0x40fe44]
push 3
mov eax, 0x40e028
push eax
push dword [0x40fe44]
mov edx, str._set_11111111_1111_1111_1111_111111111112_ramdisksdidevice_partition
push edx
call fcn.0040bf90
mov edx, dword [esp + 0x1c]
push edx
call fcn.0040bf90
add dword [0x40fe44], 2
mov eax, str.bcdedit.exe
push eax
mov edx, dword [0x40ea58]
add dword [esp + 4], edx
call fcn.0040338e
pop dword [0x40fe44]
push dword [0x40fe44]
push 3
mov eax, 0x40e028
push eax
push dword [0x40fe44]
mov edx, str._set_11111111_1111_1111_1111_111111111112_ramdisksdipath
push edx
call fcn.0040bf90
mov edx, dword [esp + 0x20]
push edx
call fcn.0040bf90
add dword [0x40fe44], 2
mov eax, str.bcdedit.exe
push eax
mov edx, dword [0x40ea58]
add dword [esp + 4], edx
call fcn.0040338e
pop dword [0x40fe44]
push 3
mov eax, 0x40e028
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.0040338e
push dword [0x40fe44]
push 3
mov eax, 0x40e028
push eax
push dword [0x40fe44]
mov edx, str._set_11111111_1111_1111_1111_111111111111_device__ramdisk
push edx
call fcn.0040bf90
mov edx, dword [esp + 0x2c]
push edx
call fcn.0040bf90
mov edx, str._11111111_1111_1111_1111_111111111112_
push edx
call fcn.0040bf90
add dword [0x40fe44], 2
mov eax, str.bcdedit.exe
push eax
mov edx, dword [0x40ea58]
add dword [esp + 4], edx
call fcn.0040338e
pop dword [0x40fe44]
push dword [0x40fe44]
push 3
mov eax, 0x40e028
push eax
push dword [0x40fe44]
mov edx, str._set_11111111_1111_1111_1111_111111111111_osdevice__ramdisk
push edx
call fcn.0040bf90
mov edx, dword [esp + 0x2c]
push edx
call fcn.0040bf90
mov edx, str._11111111_1111_1111_1111_111111111112_
push edx
call fcn.0040bf90
add dword [0x40fe44], 2
mov eax, str.bcdedit.exe
push eax
mov edx, dword [0x40ea58]
add dword [esp + 4], edx
call fcn.0040338e
pop dword [0x40fe44]
push 3
mov eax, 0x40e028
push eax
mov eax, str._set_11111111_1111_1111_1111_111111111111_systemroot_Windows
push eax
mov eax, str.bcdedit.exe
push eax
call fcn.0040338e
push 3
mov eax, 0x40e028
push eax
mov eax, str._set_11111111_1111_1111_1111_111111111111_detecthal_yes
push eax
mov eax, str.bcdedit.exe
push eax
call fcn.0040338e
push 3
mov eax, 0x40e028
push eax
mov eax, str._set_11111111_1111_1111_1111_111111111111_winpe_yes
push eax
mov eax, str.bcdedit.exe
push eax
call fcn.0040338e
push 3
mov eax, 0x40e028
push eax
mov eax, str._bootsequence_11111111_1111_1111_1111_111111111111
push eax
mov eax, str.bcdedit.exe
push eax
call fcn.0040338e
mov eax, 1
push eax
call fcn.00401be4
jmp 0x40112e
xor eax, eax
push dword [esp + 4]
call fcn.0040bff0
push dword [esp]
call fcn.0040bff0
push dword [esp + 0x10]
call fcn.0040bff0
push dword [esp + 8]
call fcn.0040bff0
push dword [esp + 0xc]
call fcn.0040bff0
push dword [esp + 0x1c]
call fcn.0040bff0
push dword [esp + 0x18]
call fcn.0040bff0
add esp, 0x20
pop edi
pop ebx
pop ebp
ret 4