Function at 0x491bf0
Capabilities:
Check if file exists
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x540
mov eax, dword [0x4ea00c]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x524], ecx
push 0x4cbe14
push 0x1f57
call sym.Install_rocket.exe_int___cdecl_NsResSize_int__wchar_t_const__
add esp, 8
mov dword [ebp - 0x534], eax
cmp dword [ebp - 0x534], 0
jg 0x491c2f
jmp 0x491e7c
mov eax, dword [ebp - 0x534]
push eax
call fcn.00479dbd
add esp, 4
mov dword [ebp - 0x53c], eax
mov ecx, dword [ebp - 0x53c]
mov dword [ebp - 0x530], ecx
mov edx, dword [ebp - 0x530]
push edx
push 0x4cbe1c
push 0x1f57
call sym.Install_rocket.exe_int___cdecl_NsResGetBuff_int__wchar_t_const___void__
add esp, 0xc
mov dword [ebp - 0x538], 0
mov eax, dword [ebp - 0x530]
mov dword [ebp - 0x528], eax
push 4
mov ecx, dword [ebp - 0x528]
push ecx
lea edx, [ebp - 0x538]
push edx
call fcn.004332a0
add esp, 0xc
mov eax, dword [ebp - 0x528]
add eax, 4
mov dword [ebp - 0x528], eax
push 0x20a
push 0
lea ecx, [ebp - 0x210]
push ecx
call fcn.00432e20
add esp, 0xc
push 0
push 0x1c
lea edx, [ebp - 0x210]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push str.hfinstall_
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea ecx, [ebp - 0x210]
push ecx
call sym.Install_rocket.exe_int___cdecl_CreateDirTree_wchar_t_const__
add esp, 4
push 0x4cbe3c
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov dword [ebp - 0x52c], 0
jmp 0x491d1d
mov eax, dword [ebp - 0x52c]
add eax, 1
mov dword [ebp - 0x52c], eax
mov ecx, dword [ebp - 0x52c]
cmp ecx, dword [ebp - 0x538]
jge 0x491e61
push 0x310
mov edx, dword [ebp - 0x528]
push edx
lea eax, [ebp - 0x520]
push eax
call fcn.004332a0
add esp, 0xc
mov ecx, dword [ebp - 0x528]
add ecx, 0x310
mov dword [ebp - 0x528], ecx
lea edx, [ebp - 0x520]
push edx
call sym.Install_rocket.exe_int___cdecl_CheckInstalled_wchar_t_const__
add esp, 4
test eax, eax
jne 0x491e5c
lea eax, [ebp - 0x520]
push eax
mov ecx, dword [ebp - 0x524]
add ecx, 0x16ba
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x491dbc
push str.nscomponent_setup.exe
call sym.Install_rocket.exe_public:_static_class_CNsProcess____cdecl_CNsProcess::Instance_void_
mov ecx, eax
call sym.Install_rocket.exe_public:_void___thiscall_CNsProcess::KillProcess_wchar_t_const__
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 0x524]
mov dword [ecx + 0x1614], 0xfffffffe
mov edx, dword [ebp - 0x524]
cmp dword [edx + 4], 0
je 0x491df1
push 0
push 0xfffffffffffffffe
push 0x7ea
mov eax, dword [ebp - 0x524]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_PostMessageW]
mov edx, dword [ebp - 0x524]
mov byte [edx + 0x160d], 1
push 1
push sym.Install_rocket.exe_private:_static_void___stdcall_CNsInstaller::DownNotify_int__wchar_t_const___long_long___int64___long_long___int64___double_
push 0
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x458]
push ecx
call sym.Install_rocket.exe_public:_static_class_CNsDownload____cdecl_CNsDownload::Instance_void_
mov ecx, eax
call sym.Install_rocket.exe_public:_int___thiscall_CNsDownload::GetHttpFile_wchar_t_const___wchar_t_const___int__void____stdcall___int__wchar_t_const___long_long___int64___long_long___int64___double___int_
mov edx, dword [ebp - 0x524]
movzx eax, byte [edx + 0x160e]
test eax, eax
je 0x491e5c
cmp dword [ebp - 0x214], 0
je 0x491e4f
lea ecx, [ebp - 0x250]
push ecx
mov ecx, dword [ebp - 0x524]
call sym.Install_rocket.exe_private:_void___thiscall_CNsInstaller::DoSetup_wchar_t_const__
jmp 0x491e5c
push 0
mov ecx, dword [ebp - 0x524]
call sym.Install_rocket.exe_private:_void___thiscall_CNsInstaller::DoSetup_wchar_t_const__
jmp 0x491d0e
mov edx, dword [ebp - 0x530]
mov dword [ebp - 0x540], edx
mov eax, dword [ebp - 0x540]
push eax
call fcn.00479db8
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042e29e
mov esp, ebp
pop ebp
ret