Function at 0x10016d30
Capabilities:
Manipulate boot configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003686b
mov eax, dword fs:[0]
push eax
sub esp, 0x46c
mov eax, dword [0x1004c024]
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 0x100174c0
mov dword [ebp - 0x130], 0
mov dword [ebp - 0x12c], 0
push 0x80000
call fcn.1000f6bd
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.1002fcd0
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 0x10016e0a
mov dword [ebp - 0x414], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x128]
call fcn.1002fc70
mov eax, dword [ebp - 0x414]
jmp 0x100174c5
lea ecx, [ebp - 0x38c]
push ecx
lea edx, [ebp - 0x338]
push edx
lea ecx, [ebp - 0x128]
call fcn.1002fbe0
test eax, eax
jne 0x10016ea3
call sym.Comn.dll_GetObjectLog
mov dword [ebp - 0x454], eax
push 0x5b7
push 0x1003a574
call fcn.10010f00
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.1002fc70
mov eax, dword [ebp - 0x41c]
jmp 0x100174c5
lea eax, [ebp - 0x388]
push eax
lea ecx, [ebp - 0x33c]
push ecx
lea ecx, [ebp - 0x128]
call fcn.1002fb50
test eax, eax
jne 0x10016f5a
call sym.Comn.dll_GetObjectLog
mov dword [ebp - 0x458], eax
push 0x5bd
push 0x1003a5a4
call fcn.10010f00
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.10010ed0
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.1002fc70
mov eax, dword [ebp - 0x424]
jmp 0x100174c5
mov ecx, dword [ebp - 0x388]
push ecx
mov edx, dword [ebp - 0x38c]
push edx
lea ecx, [ebp - 0x128]
call fcn.1002f8a0
test eax, eax
jne 0x1001701b
call sym.Comn.dll_GetObjectLog
mov dword [ebp - 0x45c], eax
push 0x5c4
push 0x1003a5d4
call fcn.10010f00
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.10010ed0
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.1002fc70
mov eax, dword [ebp - 0x42c]
jmp 0x100174c5
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.10011180
add esp, 4
test eax, eax
jne 0x100170d4
cmp dword [ebp - 0x340], 0
je 0x10017073
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 0x1003a600
call fcn.10010f00
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.1002fc70
mov eax, dword [ebp - 0x434]
jmp 0x100174c5
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.10016340
test eax, eax
jne 0x100171a0
call sym.Comn.dll_GetObjectLog
mov dword [ebp - 0x464], eax
push 0x601
push 0x1003a62c
call fcn.10010f00
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.1002fc70
mov eax, dword [ebp - 0x438]
jmp 0x100174c5
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 0x1003a66c
call fcn.10010f00
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.1002fb00
test eax, eax
jne 0x10017345
call sym.Comn.dll_GetObjectLog
mov dword [ebp - 0x46c], eax
lea ecx, [ebp - 0x334]
push ecx
push 0x60c
push 0x1003a6b0
call fcn.10010f00
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 0x1003a6d0
call fcn.10010f00
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.10010ed0
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.1002fc70
mov eax, dword [ebp - 0x440]
jmp 0x100174c5
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.1002f9c0
test eax, eax
jne 0x1001742e
call sym.Comn.dll_GetObjectLog
mov dword [ebp - 0x474], eax
push 0x616
push 0x1003a6fc
call fcn.10010f00
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.10010ed0
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.1002fc70
mov eax, dword [ebp - 0x448]
jmp 0x100174c5
call sym.Comn.dll_GetObjectLog
mov dword [ebp - 0x478], eax
mov eax, dword [ebp - 0x340]
push eax
push 0x61b
push 0x1003a728
call fcn.10010f00
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.10010ed0
add esp, 0x10
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x128]
call fcn.1002fc70
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.1000f6c2
mov esp, ebp
pop ebp
ret 8