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

Disassembly:
push 0x40
mov eax, 0x50b48f
call fcn.004e3d00
xor esi, esi
mov dword [ebp - 0x48], vtable.CArray_struct_SHiveInfoParams__struct_SHiveInfoParams__.0
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x40], esi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x48]
push eax
push 0x3e
push edi
mov dword [ebp - 4], esi
call fcn.0048ceb6
call fcn.004be6f3
push eax
lea ecx, [ebp - 0x14]
call fcn.004027f9
lea eax, [ebp - 0x14]
push eax
lea edx, [ebp - 0x48]
mov ecx, edi
mov byte [ebp - 4], 1
call fcn.0048d130
cmp eax, esi
jne 0x48c994
add edi, 8
mov eax, dword [edi]
cmp dword [eax - 0xc], esi
jne 0x48c968
lea eax, [ebp - 0x1c]
push eax
xor ecx, ecx
call fcn.0048dc16
mov byte [ebp - 4], 2
push dword [eax]
push str.Install_failed__r_nCannot_create_parameter_file._r_n_s
push edi
call fcn.00402a1d
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x1c]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.0040285b
mov edi, dword [edi]
push esi
push 0x10
push edi
call fcn.004be306
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.0040285b
or dword [ebp - 4], 0xffffffff
lea edi, [ebp - 0x48]
call fcn.0048dcf9
xor eax, eax
call fcn.004e3dd8
ret 4
mov ebx, dword [ebp - 0x14]
push ebx
mov ecx, edi
call fcn.0048d8ac
cmp eax, esi
je 0x48c9fe
add edi, 8
mov eax, dword [edi]
cmp dword [eax - 0xc], esi
jne 0x48c9db
lea eax, [ebp - 0x20]
push eax
xor ecx, ecx
call fcn.0048dc16
mov byte [ebp - 4], 3
push dword [eax]
push str.Install_failed__r_nCannot_setup_boot_defragger._r_n_s
push edi
call fcn.00402a1d
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x20]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.0040285b
mov edi, dword [edi]
push esi
push 0x10
push edi
call fcn.004be306
lea ecx, [ebx - 0x10]
call fcn.0040285b
or dword [ebp - 4], 0xffffffff
lea edi, [ebp - 0x48]
call fcn.0048dcf9
mov eax, esi
jmp 0x48c98c
push esi
push 0x2044
mov ebx, 0x5afd90
push ebx
push ecx
mov ecx, esp
mov dword [ebp - 0x20], esp
mov edi, str.RESOURCESTRING
push edi
mov byte [0x60a911], 0
call fcn.0040253b
push ecx
mov byte [ebp - 4], 0x4a
mov ecx, esp
mov dword [ebp - 0x1c], esp
push str.IDS_OPT_AT_NEXT_RESTART
call fcn.0040253b
lea eax, [ebp - 0x24]
push eax
mov byte [ebp - 4], 1
call fcn.00406ef3
mov byte [ebp - 4], 0x4b
push dword [eax]
call fcn.004be306
cmp eax, 6
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x24]
sete byte [ebp - 0xd]
add ecx, 0xfffffff0
call fcn.0040285b
cmp byte [ebp - 0xd], 0
je 0x48cb7f
push 0x5b3664
push ebx
push ecx
mov ecx, esp
mov dword [ebp - 0x34], esp
push edi
call fcn.0040253b
push ecx
mov byte [ebp - 4], 0x4c
mov ecx, esp
mov dword [ebp - 0x24], esp
push str.IDS_SHUTDOWN_MSG_DEFRAG
call fcn.0040253b
lea eax, [ebp - 0x2c]
push eax
mov byte [ebp - 4], 1
call fcn.00406ef3
push eax
lea eax, [ebp - 0x28]
push str._r__t_60__c__
push eax
mov byte [ebp - 4], 0x4d
call fcn.0040dc86
add esp, 0xc
push eax
lea eax, [ebp - 0x18]
push eax
mov byte [ebp - 4], 0x4e
call fcn.00402187
add esp, 0xc
mov ecx, dword [ebp - 0x28]
add ecx, 0xfffffff0
call fcn.0040285b
mov byte [ebp - 4], 0x51
mov ecx, dword [ebp - 0x2c]
add ecx, 0xfffffff0
call fcn.0040285b
push 0x208
push esi
mov esi, 0x60c990
push esi
call fcn.004e38a0
add esp, 0xc
push 0x103
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0
push esi
push dword [ebp - 0x18]
push str.shutdown.exe
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push ebx
push ecx
mov ecx, esp
mov dword [ebp - 0x34], esp
push edi
call fcn.0040253b
push ecx
mov byte [ebp - 4], 0x52
mov ecx, esp
mov dword [ebp - 0x24], esp
push str.IDS_SHUTDOWN_MSG_DEFRAG
call fcn.0040253b
lea eax, [ebp - 0x30]
push eax
mov byte [ebp - 4], 0x51
call fcn.00406ef3
push ecx
mov byte [ebp - 4], 0x53
mov ecx, esp
mov dword [ebp - 0x34], esp
push eax
push str.PostQuitMessage_:
push ecx
call fcn.0040dc86
add esp, 0xc
call fcn.00454d39
pop ecx
mov ecx, dword [ebp - 0x30]
add ecx, 0xfffffff0
call fcn.0040285b
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
mov ecx, dword [ebp - 0x18]
jmp 0x48cbc6
mov al, byte [0x60a9e0]
test al, al
je 0x48cbce
push esi
push esi
push ebx
push ecx
mov ecx, esp
mov dword [ebp - 0x30], esp
push edi
call fcn.0040253b
push ecx
mov byte [ebp - 4], 0x54
mov ecx, esp
mov dword [ebp - 0x2c], esp
push str.IDS_OPT_SCHDULED_AT_NEXT_RESTART
call fcn.0040253b
lea eax, [ebp - 0x34]
push eax
mov byte [ebp - 4], 1
call fcn.00406ef3
mov byte [ebp - 4], 0x55
push dword [eax]
call fcn.004be306
mov ecx, dword [ebp - 0x34]
add ecx, 0xfffffff0
call fcn.0040285b
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x14]
xor esi, esi
inc esi
mov dword [eax], esi
add ecx, 0xfffffff0
jmp 0x48c9e9