Function at 0x10016ce0
Capabilities:
Manipulate boot configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10034977
mov eax, dword fs:[0]
push eax
sub esp, 0x46c
mov eax, dword [0x10048024]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x450], ecx
cmp dword [ebp + 8], 5
jle 0x10017470
mov dword [ebp - 0x130], 0
mov dword [ebp - 0x12c], 0
push 0x80000
call fcn.1000f66d
add esp, 4
mov dword [ebp - 0x410], eax
mov eax, dword [ebp - 0x410]
mov dword [ebp - 0x340], eax
push 0x80000
push 0
mov ecx, dword [ebp - 0x340]
push ecx
call sub.ntdll.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x128]
call fcn.1002df30
mov dword [ebp - 4], 0
push 0
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x450]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x450]
mov eax, dword [edx + 0xc]
call eax
test eax, eax
jne 0x10016dba
mov dword [ebp - 0x414], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x128]
call fcn.1002ded0
mov eax, dword [ebp - 0x414]
jmp 0x10017475
lea ecx, [ebp - 0x38c]
push ecx
lea edx, [ebp - 0x338]
push edx
lea ecx, [ebp - 0x128]
call fcn.1002de40
test eax, eax
jne 0x10016e53
call sym.Comn.dll_GetObjectLog
mov dword [ebp - 0x454], eax
push 0x5b7
push 0x10038454
call fcn.10010eb0
add esp, 8
push eax
push str._s:_Create_read_PIPE_Failed.
mov eax, dword [ebp - 0x454]
push eax
mov ecx, dword [ebp - 0x454]
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
call eax
add esp, 0xc
mov ecx, dword [ebp - 0x340]
mov dword [ebp - 0x418], ecx
mov edx, dword [ebp - 0x418]
push edx
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
mov dword [ebp - 0x41c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x128]
call fcn.1002ded0
mov eax, dword [ebp - 0x41c]
jmp 0x10017475
lea eax, [ebp - 0x388]
push eax
lea ecx, [ebp - 0x33c]
push ecx
lea ecx, [ebp - 0x128]
call fcn.1002ddb0
test eax, eax
jne 0x10016f0a
call sym.Comn.dll_GetObjectLog
mov dword [ebp - 0x458], eax
push 0x5bd
push 0x10038484
call fcn.10010eb0
add esp, 8
push eax
push str._s:_Create_wirte_PIPE_Failed.
mov edx, dword [ebp - 0x458]
push edx
mov eax, dword [ebp - 0x458]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
call edx
add esp, 0xc
push 0
push 0
mov eax, dword [ebp - 0x38c]
push eax
mov ecx, dword [ebp - 0x338]
push ecx
call fcn.10010e80
add esp, 0x10
mov edx, dword [ebp - 0x340]
mov dword [ebp - 0x420], edx
mov eax, dword [ebp - 0x420]
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
mov dword [ebp - 0x424], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x128]
call fcn.1002ded0
mov eax, dword [ebp - 0x424]
jmp 0x10017475
mov ecx, dword [ebp - 0x388]
push ecx
mov edx, dword [ebp - 0x38c]
push edx
lea ecx, [ebp - 0x128]
call fcn.1002db00
test eax, eax
jne 0x10016fcb
call sym.Comn.dll_GetObjectLog
mov dword [ebp - 0x45c], eax
push 0x5c4
push 0x100384b4
call fcn.10010eb0
add esp, 8
push eax
push str._s:_Create_process_Failed.
mov eax, dword [ebp - 0x45c]
push eax
mov ecx, dword [ebp - 0x45c]
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
call eax
add esp, 0xc
mov ecx, dword [ebp - 0x38c]
push ecx
mov edx, dword [ebp - 0x338]
push edx
mov eax, dword [ebp - 0x388]
push eax
mov ecx, dword [ebp - 0x33c]
push ecx
call fcn.10010e80
add esp, 0x10
mov edx, dword [ebp - 0x340]
mov dword [ebp - 0x428], edx
mov eax, dword [ebp - 0x428]
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
mov dword [ebp - 0x42c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x128]
call fcn.1002ded0
mov eax, dword [ebp - 0x42c]
jmp 0x10017475
mov byte [ebp - 0x11c], 0
push 0x103
push 0
lea ecx, [ebp - 0x11b]
push ecx
call sub.ntdll.dll_memset
add esp, 0xc
lea edx, [ebp - 0x11c]
push edx
call fcn.10011130
add esp, 4
test eax, eax
jne 0x10017084
cmp dword [ebp - 0x340], 0
je 0x10017023
mov eax, dword [ebp - 0x340]
mov dword [ebp - 0x430], eax
mov ecx, dword [ebp - 0x430]
push ecx
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
call sym.Comn.dll_GetObjectLog
mov dword [ebp - 0x460], eax
push 0x5cf
push 0x100384e0
call fcn.10010eb0
add esp, 8
push eax
push str._s:_Not_found_bcdedit.exe
mov edx, dword [ebp - 0x460]
push edx
mov eax, dword [ebp - 0x460]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
call edx
add esp, 0xc
mov dword [ebp - 0x434], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x128]
call fcn.1002ded0
mov eax, dword [ebp - 0x434]
jmp 0x10017475
mov byte [ebp - 0x334], 0
push 0x1ff
push 0
lea eax, [ebp - 0x333]
push eax
call sub.ntdll.dll_memset
add esp, 0xc
mov word [ebp - 0x40c], 0
push 0x7e
push 0
lea ecx, [ebp - 0x40a]
push ecx
call sub.ntdll.dll_memset
add esp, 0xc
mov byte [ebp - 0x384], 0
push 0x3f
push 0
lea edx, [ebp - 0x383]
push edx
call sub.ntdll.dll_memset
add esp, 0xc
push 0x40
lea eax, [ebp - 0x40c]
push eax
mov ecx, dword [ebp - 0x450]
call fcn.100162f0
test eax, eax
jne 0x10017150
call sym.Comn.dll_GetObjectLog
mov dword [ebp - 0x464], eax
push 0x601
push 0x1003850c
call fcn.10010eb0
add esp, 8
push eax
push str._s:_Not_found_our_boot_option_from_hive_file.
mov ecx, dword [ebp - 0x464]
push ecx
mov edx, dword [ebp - 0x464]
mov eax, dword [edx]
mov ecx, dword [eax + 0xc]
call ecx
add esp, 0xc
mov dword [ebp - 0x438], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x128]
call fcn.1002ded0
mov eax, dword [ebp - 0x438]
jmp 0x10017475
push 0x40
lea edx, [ebp - 0x40c]
push edx
lea eax, [ebp - 0x384]
push eax
call dword [sym.imp.ntdll.dll_wcstombs]
add esp, 0xc
call sym.Comn.dll_GetObjectLog
mov dword [ebp - 0x468], eax
lea ecx, [ebp - 0x384]
push ecx
push 0x606
push 0x1003854c
call fcn.10010eb0
add esp, 8
push eax
push str._s:_GUID:__s
mov edx, dword [ebp - 0x468]
push edx
mov eax, dword [ebp - 0x468]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
call edx
add esp, 0x10
push 0x200
push 0
lea eax, [ebp - 0x334]
push eax
call sub.ntdll.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x384]
push ecx
lea edx, [ebp - 0x11c]
push edx
push str._s_bcdedit.exe__bootsequence__s_n
lea eax, [ebp - 0x334]
push eax
call dword [sym.imp.ntdll.dll_sprintf]
add esp, 0x10
lea ecx, [ebp - 0x334]
push ecx
call sub.ntdll.dll_strlen
add esp, 4
push eax
lea edx, [ebp - 0x334]
push edx
mov eax, dword [ebp - 0x33c]
push eax
lea ecx, [ebp - 0x128]
call fcn.1002dd60
test eax, eax
jne 0x100172f5
call sym.Comn.dll_GetObjectLog
mov dword [ebp - 0x46c], eax
lea ecx, [ebp - 0x334]
push ecx
push 0x60c
push 0x10038590
call fcn.10010eb0
add esp, 8
push eax
push str._s:_Command:__s
mov edx, dword [ebp - 0x46c]
push edx
mov eax, dword [ebp - 0x46c]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
call edx
add esp, 0x10
call sym.Comn.dll_GetObjectLog
mov dword [ebp - 0x470], eax
push 0x60d
push 0x100385b0
call fcn.10010eb0
add esp, 8
push eax
push str._s:_Write_to_PIPE_Failed.
mov eax, dword [ebp - 0x470]
push eax
mov ecx, dword [ebp - 0x470]
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
call eax
add esp, 0xc
mov ecx, dword [ebp - 0x38c]
push ecx
mov edx, dword [ebp - 0x338]
push edx
mov eax, dword [ebp - 0x388]
push eax
mov ecx, dword [ebp - 0x33c]
push ecx
call fcn.10010e80
add esp, 0x10
mov edx, dword [ebp - 0x340]
mov dword [ebp - 0x43c], edx
mov eax, dword [ebp - 0x43c]
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
mov dword [ebp - 0x440], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x128]
call fcn.1002ded0
mov eax, dword [ebp - 0x440]
jmp 0x10017475
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x80000
push 0
mov ecx, dword [ebp - 0x340]
push ecx
call sub.ntdll.dll_memset
add esp, 0xc
lea edx, [ebp - 0x130]
push edx
mov eax, dword [ebp - 0x340]
push eax
mov ecx, dword [ebp - 0x338]
push ecx
lea ecx, [ebp - 0x128]
call fcn.1002dc20
test eax, eax
jne 0x100173de
call sym.Comn.dll_GetObjectLog
mov dword [ebp - 0x474], eax
push 0x616
push 0x100385dc
call fcn.10010eb0
add esp, 8
push eax
push str._s:_Read_from_PIPE_Failed.
mov edx, dword [ebp - 0x474]
push edx
mov eax, dword [ebp - 0x474]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
call edx
add esp, 0xc
mov eax, dword [ebp - 0x38c]
push eax
mov ecx, dword [ebp - 0x338]
push ecx
mov edx, dword [ebp - 0x388]
push edx
mov eax, dword [ebp - 0x33c]
push eax
call fcn.10010e80
add esp, 0x10
mov ecx, dword [ebp - 0x340]
mov dword [ebp - 0x444], ecx
mov edx, dword [ebp - 0x444]
push edx
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
mov dword [ebp - 0x448], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x128]
call fcn.1002ded0
mov eax, dword [ebp - 0x448]
jmp 0x10017475
call sym.Comn.dll_GetObjectLog
mov dword [ebp - 0x478], eax
mov eax, dword [ebp - 0x340]
push eax
push 0x61b
push 0x10038608
call fcn.10010eb0
add esp, 8
push eax
push str._s:_bug:__s
mov ecx, dword [ebp - 0x478]
push ecx
mov edx, dword [ebp - 0x478]
mov eax, dword [edx]
mov ecx, dword [eax + 0xc]
call ecx
add esp, 0x10
mov edx, dword [ebp - 0x340]
mov dword [ebp - 0x44c], edx
mov eax, dword [ebp - 0x44c]
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
mov ecx, dword [ebp - 0x38c]
push ecx
mov edx, dword [ebp - 0x338]
push edx
mov eax, dword [ebp - 0x388]
push eax
mov ecx, dword [ebp - 0x33c]
push ecx
call fcn.10010e80
add esp, 0x10
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x128]
call fcn.1002ded0
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1000f672
mov esp, ebp
pop ebp
ret 8