Function at 0x40e770
Capabilities:
Delete file
Download url
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [0x46d750]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea ebx, [ebp + 8]
call fcn.00414240
mov edi, eax
call fcn.004142c0
mov ecx, dword [ebp + 8]
mov eax, dword [ecx - 0xc]
test eax, eax
jne 0x40e7cc
lea eax, [ecx - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e7b8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea esp, [ebp - 0x6c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00438dc7
mov esp, ebp
pop ebp
ret
call dword [0x46eaf4]
mov ebx, eax
push 0xa
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x14], ebx
call fcn.00429689
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x54]
push ecx
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x1c], esp
mov esi, esp
push eax
call fcn.004020e0
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.0040b770
add esp, 8
cmp eax, 7
je 0x40e875
lea edx, [ebp - 0x1c]
push str._DownloadAndInstall__Invalid_arguments__nArg_7_:
push edx
lea ecx, [ebp + 8]
call fcn.00401eb0
mov edi, dword [eax]
xor esi, esi
add esp, 8
cmp edi, esi
jne 0x40e82d
mov dword [ebp - 8], esi
jmp 0x40e85b
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
cmp eax, 0x3fffffff
jle 0x40e843
mov dword [ebp - 8], esi
jmp 0x40e85b
lea esi, [eax + eax]
mov eax, esi
call fcn.00440090
mov eax, esp
push ebx
push esi
push edi
push eax
call fcn.00408150
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x60]
call fcn.0043920e
push 0x467390
lea ecx, [ebp - 0x60]
push ecx
call fcn.0043b69a
push 0
lea ecx, [ebp - 0x54]
call fcn.00429665
test eax, eax
jne 0x40e888
jmp fcn.004232a7
mov eax, dword [eax + 8]
sub eax, 0x10
push eax
call fcn.004020e0
add esp, 4
add eax, 0x10
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], 0
call fcn.00423381
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x40ec3c
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
mov ecx, dword [ebp - 0x10]
push ecx
lea edx, [ebp - 0xc]
add eax, 0x10
push str.softname_d
push edx
mov dword [ebp - 0xc], eax
call fcn.00404fb0
mov eax, dword [ebp - 0xc]
add esp, 8
add eax, 0xfffffff0
mov dword [ebp - 0x1c], esp
mov esi, esp
push eax
mov dword [ebp - 0x28], eax
call fcn.004020e0
add eax, 0x10
mov dword [esi], eax
lea eax, [ebp - 0x20]
add esp, 4
push eax
call fcn.0040ada0
mov edx, dword [ebp - 0x18]
xor ecx, ecx
add esp, 8
test edx, edx
setne cl
test ecx, ecx
je 0x40ec3c
mov eax, dword [eax]
mov ecx, edx
lea ebx, [ebx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40e946
test dx, dx
je 0x40e942
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40e946
add eax, 4
add ecx, 4
test dx, dx
jne 0x40e920
xor eax, eax
jmp 0x40e94b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
mov eax, dword [ebp - 0x20]
sete bl
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e96f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x40ea21
call fcn.00423381
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x40ec3c
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
mov ecx, dword [ebp - 0x10]
push ecx
lea edx, [ebp - 8]
add eax, 0x10
push str.softcheck_d
push edx
mov dword [ebp - 8], eax
call fcn.00404fb0
mov esi, dword [ebp - 8]
add esp, 0xc
push 0x45e128
push ecx
add esi, 0xfffffff0
mov dword [ebp - 0x1c], esp
mov edi, esp
push esi
call fcn.004020e0
add eax, 0x10
mov dword [edi], eax
lea eax, [ebp - 0x24]
add esp, 4
push eax
call fcn.0040ada0
add esp, 8
push eax
call fcn.004077d0
mov bl, al
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
add esp, 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ea04
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
jne 0x40ea66
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ea21
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov eax, dword [ebp - 0x28]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ea3d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x10]
add eax, 1
cmp eax, 3
mov dword [ebp - 0x10], eax
jle 0x40e8a4
push 1
lea ecx, [ebp - 0x54]
call fcn.00429665
test eax, eax
jne 0x40eb28
jmp fcn.004232a7
push ecx
mov esi, esp
mov dword [ebp - 0x1c], esp
push str._install_canceled_by_user__n
lea ecx, [ebp - 0x20]
push str.Additional_software
push ecx
lea ecx, [ebp - 0x18]
call fcn.00401eb0
add esp, 8
push eax
push esi
call fcn.00401dd0
add esp, 0xc
push 0x471b68
call fcn.00406a90
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40eab8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ead7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40eaf6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40eb15
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x54]
call fcn.004297c1
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
jmp 0x40e79f
mov eax, dword [eax + 8]
sub eax, 0x10
push eax
call fcn.004020e0
add esp, 4
add eax, 0x10
push 2
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x24], eax
call fcn.00429665
test eax, eax
jne 0x40eb50
jmp fcn.004232a7
mov eax, dword [eax + 8]
sub eax, 0x10
push eax
call fcn.004020e0
mov ebx, eax
add esp, 4
add ebx, 0x10
push 3
lea ecx, [ebp - 0x54]
mov dword [ebp - 8], ebx
call fcn.00429665
test eax, eax
jne 0x40eb7a
jmp fcn.004232a7
mov eax, dword [eax + 8]
sub eax, 0x10
push eax
call fcn.004020e0
add esp, 4
add eax, 0x10
push 4
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x1c], eax
call fcn.00429665
test eax, eax
jne 0x40eba2
jmp fcn.004232a7
mov eax, dword [eax + 8]
sub eax, 0x10
push eax
call fcn.004020e0
add esp, 4
add eax, 0x10
push 5
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x34], eax
call fcn.00429665
test eax, eax
jne 0x40ebca
jmp fcn.004232a7
mov eax, dword [eax + 8]
sub eax, 0x10
push eax
call fcn.004020e0
add esp, 4
add eax, 0x10
push 6
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x38], eax
call fcn.00429665
test eax, eax
jne 0x40ebf2
jmp fcn.004232a7
mov eax, dword [eax + 8]
sub eax, 0x10
push eax
call fcn.004020e0
mov edi, eax
mov esi, dword [edi + 4]
add edi, 0x10
push 0x2f
push edi
mov dword [ebp - 0x28], edi
call fcn.0043a6d8
add esp, 0xc
test eax, eax
jne 0x40ec1d
or eax, 0xffffffff
jmp 0x40ec21
sub eax, edi
sar eax, 1
sub esi, eax
sub esi, 1
push esi
lea ecx, [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x28]
call fcn.004076d0
call fcn.00423381
test eax, eax
jne 0x40ec46
push 0x80004005
call fcn.00402160
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
mov ecx, dword [ebp - 0x20]
mov edx, dword [0x471c38]
push ecx
add eax, 0x10
push edx
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push 0x45fab4
push eax
call fcn.00404fb0
mov ecx, dword [ebp - 0x10]
add esp, 0x10
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
call fcn.00423381
test eax, eax
jne 0x40ec8e
push 0x80004005
call fcn.00402160
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
mov ecx, dword [ebp - 0x18]
push ecx
lea edx, [ebp - 0x2c]
add eax, 0x10
push 0x460474
push edx
mov dword [ebp - 0x2c], eax
call fcn.00404fb0
add esp, 0xc
test ebx, ebx
jne 0x40ecbb
mov dword [ebp - 0xc], ebx
jmp 0x40ed01
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
cmp eax, 0x3fffffff
jg 0x40ecfc
lea edi, [eax + eax]
mov eax, edi
call fcn.00440090
mov esi, esp
test esi, esi
je 0x40ecfc
mov eax, dword [ebp - 0x14]
push 0
push 0
push edi
push esi
push 0xffffffffffffffff
push ebx
push 0
push eax
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
neg eax
sbb eax, eax
and eax, esi
jmp 0x40ecfe
xor eax, eax
mov dword [ebp - 0xc], eax
mov edi, dword [ebp - 0x2c]
test edi, edi
je 0x40ed4f
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
cmp eax, 0x3fffffff
jg 0x40ed4f
lea ebx, [eax + eax]
mov eax, ebx
call fcn.00440090
mov esi, esp
test esi, esi
je 0x40ed4c
mov ecx, dword [ebp - 0x14]
push 0
push 0
push ebx
push esi
push 0xffffffffffffffff
push edi
push 0
push ecx
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebx, dword [ebp - 8]
neg eax
sbb eax, eax
and eax, esi
jmp 0x40ed51
mov ebx, dword [ebp - 8]
xor eax, eax
mov edx, dword [ebp - 0xc]
push edx
push eax
mov eax, dword [0x471ac4]
push 0x7e3
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
test edi, edi
jne 0x40ed6f
xor eax, eax
jmp 0x40ed89
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40ed74
sub eax, edx
sar eax, 1
js 0x40f117
cmp eax, dword [edi - 8]
jg 0x40f117
test ebx, ebx
mov dword [edi - 0xc], eax
mov word [edi + eax*2], 0
jne 0x40eda3
xor eax, eax
jmp 0x40edc5
mov eax, ebx
lea edx, [eax + 2]
jmp 0x40edb0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40edb0
sub eax, edx
sar eax, 1
js 0x40f117
cmp eax, dword [ebx - 8]
jg 0x40f117
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x28]
push 0
push 0
push ecx
push edx
mov dword [ebx - 0xc], eax
push 0
mov word [ebx + eax*2], 0
call sub.urlmon.dll_URLDownloadToFileW
call fcn.00423381
test eax, eax
jne 0x40edfd
push 0x80004005
call fcn.00402160
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
mov ecx, dword [ebp - 0x24]
push ecx
lea edx, [ebp - 0xc]
add eax, 0x10
push str.installdownloadOk_s1
push edx
mov dword [ebp - 0xc], eax
call fcn.00404fb0
mov eax, dword [ebp - 0xc]
add esp, 8
add eax, 0xfffffff0
mov dword [ebp - 0x30], esp
mov esi, esp
push eax
call fcn.004020e0
add eax, 0x10
add esp, 4
mov dword [esi], eax
call sym.QiyiInstaller.exe_SendLog
mov ecx, dword [ebp - 0x18]
push ecx
lea edx, [ebp - 0x2c]
push str.ck_W:N
push edx
call fcn.00404fb0
add esp, 0x10
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
cmp eax, 0x3fffffff
jg 0x40ee97
lea esi, [eax + eax]
mov eax, esi
call fcn.00440090
mov edi, esp
test edi, edi
je 0x40ee97
mov eax, dword [ebp - 0x14]
push 0
push 0
push esi
push edi
push 0xffffffffffffffff
push ebx
push 0
push eax
mov byte [edi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov esi, eax
neg esi
sbb esi, esi
and esi, edi
jmp 0x40ee99
xor esi, esi
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x40eee4
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
cmp eax, 0x3fffffff
jg 0x40eee4
add eax, eax
mov dword [ebp - 0x30], eax
call fcn.00440090
mov edi, esp
test edi, edi
je 0x40eee4
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x14]
push 0
push 0
push ecx
push edi
push 0xffffffffffffffff
push ebx
push 0
push edx
mov byte [edi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
neg eax
sbb eax, eax
and eax, edi
jmp 0x40eee6
xor eax, eax
push esi
push eax
mov eax, dword [0x471ac4]
push 0x7e3
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
test ebx, ebx
jne 0x40ef01
xor eax, eax
jmp 0x40ef1b
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40ef06
sub eax, edx
sar eax, 1
js 0x40f117
cmp eax, dword [ebx - 8]
jg 0x40f117
mov edx, dword [ebp - 8]
mov dword [ebx - 0xc], eax
mov word [ebx + eax*2], 0
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40ef35
sub eax, esi
sar eax, 1
js 0x40f117
cmp eax, dword [edx - 8]
jg 0x40f117
mov dword [edx - 0xc], eax
mov word [edx + eax*2], cx
call fcn.00423381
test eax, eax
jne 0x40ef6d
push 0x80004005
call fcn.00402160
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
mov ecx, dword [ebp - 0x10]
push ecx
lea edx, [ebp - 0x14]
add eax, 0x10
push 0x4604cc
push edx
mov dword [ebp - 0x14], eax
call fcn.00404fb0
mov esi, dword [ebp - 0x14]
add esp, 8
add esi, 0xfffffff0
mov dword [ebp - 0x30], esp
mov edi, esp
push esi
call fcn.004020e0
add eax, 0x10
add esp, 4
mov dword [edi], eax
call sym.QiyiInstaller.exe_Run
mov eax, dword [ebp - 0x24]
push eax
lea ecx, [ebp - 0xc]
push str.installinstallOk_s1
push ecx
call fcn.00404fb0
mov edi, dword [ebp - 0xc]
add esp, 0xc
add edi, 0xfffffff0
mov dword [ebp - 0x30], esp
mov ebx, esp
push edi
call fcn.004020e0
add eax, 0x10
add esp, 4
mov dword [ebx], eax
call sym.QiyiInstaller.exe_SendLog
add esp, 4
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x40effe
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f017
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
mov eax, dword [ebp - 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f036
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f055
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f074
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f093
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x38]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f0b2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x34]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f0d1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f0f0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f10f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x24]
jmp 0x40eada
push 0x80070057
call fcn.00402160
int3