Function at 0x9c8750
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x30c
mov eax, dword [0xb196ec]
xor eax, esp
mov dword [esp + 0x308], eax
push ebx
push esi
push edi
mov ecx, 8
mov esi, str.bootmgr__current__default
lea edi, [esp + 0xb0]
rep movsd dword es:[edi], dword [esi]
mov ecx, 0xd
mov esi, str.bootems__advancedoptions__optionsedit__recoveryenabled
lea edi, [esp + 0xd0]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
push 0xbdc790
push str.SafeBootDebug
mov ecx, 0xaa21e4
mov edx, 0x80000002
movsb byte es:[edi], byte [esi]
mov dword [esp + 0x1c], 0
call fcn.0094c0d0
cmp dword [0xbdc790], 0
je 0x9c87d7
lea eax, [esp + 0x108]
push eax
push str._SBOOT________________
push 0
call fcn.0096a780
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0xb4]
push edx
mov bl, 0x2c
lea edi, [esp + 0x38]
call fcn.0095ae80
add esp, 8
cmp dword [esp + 0x14], 0xffffffff
je 0x9c8d01
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
xor eax, eax
mov dword [esp + 0x18], eax
mov byte [esp + 0x70], al
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0xd4]
push ecx
mov bl, 0x2c
lea edi, [esp + 0x78]
call fcn.0095ae80
add esp, 8
cmp dword [esp + 0x18], 0xffffffff
je 0x9c8b96
lea edx, [esp + 0x70]
push str.recoveryenabled
push edx
call fcn.00a88f66
add esp, 8
test eax, eax
jne 0x9c89bf
lea eax, [esp + 0x30]
push str.bootmgr
push eax
call fcn.00a88f66
add esp, 8
test eax, eax
je 0x9c8b70
cmp dword [ebp + 8], 1
jne 0x9c88fa
lea ecx, [esp + 0x70]
push ecx
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x110]
push str.bcdedit__set__s__s_no
push eax
call fcn.00a78f30
xor ebx, ebx
add esp, 0x10
cmp dword [0xbdc790], ebx
je 0x9c88b0
lea ecx, [esp + 0x108]
push ecx
push str._SBOOT_B___s
push ebx
call fcn.0096a780
add esp, 0xc
mov eax, dword [0xb4c310]
mov dword [esp + 0x10], ebx
cmp eax, 0xffffffff
jne 0x9c8b31
push str.IsWow64Process
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call esi
mov edi, eax
mov dword [esp + 0x20], 0
test edi, edi
je 0x9c88f1
lea edx, [esp + 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call edi
mov eax, dword [esp + 0x20]
jmp 0x9c8b2c
lea eax, [esp + 0x70]
push eax
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x110]
push str.bcdedit__set__s__s_yes
push edx
call fcn.00a78f30
xor ebx, ebx
add esp, 0x10
cmp dword [0xbdc790], ebx
je 0x9c8939
lea eax, [esp + 0x108]
push eax
push str._SBOOT_B___s
push ebx
call fcn.0096a780
add esp, 0xc
mov eax, dword [0xb4c310]
mov dword [esp + 0x10], ebx
cmp eax, 0xffffffff
jne 0x9c897f
push str.IsWow64Process
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call esi
mov edi, eax
mov dword [esp + 0x2c], 0
test edi, edi
je 0x9c8976
lea ecx, [esp + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call edi
mov eax, dword [esp + 0x2c]
mov dword [0xb4c310], eax
test eax, eax
je 0x9c8992
lea edx, [esp + 0x10]
push edx
call fcn.009681c0
add esp, 4
mov ebx, eax
push 0
push 0
push 0
push 0xffffffffffffffff
push 2
push 1
lea eax, [esp + 0x120]
push eax
push 0
call fcn.0095db20
test ebx, ebx
je 0x9c8b70
mov ecx, dword [esp + 0x10]
push ecx
jmp 0x9c8b68
cmp dword [ebp + 8], 1
jne 0x9c8a8d
lea edx, [esp + 0x70]
push edx
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x110]
push str.bcdedit__set__s__s_off
push ecx
call fcn.00a78f30
xor ebx, ebx
add esp, 0x10
cmp dword [0xbdc790], ebx
je 0x9c8a08
lea edx, [esp + 0x108]
push edx
push str._SBOOT_C___s
push ebx
call fcn.0096a780
add esp, 0xc
mov eax, dword [0xb4c310]
mov dword [esp + 0x10], ebx
cmp eax, 0xffffffff
jne 0x9c8a4e
push str.IsWow64Process
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call esi
mov edi, eax
mov dword [esp + 0x28], 0
test edi, edi
je 0x9c8a45
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call edi
mov eax, dword [esp + 0x28]
mov dword [0xb4c310], eax
test eax, eax
je 0x9c8a61
lea ecx, [esp + 0x10]
push ecx
call fcn.009681c0
add esp, 4
mov ebx, eax
push 0
push 0
push 0
push 0xffffffffffffffff
push 2
push 1
lea edx, [esp + 0x120]
push edx
push 0
call fcn.0095db20
test ebx, ebx
je 0x9c8a8d
mov eax, dword [esp + 0x10]
push eax
call fcn.00968240
add esp, 4
lea ecx, [esp + 0x70]
push str.bootems
push ecx
call fcn.00a88f66
add esp, 8
test eax, eax
jne 0x9c8b70
cmp dword [ebp + 8], 1
jne 0x9c8b70
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x10c]
push str.bcdedit__bootems__s_off
push eax
call fcn.00a78f30
xor ebx, ebx
add esp, 0xc
cmp dword [0xbdc790], ebx
je 0x9c8aeb
lea ecx, [esp + 0x108]
push ecx
push str._SBOOT_E___s
push ebx
call fcn.0096a780
add esp, 0xc
mov eax, dword [0xb4c310]
mov dword [esp + 0x10], ebx
cmp eax, 0xffffffff
jne 0x9c8b31
push str.IsWow64Process
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call esi
mov edi, eax
mov dword [esp + 0x1c], 0
test edi, edi
je 0x9c8b28
lea edx, [esp + 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call edi
mov eax, dword [esp + 0x1c]
mov dword [0xb4c310], eax
test eax, eax
je 0x9c8b44
lea eax, [esp + 0x10]
push eax
call fcn.009681c0
add esp, 4
mov ebx, eax
push 0
push 0
push 0
push 0xffffffffffffffff
push 2
push 1
lea ecx, [esp + 0x120]
push ecx
push 0
call fcn.0095db20
test ebx, ebx
je 0x9c8b70
mov edx, dword [esp + 0x10]
push edx
call fcn.00968240
add esp, 4
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0xd4]
push ecx
mov bl, 0x2c
lea edi, [esp + 0x78]
call fcn.0095ae80
add esp, 8
cmp dword [esp + 0x18], 0xffffffff
jne 0x9c8833
lea edx, [esp + 0x30]
push str.bootmgr
push edx
call fcn.00a88f66
add esp, 8
test eax, eax
jne 0x9c8c02
cmp dword [ebp + 8], 1
jne 0x9c8cdb
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x10c]
push str.bcdedit__set__s_displaybootmenu_no
push ecx
call fcn.00a78f30
add esp, 0xc
cmp dword [0xbdc790], 0
je 0x9c8bf0
lea edx, [esp + 0x108]
push edx
push str._SBOOT_G___s
push 0
call fcn.0096a780
add esp, 0xc
lea eax, [esp + 0x108]
push eax
call fcn.009c7800
jmp 0x9c8cd8
cmp dword [ebp + 8], 1
jne 0x9c8c1c
lea ecx, [esp + 0x30]
push ecx
push str.bcdedit__set__s_bootstatuspolicy_IgnoreAllFailures
lea edx, [esp + 0x110]
push edx
jmp 0x9c8c2e
lea eax, [esp + 0x30]
push eax
push str.bcdedit__set__s_bootstatuspolicy_DisplayAllFailures
lea ecx, [esp + 0x110]
push ecx
call fcn.00a78f30
xor ebx, ebx
add esp, 0xc
cmp dword [0xbdc790], ebx
je 0x9c8c56
lea edx, [esp + 0x108]
push edx
push str._SBOOT_G___s
push ebx
call fcn.0096a780
add esp, 0xc
mov eax, dword [0xb4c310]
mov dword [esp + 0x10], ebx
cmp eax, 0xffffffff
jne 0x9c8c9c
push str.IsWow64Process
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call esi
mov edi, eax
mov dword [esp + 0x24], 0
test edi, edi
je 0x9c8c93
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call edi
mov eax, dword [esp + 0x24]
mov dword [0xb4c310], eax
test eax, eax
je 0x9c8caf
lea ecx, [esp + 0x10]
push ecx
call fcn.009681c0
add esp, 4
mov ebx, eax
push 0
push 0
push 0
push 0xffffffffffffffff
push 2
push 1
lea edx, [esp + 0x120]
push edx
push 0
call fcn.0095db20
test ebx, ebx
je 0x9c8cdb
mov eax, dword [esp + 0x10]
push eax
call fcn.00968240
add esp, 4
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0xb4]
push edx
mov bl, 0x2c
lea edi, [esp + 0x38]
call fcn.0095ae80
add esp, 8
cmp dword [esp + 0x14], 0xffffffff
jne 0x9c8803
mov ecx, dword [esp + 0x314]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00a78f21
mov esp, ebp
pop ebp
ret