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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x540
mov eax, dword [0x4e100c]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x524], ecx
push 0x4c4dd4
push 0x1f57
call sym.Install_adv.exe_int___cdecl_NsResSize_int__wchar_t_const__
add esp, 8
mov dword [ebp - 0x534], eax
cmp dword [ebp - 0x534], 0
jg 0x49120f
jmp 0x49145c
mov eax, dword [ebp - 0x534]
push eax
call fcn.0047912d
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 0x4c4ddc
push 0x1f57
call sym.Install_adv.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.00430c50
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.004307d0
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_adv.exe_int___cdecl_CreateDirTree_wchar_t_const__
add esp, 4
push 0x4c4dfc
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov dword [ebp - 0x52c], 0
jmp 0x4912fd
mov eax, dword [ebp - 0x52c]
add eax, 1
mov dword [ebp - 0x52c], eax
mov ecx, dword [ebp - 0x52c]
cmp ecx, dword [ebp - 0x538]
jge 0x491441
push 0x310
mov edx, dword [ebp - 0x528]
push edx
lea eax, [ebp - 0x520]
push eax
call fcn.00430c50
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_adv.exe_int___cdecl_CheckInstalled_wchar_t_const__
add esp, 4
test eax, eax
jne 0x49143c
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 0x49139c
push str.nscomponent_setup.exe
call sym.Install_adv.exe_public:_static_class_CNsProcess____cdecl_CNsProcess::Instance_void_
mov ecx, eax
call sym.Install_adv.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 0x4913d1
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_adv.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_adv.exe_public:_static_class_CNsDownload____cdecl_CNsDownload::Instance_void_
mov ecx, eax
call sym.Install_adv.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 0x49143c
cmp dword [ebp - 0x214], 0
je 0x49142f
lea ecx, [ebp - 0x250]
push ecx
mov ecx, dword [ebp - 0x524]
call sym.Install_adv.exe_private:_void___thiscall_CNsInstaller::DoSetup_wchar_t_const__
jmp 0x49143c
push 0
mov ecx, dword [ebp - 0x524]
call sym.Install_adv.exe_private:_void___thiscall_CNsInstaller::DoSetup_wchar_t_const__
jmp 0x4912ee
mov edx, dword [ebp - 0x530]
mov dword [ebp - 0x540], edx
mov eax, dword [ebp - 0x540]
push eax
call fcn.00479128
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042eb1e
mov esp, ebp
pop ebp
ret