Function at 0x4ecb00
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xdc
mov eax, dword [0x54eb90]
xor eax, ebp
mov dword [ebp - 0x7c], eax
push esi
mov dword [ebp - 0xcc], 0
call fcn.004038f0
mov dword [ebp - 0x40], eax
push 0xa
lea ecx, [ebp - 0x38]
call fcn.004a0846
lea eax, [ebp - 0x38]
push eax
push ecx
mov ecx, esp
mov dword [ebp - 0x64], esp
lea edx, [ebp + 8]
push edx
call fcn.00402120
call fcn.004e1bd0
add esp, 8
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 1
je 0x4ecc15
lea eax, [ebp + 8]
push eax
push str._DeleteInstallData__Invalid_arguments__nArg_1_:
lea ecx, [ebp - 0x78]
push ecx
call fcn.004042e0
add esp, 0xc
mov ecx, eax
call sym.QiyiInstaller.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x4ecb89
mov dword [ebp - 0xd0], 0
jmp 0x4ecbea
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 0x4ecbae
mov dword [ebp - 0xd4], 0
jmp 0x4ecbde
mov eax, dword [ebp - 8]
shl eax, 1
call fcn.004c5300
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.00407890
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.004bdd7c
push 0x52b83c
lea ecx, [ebp - 0x70]
push ecx
call fcn.004c5561
lea ecx, [ebp - 0x78]
call fcn.00402e80
push 0
lea ecx, [ebp - 0x38]
call fcn.004a081d
push eax
lea ecx, [ebp - 0x38]
call fcn.00408bc0
push eax
lea ecx, [ebp - 0x1c]
call fcn.00402120
lea ecx, [ebp - 0x1c]
call sym.QiyiInstaller.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4ecc61
lea ecx, [ebp - 0x1c]
call fcn.00402e80
lea ecx, [ebp - 0x38]
call fcn.004a0970
lea ecx, [ebp + 8]
call fcn.00402e80
jmp 0x4ed0ab
or dword [ebp - 0xcc], 1
push 0x519f4c
push ecx
mov ecx, esp
mov dword [ebp - 0x84], esp
push 0x519f50
call fcn.00403820
lea edx, [ebp - 0x88]
push edx
call fcn.004e15d0
add esp, 8
push eax
call fcn.004043d0
add esp, 8
movzx eax, al
test eax, eax
je 0x4ecce9
or dword [ebp - 0xcc], 2
push 0x519f74
push ecx
mov ecx, esp
mov dword [ebp - 0x8c], esp
push str.qyfvAloneinstalled
call fcn.00403820
lea ecx, [ebp - 0x90]
push ecx
call fcn.004e15d0
add esp, 8
push eax
call fcn.004043d0
add esp, 8
movzx edx, al
test edx, edx
je 0x4ecce9
mov dword [ebp - 0xdc], 1
jmp 0x4eccf3
mov dword [ebp - 0xdc], 0
mov al, byte [ebp - 0xdc]
mov byte [ebp - 0x7d], al
mov ecx, dword [ebp - 0xcc]
and ecx, 2
je 0x4ecd19
and dword [ebp - 0xcc], 0xfffffffd
lea ecx, [ebp - 0x90]
call fcn.00402e80
mov edx, dword [ebp - 0xcc]
and edx, 1
je 0x4ecd36
and dword [ebp - 0xcc], 0xfffffffe
lea ecx, [ebp - 0x88]
call fcn.00402e80
movzx eax, byte [ebp - 0x7d]
test eax, eax
je 0x4ecde5
push ecx
mov ecx, esp
mov dword [ebp - 0x94], esp
push str.installdirfvideo
call fcn.00403820
lea ecx, [ebp - 0x50]
push ecx
call fcn.004e15d0
add esp, 8
lea ecx, [ebp - 0x1c]
call fcn.004032e0
push eax
lea edx, [ebp - 0x54]
push edx
lea ecx, [ebp - 0x50]
call fcn.004041b0
lea ecx, [ebp - 0x1c]
call sym.QiyiInstaller.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
lea ecx, [ebp - 0x54]
call fcn.00403d60
test eax, eax
jne 0x4ecdb9
push ecx
mov ecx, esp
mov dword [ebp - 0x98], esp
lea eax, [ebp - 0x50]
push eax
call fcn.00402120
push ecx
mov ecx, esp
mov dword [ebp - 0x9c], esp
lea edx, [ebp - 0x1c]
push edx
call fcn.00402120
call fcn.004e8830
add esp, 8
jmp 0x4ecdd3
push ecx
mov ecx, esp
mov dword [ebp - 0xa0], esp
lea eax, [ebp - 0x1c]
push eax
call fcn.00402120
call sym.QiyiInstaller.exe_RMDir
add esp, 4
lea ecx, [ebp - 0x54]
call fcn.00402e80
lea ecx, [ebp - 0x50]
call fcn.00402e80
jmp 0x4ecdff
push ecx
mov ecx, esp
mov dword [ebp - 0xa4], esp
lea edx, [ebp - 0x1c]
push edx
call fcn.00402120
call sym.QiyiInstaller.exe_RMDir
add esp, 4
push 0x519fc4
push 1
lea eax, [ebp - 0xac]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00404120
push eax
call fcn.004043b0
add esp, 8
mov byte [ebp - 0xa5], al
lea ecx, [ebp - 0xac]
call fcn.00402e80
movzx ecx, byte [ebp - 0xa5]
test ecx, ecx
je 0x4ece69
lea ecx, [ebp - 0x1c]
call fcn.004032e0
sub eax, 1
push eax
lea edx, [ebp - 0xb0]
push edx
lea ecx, [ebp - 0x1c]
call fcn.004041b0
push eax
lea ecx, [ebp - 0x1c]
call fcn.00402e60
lea ecx, [ebp - 0xb0]
call fcn.00402e80
push 0x5c
lea ecx, [ebp - 0x1c]
call fcn.00404020
push eax
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x1c]
call fcn.004041b0
lea ecx, [ebp - 0x48]
call fcn.004032e0
mov esi, eax
push 0x5c
lea ecx, [ebp - 0x48]
call fcn.00404020
sub esi, eax
sub esi, 1
push esi
lea ecx, [ebp - 0x3c]
push ecx
lea ecx, [ebp - 0x48]
call fcn.00404120
push 0x519fc8
lea ecx, [ebp - 0x3c]
call fcn.00403d60
test eax, eax
je 0x4ecee4
lea ecx, [ebp - 0x3c]
call fcn.00402e80
lea ecx, [ebp - 0x48]
call fcn.00402e80
lea ecx, [ebp - 0x1c]
call fcn.00402e80
lea ecx, [ebp - 0x38]
call fcn.004a0970
lea ecx, [ebp + 8]
call fcn.00402e80
jmp 0x4ed0ab
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.00403820
lea edx, [ebp - 0x10]
push edx
call fcn.004e15d0
add esp, 8
push ecx
mov ecx, esp
mov dword [ebp - 0xb8], esp
push 0x51a008
call fcn.00403820
lea eax, [ebp - 0x14]
push eax
call fcn.004e15d0
add esp, 8
lea ecx, [ebp - 0x14]
call fcn.00404430
movzx ecx, al
test ecx, ecx
jne 0x4ecf65
push 0
lea ecx, [ebp - 0x48]
call sym.QiyiInstaller.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
lea ecx, [ebp - 0x14]
call fcn.00403fa0
cmp eax, 0xffffffff
je 0x4ecf65
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0
cmp dword [ebp - 4], 0
je 0x4ecf99
lea ecx, [ebp - 0x10]
call fcn.00404430
movzx edx, al
test edx, edx
jne 0x4ecf99
push 0
lea ecx, [ebp - 0x48]
call sym.QiyiInstaller.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
lea ecx, [ebp - 0x10]
call fcn.00403fa0
cmp eax, 0xffffffff
je 0x4ecf99
mov dword [ebp - 4], 0
cmp dword [ebp - 4], 0
je 0x4ecfbb
push ecx
mov ecx, esp
mov dword [ebp - 0xbc], esp
lea eax, [ebp - 0x48]
push eax
call fcn.00402120
call sym.QiyiInstaller.exe_RMDir
add esp, 4
jmp 0x4ecff8
cmp dword [ebp - 0xc], 0
je 0x4ecff8
push str.Common
lea ecx, [ebp - 0x48]
push ecx
lea edx, [ebp - 0x58]
push edx
call fcn.00404230
add esp, 0xc
push ecx
mov ecx, esp
mov dword [ebp - 0xc0], esp
lea eax, [ebp - 0x58]
push eax
call fcn.00402120
call sym.QiyiInstaller.exe_RMDir
add esp, 4
lea ecx, [ebp - 0x58]
call fcn.00402e80
cmp dword [0x553f54], 0
jne 0x4ed073
cmp dword [ebp - 4], 0
jne 0x4ed00d
cmp dword [ebp - 0xc], 0
je 0x4ed073
push ecx
mov ecx, esp
mov dword [ebp - 0xc4], esp
push str.common_uinst_key
call fcn.00403820
lea ecx, [ebp - 0x60]
push ecx
call fcn.004e15d0
add esp, 8
lea ecx, [ebp - 0x5c]
call fcn.00407130
mov edx, dword [ebp - 0x60]
push edx
push str.HKEY_LOCAL_MACHINE_s
lea eax, [ebp - 0x5c]
push eax
call fcn.00406020
add esp, 0xc
push ecx
mov ecx, esp
mov dword [ebp - 0xc8], esp
lea edx, [ebp - 0x5c]
push edx
call fcn.00402120
call sym.QiyiInstaller.exe_DeleteReg
add esp, 4
lea ecx, [ebp - 0x5c]
call fcn.00402e80
lea ecx, [ebp - 0x60]
call fcn.00402e80
lea ecx, [ebp - 0x14]
call fcn.00402e80
lea ecx, [ebp - 0x10]
call fcn.00402e80
lea ecx, [ebp - 0x3c]
call fcn.00402e80
lea ecx, [ebp - 0x48]
call fcn.00402e80
lea ecx, [ebp - 0x1c]
call fcn.00402e80
lea ecx, [ebp - 0x38]
call fcn.004a0970
lea ecx, [ebp + 8]
call fcn.00402e80
lea esp, [ebp - 0xe0]
pop esi
mov ecx, dword [ebp - 0x7c]
xor ecx, ebp
call fcn.004bd72f
mov esp, ebp
pop ebp
ret