Function at 0x578890
Capabilities:
Get file attributes
Manipulate boot configuration
Read .ini file
Set file attributes
Shutdown system

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5fcc50
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x70f200]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x5c], esi
mov bl, byte [ebp + 8]
mov ecx, dword [esi + 0xec]
mov byte [ebp - 0x4d], bl
test ecx, ecx
je 0x578c3f
call fcn.005dbeb0
test al, al
jne 0x578c3f
push str.Rebooting_the_computer_in_safe_mode...
push 0xffffffffffffffff
mov ecx, esi
call fcn.0057b610
mov ecx, dword [esi + 0xcc]
test ecx, ecx
je 0x578900
push 0
call fcn.005b6180
push 0
push 1
mov ecx, esi
call fcn.005494d0
mov ecx, dword [esi + 0xec]
sub esp, 8
xorps xmm0, xmm0
mov dword [ebp - 0x3c], 0
movq qword [ebp - 0x44], xmm0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push str.___RestoreBoot
call fcn.005dc190
push eax
push 0x624388
lea ecx, [ebp - 0x44]
call fcn.005dc520
push 1
push 1
lea ecx, [ebp - 0x44]
mov dword [ebp - 4], 0
call fcn.005dc190
push eax
push str.RestoreNormalBoot
push str.HKLMSOFTWAREMicrosoftWindowsCurrentVersionRunonce
call fcn.005537f0
movzx edi, al
test al, al
je 0x578b9e
movsd xmm0, qword [0x6edab0]
comisd xmm0, xmmword [esi]
jbe 0x578b4a
mov ecx, str.__safeboot:minimal__sos__bootlog__noguiboot
mov dword [ebp - 0x24], 0
test bl, bl
mov eax, str.__safeboot:network__sos__bootlog__noguiboot
xorps xmm0, xmm0
cmove eax, ecx
movq qword [ebp - 0x2c], xmm0
sub esp, 8
mov dword [ebp - 0x54], eax
lea ecx, [ebp - 0x2c]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push str._boot.ini
push dword [esi + 0x3c]
call fcn.005dc520
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.005dc190
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x60], eax
lea ecx, [ebp - 0x2c]
and eax, 0xfffffffa
push eax
call fcn.005dc190
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xorps xmm0, xmm0
push 0x2000
movlpd qword [ebp - 0x4c], xmm0
call fcn.0041e7cf
mov ebx, eax
mov dword [ebp - 0x48], 0x1000
add esp, 4
mov dword [ebp - 0x4c], ebx
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.005dc190
push eax
push 0x1000
push ebx
push str.operating_systems
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
test eax, eax
je 0x578b33
xorps xmm0, xmm0
mov dword [ebp - 0x58], ebx
lea ecx, [ebp - 0x38]
movq qword [ebp - 0x38], xmm0
mov dword [ebp - 0x30], 0
call fcn.005dc5e0
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x20]
movq qword [ebp - 0x20], xmm0
call fcn.005dc5e0
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 4
push eax
lea edx, [ebp - 0x38]
mov ecx, ebx
call fcn.005dd9b0
test al, al
je 0x578b0d
mov esi, dword [ebp - 0x54]
nop dword [eax + eax]
push 0
push 1
push 1
push 0
push str.__safeboot:
lea ecx, [ebp - 0x20]
call fcn.005daa70
test eax, eax
je 0x578ab3
dec eax
lea ecx, [ebp - 0x20]
push eax
call fcn.005dae00
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push esi
lea ecx, [ebp - 0x20]
call fcn.005da780
lea ecx, [ebp - 0x38]
call fcn.005dc190
push eax
push str.operating_systems
lea ecx, [ebp - 0x2c]
call fcn.005dc190
push eax
lea ecx, [ebp - 0x20]
call fcn.005db1a0
lea edx, [ebp - 0x38]
lea ecx, [ebp - 0x58]
movzx eax, byte [eax + 8]
add edi, eax
lea eax, [ebp - 0x20]
push eax
call fcn.005dda20
test al, al
jne 0x578a90
mov esi, dword [ebp - 0x5c]
mov eax, dword [ebp - 0x60]
lea ecx, [ebp - 0x2c]
or eax, 5
push eax
call fcn.005dc190
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea ecx, [ebp - 0x20]
call fcn.005dc430
lea ecx, [ebp - 0x38]
call fcn.005dc430
push ebx
call fcn.0041e1c3
add esp, 4
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.005dc430
jmp 0x578b9e
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
mov ecx, str.__set_current_safeboot_Minimal
test bl, bl
mov eax, str.__set_current_safeboot_Network
cmove eax, ecx
lea ecx, [ebp - 0x44]
push eax
push str._bcdedit.exe_
push dword [esi + 0x44]
push 0x624388
call fcn.005dc200
push 1
push 5
push dword [esi + 0x44]
lea ecx, [ebp - 0x44]
call fcn.005dc190
mov edx, eax
xor ecx, ecx
call fcn.005e2a10
neg eax
sbb eax, eax
inc eax
add edi, eax
cmp byte [ebp - 0x4d], 0
mov ebx, str._with_newtworking.
mov eax, 0x624288
mov ecx, esi
cmove ebx, eax
cmp edi, 2
jge 0x578bf7
push 1
call fcn.00553920
push str.HKLMSOFTWAREMicrosoftWindowsCurrentVersionRunonce___RestoreNormalBoot
call fcn.0054c050
push 0
push 0
push ebx
push str.Failed_to_reboot_the_computer_in_safe_mode
mov ecx, esi
call fcn.0057b7e0
mov ecx, dword [esi + 0xcc]
test ecx, ecx
je 0x578be9
push 1
call fcn.005b6180
lea ecx, [ebp - 0x44]
xor esi, esi
call fcn.005dc430
mov eax, esi
jmp 0x578c41
push 0
push 0
push ebx
push str.Successfully_rebooted_the_computer_in_safe_mode
call fcn.0057b7e0
mov eax, dword [esi + 0x108]
test eax, eax
je 0x578c13
mov byte [eax], 0
push 0
push 0x12
call dword [sym.imp.USER32.dll_ExitWindowsEx]
mov ecx, dword [esi + 0xcc]
test ecx, ecx
je 0x578c2e
push 1
call fcn.005b6180
lea ecx, [ebp - 0x44]
mov esi, 1
call fcn.005dc430
mov eax, esi
jmp 0x578c41
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0041e1b5
mov esp, ebp
pop ebp
ret 4