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

Disassembly:
sub esp, 0x45c
mov eax, dword [0x4f8028]
xor eax, esp
mov dword [esp + 0x458], eax
push ebx
mov ebx, 1
test byte [0x50354c], bl
push esi
push edi
jne 0x446674
or dword [0x50354c], ebx
mov dword [0x503548], 0x4e7844
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 [0x503548]
mov eax, dword [edx + 0x28]
add esp, 0xc
push 0x80
lea ecx, [esp + 0x64]
push ecx
mov ecx, 0x503548
call eax
test eax, eax
jne 0x446707
test byte [0x503544], bl
jne 0x4466db
or dword [0x503544], ebx
push 0x4732e0
mov dword [0x503520], 0x4e7bc8
mov dword [0x503524], 0xffffffff
call fcn.0046d920
add esp, 4
mov esi, dword [0x503520]
push 0x21a
mov ecx, str.._boot.cpp
add esi, 8
call fcn.00445270
mov ecx, dword [esi]
push eax
push str._s:_Failed_to_IVol.GetSystemVolumeDevice_in_SetFileAttributeForBootIni.
push 0x503520
call ecx
jmp 0x44687f
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.00404df0
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 0x44684c
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 0x44684c
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x458]
xor ecx, esp
call fcn.0046d6fd
add esp, 0x45c
ret
push esi
call sub.ntdll.dll_RtlNtStatusToDosError
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.004205a0
mov edi, eax
mov esi, dword [edi]
push 0x24e
mov ecx, str.._boot.cpp
add esi, 8
call fcn.00445270
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.0046d6fd
add esp, 0x45c
ret