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

Disassembly:
push 0x340
mov eax, 0x41ca20
call fcn.00417909
mov eax, dword [ebp + 8]
mov dword [ebp - 0x30c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x308], eax
mov eax, dword [ebp + 0x10]
lea ecx, [ebp - 0x2ac]
mov dword [ebp - 0x310], eax
xor ebx, ebx
xor edi, edi
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 - 0x274]
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 - 0x2e4]
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_]
lea ecx, [ebp - 0x258]
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__::constructor_void_]
lea ecx, [ebp - 0x290]
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__::constructor_void_]
push 0x208
lea eax, [ebp - 0x21e]
push ebx
mov byte [ebp - 4], 4
push eax
mov word [ebp - 0x220], bx
call sub.MSVCR80.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x2c8]
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 - 0x23c]
mov byte [ebp - 4], 5
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 - 0x220]
push eax
mov byte [ebp - 4], 6
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, ebx
je 0x406e16
cmp eax, esi
jae 0x406e16
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x23c]
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 - 0x23c]
call dword [0x41d224]
lea eax, [ebp - 0x23c]
push eax
mov edi, 0x424174
lea eax, [ebp - 0x32c]
push edi
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__]
add esp, 0xc
push edi
push eax
lea eax, [ebp - 0x348]
mov byte [ebp - 4], 7
mov edi, 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 edi
add esp, 0xc
push str.__create__d__QMBlueScreenFix___application_bootsector
push eax
lea eax, [ebp - 0x304]
push eax
mov byte [ebp - 4], 8
call edi
add esp, 0xc
push eax
lea ecx, [ebp - 0x2e4]
mov byte [ebp - 4], 9
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 - 0x304]
mov byte [ebp - 4], 8
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 - 0x348]
mov byte [ebp - 4], 7
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 - 0x32c]
mov byte [ebp - 4], 6
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 - 0x2ac]
push eax
lea ecx, [ebp - 0x2e4]
call fcn.004075ae
mov edi, eax
cmp edi, ebx
je 0x406e33
push ebx
push 0x424178
lea ecx, [ebp - 0x2ac]
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]
mov dword [ebp - 0x2e8], eax
je 0x406e33
push ebx
push 0x42417c
lea ecx, [ebp - 0x2ac]
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 0x406e33
sub eax, dword [ebp - 0x2e8]
cmp eax, 0x25
jne 0x406e33
push 0x26
push dword [ebp - 0x2e8]
lea eax, [ebp - 0x32c]
push eax
lea ecx, [ebp - 0x2ac]
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 - 0x258]
mov byte [ebp - 4], 0xa
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 - 0x32c]
mov byte [ebp - 4], 6
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_]
cmp dword [ebp - 0x244], ebx
je 0x406e33
lea eax, [ebp - 0x274]
push eax
call fcn.004078fe
mov edi, eax
cmp edi, ebx
je 0x406e33
push ebx
push 0x4221f4
lea ecx, [ebp - 0x274]
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]
mov ecx, dword [ecx]
cmp eax, ecx
je 0x406e33
push ecx
push eax
lea ecx, [ebp - 0x274]
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__::erase_unsigned_int__unsigned_int_]
cmp dword [ebp - 0x25c], 8
mov edx, dword [ebp - 0x270]
jae 0x406a9c
lea edx, [ebp - 0x270]
cmp dword [ebp - 0x240], 8
mov ecx, dword [ebp - 0x254]
jae 0x406ab1
lea ecx, [ebp - 0x254]
cmp dword [ebp - 0x224], 8
mov eax, dword [ebp - 0x238]
jae 0x406ac6
lea eax, [ebp - 0x238]
mov ebx, dword [sym.imp.MSVCR80.dll__snwprintf]
push edx
push ecx
push eax
push 0x424180
lea eax, [ebp - 0x220]
push esi
push eax
call ebx
add esp, 0x18
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x304]
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_wchar_t_const__]
lea eax, [ebp - 0x304]
call fcn.00407514
lea ecx, [ebp - 0x304]
mov edi, eax
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_]
test edi, edi
je 0x406e33
push dword [ebp - 0x310]
lea eax, [ebp - 0x32c]
push 0x4221f4
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__]
add esp, 0xc
push eax
lea ecx, [ebp - 0x290]
mov byte [ebp - 4], 0xb
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 - 0x32c]
mov byte [ebp - 4], 6
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_]
cmp dword [ebp - 0x278], 8
mov edx, dword [ebp - 0x28c]
jae 0x406b66
lea edx, [ebp - 0x28c]
cmp dword [ebp - 0x240], 8
mov ecx, dword [ebp - 0x254]
jae 0x406b7b
lea ecx, [ebp - 0x254]
cmp dword [ebp - 0x224], 8
mov eax, dword [ebp - 0x238]
jae 0x406b90
lea eax, [ebp - 0x238]
push edx
push ecx
push eax
push str.__s___set__s_path__s
lea eax, [ebp - 0x220]
push esi
push eax
call ebx
add esp, 0x18
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x304]
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_wchar_t_const__]
lea eax, [ebp - 0x304]
call fcn.00407514
lea ecx, [ebp - 0x304]
mov edi, eax
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_]
test edi, edi
je 0x406e33
lea eax, [ebp - 0x2c8]
push eax
call fcn.0040839c
cmp eax, 1
jne 0x406ca0
mov eax, dword [ebp - 0x30c]
cmp word [eax + 0x14], 0x804
jne 0x406ca0
mov edi, str.zh_cn
lea eax, [ebp - 0x2c8]
push edi
push eax
call dword [sym.imp.MSVCP80.dll_bool___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__]
test al, al
pop ecx
pop ecx
je 0x406ca0
call fcn.0040869c
test eax, eax
je 0x406ca0
cmp dword [ebp - 0x224], 8
mov eax, dword [ebp - 0x238]
jae 0x406c3b
lea eax, [ebp - 0x238]
push edi
push eax
push str.__s___set_bootmgr_locale___s_
lea eax, [ebp - 0x220]
push esi
push eax
call ebx
add esp, 0x14
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x304]
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_wchar_t_const__]
lea eax, [ebp - 0x304]
call fcn.00407514
lea ecx, [ebp - 0x304]
mov edi, eax
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_]
call fcn.0041ab80
test al, al
je 0x406ca0
push edi
lea eax, [ebp - 0x220]
push eax
push str._SetStartOptionForNT6__Excute_cmd_s__return__d
push 0xb
push str.D:jenkins_Trunkworkspace10.6Patch_SourceJobqqpcmgr_projBlueRayFTSafeAppQMBlueScreenFixerQMOperateSystemOpt.cpp
call fcn.0041ad40
add esp, 0x14
mov eax, dword [ebp - 0x308]
cmp dword [eax + 0x18], 8
jb 0x406cb1
mov eax, dword [eax + 4]
jmp 0x406cb4
add eax, 4
cmp dword [ebp - 0x240], 8
mov edx, dword [ebp - 0x254]
jae 0x406cc9
lea edx, [ebp - 0x254]
cmp dword [ebp - 0x224], 8
mov ecx, dword [ebp - 0x238]
jae 0x406cde
lea ecx, [ebp - 0x238]
push eax
push edx
push ecx
push str.__s___set__s_description___s_
lea eax, [ebp - 0x220]
push esi
push eax
call ebx
add esp, 0x18
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x304]
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_wchar_t_const__]
lea eax, [ebp - 0x304]
call fcn.00407514
lea ecx, [ebp - 0x304]
mov edi, eax
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_]
test edi, edi
je 0x406e33
cmp dword [ebp - 0x240], 8
mov ecx, dword [ebp - 0x254]
mov edx, ecx
jae 0x406d40
lea edx, [ebp - 0x254]
mov ecx, edx
cmp dword [ebp - 0x224], 8
mov eax, dword [ebp - 0x238]
jae 0x406d55
lea eax, [ebp - 0x238]
push edx
push str.33300001
push ecx
push eax
push str.__s___set__s_custom:_s__s
lea eax, [ebp - 0x220]
push esi
push eax
call ebx
add esp, 0x1c
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x304]
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_wchar_t_const__]
lea eax, [ebp - 0x304]
call fcn.00407514
lea ecx, [ebp - 0x304]
mov edi, eax
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_]
test edi, edi
je 0x406e33
cmp dword [ebp - 0x240], 8
mov ecx, dword [ebp - 0x254]
jae 0x406db8
lea ecx, [ebp - 0x254]
cmp dword [ebp - 0x224], 8
mov eax, dword [ebp - 0x238]
jae 0x406dcd
lea eax, [ebp - 0x238]
push ecx
push eax
push str.__s___displayorder__s___addlast
lea eax, [ebp - 0x220]
push esi
push eax
call ebx
add esp, 0x14
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x304]
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_wchar_t_const__]
lea eax, [ebp - 0x304]
call fcn.00407514
lea ecx, [ebp - 0x304]
mov edi, eax
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_]
test edi, edi
je 0x406e33
xor edi, edi
inc edi
jmp 0x406e33
call fcn.0041ab80
test al, al
je 0x406e33
push str._SetStartOptionForNT6__GetSystemDirectory_return_failed
push 0xb
push str.D:jenkins_Trunkworkspace10.6Patch_SourceJobqqpcmgr_projBlueRayFTSafeAppQMBlueScreenFixerQMOperateSystemOpt.cpp
call fcn.0041ad40
add esp, 0xc
lea ecx, [ebp - 0x23c]
mov byte [ebp - 4], 5
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 - 0x2c8]
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 - 0x290]
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 - 0x258]
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 ecx, [ebp - 0x2e4]
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 - 0x274]
mov byte [ebp - 4], 0
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 - 0x2ac]
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, edi
call fcn.00417953
ret 0xc