Function at 0x46ff20
Capabilities:
Accept command line arguments
Check if file exists
Check mutex on windows
Check os version
Delete file
Extract resource via kernel32 functions
Get common file path
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47b773
mov eax, dword fs:[0]
push eax
mov eax, 0x2b08
call fcn.0043eb60
mov eax, dword [0x49d7b0]
xor eax, ebp
mov dword [ebp - 0x84], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x29fc], ecx
mov dword [ebp - 0x29f8], 0
cmp dword [0x4a13c0], 1
jle 0x4700ac
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov dword [ebp - 0x6c], eax
lea ecx, [ebp - 0x68]
call fcn.00478790
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x6c]
push eax
lea ecx, [ebp - 0x68]
call fcn.00478290
push str.uinst
lea ecx, [ebp - 0x68]
call fcn.00477f80
test eax, eax
je 0x46ffb5
mov ecx, dword [ebp - 0x29fc]
mov dword [ecx + 0x104], 0
push 0x48a244
lea ecx, [ebp - 0x68]
call fcn.00477f80
test eax, eax
je 0x46ffd6
mov edx, dword [ebp - 0x29fc]
mov dword [edx + 0x108], 1
push 0x48a248
lea ecx, [ebp - 0x68]
call fcn.00477f80
test eax, eax
je 0x470007
mov eax, dword [ebp - 0x29fc]
mov dword [eax + 0x10c], 1
mov ecx, dword [ebp - 0x29fc]
mov dword [ecx + 0x104], 1
push 0x48a258
lea ecx, [ebp - 0x68]
call fcn.00477f80
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0
je 0x470039
push 0
mov ecx, dword [ebp - 0x44]
call fcn.00477f20
push eax
mov ecx, dword [ebp - 0x29fc]
add ecx, 0x260
call fcn.00403830
push 0x48a25c
lea ecx, [ebp - 0x68]
call fcn.00477f80
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0
je 0x47006b
push 0
mov ecx, dword [ebp - 0x44]
call fcn.00477f20
push eax
mov ecx, dword [ebp - 0x29fc]
add ecx, 0xfc
call fcn.00403830
push str.setuplog
lea ecx, [ebp - 0x68]
call fcn.00477f80
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0
je 0x47009d
push 0
mov ecx, dword [ebp - 0x44]
call fcn.00477f20
push eax
mov ecx, dword [ebp - 0x29fc]
add ecx, 0x100
call fcn.00403830
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x68]
call fcn.00478720
mov edx, dword [ebp - 0x29fc]
cmp dword [edx + 0x10c], 0
jne 0x47015d
push str.Mutex_QiyiInstaller
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov ecx, dword [ebp - 0x29fc]
mov dword [ecx + 0x25c], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x47015d
push ecx
mov ecx, esp
mov dword [ebp - 0x2930], esp
push 0x48a2a8
call fcn.00403ac0
mov dword [ebp - 0x2a00], eax
mov ecx, 0x4a23f0
call fcn.0046f040
push 0x48a2d4
push 0
push 0
push 0
call dword [sym.imp.USER32.dll_FindWindowExW]
mov dword [ebp - 0x70], eax
mov edx, dword [ebp - 0x70]
push edx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x470156
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x7c], 0xa
mov dword [ebp - 0x74], 0
lea eax, [ebp - 0x7c]
push eax
push 0
push 0x4a
mov ecx, dword [ebp - 0x70]
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp - 0x80], eax
xor eax, eax
jmp 0x47172c
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [ebp - 0x29fc]
mov dword [edx + 0x244], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebp - 0x29fc]
mov dword [ecx + 0x248], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [ebp - 0x29fc]
mov dword [edx + 0x24c], eax
mov eax, dword [ebp - 0x29fc]
add eax, 0x278
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0
call dword [sym.imp.USER32.dll_GetDC]
mov dword [ebp - 0x10], eax
push 0x58
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
test eax, eax
jle 0x4701e2
push 0x58
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov ecx, eax
mov eax, 0x3c0
cdq
idiv ecx
mov edx, dword [ebp - 0x29fc]
mov dword [edx + 0x12c], eax
push 0x58
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov dword [0x4a221c], eax
push 0x5a
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov dword [0x4a2218], eax
mov edx, dword [ebp - 0x10]
push edx
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push 0x48a2e8
push 0
call fcn.0043dc75
add esp, 8
mov dword [ebp - 0x24], 8
mov dword [ebp - 0x20], 0xff
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
lea ecx, [ebp - 0x2934]
push ecx
mov ecx, dword [ebp - 0x29fc]
call fcn.0046ea40
mov dword [ebp - 0x2a04], eax
mov edx, dword [ebp - 0x2a04]
mov dword [ebp - 0x2a08], edx
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x2a08]
push eax
mov ecx, 0x4a24e8
call fcn.004039f0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2934]
call fcn.00401830
mov ecx, dword [ebp - 0x29fc]
call fcn.00427774
push 0
call fcn.00429112
add esp, 4
mov ecx, dword [ebp - 0x29fc]
call fcn.0046e4d0
push 0x104
push 0x104
mov ecx, dword [ebp - 0x29fc]
add ecx, 0xb4
call fcn.00401230
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x29fc]
add ecx, 0xb4
call fcn.00404aa0
push 0
push 0x19
push 0x104
mov ecx, dword [ebp - 0x29fc]
add ecx, 0xac
call fcn.00401230
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x29fc]
add ecx, 0xac
call fcn.00404aa0
push 0
push 0
push 0x104
mov ecx, dword [ebp - 0x29fc]
add ecx, 0xb0
call fcn.00401230
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x29fc]
add ecx, 0xb0
call fcn.00404aa0
push 0
push 2
push 0x104
mov ecx, dword [ebp - 0x29fc]
add ecx, 0xd8
call fcn.00401230
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x29fc]
add ecx, 0xd8
call fcn.00404aa0
push 0
push 0x17
push 0x104
mov ecx, dword [ebp - 0x29fc]
add ecx, 0xc4
call fcn.00401230
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x29fc]
add ecx, 0xc4
call fcn.00404aa0
push 0x104
push 0x104
mov ecx, dword [ebp - 0x29fc]
add ecx, 0xcc
call fcn.00401230
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x29fc]
add ecx, 0xcc
call fcn.00404aa0
push 0
push 0x14
push 0x104
mov ecx, dword [ebp - 0x29fc]
add ecx, 0xc0
call fcn.00401230
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x29fc]
add ecx, 0xc0
call fcn.00404aa0
push 0x5c
mov ecx, dword [ebp - 0x29fc]
add ecx, 0xcc
call fcn.00405880
add eax, 1
push eax
lea ecx, [ebp - 0x2938]
push ecx
mov ecx, dword [ebp - 0x29fc]
add ecx, 0xcc
call fcn.00405960
mov dword [ebp - 0x2a0c], eax
mov edx, dword [ebp - 0x2a0c]
mov dword [ebp - 0x2a10], edx
mov dword [ebp - 4], 2
mov eax, dword [ebp - 0x2a10]
push eax
mov ecx, dword [ebp - 0x29fc]
add ecx, 0xb8
call fcn.004039f0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2938]
call fcn.00401830
push 0
push 0x1a
push 0x104
mov ecx, dword [ebp - 0x29fc]
add ecx, 0xd0
call fcn.00401230
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x29fc]
add ecx, 0xd0
call fcn.00404aa0
push 0x104
mov ecx, dword [ebp - 0x29fc]
add ecx, 0xd4
call fcn.00401230
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x29fc]
add ecx, 0xd4
call fcn.00404aa0
push 1
lea ecx, [ebp - 0x2940]
push ecx
mov ecx, dword [ebp - 0x29fc]
add ecx, 0xd4
call fcn.004058d0
mov dword [ebp - 0x2a14], eax
push 0x48a2ec
mov edx, dword [ebp - 0x2a14]
push edx
call fcn.00406a10
add esp, 8
mov byte [ebp - 0x2939], al
lea ecx, [ebp - 0x2940]
call fcn.00401830
movzx eax, byte [ebp - 0x2939]
test eax, eax
je 0x470562
push 0x48a2f0
mov ecx, dword [ebp - 0x29fc]
add ecx, 0xd4
call fcn.004066c0
call fcn.00405ca0
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x29fc]
add ecx, 0xd4
call fcn.004039c0
push eax
call fcn.0045c240
mov ecx, dword [ebp - 0x29fc]
add ecx, 0x130
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x470930
lea ecx, [ebp - 0x290]
call fcn.00406af0
mov dword [ebp - 4], 3
mov edx, dword [ebp - 0x29fc]
cmp dword [edx + 0x134], 6
jae 0x470758
push 0x48a2f4
mov ecx, dword [ebp - 0x29fc]
add ecx, 0x124
call fcn.00403830
push 0
push 0x23
lea eax, [ebp - 0x28c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea ecx, [ebp - 0x28c]
push ecx
lea ecx, [ebp - 0x294]
call fcn.00403ac0
mov byte [ebp - 4], 4
push str.QiYi
lea edx, [ebp - 0x294]
push edx
lea eax, [ebp - 0x2944]
push eax
call fcn.00404080
add esp, 0xc
mov dword [ebp - 0x2a18], eax
mov ecx, dword [ebp - 0x2a18]
mov dword [ebp - 0x2a1c], ecx
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x2a1c]
push edx
mov ecx, dword [ebp - 0x29fc]
add ecx, 0xa8
call fcn.004039f0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2944]
call fcn.00401830
push str.QiYiQiyiClientcache_
lea eax, [ebp - 0x294]
push eax
lea ecx, [ebp - 0x2948]
push ecx
call fcn.00404080
add esp, 0xc
mov dword [ebp - 0x2a20], eax
mov edx, dword [ebp - 0x2a20]
mov dword [ebp - 0x2a24], edx
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x2a24]
push eax
lea ecx, [ebp - 0x290]
call fcn.004039f0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2948]
call fcn.00401830
mov ecx, dword [ebp - 0x29fc]
cmp dword [ecx + 0x134], 5
jne 0x47071f
mov edx, dword [ebp - 0x29fc]
cmp dword [edx + 0x138], 1
jne 0x4706e0
push str.windowsXP
mov ecx, dword [ebp - 0x29fc]
add ecx, 0x128
call fcn.00403830
jmp 0x47071d
mov eax, dword [ebp - 0x29fc]
cmp dword [eax + 0x138], 2
jne 0x470707
push str.windows2003
mov ecx, dword [ebp - 0x29fc]
add ecx, 0x128
call fcn.00403830
jmp 0x47071d
push str.windows2000
mov ecx, dword [ebp - 0x29fc]
add ecx, 0x128
call fcn.00403830
jmp 0x470744
mov ecx, dword [ebp - 0x29fc]
cmp dword [ecx + 0x134], 5
jae 0x470744
push str.windows98
mov ecx, dword [ebp - 0x29fc]
add ecx, 0x128
call fcn.00403830
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x294]
call fcn.00401830
jmp 0x47090d
push 0x48a390
mov ecx, dword [ebp - 0x29fc]
add ecx, 0x124
call fcn.00403830
push 0x104
lea edx, [ebp - 0x28c]
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea eax, [ebp - 0x28c]
push eax
lea ecx, [ebp - 0x298]
call fcn.00403ac0
mov byte [ebp - 4], 7
push 2
lea ecx, [ebp - 0x294c]
push ecx
lea ecx, [ebp - 0x298]
call fcn.00405960
mov dword [ebp - 0x2a28], eax
mov edx, dword [ebp - 0x2a28]
mov dword [ebp - 0x2a2c], edx
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x2a2c]
push eax
lea ecx, [ebp - 0x298]
call fcn.004039f0
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x294c]
call fcn.00401830
push str.UsersPublicQiYi
lea ecx, [ebp - 0x298]
push ecx
lea edx, [ebp - 0x2950]
push edx
call fcn.00404080
add esp, 0xc
mov dword [ebp - 0x2a30], eax
mov eax, dword [ebp - 0x2a30]
mov dword [ebp - 0x2a34], eax
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x2a34]
push ecx
mov ecx, dword [ebp - 0x29fc]
add ecx, 0xa8
call fcn.004039f0
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x2950]
call fcn.00401830
push str.UsersPublicQiYiQiyiClientcache_
lea edx, [ebp - 0x298]
push edx
lea eax, [ebp - 0x2954]
push eax
call fcn.00404080
add esp, 0xc
mov dword [ebp - 0x2a38], eax
mov ecx, dword [ebp - 0x2a38]
mov dword [ebp - 0x2a3c], ecx
mov byte [ebp - 4], 0xa
mov edx, dword [ebp - 0x2a3c]
push edx
lea ecx, [ebp - 0x290]
call fcn.004039f0
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x2954]
call fcn.00401830
mov eax, dword [ebp - 0x29fc]
cmp dword [eax + 0x134], 6
jne 0x4708fe
mov ecx, dword [ebp - 0x29fc]
cmp dword [ecx + 0x138], 1
jne 0x4708c1
push str.windows7
mov ecx, dword [ebp - 0x29fc]
add ecx, 0x128
call fcn.00403830
jmp 0x4708fe
mov edx, dword [ebp - 0x29fc]
cmp dword [edx + 0x138], 2
jne 0x4708e8
push str.windows8
mov ecx, dword [ebp - 0x29fc]
add ecx, 0x128
call fcn.00403830
jmp 0x4708fe
push str.windows_Vista
mov ecx, dword [ebp - 0x29fc]
add ecx, 0x128
call fcn.00403830
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x298]
call fcn.00401830
lea ecx, [ebp - 0x290]
call fcn.004039c0
push eax
call fcn.0045c240
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x290]
call fcn.00401830
push 0x48a458
mov ecx, dword [ebp - 0x29fc]
add ecx, 0x124
call fcn.00403830
push str.install.ini
mov eax, dword [ebp - 0x29fc]
add eax, 0xb8
push eax
lea ecx, [ebp - 0x2958]
push ecx
call fcn.00404080
add esp, 0xc
mov dword [ebp - 0x2a40], eax
mov edx, dword [ebp - 0x2a40]
mov dword [ebp - 0x2a44], edx
mov dword [ebp - 4], 0xb
mov eax, dword [ebp - 0x2a44]
push eax
mov ecx, dword [ebp - 0x29fc]
add ecx, 0xbc
call fcn.004039f0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2958]
call fcn.00401830
push 0x48a478
mov ecx, dword [ebp - 0x29fc]
add ecx, 0xb8
push ecx
lea edx, [ebp - 0x295c]
push edx
call fcn.00404080
add esp, 0xc
mov dword [ebp - 0x2a48], eax
mov eax, dword [ebp - 0x2a48]
mov dword [ebp - 0x2a4c], eax
mov dword [ebp - 4], 0xc
mov ecx, dword [ebp - 0x2a4c]
push ecx
mov ecx, dword [ebp - 0x29fc]
add ecx, 0xc8
call fcn.004039f0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x295c]
call fcn.00401830
mov ecx, dword [ebp - 0x29fc]
add ecx, 0xbc
call fcn.004039c0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x470bad
push ecx
mov ecx, esp
mov dword [ebp - 0x2964], esp
push str.main_version
call fcn.00403ac0
mov dword [ebp - 0x2a50], eax
lea edx, [ebp - 0x2968]
push edx
call fcn.0045c820
add esp, 8
mov dword [ebp - 0x2a54], eax
mov eax, dword [ebp - 0x2a54]
mov dword [ebp - 0x2a58], eax
mov dword [ebp - 4], 0xd
mov ecx, dword [ebp - 0x29f8]
or ecx, 1
mov dword [ebp - 0x29f8], ecx
mov ecx, dword [ebp - 0x2a58]
call fcn.00404200
movzx edx, al
test edx, edx
jne 0x470af6
push ecx
mov ecx, esp
mov dword [ebp - 0x296c], esp
push 0x48a4b8
call fcn.00403ac0
mov dword [ebp - 0x2a5c], eax
lea eax, [ebp - 0x2970]
push eax
call fcn.0045c820
add esp, 8
mov dword [ebp - 0x2a60], eax
mov ecx, dword [ebp - 0x2a60]
mov dword [ebp - 0x2a64], ecx
mov edx, dword [ebp - 0x29f8]
or edx, 2
mov dword [ebp - 0x29f8], edx
mov ecx, dword [ebp - 0x2a64]
call fcn.00404200
movzx eax, al
test eax, eax
jne 0x470af6
mov dword [ebp - 0x2a68], 0
jmp 0x470b00
mov dword [ebp - 0x2a68], 1
mov cl, byte [ebp - 0x2a68]
mov byte [ebp - 0x295d], cl
mov edx, dword [ebp - 0x29f8]
and edx, 2
je 0x470b29
and dword [ebp - 0x29f8], 0xfffffffd
lea ecx, [ebp - 0x2970]
call fcn.00401830
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x29f8]
and eax, 1
je 0x470b4d
and dword [ebp - 0x29f8], 0xfffffffe
lea ecx, [ebp - 0x2968]
call fcn.00401830
movzx ecx, byte [ebp - 0x295d]
test ecx, ecx
je 0x470bad
mov edx, dword [ebp - 0x29fc]
add edx, 0xbc
push edx
push str.Invalid_Install.ini
lea eax, [ebp - 0x2974]
push eax
call fcn.00404130
add esp, 0xc
mov dword [ebp - 0x2a6c], eax
mov ecx, dword [ebp - 0x2a6c]
call fcn.004039c0
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea ecx, [ebp - 0x2974]
call fcn.00401830
mov ecx, dword [ebp - 0x29fc]
add ecx, 0xbc
call fcn.00403950
mov ecx, dword [ebp - 0x29fc]
add ecx, 0xbc
call fcn.004039c0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x470e98
push 0x48a4fc
push 0x320
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x29c], eax
cmp dword [ebp - 0x29c], 0
je 0x470e83
push 0x48a504
mov ecx, dword [ebp - 0x29fc]
add ecx, 0xd4
push ecx
lea edx, [ebp - 0x2978]
push edx
call fcn.00404080
add esp, 0xc
mov dword [ebp - 0x2a70], eax
mov ecx, dword [ebp - 0x2a70]
call fcn.004039c0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x2978]
call fcn.00401830
mov eax, dword [ebp - 0x29c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x2a0], eax
cmp dword [ebp - 0x2a0], 0
je 0x470e81
mov ecx, dword [ebp - 0x2a0]
push ecx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x2b8], eax
mov edx, dword [ebp - 0x29c]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x2a4], eax
lea ecx, [ebp - 0x2b4]
call fcn.0042686b
mov dword [ebp - 4], 0xe
push 0x48a528
mov eax, dword [ebp - 0x29fc]
add eax, 0xd4
push eax
lea ecx, [ebp - 0x2980]
push ecx
call fcn.00404080
add esp, 0xc
mov dword [ebp - 0x2a74], eax
mov edx, dword [ebp - 0x2a74]
mov dword [ebp - 0x2a78], edx
mov byte [ebp - 4], 0xf
push 0
push 0x1002
mov ecx, dword [ebp - 0x2a78]
call fcn.004039c0
push eax
lea ecx, [ebp - 0x2b4]
call fcn.00426cea
mov dword [ebp - 0x297c], eax
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x2980]
call fcn.00401830
cmp dword [ebp - 0x297c], 0
je 0x470e62
mov eax, dword [ebp - 0x2a4]
push eax
mov ecx, dword [ebp - 0x2b8]
push ecx
lea ecx, [ebp - 0x2b4]
call fcn.004265b9
lea ecx, [ebp - 0x2b4]
call fcn.0042669f
lea ecx, [ebp - 0x2b4]
call fcn.00426809
push str.qiyi_install.ini
mov edx, dword [ebp - 0x29fc]
add edx, 0xd4
push edx
lea eax, [ebp - 0x2984]
push eax
call fcn.00404080
add esp, 0xc
mov dword [ebp - 0x2a7c], eax
mov ecx, dword [ebp - 0x2a7c]
mov dword [ebp - 0x2a80], ecx
mov byte [ebp - 4], 0x10
mov edx, dword [ebp - 0x2a80]
push edx
mov ecx, dword [ebp - 0x29fc]
add ecx, 0xbc
call fcn.004039f0
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x2984]
call fcn.00401830
mov eax, dword [ebp - 0x29fc]
cmp dword [eax + 0x104], 0
je 0x470e04
push str.QiyiClientQiyiInstaller.log
mov ecx, dword [ebp - 0x29fc]
add ecx, 0xa8
push ecx
lea edx, [ebp - 0x2988]
push edx
call fcn.00404080
add esp, 0xc
mov dword [ebp - 0x2a84], eax
mov eax, dword [ebp - 0x2a84]
mov dword [ebp - 0x2a88], eax
mov byte [ebp - 4], 0x11
mov ecx, dword [ebp - 0x2a88]
push ecx
mov ecx, dword [ebp - 0x29fc]
add ecx, 0xc8
call fcn.004039f0
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x2988]
call fcn.00401830
jmp 0x470e62
push str.QiyiInstaller.log
mov edx, dword [ebp - 0x29fc]
add edx, 0xd4
push edx
lea eax, [ebp - 0x298c]
push eax
call fcn.00404080
add esp, 0xc
mov dword [ebp - 0x2a8c], eax
mov ecx, dword [ebp - 0x2a8c]
mov dword [ebp - 0x2a90], ecx
mov byte [ebp - 4], 0x12
mov edx, dword [ebp - 0x2a90]
push edx
mov ecx, dword [ebp - 0x29fc]
add ecx, 0xc8
call fcn.004039f0
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x298c]
call fcn.00401830
mov eax, dword [ebp - 0x2a0]
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2b4]
call fcn.00426978
jmp 0x470e98
push 0
push 0
push str.b_rN0R
call fcn.00423ee3
xor eax, eax
jmp 0x47172c
mov ecx, dword [ebp - 0x29fc]
add ecx, 0xc8
call fcn.004039c0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push 0x1041
mov ecx, dword [ebp - 0x29fc]
add ecx, 0xc8
call fcn.004039c0
push eax
mov ecx, dword [ebp - 0x29fc]
add ecx, 0x268
mov edx, dword [ebp - 0x29fc]
mov eax, dword [edx + 0x268]
mov edx, dword [eax + 0x20]
call edx
mov ecx, dword [ebp - 0x29fc]
add ecx, 0x268
call fcn.00407610
mov byte [ebp - 0x18], 0xff
mov byte [ebp - 0x17], 0xfe
push 2
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x29fc]
add ecx, 0x268
mov edx, dword [ebp - 0x29fc]
mov eax, dword [edx + 0x268]
mov edx, dword [eax + 0x38]
call edx
mov ecx, dword [ebp - 0x29fc]
call fcn.0046f7a0
mov ecx, dword [ebp - 0x29fc]
add ecx, 0xfc
call fcn.00404200
movzx eax, al
test eax, eax
jne 0x470fa3
mov ecx, dword [ebp - 0x29fc]
add ecx, 0xfc
push ecx
mov edx, esp
mov dword [ebp - 0x2990], esp
push ecx
mov ecx, edx
call fcn.004036b0
mov dword [ebp - 0x2a94], eax
mov eax, dword [ebp - 0x2a94]
mov dword [ebp - 0x2a98], eax
mov dword [ebp - 4], 0x13
push ecx
mov ecx, esp
mov dword [ebp - 0x2994], esp
push str.forcerun_param
call fcn.00403ac0
mov dword [ebp - 0x2a9c], eax
mov dword [ebp - 4], 0xffffffff
call fcn.0045c7d0
add esp, 8
push 0x48a608
mov ecx, dword [ebp - 0x29fc]
call fcn.00426ea9
push 0x48a628
push ecx
mov ecx, esp
mov dword [ebp - 0x299c], esp
push 0x48a62c
call fcn.00403ac0
mov dword [ebp - 0x2aa0], eax
lea ecx, [ebp - 0x29a0]
push ecx
call fcn.0045c820
add esp, 8
mov dword [ebp - 0x2aa4], eax
mov edx, dword [ebp - 0x2aa4]
mov dword [ebp - 0x2aa8], edx
mov eax, dword [ebp - 0x2aa8]
push eax
call fcn.004041e0
add esp, 8
mov byte [ebp - 0x2995], al
lea ecx, [ebp - 0x29a0]
call fcn.00401830
movzx ecx, byte [ebp - 0x2995]
test ecx, ecx
je 0x47102d
mov edx, dword [ebp - 0x29fc]
mov dword [edx + 0x108], 1
push 0x48a63c
push ecx
mov ecx, esp
mov dword [ebp - 0x29a8], esp
push 0x48a640
call fcn.00403ac0
mov dword [ebp - 0x2aac], eax
lea eax, [ebp - 0x29ac]
push eax
call fcn.0045c820
add esp, 8
mov dword [ebp - 0x2ab0], eax
mov ecx, dword [ebp - 0x2ab0]
mov dword [ebp - 0x2ab4], ecx
mov edx, dword [ebp - 0x2ab4]
push edx
call fcn.004041e0
add esp, 8
mov byte [ebp - 0x29a1], al
lea ecx, [ebp - 0x29ac]
call fcn.00401830
movzx eax, byte [ebp - 0x29a1]
test eax, eax
je 0x4710a7
mov ecx, dword [ebp - 0x29fc]
mov dword [ecx + 0x110], 1
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov dword [ebp - 0x30], eax
mov edx, dword [ebp - 0x30]
push edx
lea ecx, [ebp - 0x3c]
call fcn.00403ac0
mov dword [ebp - 4], 0x14
lea ecx, [ebp - 0x3c]
call fcn.00401d20
push ecx
mov ecx, esp
mov dword [ebp - 0x29b0], esp
push str.mincid
call fcn.00403ac0
mov dword [ebp - 0x2ab8], eax
lea eax, [ebp - 0x38]
push eax
call fcn.0045c820
add esp, 8
mov dword [ebp - 0x2abc], eax
mov byte [ebp - 4], 0x15
push ecx
mov ecx, esp
mov dword [ebp - 0x29b4], esp
push str.maxcid
call fcn.00403ac0
mov dword [ebp - 0x2ac0], eax
lea ecx, [ebp - 0x2c]
push ecx
call fcn.0045c820
add esp, 8
mov dword [ebp - 0x2ac4], eax
mov byte [ebp - 4], 0x16
push 0
push str._cid
lea ecx, [ebp - 0x3c]
call fcn.00404000
cmp eax, 0xffffffff
je 0x47137c
push 0x48a67c
lea ecx, [ebp - 0x3c]
call fcn.004066c0
push 0
push 0x48a680
lea ecx, [ebp - 0x3c]
call fcn.00404000
add eax, 5
push eax
push 0
lea ecx, [ebp - 0x3c]
call fcn.004066e0
push 0
push 0x48a68c
lea ecx, [ebp - 0x3c]
call fcn.00404000
push eax
lea edx, [ebp - 0x2bc]
push edx
lea ecx, [ebp - 0x3c]
call fcn.00405960
mov byte [ebp - 4], 0x17
lea eax, [ebp - 0x38]
push eax
push 0x48a6a0
lea ecx, [ebp - 0x29bc]
push ecx
call fcn.00404130
add esp, 0xc
mov dword [ebp - 0x2ac8], eax
mov edx, dword [ebp - 0x2ac8]
mov dword [ebp - 0x2acc], edx
mov byte [ebp - 4], 0x18
push 0x48a690
mov eax, dword [ebp - 0x2acc]
push eax
lea ecx, [ebp - 0x29c0]
push ecx
call fcn.00404080
add esp, 0xc
mov dword [ebp - 0x2ad0], eax
mov edx, dword [ebp - 0x2ad0]
mov dword [ebp - 0x2ad4], edx
mov byte [ebp - 4], 0x19
push ecx
mov eax, esp
mov dword [ebp - 0x29b8], esp
lea ecx, [ebp - 0x2c]
push ecx
mov edx, dword [ebp - 0x2ad4]
push edx
push eax
call fcn.004059e0
add esp, 0xc
mov dword [ebp - 0x2ad8], eax
mov ecx, dword [ebp - 0x29fc]
call fcn.0046f040
mov byte [ebp - 4], 0x18
lea ecx, [ebp - 0x29c0]
call fcn.00401830
mov byte [ebp - 4], 0x17
lea ecx, [ebp - 0x29bc]
call fcn.00401830
lea ecx, [ebp - 0x2bc]
call fcn.00404200
movzx eax, al
test eax, eax
jne 0x471368
lea ecx, [ebp - 0x2bc]
call fcn.004039c0
push eax
call fcn.0043c4d7
add esp, 4
mov esi, eax
lea ecx, [ebp - 0x38]
call fcn.004039c0
push eax
call fcn.0043c4d7
add esp, 4
cmp esi, eax
jl 0x471339
lea ecx, [ebp - 0x2bc]
call fcn.004039c0
push eax
call fcn.0043c4d7
add esp, 4
mov esi, eax
lea ecx, [ebp - 0x2c]
call fcn.004039c0
push eax
call fcn.0043c4d7
add esp, 4
cmp esi, eax
jg 0x471339
lea ecx, [ebp - 0x2bc]
call fcn.004069f0
push ecx
mov ecx, esp
mov dword [ebp - 0x29c4], esp
lea edx, [ebp - 0x2bc]
push edx
call fcn.004036b0
mov dword [ebp - 0x2adc], eax
mov eax, dword [ebp - 0x2adc]
mov dword [ebp - 0x2ae0], eax
mov byte [ebp - 4], 0x1a
push ecx
mov ecx, esp
mov dword [ebp - 0x29c8], esp
push 0x48a6f4
call fcn.00403ac0
mov dword [ebp - 0x2ae4], eax
mov byte [ebp - 4], 0x17
call fcn.0045c7d0
add esp, 8
push ecx
mov ecx, esp
mov dword [ebp - 0x29cc], esp
lea edx, [ebp - 0x2bc]
push edx
push 0x48a708
push ecx
call fcn.00404130
add esp, 0xc
mov dword [ebp - 0x2ae8], eax
mov ecx, dword [ebp - 0x29fc]
call fcn.0046f040
jmp 0x471368
push ecx
mov eax, esp
mov dword [ebp - 0x29d0], esp
lea ecx, [ebp - 0x2bc]
push ecx
push 0x48a738
push eax
call fcn.00404130
add esp, 0xc
mov dword [ebp - 0x2aec], eax
mov ecx, dword [ebp - 0x29fc]
call fcn.0046f040
mov byte [ebp - 4], 0x16
lea ecx, [ebp - 0x2bc]
call fcn.00401830
jmp 0x47162f
lea ecx, [ebp - 0x38]
call fcn.004039c0
push eax
call fcn.0043c4d7
add esp, 4
mov esi, eax
lea ecx, [ebp - 0x2c]
call fcn.004039c0
push eax
call fcn.0043c4d7
add esp, 4
cmp esi, eax
jge 0x47162f
push 0
push 0x48a76c
lea ecx, [ebp - 0x3c]
call fcn.00404000
cmp eax, 0xffffffff
je 0x47162f
push 0x48a770
push 0x48a774
lea ecx, [ebp - 0x3c]
call fcn.004067a0
push 0x5c
lea ecx, [ebp - 0x3c]
call fcn.00405880
add eax, 1
push eax
push 0
lea ecx, [ebp - 0x3c]
call fcn.004066e0
push 0
push 0x48a778
lea ecx, [ebp - 0x3c]
call fcn.00404000
add eax, 1
push eax
push 0
lea ecx, [ebp - 0x3c]
call fcn.004066e0
push 0
push 0x48a77c
lea ecx, [ebp - 0x3c]
call fcn.00404000
push eax
lea edx, [ebp - 0x2c0]
push edx
lea ecx, [ebp - 0x3c]
call fcn.00405960
mov byte [ebp - 4], 0x1b
lea eax, [ebp - 0x38]
push eax
push str.Current_Installer_Channel_ID_Range_From
lea ecx, [ebp - 0x29d8]
push ecx
call fcn.00404130
add esp, 0xc
mov dword [ebp - 0x2af0], eax
mov edx, dword [ebp - 0x2af0]
mov dword [ebp - 0x2af4], edx
mov byte [ebp - 4], 0x1c
push 0x48a780
mov eax, dword [ebp - 0x2af4]
push eax
lea ecx, [ebp - 0x29dc]
push ecx
call fcn.00404080
add esp, 0xc
mov dword [ebp - 0x2af8], eax
mov edx, dword [ebp - 0x2af8]
mov dword [ebp - 0x2afc], edx
mov byte [ebp - 4], 0x1d
push ecx
mov eax, esp
mov dword [ebp - 0x29d4], esp
lea ecx, [ebp - 0x2c]
push ecx
mov edx, dword [ebp - 0x2afc]
push edx
push eax
call fcn.004059e0
add esp, 0xc
mov dword [ebp - 0x2b00], eax
mov ecx, dword [ebp - 0x29fc]
call fcn.0046f040
mov byte [ebp - 4], 0x1c
lea ecx, [ebp - 0x29dc]
call fcn.00401830
mov byte [ebp - 4], 0x1b
lea ecx, [ebp - 0x29d8]
call fcn.00401830
lea ecx, [ebp - 0x2c0]
call fcn.00404200
movzx eax, al
test eax, eax
jne 0x471620
lea ecx, [ebp - 0x2c0]
call fcn.004039c0
push eax
call fcn.0043c4d7
add esp, 4
test eax, eax
jle 0x471620
lea ecx, [ebp - 0x2c0]
call fcn.004039c0
push eax
call fcn.0043c4d7
add esp, 4
mov esi, eax
lea ecx, [ebp - 0x38]
call fcn.004039c0
push eax
call fcn.0043c4d7
add esp, 4
cmp esi, eax
jl 0x4715f1
lea ecx, [ebp - 0x2c0]
call fcn.004039c0
push eax
call fcn.0043c4d7
add esp, 4
mov esi, eax
lea ecx, [ebp - 0x2c]
call fcn.004039c0
push eax
call fcn.0043c4d7
add esp, 4
cmp esi, eax
jg 0x4715f1
lea ecx, [ebp - 0x2c0]
call fcn.004069f0
push ecx
mov ecx, esp
mov dword [ebp - 0x29e0], esp
lea edx, [ebp - 0x2c0]
push edx
call fcn.004036b0
mov dword [ebp - 0x2b04], eax
mov eax, dword [ebp - 0x2b04]
mov dword [ebp - 0x2b08], eax
mov byte [ebp - 4], 0x1e
push ecx
mov ecx, esp
mov dword [ebp - 0x29e4], esp
push str.channelid
call fcn.00403ac0
mov dword [ebp - 0x2b0c], eax
mov byte [ebp - 4], 0x1b
call fcn.0045c7d0
add esp, 8
push ecx
mov ecx, esp
mov dword [ebp - 0x29e8], esp
lea edx, [ebp - 0x2c0]
push edx
push str.Change_Channel_ID_To_:
push ecx
call fcn.00404130
add esp, 0xc
mov dword [ebp - 0x2b10], eax
mov ecx, dword [ebp - 0x29fc]
call fcn.0046f040
jmp 0x471620
push ecx
mov eax, esp
mov dword [ebp - 0x29ec], esp
lea ecx, [ebp - 0x2c0]
push ecx
push str.Channel_ID_Beyond_Range
push eax
call fcn.00404130
add esp, 0xc
mov dword [ebp - 0x2b14], eax
mov ecx, dword [ebp - 0x29fc]
call fcn.0046f040
mov byte [ebp - 4], 0x16
lea ecx, [ebp - 0x2c0]
call fcn.00401830
mov ecx, dword [ebp - 0x29fc]
call fcn.0046e3f0
mov edx, dword [ebp - 0x29fc]
mov byte [edx + 0x264], al
lea eax, [ebp - 0x29f0]
push eax
mov ecx, dword [ebp - 0x29fc]
call fcn.0046f510
lea ecx, [ebp - 0x29f0]
call fcn.00401830
mov dword [ebp - 0x1c], 0
mov ecx, dword [ebp - 0x29fc]
cmp dword [ecx + 0x104], 0
je 0x4716b8
push 0
lea ecx, [ebp - 0x1654]
call fcn.0046c310
mov byte [ebp - 4], 0x1f
mov edx, dword [ebp - 0x29fc]
lea eax, [ebp - 0x1654]
mov dword [edx + 0x20], eax
lea ecx, [ebp - 0x1654]
call fcn.004260ec
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 0x16
lea ecx, [ebp - 0x1654]
call fcn.00406570
jmp 0x4716f5
push 0
lea ecx, [ebp - 0x292c]
call fcn.00476060
mov byte [ebp - 4], 0x20
mov ecx, dword [ebp - 0x29fc]
lea edx, [ebp - 0x292c]
mov dword [ecx + 0x20], edx
lea ecx, [ebp - 0x292c]
call fcn.004260ec
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 0x16
lea ecx, [ebp - 0x292c]
call fcn.00475f10
mov dword [ebp - 0x29f4], 0
mov byte [ebp - 4], 0x15
lea ecx, [ebp - 0x2c]
call fcn.00401830
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0x38]
call fcn.00401830
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.00401830
mov eax, dword [ebp - 0x29f4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x84]
xor ecx, ebp
call fcn.0043bced
mov esp, ebp
pop ebp
ret