Function at 0x40f980
Capabilities:
Manipulate boot configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x424f4c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x678
push esi
push edi
call dword [sym.imp.MSVCR71.dll__wcsdup]
push eax
call dword [sym.imp.MSVCR71.dll__wcslwr]
add esp, 8
lea ecx, [ebp - 0x4c]
mov esi, eax
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::constructor_void_]
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x30]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::constructor_void_]
mov byte [ebp - 4], 1
lea eax, [ebp - 0x684]
push eax
lea ecx, [ebp - 0x484]
push ecx
lea edx, [ebp - 0x284]
push edx
lea eax, [ebp - 0x14]
push eax
push esi
call dword [sym.imp.MSVCR71.dll__wsplitpath]
add esp, 0x14
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x84]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::constructor_unsigned_short_int_const__]
mov byte [ebp - 4], 2
lea edx, [ebp - 0x284]
push edx
push eax
lea eax, [ebp - 0x68]
push eax
call fcn.00403050
add esp, 0xc
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x30]
call dword [0x426260]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x68]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::destructor_void_]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x84]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::destructor_void_]
lea ecx, [ebp - 0x484]
push ecx
lea ecx, [ebp - 0x68]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::constructor_unsigned_short_int_const__]
mov byte [ebp - 4], 4
lea edx, [ebp - 0x684]
push edx
push eax
lea eax, [ebp - 0x84]
push eax
call fcn.00403050
add esp, 0xc
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp - 0x4c]
call dword [0x426260]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x84]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::destructor_void_]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x68]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::destructor_void_]
push esi
call dword [sym.imp.MSVCR71.dll_free]
lea ecx, [ebp - 0x4c]
push ecx
push 0x43559c
push 0x435550
call fcn.0040f630
add esp, 0x10
cmp eax, 0x43559c
setne al
test al, al
pop esi
je 0x40faf5
mov al, byte [ebp + 8]
test al, al
je 0x40fb25
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x40fad8
lea eax, [ebp - 0x2c]
push eax
call fcn.0040f820
add esp, 4
test al, al
jne 0x40fb25
push 0
push edi
call dword [sym.imp.MSVCR71.dll__waccess]
add esp, 8
test eax, eax
jne 0x40fb25
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x30]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::destructor_void_]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4c]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::destructor_void_]
mov eax, 0x80004005
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x30]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::destructor_void_]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4c]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::destructor_void_]
mov ecx, dword [ebp - 0xc]
xor eax, eax
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret