Function at 0x46cc50
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46fd7c
mov eax, dword fs:[0]
push eax
sub esp, 0xb8
mov eax, dword [0x48d740]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x84], ecx
mov dword [ebp - 0x80], 0
mov ecx, dword [ebp - 0x84]
call fcn.0046aad0
mov ecx, dword [ebp - 0x84]
add ecx, 0x288
call fcn.0045f140
mov ecx, dword [ebp - 0x84]
add ecx, 0x288
call fcn.0045f080
mov ecx, dword [ebp - 0x84]
add ecx, 0x288
call fcn.00463a90
mov dword [ebp - 0x10], eax
push 0x3e8
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.installdir
call fcn.00401d70
mov dword [ebp - 0x88], eax
lea ecx, [ebp - 0x18]
push ecx
call fcn.0045b5e0
add esp, 8
mov dword [ebp - 0x8c], eax
mov edx, dword [ebp - 0x8c]
mov dword [ebp - 0x90], edx
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x90]
push eax
mov ecx, 0x49237c
call fcn.004022f0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00404e70
push 0x3e9
mov ecx, dword [ebp - 0x84]
push ecx
push 0x1c
push 0x4b
push 0
push 0
lea ecx, [ebp - 0x28]
call fcn.00402450
push eax
push 0x5000000b
push 0
mov ecx, dword [ebp - 0x84]
add ecx, 0xaec
mov edx, dword [ebp - 0x84]
mov eax, dword [edx + 0xaec]
mov edx, dword [eax + 0x134]
call edx
push 0x40a
push 0x40b
push 0x40a
mov ecx, dword [ebp - 0x84]
add ecx, 0xaec
call fcn.0046bde0
push 1
push 0
push 0
mov eax, dword [ebp - 0x84]
mov ecx, 0x176
sub ecx, dword [eax + 0xb98]
sub ecx, 0x31
push ecx
mov edx, dword [ebp - 0x84]
mov eax, 0x21a
sub eax, dword [edx + 0xb94]
sub eax, 0xb7
push eax
push 0
mov ecx, dword [ebp - 0x84]
add ecx, 0xaec
call fcn.004242d2
push 0x3e8
mov ecx, dword [ebp - 0x84]
push ecx
push 0x1c
push 0x4b
push 0
push 0
lea ecx, [ebp - 0x38]
call fcn.00402450
push eax
push 0x5000000b
push 0
mov ecx, dword [ebp - 0x84]
add ecx, 0xa38
mov edx, dword [ebp - 0x84]
mov eax, dword [edx + 0xa38]
mov edx, dword [eax + 0x134]
call edx
push 0x408
push 0x409
push 0x408
mov ecx, dword [ebp - 0x84]
add ecx, 0xa38
call fcn.0046bde0
push 1
push 0
push 0
mov eax, dword [ebp - 0x84]
mov ecx, 0x176
sub ecx, dword [eax + 0xae4]
sub ecx, 0x31
push ecx
mov edx, dword [ebp - 0x84]
mov eax, 0x21a
sub eax, dword [edx + 0xb94]
sub eax, 0xb7
mov ecx, dword [ebp - 0x84]
sub eax, dword [ecx + 0xae0]
sub eax, 0x16
push eax
push 0
mov ecx, dword [ebp - 0x84]
add ecx, 0xa38
call fcn.004242d2
mov ecx, 0x49237c
call fcn.004024e0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x46cf3f
push str.QiyiClient.exe
push 0x49237c
lea edx, [ebp - 0x40]
push edx
call fcn.00401530
add esp, 0xc
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0x94]
mov dword [ebp - 0x98], eax
mov dword [ebp - 4], 1
mov ecx, dword [ebp - 0x80]
or ecx, 1
mov dword [ebp - 0x80], ecx
mov ecx, dword [ebp - 0x98]
call fcn.004024e0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x46cf33
push str.QiyiApp.exe
push 0x49237c
lea edx, [ebp - 0x44]
push edx
call fcn.00401530
add esp, 0xc
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp - 0x80]
or eax, 2
mov dword [ebp - 0x80], eax
mov ecx, dword [ebp - 0x9c]
call fcn.004024e0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x46cf3f
mov dword [ebp - 0xa0], 0
jmp 0x46cf49
mov dword [ebp - 0xa0], 1
mov cl, byte [ebp - 0xa0]
mov byte [ebp - 0x39], cl
mov edx, dword [ebp - 0x80]
and edx, 2
je 0x46cf66
and dword [ebp - 0x80], 0xfffffffd
lea ecx, [ebp - 0x44]
call fcn.00404e70
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x80]
and eax, 1
je 0x46cf81
and dword [ebp - 0x80], 0xfffffffe
lea ecx, [ebp - 0x40]
call fcn.00404e70
movzx ecx, byte [ebp - 0x39]
test ecx, ecx
je 0x46cfc2
push 1
push ecx
mov ecx, esp
mov dword [ebp - 0x48], esp
push 0x47d0e8
call fcn.00401d70
mov dword [ebp - 0xa4], eax
mov ecx, dword [ebp - 0x84]
call fcn.0046b240
mov edx, dword [ebp - 0x84]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x84]
mov edx, dword [eax + 0x150]
call edx
push 0x3ea
mov eax, dword [ebp - 0x84]
push eax
push 0x1c
push 0x4b
push 0
push 0
lea ecx, [ebp - 0x58]
call fcn.00402450
push eax
push 0x5000000b
push 0
mov ecx, dword [ebp - 0x84]
add ecx, 0xba0
mov edx, dword [ebp - 0x84]
mov eax, dword [edx + 0xba0]
mov edx, dword [eax + 0x134]
call edx
push 0x40e
push 0x40f
push 0x40e
mov ecx, dword [ebp - 0x84]
add ecx, 0xba0
call fcn.0046bde0
push 1
push 0
push 0
mov eax, dword [ebp - 0x84]
mov ecx, 0x176
sub ecx, dword [eax + 0xc4c]
sub ecx, 0x28
push ecx
mov edx, dword [ebp - 0x84]
mov eax, 0x21a
sub eax, dword [edx + 0xc48]
cdq
sub eax, edx
sar eax, 1
push eax
push 0
mov ecx, dword [ebp - 0x84]
add ecx, 0xba0
call fcn.004242d2
push 0
mov ecx, dword [ebp - 0x84]
add ecx, 0xba0
call fcn.004240c3
push 0x3ed
mov eax, dword [ebp - 0x84]
push eax
push 0xe
push 0x154
push 0
push 0
lea ecx, [ebp - 0x68]
call fcn.00402450
push eax
push 0x5000000b
push 0
mov ecx, dword [ebp - 0x84]
add ecx, 0xc54
mov edx, dword [ebp - 0x84]
mov eax, dword [edx + 0xc54]
mov edx, dword [eax + 0x134]
call edx
push 0x412
push 0x414
push 0x412
mov ecx, dword [ebp - 0x84]
add ecx, 0xc54
call fcn.0046bde0
push 0x413
push 0x415
push 0x413
mov ecx, dword [ebp - 0x84]
add ecx, 0xc54
call fcn.0046bd80
push ecx
mov ecx, esp
mov dword [ebp - 0x6c], esp
push 0x47d10c
call fcn.00401d70
mov dword [ebp - 0xa8], eax
mov ecx, dword [ebp - 0x84]
add ecx, 0xc54
call fcn.0046c680
push 1
push 0
push 0
push 0xdd
push 0x67
push 0
mov ecx, dword [ebp - 0x84]
add ecx, 0xc54
call fcn.004242d2
push 0xf4f2f0
mov ecx, dword [ebp - 0x84]
add ecx, 0xc54
call fcn.004014d0
push 1
push 0
push 0
push 0xc0
push 0x67
push 0
mov ecx, dword [ebp - 0x84]
add ecx, 0xd0c
call fcn.004242d2
push 1
push 0
push 0
push 0xc4
push 0xdb
push 0
mov ecx, dword [ebp - 0x84]
add ecx, 0xd84
call fcn.004242d2
push 1
push 0
push 0
push 0xe2
push 0x81
push 0
mov ecx, dword [ebp - 0x84]
add ecx, 0xdfc
call fcn.004242d2
push 0x47d140
push ecx
mov ecx, esp
mov dword [ebp - 0x70], esp
push str.app_version
call fcn.00401d70
mov dword [ebp - 0xac], eax
lea eax, [ebp - 0x74]
push eax
call fcn.0045b5e0
add esp, 8
mov dword [ebp - 0xb0], eax
mov ecx, dword [ebp - 0xb0]
mov dword [ebp - 0xb4], ecx
mov dword [ebp - 4], 2
mov edx, dword [ebp - 0xb4]
push edx
push 0x47d164
lea eax, [ebp - 0x78]
push eax
call fcn.004015e0
add esp, 0xc
mov dword [ebp - 0xb8], eax
mov ecx, dword [ebp - 0xb8]
mov dword [ebp - 0xbc], ecx
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0xbc]
push edx
lea eax, [ebp - 0x7c]
push eax
call fcn.00401530
add esp, 0xc
mov dword [ebp - 0xc0], eax
mov ecx, dword [ebp - 0xc0]
mov dword [ebp - 0xc4], ecx
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0xc4]
call fcn.004024e0
push eax
mov ecx, dword [ebp - 0x84]
call fcn.00424029
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x7c]
call fcn.00404e70
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x78]
call fcn.00404e70
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x74]
call fcn.00404e70
push str.ck_W:N
mov ecx, dword [ebp - 0x84]
add ecx, 0x2f4
call fcn.00424029
cmp dword [0x4923d4], 0
je 0x46d2c7
mov ecx, dword [ebp - 0x84]
call fcn.0046cae0
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret