Function at 0x4e3860
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xdc
mov eax, dword [0x541af0]
xor eax, ebp
mov dword [ebp - 0x7c], eax
push esi
mov dword [ebp - 0xcc], 0
call fcn.00403b60
mov dword [ebp - 0x40], eax
push 0xa
lea ecx, [ebp - 0x38]
call fcn.00498616
lea eax, [ebp - 0x38]
push eax
push ecx
mov ecx, esp
mov dword [ebp - 0x64], esp
lea edx, [ebp + 8]
push edx
call fcn.00402350
call fcn.004d7c80
add esp, 8
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 1
je 0x4e3975
lea eax, [ebp + 8]
push eax
push str._DeleteInstallData__Invalid_arguments__nArg_1_:
lea ecx, [ebp - 0x78]
push ecx
call fcn.00404540
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 0x4e38e9
mov dword [ebp - 0xd0], 0
jmp 0x4e394a
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 0x4e390e
mov dword [ebp - 0xd4], 0
jmp 0x4e393e
mov eax, dword [ebp - 8]
shl eax, 1
call fcn.004bbdc0
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.00407870
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.004b624c
push 0x522c64
lea ecx, [ebp - 0x70]
push ecx
call fcn.004bb812
lea ecx, [ebp - 0x78]
call fcn.004030e0
push 0
lea ecx, [ebp - 0x38]
call fcn.004985ed
push eax
lea ecx, [ebp - 0x38]
call fcn.0040ca20
push eax
lea ecx, [ebp - 0x1c]
call fcn.00402350
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 0x4e39c1
lea ecx, [ebp - 0x1c]
call fcn.004030e0
lea ecx, [ebp - 0x38]
call fcn.00498740
lea ecx, [ebp + 8]
call fcn.004030e0
jmp 0x4e3e0b
or dword [ebp - 0xcc], 1
push 0x5112b4
push ecx
mov ecx, esp
mov dword [ebp - 0x84], esp
push 0x5112b8
call fcn.00403a90
lea edx, [ebp - 0x88]
push edx
call fcn.004d75f0
add esp, 8
push eax
call fcn.00404630
add esp, 8
movzx eax, al
test eax, eax
je 0x4e3a49
or dword [ebp - 0xcc], 2
push 0x5112dc
push ecx
mov ecx, esp
mov dword [ebp - 0x8c], esp
push str.qyfvAloneinstalled
call fcn.00403a90
lea ecx, [ebp - 0x90]
push ecx
call fcn.004d75f0
add esp, 8
push eax
call fcn.00404630
add esp, 8
movzx edx, al
test edx, edx
je 0x4e3a49
mov dword [ebp - 0xdc], 1
jmp 0x4e3a53
mov dword [ebp - 0xdc], 0
mov al, byte [ebp - 0xdc]
mov byte [ebp - 0x7d], al
mov ecx, dword [ebp - 0xcc]
and ecx, 2
je 0x4e3a79
and dword [ebp - 0xcc], 0xfffffffd
lea ecx, [ebp - 0x90]
call fcn.004030e0
mov edx, dword [ebp - 0xcc]
and edx, 1
je 0x4e3a96
and dword [ebp - 0xcc], 0xfffffffe
lea ecx, [ebp - 0x88]
call fcn.004030e0
movzx eax, byte [ebp - 0x7d]
test eax, eax
je 0x4e3b45
push ecx
mov ecx, esp
mov dword [ebp - 0x94], esp
push str.installdirfvideo
call fcn.00403a90
lea ecx, [ebp - 0x50]
push ecx
call fcn.004d75f0
add esp, 8
lea ecx, [ebp - 0x1c]
call fcn.00403500
push eax
lea edx, [ebp - 0x54]
push edx
lea ecx, [ebp - 0x50]
call fcn.00404410
lea ecx, [ebp - 0x1c]
call sym.QiyiInstaller.exe_public:_enum_eScriptType___thiscall_CScriptModule::Type_void_
push eax
lea ecx, [ebp - 0x54]
call fcn.00403fc0
test eax, eax
jne 0x4e3b19
push ecx
mov ecx, esp
mov dword [ebp - 0x98], esp
lea eax, [ebp - 0x50]
push eax
call fcn.00402350
push ecx
mov ecx, esp
mov dword [ebp - 0x9c], esp
lea edx, [ebp - 0x1c]
push edx
call fcn.00402350
call fcn.004def20
add esp, 8
jmp 0x4e3b33
push ecx
mov ecx, esp
mov dword [ebp - 0xa0], esp
lea eax, [ebp - 0x1c]
push eax
call fcn.00402350
call sym.QiyiInstaller.exe_RMDir
add esp, 4
lea ecx, [ebp - 0x54]
call fcn.004030e0
lea ecx, [ebp - 0x50]
call fcn.004030e0
jmp 0x4e3b5f
push ecx
mov ecx, esp
mov dword [ebp - 0xa4], esp
lea edx, [ebp - 0x1c]
push edx
call fcn.00402350
call sym.QiyiInstaller.exe_RMDir
add esp, 4
push 0x51132c
push 1
lea eax, [ebp - 0xac]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00404380
push eax
call fcn.00404610
add esp, 8
mov byte [ebp - 0xa5], al
lea ecx, [ebp - 0xac]
call fcn.004030e0
movzx ecx, byte [ebp - 0xa5]
test ecx, ecx
je 0x4e3bc9
lea ecx, [ebp - 0x1c]
call fcn.00403500
sub eax, 1
push eax
lea edx, [ebp - 0xb0]
push edx
lea ecx, [ebp - 0x1c]
call fcn.00404410
push eax
lea ecx, [ebp - 0x1c]
call fcn.004030c0
lea ecx, [ebp - 0xb0]
call fcn.004030e0
push 0x5c
lea ecx, [ebp - 0x1c]
call fcn.00404280
push eax
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00404410
lea ecx, [ebp - 0x48]
call fcn.00403500
mov esi, eax
push 0x5c
lea ecx, [ebp - 0x48]
call fcn.00404280
sub esi, eax
sub esi, 1
push esi
lea ecx, [ebp - 0x3c]
push ecx
lea ecx, [ebp - 0x48]
call fcn.00404380
push 0x511330
lea ecx, [ebp - 0x3c]
call fcn.00403fc0
test eax, eax
je 0x4e3c44
lea ecx, [ebp - 0x3c]
call fcn.004030e0
lea ecx, [ebp - 0x48]
call fcn.004030e0
lea ecx, [ebp - 0x1c]
call fcn.004030e0
lea ecx, [ebp - 0x38]
call fcn.00498740
lea ecx, [ebp + 8]
call fcn.004030e0
jmp 0x4e3e0b
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.00403a90
lea edx, [ebp - 0x10]
push edx
call fcn.004d75f0
add esp, 8
push ecx
mov ecx, esp
mov dword [ebp - 0xb8], esp
push 0x511370
call fcn.00403a90
lea eax, [ebp - 0x14]
push eax
call fcn.004d75f0
add esp, 8
lea ecx, [ebp - 0x14]
call fcn.00404690
movzx ecx, al
test ecx, ecx
jne 0x4e3cc5
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.00404200
cmp eax, 0xffffffff
je 0x4e3cc5
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0
cmp dword [ebp - 4], 0
je 0x4e3cf9
lea ecx, [ebp - 0x10]
call fcn.00404690
movzx edx, al
test edx, edx
jne 0x4e3cf9
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.00404200
cmp eax, 0xffffffff
je 0x4e3cf9
mov dword [ebp - 4], 0
cmp dword [ebp - 4], 0
je 0x4e3d1b
push ecx
mov ecx, esp
mov dword [ebp - 0xbc], esp
lea eax, [ebp - 0x48]
push eax
call fcn.00402350
call sym.QiyiInstaller.exe_RMDir
add esp, 4
jmp 0x4e3d58
cmp dword [ebp - 0xc], 0
je 0x4e3d58
push str.Common
lea ecx, [ebp - 0x48]
push ecx
lea edx, [ebp - 0x58]
push edx
call fcn.00404490
add esp, 0xc
push ecx
mov ecx, esp
mov dword [ebp - 0xc0], esp
lea eax, [ebp - 0x58]
push eax
call fcn.00402350
call sym.QiyiInstaller.exe_RMDir
add esp, 4
lea ecx, [ebp - 0x58]
call fcn.004030e0
cmp dword [0x546df4], 0
jne 0x4e3dd3
cmp dword [ebp - 4], 0
jne 0x4e3d6d
cmp dword [ebp - 0xc], 0
je 0x4e3dd3
push ecx
mov ecx, esp
mov dword [ebp - 0xc4], esp
push str.common_uinst_key
call fcn.00403a90
lea ecx, [ebp - 0x60]
push ecx
call fcn.004d75f0
add esp, 8
lea ecx, [ebp - 0x5c]
call fcn.00407160
mov edx, dword [ebp - 0x60]
push edx
push str.HKEY_LOCAL_MACHINE_s
lea eax, [ebp - 0x5c]
push eax
call fcn.00406050
add esp, 0xc
push ecx
mov ecx, esp
mov dword [ebp - 0xc8], esp
lea edx, [ebp - 0x5c]
push edx
call fcn.00402350
call sym.QiyiInstaller.exe_DeleteReg
add esp, 4
lea ecx, [ebp - 0x5c]
call fcn.004030e0
lea ecx, [ebp - 0x60]
call fcn.004030e0
lea ecx, [ebp - 0x14]
call fcn.004030e0
lea ecx, [ebp - 0x10]
call fcn.004030e0
lea ecx, [ebp - 0x3c]
call fcn.004030e0
lea ecx, [ebp - 0x48]
call fcn.004030e0
lea ecx, [ebp - 0x1c]
call fcn.004030e0
lea ecx, [ebp - 0x38]
call fcn.00498740
lea ecx, [ebp + 8]
call fcn.004030e0
lea esp, [ebp - 0xe0]
pop esi
mov ecx, dword [ebp - 0x7c]
xor ecx, ebp
call fcn.004b5c0b
mov esp, ebp
pop ebp
ret