Function at 0x4f0710
Capabilities:
Check if file exists
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fa337
mov eax, dword fs:[0]
push eax
sub esp, 0x100
push esi
mov eax, dword [0x542af0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xb8], ecx
mov ecx, 0x547f58
call fcn.00404470
movzx eax, al
test eax, eax
jne 0x4f0764
push 0x547f58
mov ecx, 0x547d84
call fcn.00402e60
jmp 0x4f09a7
push ecx
mov ecx, esp
mov dword [ebp - 0x58], esp
push 0x515638
call fcn.00403870
mov dword [ebp - 0xbc], eax
lea ecx, [ebp - 0x5c]
push ecx
call fcn.004d7550
add esp, 8
mov dword [ebp - 0xc0], eax
mov edx, dword [ebp - 0xc0]
mov dword [ebp - 0xc4], edx
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0xc4]
push eax
mov ecx, 0x547d84
call fcn.00402e60
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x5c]
call fcn.00402ea0
push str.iQIYI
push str.iQiyi
mov ecx, 0x547d84
call fcn.00403e00
push 0x547d84
lea ecx, [ebp - 0x14]
call fcn.004020d0
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.00401060
mov ecx, 0x547d84
call sym.QiyiInstaller.exe_public:_enum_eScriptType___thiscall_CScriptModule::Type_void_
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4f081c
push 0
push str.iqiyi_video
lea ecx, [ebp - 0x14]
call fcn.00403fe0
cmp eax, 0xffffffff
jne 0x4f0949
push ecx
mov ecx, esp
mov dword [ebp - 0x60], esp
push str.ppsinstallpath
call fcn.00403870
mov dword [ebp - 0xc8], eax
lea ecx, [ebp - 0x1c]
push ecx
call fcn.004d7550
add esp, 8
mov dword [ebp - 0xcc], eax
mov byte [ebp - 4], 2
push 0x5156a4
lea ecx, [ebp - 0x1c]
call fcn.004040b0
lea ecx, [ebp - 0x1c]
call fcn.00403360
mov esi, eax
push 0x5c
lea ecx, [ebp - 0x1c]
call fcn.00404060
sub esi, eax
sub esi, 1
push esi
lea edx, [ebp - 0x18]
push edx
lea ecx, [ebp - 0x1c]
call fcn.00404160
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x1c]
call fcn.00404470
movzx eax, al
test eax, eax
jne 0x4f08fa
push 0x5156a8
lea ecx, [ebp - 0x18]
call fcn.00403da0
test eax, eax
jne 0x4f08fa
push 0x5c
lea ecx, [ebp - 0x1c]
call fcn.00404060
push eax
lea ecx, [ebp - 0x64]
push ecx
lea ecx, [ebp - 0x1c]
call fcn.004041f0
mov dword [ebp - 0xd0], eax
mov edx, dword [ebp - 0xd0]
mov dword [ebp - 0xd4], edx
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0xd4]
push eax
mov ecx, 0x547d84
call fcn.00402e60
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x64]
call fcn.00402ea0
push str.PStyle
mov ecx, 0x547d84
call fcn.00403d80
jmp 0x4f0931
push 0
push 0x26
push 0x104
mov ecx, 0x547d84
call fcn.00403630
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0xffffffffffffffff
mov ecx, 0x547d84
call fcn.004060c0
push 0x5156c8
mov ecx, 0x547d84
call fcn.00403d80
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x18]
call fcn.00402ea0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call fcn.00402ea0
push 0x5156f0
mov ecx, 0x547d84
call fcn.004040b0
push 0x13
lea ecx, [ebp - 0x10]
push ecx
mov ecx, 0x547d84
call fcn.00404160
mov byte [ebp - 4], 5
push 0x5156f4
lea ecx, [ebp - 0x10]
call fcn.00403da0
test eax, eax
je 0x4f098c
push str.IQIYI_VideoPStyle
mov ecx, 0x547d84
call fcn.00403d80
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
call fcn.00402ea0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00402ea0
push 0x515744
mov ecx, 0x547d84
call fcn.004040b0
push 0x547d84
mov ecx, dword [ebp - 0xb8]
add ecx, 0x384
call fcn.00402e60
mov edx, dword [ebp - 0xb8]
cmp dword [edx + 0x394], 0
je 0x4f0db3
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
jmp 0x4f09f8
mov eax, dword [ebp - 0x24]
add eax, 1
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 4
jge 0x4f0d61
lea ecx, [ebp - 0x28]
call fcn.00402e80
mov dword [ebp - 4], 6
mov ecx, dword [ebp - 0x24]
add ecx, 1
push ecx
push 0x515748
lea edx, [ebp - 0x28]
push edx
call fcn.004061c0
add esp, 0xc
lea ecx, [ebp - 0x2c]
call fcn.00402e80
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x24]
add eax, 1
push eax
push str.softcheck_d
lea ecx, [ebp - 0x2c]
push ecx
call fcn.004061c0
add esp, 0xc
push 0x515778
push ecx
mov ecx, esp
mov dword [ebp - 0x6c], esp
lea edx, [ebp - 0x2c]
push edx
call fcn.004020d0
mov dword [ebp - 0xd8], eax
lea eax, [ebp - 0x70]
push eax
call fcn.004d7550
add esp, 8
mov dword [ebp - 0xdc], eax
mov ecx, dword [ebp - 0xdc]
mov dword [ebp - 0xe0], ecx
mov edx, dword [ebp - 0xe0]
push edx
call fcn.004043f0
add esp, 8
mov byte [ebp - 0x65], al
lea ecx, [ebp - 0x70]
call fcn.00402ea0
movzx eax, byte [ebp - 0x65]
test eax, eax
je 0x4f0d41
push ecx
mov ecx, esp
mov dword [ebp - 0x74], esp
lea edx, [ebp - 0x28]
push edx
call fcn.004020d0
mov dword [ebp - 0xe4], eax
lea eax, [ebp - 0x30]
push eax
call fcn.004d7550
add esp, 8
mov dword [ebp - 0xe8], eax
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x30]
call fcn.00404470
movzx ecx, al
test ecx, ecx
jne 0x4f0d35
push 0x820
call fcn.00496cc8
add esp, 4
mov dword [ebp - 0x7c], eax
mov byte [ebp - 4], 9
cmp dword [ebp - 0x7c], 0
je 0x4f0b13
mov ecx, dword [ebp - 0x7c]
call sym.QiyiInstaller.exe_public:_void___thiscall_DuiLib::COptionUI::constructor_void_
mov dword [ebp - 0xec], eax
jmp 0x4f0b1d
mov dword [ebp - 0xec], 0
mov edx, dword [ebp - 0xec]
mov dword [ebp - 0x78], edx
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
je 0x4f0d06
mov ecx, dword [ebp - 0x34]
push ecx
mov edx, dword [ebp - 0xb8]
mov eax, dword [edx + 0x394]
mov ecx, dword [ebp - 0xb8]
mov ecx, dword [ecx + 0x394]
add ecx, 0x3ac
mov edx, dword [eax + 0x3ac]
mov eax, dword [edx + 0x10]
call eax
push 0x5157a0
mov ecx, dword [ebp - 0x34]
call sym.QiyiInstaller.exe_public:_void___thiscall_DuiLib::CButtonUI::SetNormalImage_wchar_t_const__
push str.filecheck_normal.png_dest0_0_14_14
mov ecx, dword [ebp - 0x34]
call sym.QiyiInstaller.exe_public:_void___thiscall_DuiLib::CButtonUI::SetHotImage_wchar_t_const__
push str.filechecked_normal.png_dest0_0_14_14
mov ecx, dword [ebp - 0x34]
call sym.QiyiInstaller.exe_public:_void___thiscall_DuiLib::COptionUI::SetSelectedImage_wchar_t_const__
push 0
lea ecx, [ebp - 0x30]
call sym.QiyiInstaller.exe_public:_enum_eScriptType___thiscall_CScriptModule::Type_void_
push eax
lea ecx, [ebp - 0x40]
push ecx
mov ecx, dword [ebp - 0xb8]
add ecx, 0x1c
call sym.QiyiInstaller.exe_public:_struct_tagSIZE___thiscall_DuiLib::CPaintManagerUI::GetTextExtent_wchar_t_const___int_
mov edx, dword [ebp - 0x40]
add edx, 0x16
mov dword [ebp - 0x38], edx
mov eax, dword [ebp - 0x38]
push eax
mov ecx, dword [ebp - 0x34]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x34]
mov eax, dword [edx + 0x5c]
call eax
push 0xe
mov ecx, dword [ebp - 0x34]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x34]
mov eax, dword [edx + 0x64]
call eax
push 0
push 0
push 0
push 0x16
lea ecx, [ebp - 0x9c]
call fcn.00485e20
mov ecx, dword [eax]
mov dword [ebp - 0x8c], ecx
mov edx, dword [eax + 4]
mov dword [ebp - 0x88], edx
mov ecx, dword [eax + 8]
mov dword [ebp - 0x84], ecx
mov edx, dword [eax + 0xc]
mov dword [ebp - 0x80], edx
sub esp, 0x10
mov eax, esp
mov ecx, dword [ebp - 0x8c]
mov dword [eax], ecx
mov edx, dword [ebp - 0x88]
mov dword [eax + 4], edx
mov ecx, dword [ebp - 0x84]
mov dword [eax + 8], ecx
mov edx, dword [ebp - 0x80]
mov dword [eax + 0xc], edx
mov ecx, dword [ebp - 0x34]
call sym.QiyiInstaller.exe_public:_void___thiscall_DuiLib::CLabelUI::SetTextPadding_struct_tagRECT_
push 0
mov ecx, dword [ebp - 0x34]
call sym.QiyiInstaller.exe_public:_void___thiscall_DuiLib::CLabelUI::SetFont_int_
push 0xff666666
mov ecx, dword [ebp - 0x34]
call sym.QiyiInstaller.exe_public:_void___thiscall_DuiLib::CLabelUI::SetTextColor_unsigned_long_int_
lea ecx, [ebp - 0x30]
call sym.QiyiInstaller.exe_public:_enum_eScriptType___thiscall_CScriptModule::Type_void_
push eax
mov eax, dword [ebp - 0x34]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x34]
mov eax, dword [edx + 0x2c]
call eax
push 1
mov ecx, dword [ebp - 0x34]
call sym.QiyiInstaller.exe_public:_void___thiscall_DuiLib::COptionUI::Selected_bool_
push 0x404
call fcn.00496cc8
add esp, 4
mov dword [ebp - 0xa4], eax
mov byte [ebp - 4], 0xa
cmp dword [ebp - 0xa4], 0
je 0x4f0c9e
mov ecx, dword [ebp - 0xa4]
call sym.QiyiInstaller.exe_public:_void___thiscall_DuiLib::CHorizontalLayoutUI::constructor_void_
mov dword [ebp - 0xf0], eax
jmp 0x4f0ca8
mov dword [ebp - 0xf0], 0
mov ecx, dword [ebp - 0xf0]
mov dword [ebp - 0xa0], ecx
mov byte [ebp - 4], 8
mov edx, dword [ebp - 0xa0]
mov dword [ebp - 0x44], edx
push 0x32
mov eax, dword [ebp - 0x44]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x44]
mov eax, dword [edx + 0x5c]
call eax
mov ecx, dword [ebp - 0x44]
push ecx
mov edx, dword [ebp - 0xb8]
mov eax, dword [edx + 0x394]
mov ecx, dword [ebp - 0xb8]
mov ecx, dword [ecx + 0x394]
add ecx, 0x3ac
mov edx, dword [eax + 0x3ac]
mov eax, dword [edx + 0x10]
call eax
mov ecx, dword [ebp - 0x20]
add ecx, 1
mov dword [ebp - 0x20], ecx
cmp dword [ebp - 0x20], 3
jl 0x4f0d35
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x30]
call fcn.00402ea0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x2c]
call fcn.00402ea0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00402ea0
jmp 0x4f0d61
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x30]
call fcn.00402ea0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x2c]
call fcn.00402ea0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00402ea0
jmp 0x4f09ef
mov edx, dword [ebp - 0xb8]
mov eax, dword [edx + 0x394]
mov ecx, dword [ebp - 0xb8]
mov ecx, dword [ecx + 0x394]
add ecx, 0x3ac
mov edx, dword [eax + 0x3ac]
mov eax, dword [edx + 0xc]
call eax
cmp eax, 1
jle 0x4f0db3
push 1
mov ecx, dword [ebp - 0xb8]
mov edx, dword [ecx + 0x394]
mov eax, dword [ebp - 0xb8]
mov ecx, dword [eax + 0x394]
mov edx, dword [edx]
mov eax, dword [edx + 0xc8]
call eax
mov ecx, dword [ebp - 0xb8]
add ecx, 0x384
call sym.QiyiInstaller.exe_public:_enum_eScriptType___thiscall_CScriptModule::Type_void_
push eax
mov ecx, dword [ebp - 0xb8]
mov edx, dword [ecx + 0x38c]
mov eax, dword [ebp - 0xb8]
mov ecx, dword [eax + 0x38c]
mov edx, dword [edx]
mov eax, dword [edx + 0x2c]
call eax
cmp dword [0x547df4], 0
je 0x4f0f0c
push 0
mov ecx, dword [ebp - 0xb8]
mov edx, dword [ecx + 0x3a0]
mov eax, dword [ebp - 0xb8]
mov ecx, dword [eax + 0x3a0]
mov edx, dword [edx]
mov eax, dword [edx + 0xc8]
call eax
push 1
mov ecx, dword [ebp - 0xb8]
mov edx, dword [ecx + 0x3a8]
mov eax, dword [ebp - 0xb8]
mov ecx, dword [eax + 0x3a8]
mov edx, dword [edx]
mov eax, dword [edx + 0xc8]
call eax
push 0x5158a8
mov ecx, dword [ebp - 0xb8]
add ecx, 0x1c
call sym.QiyiInstaller.exe_public:_class_DuiLib::CControlUI____thiscall_DuiLib::CPaintManagerUI::FindControl_wchar_t_const__const
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0
je 0x4f0eab
push 0x5158c0
lea ecx, [ebp - 0x4c]
call fcn.00403870
mov dword [ebp - 4], 0xb
lea ecx, [ebp - 0x4c]
call sym.QiyiInstaller.exe_public:_enum_eScriptType___thiscall_CScriptModule::Type_void_
push eax
mov ecx, dword [ebp - 0x48]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x48]
mov eax, dword [edx + 0x2c]
call eax
push 0
lea ecx, [ebp - 0x4c]
call fcn.00404430
push eax
push 0x469
mov ecx, dword [0x547cb0]
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4c]
call fcn.00402ea0
push 0x51577c
mov ecx, dword [ebp - 0xb8]
add ecx, 0x1c
call sym.QiyiInstaller.exe_public:_class_DuiLib::CControlUI____thiscall_DuiLib::CPaintManagerUI::FindControl_wchar_t_const__const
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0
je 0x4f0ed9
push str.ck_W
mov edx, dword [ebp - 0x48]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x48]
mov edx, dword [eax + 0x2c]
call edx
push 0x51590c
mov ecx, dword [ebp - 0xb8]
add ecx, 0x1c
call sym.QiyiInstaller.exe_public:_class_DuiLib::CControlUI____thiscall_DuiLib::CPaintManagerUI::FindControl_wchar_t_const__const
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0
je 0x4f0f07
push 0x515930
mov eax, dword [ebp - 0x48]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x48]
mov eax, dword [edx + 0x2c]
call eax
jmp 0x4f111f
cmp dword [0x547df8], 0
je 0x4f1034
push 0
mov ecx, dword [ebp - 0xb8]
mov edx, dword [ecx + 0x3a0]
mov eax, dword [ebp - 0xb8]
mov ecx, dword [eax + 0x3a0]
mov edx, dword [edx]
mov eax, dword [edx + 0xc8]
call eax
push 1
mov ecx, dword [ebp - 0xb8]
mov edx, dword [ecx + 0x3a8]
mov eax, dword [ebp - 0xb8]
mov ecx, dword [eax + 0x3a8]
mov edx, dword [edx]
mov eax, dword [edx + 0xc8]
call eax
push str.Label_Title
mov ecx, dword [ebp - 0xb8]
add ecx, 0x1c
call sym.QiyiInstaller.exe_public:_class_DuiLib::CControlUI____thiscall_DuiLib::CPaintManagerUI::FindControl_wchar_t_const__const
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 0
je 0x4f0fd3
push 0x515954
lea ecx, [ebp - 0x54]
call fcn.00403870
mov dword [ebp - 4], 0xc
lea ecx, [ebp - 0x54]
call sym.QiyiInstaller.exe_public:_enum_eScriptType___thiscall_CScriptModule::Type_void_
push eax
mov ecx, dword [ebp - 0x50]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x50]
mov eax, dword [edx + 0x2c]
call eax
push 0
lea ecx, [ebp - 0x54]
call fcn.00404430
push eax
push 0x469
mov ecx, dword [0x547cb0]
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x54]
call fcn.00402ea0
push str.Install_3_Prompt
mov ecx, dword [ebp - 0xb8]
add ecx, 0x1c
call sym.QiyiInstaller.exe_public:_class_DuiLib::CControlUI____thiscall_DuiLib::CPaintManagerUI::FindControl_wchar_t_const__const
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 0
je 0x4f1001
push str.ck_WGS
mov edx, dword [ebp - 0x50]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x50]
mov edx, dword [eax + 0x2c]
call edx
push str.Install_4_Prompt
mov ecx, dword [ebp - 0xb8]
add ecx, 0x1c
call sym.QiyiInstaller.exe_public:_class_DuiLib::CControlUI____thiscall_DuiLib::CPaintManagerUI::FindControl_wchar_t_const__const
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 0
je 0x4f102f
push 0x5159f0
mov eax, dword [ebp - 0x50]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x50]
mov eax, dword [edx + 0x2c]
call eax
jmp 0x4f111f
push ecx
mov esi, esp
mov dword [ebp - 0xa8], esp
push ecx
mov ecx, esp
mov dword [ebp - 0xac], esp
push str.realversion
call fcn.00403870
mov dword [ebp - 0xf4], eax
push esi
call fcn.004d7550
add esp, 8
mov dword [ebp - 0xf8], eax
mov ecx, dword [ebp - 0xf8]
mov dword [ebp - 0xfc], ecx
mov dword [ebp - 4], 0xd
push ecx
mov esi, esp
mov dword [ebp - 0xb0], esp
push ecx
mov ecx, esp
mov dword [ebp - 0xb4], esp
push str.app_version
call fcn.00403870
mov dword [ebp - 0x100], eax
push esi
call fcn.004d7550
add esp, 8
mov dword [ebp - 0x104], eax
mov edx, dword [ebp - 0x104]
mov dword [ebp - 0x108], edx
mov dword [ebp - 4], 0xffffffff
mov ecx, 0x547ce0
call fcn.004ea0c0
mov dword [ebp - 0x10c], eax
cmp dword [ebp - 0x10c], 0
je 0x4f111f
push 0
mov eax, dword [ebp - 0xb8]
mov ecx, dword [eax + 0x3a0]
mov edx, dword [ebp - 0xb8]
mov eax, dword [edx + 0x3a0]
mov edx, dword [ecx]
mov ecx, eax
mov eax, dword [edx + 0xc8]
call eax
push 1
mov ecx, dword [ebp - 0xb8]
mov edx, dword [ecx + 0x3a4]
mov eax, dword [ebp - 0xb8]
mov ecx, dword [eax + 0x3a4]
mov edx, dword [edx]
mov eax, dword [edx + 0xc8]
call eax
cmp dword [0x547df0], 0
jne 0x4f113a
cmp dword [0x547df4], 0
jne 0x4f113a
cmp dword [0x547df8], 0
je 0x4f1145
mov ecx, dword [ebp - 0xb8]
call fcn.004f04f0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret