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

Disassembly:
push 0x40
mov eax, 0x4d916a
call fcn.004b6730
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.0046548c
call fcn.0049219b
push eax
lea ecx, [ebp - 0x14]
call fcn.00402802
lea eax, [ebp - 0x14]
push eax
lea edx, [ebp - 0x48]
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.00465706
cmp eax, ebx
jne 0x464f63
add esi, 8
mov eax, dword [esi]
cmp dword [eax - 0xc], ebx
jne 0x464f37
lea eax, [ebp - 0x1c]
push eax
xor ecx, ecx
call fcn.004661ec
mov byte [ebp - 4], 2
push dword [eax]
push str.Install_failed__r_nCannot_create_parameter_file._r_n_s
push esi
call fcn.00402a07
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x1c]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.00402845
mov esi, dword [esi]
push ebx
push 0x10
push esi
call fcn.00491d70
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00402845
or dword [ebp - 4], 0xffffffff
lea edi, [ebp - 0x48]
call fcn.004662cf
xor eax, eax
call fcn.004b6808
ret 4
mov edi, dword [ebp - 0x14]
push edi
mov ecx, esi
call fcn.00465e82
cmp eax, ebx
je 0x464fcf
add esi, 8
mov eax, dword [esi]
cmp dword [eax - 0xc], ebx
jne 0x464faa
lea eax, [ebp - 0x20]
push eax
xor ecx, ecx
call fcn.004661ec
mov byte [ebp - 4], 3
push dword [eax]
push str.Install_failed__r_nCannot_setup_boot_defragger._r_n_s
push esi
call fcn.00402a07
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x20]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.00402845
mov esi, dword [esi]
push ebx
push 0x10
push esi
call fcn.00491d70
lea ecx, [edi - 0x10]
call fcn.00402845
xor esi, esi
or dword [ebp - 4], 0xffffffff
lea edi, [ebp - 0x48]
call fcn.004662cf
mov eax, esi
jmp 0x464f5b
push ebx
push 0x2044
mov edi, 0x52dc10
push edi
push ecx
mov ecx, esp
mov dword [ebp - 0x20], esp
mov esi, str.RESOURCESTRING
push esi
mov byte [0x57a021], 0
call fcn.0040254f
push ecx
mov byte [ebp - 4], 6
mov ecx, esp
mov dword [ebp - 0x1c], esp
push str.IDS_OPT_AT_NEXT_RESTART
call fcn.0040254f
lea eax, [ebp - 0x24]
push eax
mov byte [ebp - 4], 1
call fcn.00406eff
mov byte [ebp - 4], 7
push dword [eax]
call fcn.00491d70
cmp eax, 6
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x24]
sete byte [ebp - 0xd]
add ecx, 0xfffffff0
call fcn.00402845
cmp byte [ebp - 0xd], 0
je 0x465150
push 0x5314cc
push edi
push ecx
mov ecx, esp
mov dword [ebp - 0x34], esp
push esi
call fcn.0040254f
push ecx
mov byte [ebp - 4], 8
mov ecx, esp
mov dword [ebp - 0x24], esp
push str.IDS_SHUTDOWN_MSG_DEFRAG
call fcn.0040254f
lea eax, [ebp - 0x2c]
push eax
mov byte [ebp - 4], 1
call fcn.00406eff
push eax
lea eax, [ebp - 0x28]
push str._r__t_60__c__
push eax
mov byte [ebp - 4], 9
call fcn.0040c9b1
add esp, 0xc
push eax
lea eax, [ebp - 0x18]
push eax
mov byte [ebp - 4], 0xa
call fcn.0040217c
add esp, 0xc
mov ecx, dword [ebp - 0x28]
add ecx, 0xfffffff0
call fcn.00402845
mov byte [ebp - 4], 0xd
mov ecx, dword [ebp - 0x2c]
add ecx, 0xfffffff0
call fcn.00402845
push 0x208
push ebx
mov ebx, 0x57bf80
push ebx
call fcn.004b62d0
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.0040254f
push ecx
mov byte [ebp - 4], 0xe
mov ecx, esp
mov dword [ebp - 0x24], esp
push str.IDS_SHUTDOWN_MSG_DEFRAG
call fcn.0040254f
lea eax, [ebp - 0x30]
push eax
mov byte [ebp - 4], 0xd
call fcn.00406eff
push ecx
mov byte [ebp - 4], 0xf
mov ecx, esp
mov dword [ebp - 0x34], esp
push eax
push str.PostQuitMessage_:
push ecx
call fcn.0040c9b1
add esp, 0xc
call fcn.0044d3b2
pop ecx
mov ecx, dword [ebp - 0x30]
add ecx, 0xfffffff0
call fcn.00402845
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
mov ecx, dword [ebp - 0x18]
jmp 0x465197
mov al, byte [0x57a0d8]
test al, al
je 0x46519f
push ebx
push ebx
push edi
push ecx
mov ecx, esp
mov dword [ebp - 0x30], esp
push esi
call fcn.0040254f
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.0040254f
lea eax, [ebp - 0x34]
push eax
mov byte [ebp - 4], 1
call fcn.00406eff
mov byte [ebp - 4], 0x11
push dword [eax]
call fcn.00491d70
mov ecx, dword [ebp - 0x34]
add ecx, 0xfffffff0
call fcn.00402845
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x14]
xor esi, esi
inc esi
add ecx, 0xfffffff0
mov dword [eax], esi
call fcn.00402845
jmp 0x464fbf