Function at 0x40839c
Capabilities:
Get common file path
Manipulate boot configuration

Disassembly:
push 0x2c0
mov eax, 0x41c7f4
call fcn.00417909
mov eax, dword [ebp + 8]
xor ebx, ebx
push 0x208
mov dword [ebp - 0x278], eax
lea eax, [ebp - 0x21a]
push ebx
push eax
mov dword [ebp - 0x274], ebx
mov word [ebp - 0x21c], bx
call sub.MSVCR80.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x254]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
lea ecx, [ebp - 0x238]
mov dword [ebp - 4], ebx
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
lea ecx, [ebp - 0x270]
mov byte [ebp - 4], 1
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
mov esi, 0x104
push esi
lea eax, [ebp - 0x21c]
push eax
mov byte [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, ebx
mov edi, str.D:jenkins_Trunkworkspace10.6Patch_SourceJobqqpcmgr_projBlueRayFTSafeAppQMBlueScreenFixerQMOperateSystemOpt.cpp
je 0x40862d
cmp eax, esi
jae 0x40862d
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x270]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
push str._bcdedit.exe
lea ecx, [ebp - 0x270]
call dword [0x41d224]
lea eax, [ebp - 0x270]
push eax
mov esi, 0x424174
lea eax, [ebp - 0x294]
push esi
push eax
call dword [sym.imp.MSVCP80.dll_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____cdecl_std::operator_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___wchar_t_const___class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
push esi
push eax
lea eax, [ebp - 0x2b0]
mov byte [ebp - 4], 3
mov esi, dword [sym.imp.MSVCP80.dll_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____cdecl_std::operator_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const___wchar_t_const__]
push eax
call esi
push str.__enum_active
push eax
lea eax, [ebp - 0x2cc]
push eax
mov byte [ebp - 4], 4
call esi
add esp, 0x24
push eax
lea ecx, [ebp - 0x254]
mov byte [ebp - 4], 5
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
lea ecx, [ebp - 0x2cc]
mov byte [ebp - 4], 4
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [ebp - 0x2b0]
mov byte [ebp - 4], 3
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [ebp - 0x294]
mov byte [ebp - 4], 2
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea eax, [ebp - 0x238]
push eax
lea ecx, [ebp - 0x254]
call fcn.004075ae
cmp eax, ebx
mov dword [ebp - 0x274], eax
jne 0x40852d
call fcn.0041ab80
test al, al
je 0x408646
cmp dword [ebp - 0x23c], 8
mov eax, dword [ebp - 0x250]
jae 0x408517
lea eax, [ebp - 0x250]
push eax
push str._SetStartOptionForNT6__ExeCmdForCallBack_return_failed_cmd_s
push 0xb
push edi
call fcn.0041ad40
add esp, 0x10
jmp 0x408646
push ebx
push str.bootmgr
lea ecx, [ebp - 0x238]
call dword [sym.imp.MSVCP80.dll_public:_unsigned_int___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::find_wchar_t_const___unsigned_int_const]
mov ecx, dword [sym.imp.MSVCP80.dll_unsigned_int_const_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::npos]
cmp eax, dword [ecx]
je 0x408646
push eax
push str.locale
lea ecx, [ebp - 0x238]
call dword [sym.imp.MSVCP80.dll_public:_unsigned_int___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::find_wchar_t_const___unsigned_int_const]
mov esi, eax
mov eax, dword [sym.imp.MSVCP80.dll_unsigned_int_const_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::npos]
cmp esi, dword [eax]
je 0x408646
push esi
push 0x424c18
lea ecx, [ebp - 0x238]
call dword [sym.imp.MSVCP80.dll_public:_unsigned_int___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::find_wchar_t_const___unsigned_int_const]
mov ecx, dword [sym.imp.MSVCP80.dll_unsigned_int_const_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::npos]
cmp eax, dword [ecx]
je 0x408646
sub eax, esi
push eax
push esi
lea eax, [ebp - 0x294]
push eax
lea ecx, [ebp - 0x238]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::substr_unsigned_int__unsigned_int_]
push eax
lea ecx, [ebp - 0x238]
mov byte [ebp - 4], 6
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
lea ecx, [ebp - 0x294]
mov byte [ebp - 4], 2
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
xor esi, esi
push ebx
push dword [esi*4 + 0x42c808]
lea ecx, [ebp - 0x238]
call dword [sym.imp.MSVCP80.dll_public:_unsigned_int___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::find_wchar_t_const___unsigned_int_const]
mov ecx, dword [sym.imp.MSVCP80.dll_unsigned_int_const_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::npos]
cmp eax, dword [ecx]
jne 0x4085ee
inc esi
cmp esi, 4
jb 0x4085c8
jmp 0x408646
mov dword [ebp - 0x274], 1
call fcn.0041ab80
test al, al
je 0x408618
push dword [esi*4 + 0x42c808]
push str._GetBootMgrLanguage__get_bootmgr_language:__s
push 0xb
push edi
call fcn.0041ad40
add esp, 0x10
push dword [esi*4 + 0x42c808]
mov ecx, dword [ebp - 0x278]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
jmp 0x408646
call fcn.0041ab80
test al, al
je 0x408646
push str._SetStartOptionForNT6__GetSystemDirectory_return_failed
push 0xb
push edi
call fcn.0041ad40
add esp, 0xc
call fcn.0041ab80
test al, al
je 0x40865f
push str._GetBootMgrLanguage__cannot_get_bootmgr_language
push 0xb
push edi
call fcn.0041ad40
add esp, 0xc
lea ecx, [ebp - 0x270]
mov byte [ebp - 4], 1
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [ebp - 0x238]
mov byte [ebp - 4], bl
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x254]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov eax, dword [ebp - 0x274]
call fcn.00417953
ret 4