Function at 0x4065eb
Capabilities:
Check if file exists
Get file attributes
Manipulate boot configuration
Set file attributes

Disassembly:
push 0x78
mov eax, 0x41c383
call fcn.00417909
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x68], 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__::constructor_void_]
and dword [ebp - 4], 0
lea ecx, [ebp - 0x2c]
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 - 0x48]
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 eax, [ebp - 0x64]
push eax
mov byte [ebp - 4], 2
call fcn.004078fe
mov esi, eax
test esi, esi
je 0x4067cb
cmp dword [ebp - 0x50], 0
je 0x4067cb
mov ebx, 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 str.Boot.ini
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x84]
push eax
call ebx
add esp, 0xc
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 3
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 - 0x84]
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_]
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x406686
lea eax, [ebp - 0x28]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push eax
call edi
mov esi, eax
test esi, esi
je 0x4067cb
push str.GJLDR
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x84]
push eax
call ebx
add esp, 0xc
push eax
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 4
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 - 0x84]
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_]
cmp dword [ebp - 0x30], 8
mov eax, dword [ebp - 0x44]
jae 0x4066d8
lea eax, [ebp - 0x44]
push eax
call edi
mov esi, eax
test esi, esi
jne 0x40671a
cmp dword [ebp + 8], 1
jne 0x40671a
call fcn.0041ab80
test al, al
je 0x4067cb
cmp dword [ebp - 0x30], 8
mov eax, dword [ebp - 0x44]
jae 0x406700
lea eax, [ebp - 0x44]
push eax
push str._SetStartOptionForNT5__file_not_exist__s
push 0xb
push str.D:jenkins_Trunkworkspace10.6Patch_SourceJobqqpcmgr_projBlueRayFTSafeAppQMBlueScreenFixerQMOperateSystemOpt.cpp
call fcn.0041ad40
add esp, 0x10
jmp 0x4067cb
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x406726
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4067b7
mov ecx, dword [ebp - 0x28]
and eax, 0xfffffffe
cmp dword [ebp - 0x14], 8
jae 0x406749
lea ecx, [ebp - 0x28]
push eax
push ecx
call edi
mov esi, eax
test esi, esi
je 0x4067b7
cmp dword [ebp + 8], 1
jne 0x406787
cmp dword [ebp - 0x14], 8
mov edx, dword [ebp - 0x28]
jae 0x406765
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0x68]
cmp dword [eax + 0x18], 8
jb 0x406773
mov eax, dword [eax + 4]
jmp 0x406776
add eax, 4
cmp dword [ebp - 0x30], 8
mov ecx, dword [ebp - 0x44]
jae 0x406782
lea ecx, [ebp - 0x44]
push edx
push eax
push ecx
jmp 0x4067a3
cmp dword [ebp - 0x14], 8
mov ecx, dword [ebp - 0x28]
jae 0x406793
lea ecx, [ebp - 0x28]
cmp dword [ebp - 0x30], 8
mov eax, dword [ebp - 0x44]
jae 0x40679f
lea eax, [ebp - 0x44]
push ecx
push 0
push eax
push str.operating_systems
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov esi, eax
test esi, esi
je 0x4067b7
xor esi, esi
inc esi
test ebx, ebx
je 0x4067cb
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x4067c7
lea eax, [ebp - 0x28]
push ebx
push eax
call edi
lea ecx, [ebp - 0x48]
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 - 0x2c]
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 - 0x64]
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, esi
call fcn.00417953
ret 8