Function at 0x474770
Capabilities:
Check if file exists
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x478d5a
mov eax, dword fs:[0]
push eax
sub esp, 0x234
push esi
mov eax, dword [0x499750]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18c], ecx
mov dword [ebp - 0x188], 0
mov ecx, dword [ebp - 0x18c]
call fcn.00470960
mov ecx, dword [ebp - 0x18c]
add ecx, 0x288
call fcn.00464a70
mov ecx, dword [ebp - 0x18c]
add ecx, 0x288
call fcn.004649b0
mov ecx, dword [ebp - 0x18c]
add ecx, 0x288
call fcn.0045afc0
test eax, eax
jne 0x47484d
push 0x49e3dc
push 0x487c70
lea eax, [ebp - 0x44]
push eax
call fcn.00401950
add esp, 0xc
mov dword [ebp - 0x190], eax
mov ecx, dword [ebp - 0x190]
mov dword [ebp - 0x194], ecx
mov dword [ebp - 4], 0
push 0
push 0
mov ecx, dword [ebp - 0x194]
call fcn.004068a0
push eax
call fcn.00425149
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.00405530
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
xor eax, eax
jmp 0x475b85
mov ecx, dword [ebp - 0x18c]
add ecx, 0x288
call fcn.004684c0
mov dword [ebp - 0x24], eax
push 0x1f40
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push ecx
mov ecx, esp
mov dword [ebp - 0x48], esp
push str.installdir
call fcn.00402f90
mov dword [ebp - 0x198], eax
lea eax, [ebp - 0x4c]
push eax
call fcn.0045b760
add esp, 8
mov dword [ebp - 0x19c], eax
mov ecx, dword [ebp - 0x19c]
mov dword [ebp - 0x1a0], ecx
mov dword [ebp - 4], 1
mov edx, dword [ebp - 0x1a0]
push edx
mov ecx, 0x49e3c4
call fcn.00403530
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4c]
call fcn.00405530
push 0x3e9
mov eax, dword [ebp - 0x18c]
push eax
push 0x1c
push 0x4b
push 0
push 0
lea ecx, [ebp - 0x5c]
call fcn.004036c0
push eax
push 0x5000000b
push 0
mov ecx, dword [ebp - 0x18c]
add ecx, 0xafc
mov edx, dword [ebp - 0x18c]
mov eax, dword [edx + 0xafc]
mov edx, dword [eax + 0x134]
call edx
push 0x40a
push 0x40b
push 0x40a
mov ecx, dword [ebp - 0x18c]
add ecx, 0xafc
call fcn.00471e50
push 1
push 0
push 0
mov eax, dword [ebp - 0x18c]
mov ecx, 0x176
sub ecx, dword [eax + 0xba8]
sub ecx, 0x28
push ecx
mov edx, dword [ebp - 0x18c]
mov eax, 0x21a
sub eax, dword [edx + 0xba4]
sub eax, 0x28
push eax
push 0
mov ecx, dword [ebp - 0x18c]
add ecx, 0xafc
call fcn.004245b4
push 0x3e8
mov ecx, dword [ebp - 0x18c]
push ecx
push 0x1c
push 0x4b
push 0
push 0
lea ecx, [ebp - 0x6c]
call fcn.004036c0
push eax
push 0x5000000b
push 0
mov ecx, dword [ebp - 0x18c]
add ecx, 0xa48
mov edx, dword [ebp - 0x18c]
mov eax, dword [edx + 0xa48]
mov edx, dword [eax + 0x134]
call edx
push 0x408
push 0x409
push 0x408
mov ecx, dword [ebp - 0x18c]
add ecx, 0xa48
call fcn.00471e50
push 1
push 0
push 0
mov eax, dword [ebp - 0x18c]
mov ecx, 0x176
sub ecx, dword [eax + 0xaf4]
sub ecx, 0x28
push ecx
mov edx, dword [ebp - 0x18c]
mov eax, 0x21a
sub eax, dword [edx + 0xba4]
sub eax, 0x28
mov ecx, dword [ebp - 0x18c]
sub eax, dword [ecx + 0xaf0]
sub eax, 0x12
push eax
push 0
mov ecx, dword [ebp - 0x18c]
add ecx, 0xa48
call fcn.004245b4
mov ecx, 0x49e3c4
call fcn.004068a0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x474ae2
push str.QiyiClient.exe
push 0x49e3c4
lea edx, [ebp - 0x74]
push edx
call fcn.004018a0
add esp, 0xc
mov dword [ebp - 0x1a4], eax
mov eax, dword [ebp - 0x1a4]
mov dword [ebp - 0x1a8], eax
mov dword [ebp - 4], 2
mov ecx, dword [ebp - 0x188]
or ecx, 1
mov dword [ebp - 0x188], ecx
mov ecx, dword [ebp - 0x1a8]
call fcn.004068a0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x474ad6
push str.QiyiApp.exe
push 0x49e3c4
lea edx, [ebp - 0x78]
push edx
call fcn.004018a0
add esp, 0xc
mov dword [ebp - 0x1ac], eax
mov eax, dword [ebp - 0x188]
or eax, 2
mov dword [ebp - 0x188], eax
mov ecx, dword [ebp - 0x1ac]
call fcn.004068a0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x474ae2
mov dword [ebp - 0x1b0], 0
jmp 0x474aec
mov dword [ebp - 0x1b0], 1
mov cl, byte [ebp - 0x1b0]
mov byte [ebp - 0x6d], cl
mov edx, dword [ebp - 0x188]
and edx, 2
je 0x474b0f
and dword [ebp - 0x188], 0xfffffffd
lea ecx, [ebp - 0x78]
call fcn.00405530
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x188]
and eax, 1
je 0x474b30
and dword [ebp - 0x188], 0xfffffffe
lea ecx, [ebp - 0x74]
call fcn.00405530
movzx ecx, byte [ebp - 0x6d]
test ecx, ecx
je 0x474b71
push 1
push ecx
mov ecx, esp
mov dword [ebp - 0x7c], esp
push 0x487cf8
call fcn.00402f90
mov dword [ebp - 0x1b4], eax
mov ecx, dword [ebp - 0x18c]
call fcn.00471280
mov edx, dword [ebp - 0x18c]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x18c]
mov edx, dword [eax + 0x150]
call edx
push 0x487d1c
push ecx
mov ecx, esp
mov dword [ebp - 0x84], esp
push 0x487d20
call fcn.00402f90
mov dword [ebp - 0x1b8], eax
lea eax, [ebp - 0x88]
push eax
call fcn.0045b760
add esp, 8
mov dword [ebp - 0x1bc], eax
mov ecx, dword [ebp - 0x1bc]
mov dword [ebp - 0x1c0], ecx
mov edx, dword [ebp - 0x1c0]
push edx
call fcn.00401a00
add esp, 8
mov byte [ebp - 0x7d], al
lea ecx, [ebp - 0x88]
call fcn.00405530
movzx eax, byte [ebp - 0x7d]
test eax, eax
je 0x474c29
push ecx
mov ecx, esp
mov dword [ebp - 0x8c], esp
push str.ppsinstallpath
call fcn.00402f90
mov dword [ebp - 0x1c4], eax
lea ecx, [ebp - 0x28]
push ecx
call fcn.0045b760
add esp, 8
mov dword [ebp - 0x1c8], eax
lea ecx, [ebp - 0x28]
call fcn.00401a20
movzx edx, al
test edx, edx
jne 0x474c1f
mov eax, dword [ebp - 0x18c]
mov dword [eax + 0x12cc], 1
lea ecx, [ebp - 0x28]
call fcn.00405530
jmp 0x474c39
mov ecx, dword [ebp - 0x18c]
mov dword [ecx + 0x12cc], 1
push 0x3ea
mov edx, dword [ebp - 0x18c]
push edx
push 0x1c
push 0x4b
push 0
push 0
lea ecx, [ebp - 0x9c]
call fcn.004036c0
push eax
push 0x5000000b
push 0
mov ecx, dword [ebp - 0x18c]
add ecx, 0xbb0
mov eax, dword [ebp - 0x18c]
mov edx, dword [eax + 0xbb0]
mov eax, dword [edx + 0x134]
call eax
push 0x40e
push 0x40f
push 0x40e
mov ecx, dword [ebp - 0x18c]
add ecx, 0xbb0
call fcn.00471e50
push 1
push 0
push 0
mov ecx, dword [ebp - 0x18c]
mov edx, 0x176
sub edx, dword [ecx + 0xc5c]
sub edx, 0x28
push edx
mov eax, dword [ebp - 0x18c]
mov ecx, 0x21a
sub ecx, dword [eax + 0xc58]
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
push eax
push 0
mov ecx, dword [ebp - 0x18c]
add ecx, 0xbb0
call fcn.004245b4
push 0
mov ecx, dword [ebp - 0x18c]
add ecx, 0xbb0
call fcn.004243a9
push 0x3ed
mov edx, dword [ebp - 0x18c]
push edx
push 0xe
push 0x15e
push 0
push 0
lea ecx, [ebp - 0xac]
call fcn.004036c0
push eax
push 0x5000000b
push 0
mov ecx, dword [ebp - 0x18c]
add ecx, 0xdcc
mov eax, dword [ebp - 0x18c]
mov edx, dword [eax + 0xdcc]
mov eax, dword [edx + 0x134]
call eax
push 0x412
push 0x414
push 0x412
mov ecx, dword [ebp - 0x18c]
add ecx, 0xdcc
call fcn.00471e50
push 0x413
push 0x415
push 0x413
mov ecx, dword [ebp - 0x18c]
add ecx, 0xdcc
call fcn.00471df0
push ecx
mov ecx, esp
mov dword [ebp - 0xb0], esp
push 0x487d70
call fcn.00402f90
mov dword [ebp - 0x1cc], eax
mov ecx, dword [ebp - 0x18c]
add ecx, 0xdcc
call fcn.004726f0
push 1
push 0
push 0
push 0xdd
push 0x67
push 0
mov ecx, dword [ebp - 0x18c]
add ecx, 0xdcc
call fcn.004245b4
push 0xf4f2f0
mov ecx, dword [ebp - 0x18c]
add ecx, 0xdcc
call fcn.00401720
push 1
push 0
push 0
push 0xc0
push 0x67
push 0
mov ecx, dword [ebp - 0x18c]
add ecx, 0x1154
call fcn.004245b4
push 1
push 0
push 0
push 0xc4
push 0xdb
push 0
mov ecx, dword [ebp - 0x18c]
add ecx, 0x11cc
call fcn.004245b4
push 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret