Function at 0x1000497d
Capabilities:
Manipulate boot configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
push 0
push dword [ebp - 0x18]
mov eax, str.C:_bcdedit.exe
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
call fcn.1000183c
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x100049d9
push ebx
call fcn.10004dd3
add esp, 4
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x100049ed
push ebx
call fcn.10004dd3
add esp, 4
pop eax
mov dword [ebp - 4], eax
push 0x80000002
push 0
push 1
push 0
push 0
push 0
push 0x80000004
push 0
push str.Patch_Guard_Disabled
push 0x80000004
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x10004a22
mov eax, 0x1021a8f1
push eax
push 4
mov ebx, 0x148
call fcn.10005410
add esp, 0x34
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x10004a68
mov eax, 0x1021a9e7
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
call fcn.10002a40
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x10004a63
push ebx
call fcn.10004dd3
add esp, 4
jmp 0x10004d2d
push 0x80000002
push 0
push 0
push 0x80000301
push 0
push dword [ebp - 8]
push 0x80000004
push 0
push 0x1021aa07
push 0x80000004
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x10004a9d
mov eax, 0x1021a8f1
push eax
push 4
mov ebx, 0x14c
call fcn.10006060
add esp, 0x34
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x10004ae3
mov eax, 0x1021aa09
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
call fcn.10002a40
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x10004ade
push ebx
call fcn.10004dd3
add esp, 4
jmp 0x10004d2d
fild dword [ebp - 0xc]
fstp qword [ebp - 0x1c]
fld qword [ebp - 0x1c]
fadd qword [0x1021aa24]
fstp qword [ebp - 0x24]
push 0x80000301
push 0
push 0x24
fld qword [ebp - 0x24]
call fcn.10001ad9
push 0x80000301
push 0
push eax
push 0x80000004
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x10004b24
mov eax, 0x1021a8f1
push eax
push 3
mov ebx, 0x13c
call fcn.10006170
add esp, 0x28
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
push eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x10004b4e
push ebx
call fcn.10004dd3
add esp, 4
pop eax
mov dword [ebp - 0x10], eax
push 0x1021aa2c
push dword [ebp - 0x10]
push str.C:_bcdedit.exe__default_
mov ecx, 3
call fcn.10004921
add esp, 0xc
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], 0
push 0
push dword [ebp - 0x1c]
lea eax, [ebp - 0x18]
push eax
call fcn.1000183c
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x10004b97
push ebx
call fcn.10004dd3
add esp, 4
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x10004bab
push ebx
call fcn.10004dd3
add esp, 4
pop eax
mov dword [ebp - 4], eax
push 0x80000002
push 0
push 0
push 0
push 0
push 0
push 0x80000004
push 0
push 0x1021aa48
push 0x80000004
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x10004be0
mov eax, 0x1021a8f1
push eax
push 4
mov ebx, 0x148
call fcn.10005410
add esp, 0x34
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xffffffff
jne 0x10004c36
push dword [ebp - 4]
push 0x1021aa55
mov ecx, 2
call fcn.10004921
add esp, 8
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
call fcn.10002a40
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x10004c31
push ebx
call fcn.10004dd3
add esp, 4
jmp 0x10004d2d
mov dword [ebp - 0x18], 0
push 0
push dword [ebp - 0x18]
mov eax, str.C:_bcdedit.exe__timeout_3
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
call fcn.1000183c
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x10004c66
push ebx
call fcn.10004dd3
add esp, 4
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x10004c7a
push ebx
call fcn.10004dd3
add esp, 4
pop eax
mov dword [ebp - 4], eax
push 0x80000002
push 0
push 0
push 0
push 0
push 0
push 0x80000004
push 0
push 0x1021aa48
push 0x80000004
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x10004caf
mov eax, 0x1021a8f1
push eax
push 4
mov ebx, 0x148
call fcn.10005410
add esp, 0x34
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xffffffff
jne 0x10004d05
push dword [ebp - 4]
push 0x1021aa81
mov ecx, 2
call fcn.10004921
add esp, 8
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
call fcn.10002a40
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x10004d00
push ebx
call fcn.10004dd3
add esp, 4
jmp 0x10004d26
mov eax, 0x1021aa93
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
call fcn.10004752
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x10004d26
push ebx
call fcn.10004dd3
add esp, 4
mov dword [ebp - 0x14], 1
mov eax, dword [ebp - 0x14]
jmp 0x10004d35
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x10004d46
push ebx
call fcn.10004dd3
add esp, 4
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x10004d56
push ebx
call fcn.10004dd3
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret