Function at 0x441ff0
Capabilities:
Manipulate boot configuration
Set file attributes

Disassembly:
sub esp, 0x45c
mov eax, dword [0x4e9028]
xor eax, esp
mov dword [esp + 0x458], eax
push ebx
mov ebx, 1
test byte [0x4f190c], bl
push esi
push edi
jne 0x442024
or dword [0x4f190c], ebx
mov dword [0x4f1908], 0x4db424
xor edi, edi
push 0xfe
lea eax, [esp + 0x66]
push edi
push eax
mov word [esp + 0x6c], di
call sub.ntdll.dll_memset
mov edx, dword [0x4f1908]
mov eax, dword [edx + 0x28]
add esp, 0xc
push 0x80
lea ecx, [esp + 0x64]
push ecx
mov ecx, 0x4f1908
call eax
test eax, eax
jne 0x4420b7
test byte [0x4f1904], bl
jne 0x44208b
or dword [0x4f1904], ebx
push 0x467ae0
mov dword [0x4f18dc], 0x4dbdb8
mov dword [0x4f18e0], 0xffffffff
call fcn.00462d9a
add esp, 4
mov esi, dword [0x4f18dc]
push 0x21a
mov ecx, str.._boot.cpp
add esi, 8
call fcn.00440c20
mov ecx, dword [esi]
push eax
push str._s:_Failed_to_IVol.GetSystemVolumeDevice_in_SetFileAttributeForBootIni.
push 0x4f18dc
call ecx
jmp 0x44222f
push 0xfe
lea edx, [esp + 0x166]
push edi
push edx
mov word [esp + 0x16c], di
call sub.ntdll.dll_memset
lea eax, [esp + 0x6c]
push eax
lea ecx, [esp + 0x170]
push 0x80
push ecx
call dword [sym.imp.MSVCR80.dll_wcscpy_s]
push 0x1fe
lea edx, [esp + 0x27e]
push edi
push edx
mov word [esp + 0x284], di
call sub.ntdll.dll_memset
lea eax, [esp + 0x184]
push eax
push str._s_boot.ini
lea edx, [esp + 0x28c]
call fcn.00404520
add esp, 0x2c
lea ecx, [esp + 0x260]
push ecx
lea edx, [esp + 0x54]
push edx
mov dword [esp + 0x14], 0xffffffff
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
push 0x20
push edi
lea ecx, [esp + 0x60]
push ecx
lea edx, [esp + 0x44]
lea eax, [esp + 0x5c]
push edx
mov dword [esp + 0x50], eax
push 0x100100
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0x50], 0x18
mov dword [esp + 0x54], edi
mov dword [esp + 0x5c], 0x40
mov dword [esp + 0x60], edi
mov dword [esp + 0x64], edi
call dword [sym.imp.ntdll.dll_ZwOpenFile]
mov esi, eax
cmp esi, edi
jne 0x4421fc
mov ecx, dword [esp + 0x46c]
xor eax, eax
push 4
push 0x28
mov dword [esp + 0x38], eax
lea edx, [esp + 0x18]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x3c], eax
push edx
lea eax, [esp + 0x64]
mov dword [esp + 0x3c], ecx
mov ecx, dword [esp + 0x18]
push eax
push ecx
call dword [sym.imp.ntdll.dll_ZwSetInformationFile]
mov edx, dword [esp + 0xc]
push edx
mov esi, eax
call dword [sym.imp.ntdll.dll_ZwClose]
cmp esi, edi
jne 0x4421fc
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x458]
xor ecx, esp
call fcn.00462b77
add esp, 0x45c
ret
push esi
call sub.ntdll.dll_RtlNtStatusToDosError
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.0041e870
mov edi, eax
mov esi, dword [edi]
push 0x24e
mov ecx, str.._boot.cpp
add esi, 8
call fcn.00440c20
push eax
mov eax, dword [esi]
push str._s:_Failed_to_ZwSetInformationFile_in_SetFileAttributeForBootIni.
push edi
call eax
mov ecx, dword [esp + 0x474]
add esp, 0x10
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.00462b77
add esp, 0x45c
ret