Function at 0x478d52
Capabilities:
Create process on windows
Get common file path

Disassembly:
push 0x40
mov eax, 0x4dc3e3
call fcn.004becb0
xor ebx, ebx
mov dword [ebp - 0x48], vtable.CArray_struct_SHiveInfoParams__struct_SHiveInfoParams__.0
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x40], ebx
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x48]
push eax
push 0x3e
push esi
mov dword [ebp - 4], ebx
call fcn.00479336
call fcn.00499991
push eax
lea ecx, [ebp - 0x14]
call fcn.004727f7
lea eax, [ebp - 0x14]
push eax
lea edx, [ebp - 0x48]
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.004795b0
cmp eax, ebx
jne 0x478e0d
add esi, 8
mov eax, dword [esi]
cmp dword [eax - 0xc], ebx
jne 0x478de1
lea eax, [ebp - 0x1c]
push eax
xor ecx, ecx
call fcn.0047a096
mov byte [ebp - 4], 2
push dword [eax]
push str.Install_failed__r_nCannot_create_parameter_file._r_n_s
push esi
call fcn.00402967
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x1c]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004027b0
mov esi, dword [esi]
push ebx
push 0x10
push esi
call fcn.004995c6
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.004027b0
or dword [ebp - 4], 0xffffffff
lea edi, [ebp - 0x48]
call fcn.0047a179
xor eax, eax
call fcn.004bed88
ret 4
mov edi, dword [ebp - 0x14]
push edi
mov ecx, esi
call fcn.00479d2c
cmp eax, ebx
je 0x478e79
add esi, 8
mov eax, dword [esi]
cmp dword [eax - 0xc], ebx
jne 0x478e54
lea eax, [ebp - 0x20]
push eax
xor ecx, ecx
call fcn.0047a096
mov byte [ebp - 4], 3
push dword [eax]
push str.Install_failed__r_nCannot_setup_boot_defragger._r_n_s
push esi
call fcn.00402967
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x20]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004027b0
mov esi, dword [esi]
push ebx
push 0x10
push esi
call fcn.004995c6
lea ecx, [edi - 0x10]
call fcn.004027b0
xor esi, esi
or dword [ebp - 4], 0xffffffff
lea edi, [ebp - 0x48]
call fcn.0047a179
mov eax, esi
jmp 0x478e05
push ebx
push 0x2044
mov edi, 0x523938
push edi
push ecx
mov ecx, esp
mov dword [ebp - 0x20], esp
mov esi, str.RESOURCESTRING
push esi
mov byte [0x5858c1], 0
call fcn.004024df
push ecx
mov byte [ebp - 4], 6
mov ecx, esp
mov dword [ebp - 0x1c], esp
push str.IDS_OPT_AT_NEXT_RESTART
call fcn.004024df
lea eax, [ebp - 0x24]
push eax
mov byte [ebp - 4], 1
call fcn.004068e2
mov byte [ebp - 4], 7
push dword [eax]
call fcn.004995c6
cmp eax, 6
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x24]
sete byte [ebp - 0xd]
add ecx, 0xfffffff0
call fcn.004027b0
cmp byte [ebp - 0xd], 0
je 0x478ffa
push 0x527df0
push edi
push ecx
mov ecx, esp
mov dword [ebp - 0x34], esp
push esi
call fcn.004024df
push ecx
mov byte [ebp - 4], 8
mov ecx, esp
mov dword [ebp - 0x24], esp
push str.IDS_SHUTDOWN_MSG_DEFRAG
call fcn.004024df
lea eax, [ebp - 0x2c]
push eax
mov byte [ebp - 4], 1
call fcn.004068e2
push eax
lea eax, [ebp - 0x28]
push str._r__t_60__c__
push eax
mov byte [ebp - 4], 9
call fcn.0040f56d
add esp, 0xc
push eax
lea eax, [ebp - 0x18]
push eax
mov byte [ebp - 4], 0xa
call fcn.0040210c
add esp, 0xc
mov ecx, dword [ebp - 0x28]
add ecx, 0xfffffff0
call fcn.004027b0
mov byte [ebp - 4], 0xd
mov ecx, dword [ebp - 0x2c]
add ecx, 0xfffffff0
call fcn.004027b0
push 0x208
push ebx
mov ebx, 0x587778
push ebx
call fcn.004be850
add esp, 0xc
push 0x103
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0
push ebx
push dword [ebp - 0x18]
push str.shutdown.exe
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push edi
push ecx
mov ecx, esp
mov dword [ebp - 0x34], esp
push esi
call fcn.004024df
push ecx
mov byte [ebp - 4], 0xe
mov ecx, esp
mov dword [ebp - 0x24], esp
push str.IDS_SHUTDOWN_MSG_DEFRAG
call fcn.004024df
lea eax, [ebp - 0x30]
push eax
mov byte [ebp - 4], 0xd
call fcn.004068e2
push ecx
mov byte [ebp - 4], 0xf
mov ecx, esp
mov dword [ebp - 0x34], esp
push eax
push str.PostQuitMessage_:
push ecx
call fcn.0040f56d
add esp, 0xc
call fcn.0045c866
pop ecx
mov ecx, dword [ebp - 0x30]
add ecx, 0xfffffff0
call fcn.004027b0
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
mov ecx, dword [ebp - 0x18]
jmp 0x479041
mov al, byte [0x585974]
test al, al
je 0x479049
push ebx
push ebx
push edi
push ecx
mov ecx, esp
mov dword [ebp - 0x30], esp
push esi
call fcn.004024df
push ecx
mov byte [ebp - 4], 0x10
mov ecx, esp
mov dword [ebp - 0x2c], esp
push str.IDS_OPT_SCHDULED_AT_NEXT_RESTART
call fcn.004024df
lea eax, [ebp - 0x34]
push eax
mov byte [ebp - 4], 1
call fcn.004068e2
mov byte [ebp - 4], 0x11
push dword [eax]
call fcn.004995c6
mov ecx, dword [ebp - 0x34]
add ecx, 0xfffffff0
call fcn.004027b0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x14]
xor esi, esi
inc esi
add ecx, 0xfffffff0
mov dword [eax], esi
call fcn.004027b0
jmp 0x478e69