Function at 0x41a0b0
Capabilities:
Manipulate boot configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49d7af
mov eax, dword fs:[0]
push eax
sub esp, 0x31c
mov eax, dword [0x4c6374]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004793f0
push str._bcdedit.exe
lea edx, [esi + 0x30]
lea ecx, [ebp - 0x2f8]
call fcn.0040c1a0
add esp, 0x10
cmp dword [eax + 0x14], 8
jb 0x41a10f
mov eax, dword [eax]
push str.Z:EFIMicrosoftBootBCD_JP
push eax
push str._s__export__s
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.0040edf0
mov eax, dword [ebp - 0x2e4]
add esp, 0x14
cmp eax, 8
jb 0x41a14c
inc eax
lea ecx, [ebp - 0x2f8]
push eax
push dword [ebp - 0x2f8]
call fcn.0040f5b0
xor eax, eax
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x218]
lea eax, [ebp - 0x230]
push eax
call fcn.00425290
add esp, 4
test al, al
jne 0x41a30a
push 0x98
lea eax, [ebp - 0x2c8]
push 0
push eax
call fcn.004793f0
add esp, 4
lea ecx, [ebp - 0x2c8]
call fcn.00408c30
mov edx, str.CreateProcessAndReturnResult_Error:
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c8]
call fcn.0040b820
lea edx, [ebp - 0x218]
mov ecx, eax
call fcn.0040b820
push 0x16
push str.CGptRestore::BcdBackUp
lea ecx, [ebp - 0x2e0]
mov dword [ebp - 0x2cc], 0xf
mov dword [ebp - 0x2d0], 0
mov byte [ebp - 0x2e0], 0
call fcn.0040f450
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2f8]
push 0xe
push str.GptRestore.cpp
mov dword [ebp - 0x2e4], 0xf
mov dword [ebp - 0x2e8], 0
mov byte [ebp - 0x2f8], 0
call fcn.0040f450
lea eax, [ebp - 0x310]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x2c8]
call fcn.00408b50
push eax
lea eax, [ebp - 0x2e0]
mov byte [ebp - 4], 4
push eax
push 0x147
lea eax, [ebp - 0x2f8]
push eax
push ecx
call fcn.0041f440
mov ecx, eax
call fcn.0041f910
mov eax, dword [ebp - 0x2fc]
cmp eax, 8
jb 0x41a282
inc eax
lea ecx, [ebp - 0x310]
push eax
push dword [ebp - 0x310]
call fcn.0040f5b0
xor eax, eax
mov dword [ebp - 0x2fc], 7
mov word [ebp - 0x310], ax
mov eax, dword [ebp - 0x2e4]
mov dword [ebp - 0x300], 0
cmp eax, 0x10
jb 0x41a2bd
inc eax
lea ecx, [ebp - 0x2f8]
push eax
push dword [ebp - 0x2f8]
call fcn.0040f330
mov eax, dword [ebp - 0x2cc]
mov dword [ebp - 0x2e4], 0xf
mov dword [ebp - 0x2e8], 0
mov byte [ebp - 0x2f8], 0
cmp eax, 0x10
jb 0x41a2f6
inc eax
lea ecx, [ebp - 0x2e0]
push eax
push dword [ebp - 0x2e0]
call fcn.0040f330
lea ecx, [ebp - 0x278]
call fcn.00408b70
mov byte [ebp - 4], 5
jmp 0x41a46f
push 7
push 0
push str.success
lea ecx, [ebp - 0x230]
call fcn.0040a4f0
cmp eax, 0xffffffff
jne 0x41a488
push 2
push 0
push 0x4b69ac
lea ecx, [ebp - 0x230]
call fcn.0040a4f0
cmp eax, 0xffffffff
jne 0x41a488
push 0x98
lea eax, [ebp - 0x2c8]
push 0
push eax
call fcn.004793f0
add esp, 4
lea ecx, [ebp - 0x2c8]
call fcn.00408c30
mov edx, str.CreateProcessAndReturnResult_Error:
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x2c8]
call fcn.0040b820
lea edx, [ebp - 0x218]
mov ecx, eax
call fcn.0040b820
mov edx, str.Errcode:
mov ecx, eax
call fcn.0040b820
lea edx, [ebp - 0x230]
mov ecx, eax
call fcn.0040be40
push str.CGptRestore::BcdBackUp
lea ecx, [ebp - 0x310]
call fcn.0040f550
push str.GptRestore.cpp
lea ecx, [ebp - 0x2e0]
mov byte [ebp - 4], 7
call fcn.0040f550
lea eax, [ebp - 0x328]
mov byte [ebp - 4], 8
push eax
lea ecx, [ebp - 0x2c8]
call fcn.00408b50
push eax
lea eax, [ebp - 0x310]
mov byte [ebp - 4], 9
push eax
push 0x14d
lea eax, [ebp - 0x2e0]
push eax
push ecx
call fcn.0041f440
mov ecx, eax
call fcn.0041f910
lea ecx, [ebp - 0x328]
call fcn.0040f680
mov eax, dword [ebp - 0x2cc]
cmp eax, 0x10
jb 0x41a427
inc eax
lea ecx, [ebp - 0x2e0]
push eax
push dword [ebp - 0x2e0]
call fcn.0040f330
mov eax, dword [ebp - 0x2fc]
mov dword [ebp - 0x2cc], 0xf
mov dword [ebp - 0x2d0], 0
mov byte [ebp - 0x2e0], 0
cmp eax, 0x10
jb 0x41a460
inc eax
lea ecx, [ebp - 0x310]
push eax
push dword [ebp - 0x310]
call fcn.0040f330
lea ecx, [ebp - 0x278]
call fcn.00408b70
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0x278]
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
push eax
call fcn.0042f0f8
add esp, 4
mov eax, dword [ebp - 0x21c]
cmp eax, 8
jb 0x41a4a6
inc eax
lea ecx, [ebp - 0x230]
push eax
push dword [ebp - 0x230]
call fcn.0040f5b0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00475cda
mov esp, ebp
pop ebp
ret