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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x540
mov eax, dword [0x47e014]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x524], ecx
push 0x46dd3c
push 0x1f57
call sym.Install_silent.exe_int___cdecl_NsResSize_int__wchar_t_const__
add esp, 8
mov dword [ebp - 0x534], eax
cmp dword [ebp - 0x534], 0
jg 0x44c07f
jmp 0x44c2cc
mov eax, dword [ebp - 0x534]
push eax
call fcn.004220a8
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 0x46dd44
push 0x1f57
call sym.Install_silent.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.004272d0
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.00427170
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_silent.exe_int___cdecl_CreateDirTree_wchar_t_const__
add esp, 4
push 0x46dd64
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov dword [ebp - 0x52c], 0
jmp 0x44c16d
mov eax, dword [ebp - 0x52c]
add eax, 1
mov dword [ebp - 0x52c], eax
mov ecx, dword [ebp - 0x52c]
cmp ecx, dword [ebp - 0x538]
jge 0x44c2b1
push 0x310
mov edx, dword [ebp - 0x528]
push edx
lea eax, [ebp - 0x520]
push eax
call fcn.004272d0
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_silent.exe_int___cdecl_CheckInstalled_wchar_t_const__
add esp, 4
test eax, eax
jne 0x44c2ac
lea eax, [ebp - 0x520]
push eax
mov ecx, dword [ebp - 0x524]
add ecx, 0xbf2
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 0x44c20c
push str.nscomponent_setup.exe
call sym.Install_silent.exe_public:_static_class_CNsProcess____cdecl_CNsProcess::Instance_void_
mov ecx, eax
call sym.Install_silent.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 + 0xb4c], 0xfffffffe
mov edx, dword [ebp - 0x524]
cmp dword [edx + 4], 0
je 0x44c241
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 + 0xb45], 1
push 1
push sym.Install_silent.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_silent.exe_public:_static_class_CNsDownload____cdecl_CNsDownload::Instance_void_
mov ecx, eax
call sym.Install_silent.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 + 0xb46]
test eax, eax
je 0x44c2ac
cmp dword [ebp - 0x214], 0
je 0x44c29f
lea ecx, [ebp - 0x250]
push ecx
mov ecx, dword [ebp - 0x524]
call sym.Install_silent.exe_private:_void___thiscall_CNsInstaller::DoSetup_wchar_t_const__
jmp 0x44c2ac
push 0
mov ecx, dword [ebp - 0x524]
call sym.Install_silent.exe_private:_void___thiscall_CNsInstaller::DoSetup_wchar_t_const__
jmp 0x44c15e
mov edx, dword [ebp - 0x530]
mov dword [ebp - 0x540], edx
mov eax, dword [ebp - 0x540]
push eax
call fcn.00421ea8
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004216bd
mov esp, ebp
pop ebp
ret