Function at 0x4f0830
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xdc
mov eax, dword [0x551bd0]
xor eax, ebp
mov dword [ebp - 0x7c], eax
push esi
mov dword [ebp - 0xcc], 0
call fcn.004038a0
mov dword [ebp - 0x40], eax
push 0xa
lea ecx, [ebp - 0x38]
call fcn.004a2c06
lea eax, [ebp - 0x38]
push eax
push ecx
mov ecx, esp
mov dword [ebp - 0x64], esp
lea edx, [ebp + 8]
push edx
call fcn.004020c0
call fcn.004e50d0
add esp, 8
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 1
je 0x4f0945
lea eax, [ebp + 8]
push eax
push str._DeleteInstallData__Invalid_arguments__nArg_1_:
lea ecx, [ebp - 0x78]
push ecx
call fcn.00404280
add esp, 0xc
mov ecx, eax
call sym.QiyiInstaller.exe_public:_enum_eScriptType___thiscall_CScriptModule::Type_void_
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x4f08b9
mov dword [ebp - 0xd0], 0
jmp 0x4f091a
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x3fffffff
jle 0x4f08de
mov dword [ebp - 0xd4], 0
jmp 0x4f090e
mov eax, dword [ebp - 8]
shl eax, 1
call fcn.004c9ac0
mov dword [ebp - 0xd8], esp
mov eax, dword [ebp - 0x40]
push eax
mov ecx, dword [ebp - 8]
shl ecx, 1
push ecx
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 0xd8]
push eax
call fcn.004077e0
mov dword [ebp - 0xd4], eax
mov ecx, dword [ebp - 0xd4]
mov dword [ebp - 0xd0], ecx
mov edx, dword [ebp - 0xd0]
mov dword [ebp - 0x74], edx
lea eax, [ebp - 0x74]
push eax
lea ecx, [ebp - 0x70]
call fcn.004c04ac
push 0x530e84
lea ecx, [ebp - 0x70]
push ecx
call fcn.004c9687
lea ecx, [ebp - 0x78]
call fcn.00407160
push 0
lea ecx, [ebp - 0x38]
call fcn.004a2bdd
push eax
lea ecx, [ebp - 0x38]
call fcn.0040cf90
push eax
lea ecx, [ebp - 0x1c]
call fcn.004020c0
lea ecx, [ebp - 0x1c]
call sym.QiyiInstaller.exe_public:_enum_eScriptType___thiscall_CScriptModule::Type_void_
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4f0991
lea ecx, [ebp - 0x1c]
call fcn.00407160
lea ecx, [ebp - 0x38]
call fcn.004a2d30
lea ecx, [ebp + 8]
call fcn.00407160
jmp 0x4f0ddb
or dword [ebp - 0xcc], 1
push 0x51f1d4
push ecx
mov ecx, esp
mov dword [ebp - 0x84], esp
push 0x51f1d8
call fcn.004037d0
lea edx, [ebp - 0x88]
push edx
call fcn.004e4ad0
add esp, 8
push eax
call fcn.00404370
add esp, 8
movzx eax, al
test eax, eax
je 0x4f0a19
or dword [ebp - 0xcc], 2
push 0x51f1fc
push ecx
mov ecx, esp
mov dword [ebp - 0x8c], esp
push str.qyfvAloneinstalled
call fcn.004037d0
lea ecx, [ebp - 0x90]
push ecx
call fcn.004e4ad0
add esp, 8
push eax
call fcn.00404370
add esp, 8
movzx edx, al
test edx, edx
je 0x4f0a19
mov dword [ebp - 0xdc], 1
jmp 0x4f0a23
mov dword [ebp - 0xdc], 0
mov al, byte [ebp - 0xdc]
mov byte [ebp - 0x7d], al
mov ecx, dword [ebp - 0xcc]
and ecx, 2
je 0x4f0a49
and dword [ebp - 0xcc], 0xfffffffd
lea ecx, [ebp - 0x90]
call fcn.00407160
mov edx, dword [ebp - 0xcc]
and edx, 1
je 0x4f0a66
and dword [ebp - 0xcc], 0xfffffffe
lea ecx, [ebp - 0x88]
call fcn.00407160
movzx eax, byte [ebp - 0x7d]
test eax, eax
je 0x4f0b15
push ecx
mov ecx, esp
mov dword [ebp - 0x94], esp
push str.installdirfvideo
call fcn.004037d0
lea ecx, [ebp - 0x50]
push ecx
call fcn.004e4ad0
add esp, 8
lea ecx, [ebp - 0x1c]
call fcn.004032b0
push eax
lea edx, [ebp - 0x54]
push edx
lea ecx, [ebp - 0x50]
call fcn.00404150
lea ecx, [ebp - 0x1c]
call sym.QiyiInstaller.exe_public:_enum_eScriptType___thiscall_CScriptModule::Type_void_
push eax
lea ecx, [ebp - 0x54]
call fcn.00403d00
test eax, eax
jne 0x4f0ae9
push ecx
mov ecx, esp
mov dword [ebp - 0x98], esp
lea eax, [ebp - 0x50]
push eax
call fcn.004020c0
push ecx
mov ecx, esp
mov dword [ebp - 0x9c], esp
lea edx, [ebp - 0x1c]
push edx
call fcn.004020c0
call fcn.004ec250
add esp, 8
jmp 0x4f0b03
push ecx
mov ecx, esp
mov dword [ebp - 0xa0], esp
lea eax, [ebp - 0x1c]
push eax
call fcn.004020c0
call sym.QiyiInstaller.exe_RMDir
add esp, 4
lea ecx, [ebp - 0x54]
call fcn.00407160
lea ecx, [ebp - 0x50]
call fcn.00407160
jmp 0x4f0b2f
push ecx
mov ecx, esp
mov dword [ebp - 0xa4], esp
lea edx, [ebp - 0x1c]
push edx
call fcn.004020c0
call sym.QiyiInstaller.exe_RMDir
add esp, 4
push 0x51f24c
push 1
lea eax, [ebp - 0xac]
push eax
lea ecx, [ebp - 0x1c]
call fcn.004040c0
push eax
call fcn.00404350
add esp, 8
mov byte [ebp - 0xa5], al
lea ecx, [ebp - 0xac]
call fcn.00407160
movzx ecx, byte [ebp - 0xa5]
test ecx, ecx
je 0x4f0b99
lea ecx, [ebp - 0x1c]
call fcn.004032b0
sub eax, 1
push eax
lea edx, [ebp - 0xb0]
push edx
lea ecx, [ebp - 0x1c]
call fcn.00404150
push eax
lea ecx, [ebp - 0x1c]
call fcn.00402e10
lea ecx, [ebp - 0xb0]
call fcn.00407160
push 0x5c
lea ecx, [ebp - 0x1c]
call fcn.00403fc0
push eax
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00404150
lea ecx, [ebp - 0x48]
call fcn.004032b0
mov esi, eax
push 0x5c
lea ecx, [ebp - 0x48]
call fcn.00403fc0
sub esi, eax
sub esi, 1
push esi
lea ecx, [ebp - 0x3c]
push ecx
lea ecx, [ebp - 0x48]
call fcn.004040c0
push 0x51f250
lea ecx, [ebp - 0x3c]
call fcn.00403d00
test eax, eax
je 0x4f0c14
lea ecx, [ebp - 0x3c]
call fcn.00407160
lea ecx, [ebp - 0x48]
call fcn.00407160
lea ecx, [ebp - 0x1c]
call fcn.00407160
lea ecx, [ebp - 0x38]
call fcn.004a2d30
lea ecx, [ebp + 8]
call fcn.00407160
jmp 0x4f0ddb
mov dword [ebp - 4], 1
mov dword [ebp - 0xc], 1
push ecx
mov ecx, esp
mov dword [ebp - 0xb4], esp
push str.uploaderinstallpath
call fcn.004037d0
lea edx, [ebp - 0x10]
push edx
call fcn.004e4ad0
add esp, 8
push ecx
mov ecx, esp
mov dword [ebp - 0xb8], esp
push 0x51f290
call fcn.004037d0
lea eax, [ebp - 0x14]
push eax
call fcn.004e4ad0
add esp, 8
lea ecx, [ebp - 0x14]
call fcn.004043d0
movzx ecx, al
test ecx, ecx
jne 0x4f0c95
push 0
lea ecx, [ebp - 0x48]
call sym.QiyiInstaller.exe_public:_enum_eScriptType___thiscall_CScriptModule::Type_void_
push eax
lea ecx, [ebp - 0x14]
call fcn.00403f40
cmp eax, 0xffffffff
je 0x4f0c95
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0
cmp dword [ebp - 4], 0
je 0x4f0cc9
lea ecx, [ebp - 0x10]
call fcn.004043d0
movzx edx, al
test edx, edx
jne 0x4f0cc9
push 0
lea ecx, [ebp - 0x48]
call sym.QiyiInstaller.exe_public:_enum_eScriptType___thiscall_CScriptModule::Type_void_
push eax
lea ecx, [ebp - 0x10]
call fcn.00403f40
cmp eax, 0xffffffff
je 0x4f0cc9
mov dword [ebp - 4], 0
cmp dword [ebp - 4], 0
je 0x4f0ceb
push ecx
mov ecx, esp
mov dword [ebp - 0xbc], esp
lea eax, [ebp - 0x48]
push eax
call fcn.004020c0
call sym.QiyiInstaller.exe_RMDir
add esp, 4
jmp 0x4f0d28
cmp dword [ebp - 0xc], 0
je 0x4f0d28
push str.Common
lea ecx, [ebp - 0x48]
push ecx
lea edx, [ebp - 0x58]
push edx
call fcn.004041d0
add esp, 0xc
push ecx
mov ecx, esp
mov dword [ebp - 0xc0], esp
lea eax, [ebp - 0x58]
push eax
call fcn.004020c0
call sym.QiyiInstaller.exe_RMDir
add esp, 4
lea ecx, [ebp - 0x58]
call fcn.00407160
cmp dword [0x557014], 0
jne 0x4f0da3
cmp dword [ebp - 4], 0
jne 0x4f0d3d
cmp dword [ebp - 0xc], 0
je 0x4f0da3
push ecx
mov ecx, esp
mov dword [ebp - 0xc4], esp
push str.common_uinst_key
call fcn.004037d0
lea ecx, [ebp - 0x60]
push ecx
call fcn.004e4ad0
add esp, 8
lea ecx, [ebp - 0x5c]
call fcn.00402e30
mov edx, dword [ebp - 0x60]
push edx
push str.HKEY_LOCAL_MACHINE_s
lea eax, [ebp - 0x5c]
push eax
call fcn.00405f70
add esp, 0xc
push ecx
mov ecx, esp
mov dword [ebp - 0xc8], esp
lea edx, [ebp - 0x5c]
push edx
call fcn.004020c0
call sym.QiyiInstaller.exe_DeleteReg
add esp, 4
lea ecx, [ebp - 0x5c]
call fcn.00407160
lea ecx, [ebp - 0x60]
call fcn.00407160
lea ecx, [ebp - 0x14]
call fcn.00407160
lea ecx, [ebp - 0x10]
call fcn.00407160
lea ecx, [ebp - 0x3c]
call fcn.00407160
lea ecx, [ebp - 0x48]
call fcn.00407160
lea ecx, [ebp - 0x1c]
call fcn.00407160
lea ecx, [ebp - 0x38]
call fcn.004a2d30
lea ecx, [ebp + 8]
call fcn.00407160
lea esp, [ebp - 0xe0]
pop esi
mov ecx, dword [ebp - 0x7c]
xor ecx, ebp
call fcn.004bfe65
mov esp, ebp
pop ebp
ret