Function at 0x40d910
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x438579
mov eax, dword fs:[0]
push eax
sub esp, 0x20c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
push 1
push 0
lea esi, [edi + 0x34]
push 0x43e2a4
mov ecx, esi
call fcn.0040eaf0
test eax, eax
je 0x40e171
cmp dword [esi + 0x14], 8
jb 0x40d968
mov eax, dword [esi]
jmp 0x40d96a
mov eax, esi
push eax
push str.use_new_md5_calc__s
push 0xd9
push str.LDHelperDownloadItem::startInstallApk
call fcn.00427290
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
movq qword [ebp - 0x20], xmm0
add esp, 0x10
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x98]
push 1
xor eax, eax
mov dword [ebp - 0x84], 7
push 0x43e2a4
mov dword [ebp - 0x88], 0
mov word [ebp - 0x98], ax
call fcn.004087c0
lea eax, [ebp - 0x98]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x20]
push esi
push eax
call fcn.0042b770
mov byte [ebp - 4], 0
add esp, 0xc
cmp dword [ebp - 0x84], 8
mov ebx, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
jb 0x40da12
push dword [ebp - 0x98]
call ebx
add esp, 4
mov ecx, dword [ebp - 0x1c]
mov eax, 0x2aaaaaab
mov esi, dword [ebp - 0x20]
sub ecx, esi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 3
jb 0x40e14c
test eax, eax
jne 0x40da43
push str.invalid_vector_T__subscript
call dword [sym.imp.MSVCP120.dll_void___cdecl_std::_Xout_of_range_char_const__]
xor eax, eax
mov dword [ebp - 0x84], 7
push 0xffffffffffffffff
push eax
push esi
lea ecx, [ebp - 0x98]
mov dword [ebp - 0x88], 0
mov word [ebp - 0x98], ax
call fcn.00408440
mov byte [ebp - 4], 2
mov eax, 0x2aaaaaab
mov ecx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x20]
sub ecx, esi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 1
ja 0x40da9c
push str.invalid_vector_T__subscript
call dword [sym.imp.MSVCP120.dll_void___cdecl_std::_Xout_of_range_char_const__]
xor ecx, ecx
mov dword [ebp - 0x24], 7
push 0xffffffffffffffff
push ecx
lea eax, [esi + 0x18]
mov word [ebp - 0x38], cx
push eax
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x28], 0
call fcn.00408440
mov byte [ebp - 4], 3
mov eax, 0x2aaaaaab
mov ecx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x20]
sub ecx, esi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 2
ja 0x40daec
push str.invalid_vector_T__subscript
call dword [sym.imp.MSVCP120.dll_void___cdecl_std::_Xout_of_range_char_const__]
xor ecx, ecx
mov dword [ebp - 0x3c], 7
push 0xffffffffffffffff
push ecx
lea eax, [esi + 0x30]
mov word [ebp - 0x50], cx
push eax
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x40], 0
call fcn.00408440
mov byte [ebp - 4], 4
cmp dword [ebp - 0x40], 0x20
jbe 0x40db49
push 0x20
push 0
lea eax, [ebp - 0x140]
push eax
lea ecx, [ebp - 0x50]
call fcn.0040e9e0
push eax
lea ecx, [ebp - 0x50]
call fcn.0040b9d0
cmp dword [ebp - 0x12c], 8
jb 0x40db49
push dword [ebp - 0x140]
call ebx
add esp, 4
lea eax, [ebp - 0x50]
push eax
call fcn.0042b700
add esp, 4
lea eax, [ebp - 0x208]
push 0xc8
push 0
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x208]
call fcn.00409160
lea esi, [edi + 0x1c]
mov byte [ebp - 4], 5
push esi
lea eax, [ebp - 0x140]
push eax
call fcn.00409480
mov byte [ebp - 4], 6
cmp dword [ebp - 0x130], 0
je 0x40dba9
lea eax, [ebp - 0x140]
push eax
lea ecx, [ebp - 0x208]
call fcn.004097d0
mov byte [ebp - 4], 5
cmp dword [ebp - 0x12c], 0x10
jb 0x40dbc1
push dword [ebp - 0x140]
call ebx
add esp, 4
lea eax, [ebp - 0xec]
push eax
lea ecx, [ebp - 0x208]
call fcn.00409400
lea eax, [ebp - 0x104]
mov byte [ebp - 4], 7
push eax
lea ecx, [ebp - 0x208]
call fcn.00409440
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x104]
cmp dword [ebp - 0xf0], 8
lea eax, [ebp - 0xec]
cmovae ecx, dword [ebp - 0x104]
cmp dword [ebp - 0xd8], 8
push ecx
cmovae eax, dword [ebp - 0xec]
push eax
push str.sync_apk:__s__s
push 0xeb
push str.LDHelperDownloadItem::startInstallApk
call fcn.00427290
add esp, 0x14
mov dword [ebp - 0x54], 0xf
mov dword [ebp - 0x58], 0
mov byte [ebp - 0x68], 0
mov dword [ebp - 0xa8], 0xf
mov dword [ebp - 0xac], 0
mov byte [ebp - 0xbc], 0
lea eax, [ebp - 0x214]
mov byte [ebp - 4], 0xa
push eax
push ecx
lea edx, [ebp - 0x68]
mov dword [ebp - 0x214], 0
mov ecx, esi
call fcn.0040d840
cmp dword [ebp - 0x54], 0x10
lea eax, [ebp - 0xbc]
mov edx, dword [ebp - 0x214]
lea ecx, [ebp - 0x68]
cmovae ecx, dword [ebp - 0x68]
push eax
call fcn.00405e40
add esp, 0xc
lea eax, [ebp - 0xbc]
push eax
call fcn.0042b660
add esp, 4
cmp dword [ebp - 0xac], 0x21
jb 0x40dce9
push 0x20
push 0
lea eax, [ebp - 0x140]
push eax
lea ecx, [ebp - 0xbc]
call fcn.0040a2e0
push eax
lea ecx, [ebp - 0xbc]
call fcn.0040bda0
cmp dword [ebp - 0x12c], 0x10
jb 0x40dce9
push dword [ebp - 0x140]
call ebx
add esp, 4
lea eax, [ebp - 0xbc]
push eax
lea eax, [ebp - 0xd4]
push eax
call fcn.0042b450
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0xd4]
cmp dword [ebp - 0xc0], 8
cmovae eax, dword [ebp - 0xd4]
push eax
push str.md5:_s
push 0xf7
push str.LDHelperDownloadItem::startInstallApk
call fcn.00427290
add esp, 0x18
cmp dword [ebp - 0xac], 0
je 0x40e000
cmp dword [ebp - 0xd8], 8
lea eax, [ebp - 0xec]
push dword [ebp - 0xdc]
cmovae eax, dword [ebp - 0xec]
push eax
push dword [ebp - 0x88]
push ecx
lea ecx, [ebp - 0x98]
call fcn.0040cea0
test eax, eax
jne 0x40ddab
cmp dword [ebp - 0xf0], 8
lea eax, [ebp - 0x104]
push dword [ebp - 0xf4]
cmovae eax, dword [ebp - 0x104]
push eax
push dword [ebp - 0x28]
push ecx
lea ecx, [ebp - 0x38]
call fcn.0040cea0
test eax, eax
jne 0x40ddab
lea edx, [ebp - 0xd4]
lea ecx, [ebp - 0x50]
call fcn.0040f330
test al, al
je 0x40e000
cmp dword [esi + 0x14], 8
jb 0x40ddb3
mov esi, dword [esi]
cmp dword [ebp - 0xc0], 8
lea eax, [ebp - 0xd4]
push esi
cmovae eax, dword [ebp - 0xd4]
push eax
push str.not_same_md5.__s__s
push 0xfa
push str.LDHelperDownloadItem::startInstallApk
call fcn.00427290
mov eax, dword [ebp - 0x14]
add esp, 0x14
mov edi, dword [edi + 0x50]
mov esi, dword [eax + 0x4c]
cmp esi, edi
je 0x40de76
mov ebx, dword [esi + 8]
movq xmm0, qword [esi]
push 9
push ebx
push str.req_apk_install_status__d__d
push 0x20b
push str.LDPlayerHelperModel::reqInstallAppStatus
movq qword [ebp - 0x134], xmm0
call fcn.00427290
add esp, 0x14
mov dword [ebp - 0x9c], 0
xorps xmm0, xmm0
movq qword [ebp - 0xa4], xmm0
mov dword [ebp - 0xa4], 0x4570b0
push dword [ebp - 0x210]
mov dword [ebp - 0xa0], ebx
push dword [ebp - 0x210]
movq xmm0, qword [ebp - 0xa4]
sub esp, 0xc
mov eax, esp
movq qword [eax], xmm0
mov dword [eax + 8], 9
call fcn.004198d0
add esi, 0xc
add esp, 0x14
cmp esi, edi
jne 0x40ddf1
cmp dword [ebp - 0xc0], 8
mov ebx, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
jb 0x40de90
push dword [ebp - 0xd4]
call ebx
add esp, 4
xor eax, eax
mov dword [ebp - 0xc0], 7
cmp dword [ebp - 0xa8], 0x10
mov dword [ebp - 0xc4], 0
mov word [ebp - 0xd4], ax
jb 0x40dec1
push dword [ebp - 0xbc]
call ebx
add esp, 4
cmp dword [ebp - 0x54], 0x10
mov dword [ebp - 0xa8], 0xf
mov dword [ebp - 0xac], 0
mov byte [ebp - 0xbc], 0
jb 0x40deea
push dword [ebp - 0x68]
call ebx
add esp, 4
cmp dword [ebp - 0xf0], 8
mov dword [ebp - 0x54], 0xf
mov dword [ebp - 0x58], 0
mov byte [ebp - 0x68], 0
jb 0x40df10
push dword [ebp - 0x104]
call ebx
add esp, 4
xor eax, eax
mov dword [ebp - 0xf0], 7
cmp dword [ebp - 0xd8], 8
mov dword [ebp - 0xf4], 0
mov word [ebp - 0x104], ax
jb 0x40df41
push dword [ebp - 0xec]
call ebx
add esp, 4
xor eax, eax
mov dword [ebp - 0xd8], 7
lea ecx, [ebp - 0x208]
mov dword [ebp - 0xdc], 0
mov word [ebp - 0xec], ax
mov byte [ebp - 4], 4
call fcn.00409260
cmp dword [ebp - 0x3c], 8
jb 0x40df7b
push dword [ebp - 0x50]
call ebx
add esp, 4
xor eax, eax
mov dword [ebp - 0x3c], 7
cmp dword [ebp - 0x24], 8
mov dword [ebp - 0x40], 0
mov word [ebp - 0x50], ax
jb 0x40df9d
push dword [ebp - 0x38]
call ebx
add esp, 4
xor eax, eax
mov dword [ebp - 0x24], 7
cmp dword [ebp - 0x84], 8
mov dword [ebp - 0x28], 0
mov word [ebp - 0x38], ax
jb 0x40dfc5
push dword [ebp - 0x98]
call ebx
add esp, 4
xor eax, eax
mov dword [ebp - 0x84], 7
mov word [ebp - 0x98], ax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x88], 0
test eax, eax
je 0x40e924
push dword [ebp - 0x1c]
push eax
call fcn.0040ed40
push dword [ebp - 0x20]
call ebx
jmp 0x40e921
cmp dword [ebp - 0xc0], 8
jb 0x40e014
push dword [ebp - 0xd4]
call ebx
add esp, 4
xor eax, eax
mov dword [ebp - 0xc0], 7
cmp dword [ebp - 0xa8], 0x10
mov dword [ebp - 0xc4], 0
mov word [ebp - 0xd4], ax
jb 0x40e045
push dword [ebp - 0xbc]
call ebx
add esp, 4
cmp dword [ebp - 0x54], 0x10
mov dword [ebp - 0xa8], 0xf
mov dword [ebp - 0xac], 0
mov byte [ebp - 0xbc], 0
jb 0x40e06e
push dword [ebp - 0x68]
call ebx
add esp, 4
cmp dword [ebp - 0xf0], 8
mov dword [ebp - 0x54], 0xf
mov dword [ebp - 0x58], 0
mov byte [ebp - 0x68], 0
jb 0x40e094
push dword [ebp - 0x104]
call ebx
add esp, 4
xor eax, eax
mov dword [ebp - 0xf0], 7
cmp dword [ebp - 0xd8], 8
mov dword [ebp - 0xf4], 0
mov word [ebp - 0x104], ax
jb 0x40e0c5
push dword [ebp - 0xec]
call ebx
add esp, 4
xor eax, eax
mov dword [ebp - 0xd8], 7
lea ecx, [ebp - 0x208]
mov dword [ebp - 0xdc], 0
mov word [ebp - 0xec], ax
mov byte [ebp - 4], 4
call fcn.00409260
cmp dword [ebp - 0x3c], 8
jb 0x40e0ff
push dword [ebp - 0x50]
call ebx
add esp, 4
xor eax, eax
mov dword [ebp - 0x3c], 7
cmp dword [ebp - 0x24], 8
mov dword [ebp - 0x40], 0
mov word [ebp - 0x50], ax
jb 0x40e121
push dword [ebp - 0x38]
call ebx
add esp, 4
xor eax, eax
mov dword [ebp - 0x24], 7
cmp dword [ebp - 0x84], 8
mov dword [ebp - 0x28], 0
mov word [ebp - 0x38], ax
jb 0x40e149
push dword [ebp - 0x98]
call ebx
add esp, 4
mov esi, dword [ebp - 0x20]
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x40e435
push dword [ebp - 0x1c]
push esi
call fcn.0040ed40
push dword [ebp - 0x20]
call ebx
add esp, 4
jmp 0x40e435
cmp dword [esi + 0x14], 8
jb 0x40e17b
mov eax, dword [esi]
jmp 0x40e17d
mov eax, esi
push eax
push str.use_old_md5_calc__s
push 0x104
push str.LDHelperDownloadItem::startInstallApk
call fcn.00427290
add edi, 0x1c
lea eax, [ebp - 0x98]
push edi
push eax
call fcn.0042b4d0
add esp, 0x18
mov edx, eax
mov dword [ebp - 4], 0xc
lea ecx, [ebp - 0x128]
call fcn.00405fa0
mov byte [ebp - 4], 0xe
cmp dword [ebp - 0x84], 0x10
mov ebx, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
jb 0x40e1d7
push dword [ebp - 0x98]
call ebx
add esp, 4
lea eax, [ebp - 0x128]
mov dword [ebp - 0x84], 0xf
push eax
mov dword [ebp - 0x88], 0
mov byte [ebp - 0x98], 0
call fcn.0042b660
add esp, 4
cmp dword [ebp - 0x118], 0x21
jb 0x40e27c
push 0x20
push 0
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x128]
call fcn.0040a2e0
lea ecx, [ebp - 0x128]
mov dword [ebp - 0x210], eax
cmp ecx, eax
je 0x40e26e
cmp dword [ebp - 0x114], 0x10
jb 0x40e247
push dword [ebp - 0x128]
call ebx
mov eax, dword [ebp - 0x210]
add esp, 4
push eax
lea ecx, [ebp - 0x128]
mov dword [ebp - 0x114], 0xf
mov dword [ebp - 0x118], 0
mov byte [ebp - 0x128], 0
call fcn.00408250
cmp dword [ebp - 0x24], 0x10
jb 0x40e27c
push dword [ebp - 0x38]
call ebx
add esp, 4
lea eax, [ebp - 0x128]
push eax
lea eax, [ebp - 0x50]
push eax
call fcn.0042b450
mov byte [ebp - 4], 0xf
lea eax, [ebp - 0x50]
cmp dword [ebp - 0x3c], 8
cmovae eax, dword [ebp - 0x50]
push eax
push str.md5:_s
push 0x10b
push str.LDHelperDownloadItem::startInstallApk
call fcn.00427290
mov eax, dword [ebp - 0x14]
add esp, 0x18
cmp dword [eax + 0x44], 0
je 0x40e3f5
cmp dword [ebp - 0x118], 0
je 0x40e3f5
cmp dword [esi + 0x14], 8
mov eax, dword [esi + 0x10]
jb 0x40e2d8
mov esi, dword [esi]
push eax
push esi
push dword [ebp - 0x40]
push ecx
lea ecx, [ebp - 0x50]
call fcn.0040cea0
test eax, eax
je 0x40e3f5
cmp dword [edi + 0x14], 8
jb 0x40e2f6
mov edi, dword [edi]
cmp dword [ebp - 0x3c], 8
lea eax, [ebp - 0x50]
push edi
cmovae eax, dword [ebp - 0x50]
push eax
push str.not_same_md5.__s__s
push 0x10e
push str.LDHelperDownloadItem::startInstallApk
call fcn.00427290
mov eax, dword [ebp - 0x14]
add esp, 0x14
mov edi, dword [eax + 0x50]
mov esi, dword [eax + 0x4c]
cmp esi, edi
je 0x40e3b5
jmp 0x40e330
mov ebx, dword [esi + 8]
movq xmm0, qword [esi]
push 9
push ebx
push str.req_apk_install_status__d__d
push 0x20b
push str.LDPlayerHelperModel::reqInstallAppStatus
movq qword [ebp - 0x134], xmm0
call fcn.00427290
add esp, 0x14
mov dword [ebp - 0x9c], 0
xorps xmm0, xmm0
movq qword [ebp - 0xa4], xmm0
mov dword [ebp - 0xa4], 0x4570b0
push dword [ebp - 0x210]
mov dword [ebp - 0xa0], ebx
push dword [ebp - 0x210]
movq xmm0, qword [ebp - 0xa4]
sub esp, 0xc
mov eax, esp
movq qword [eax], xmm0
mov dword [eax + 8], 9
call fcn.004198d0
add esi, 0xc
add esp, 0x14
cmp esi, edi
jne 0x40e330
cmp dword [ebp - 0x3c], 8
mov esi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
jb 0x40e3c9
push dword [ebp - 0x50]
call esi
add esp, 4
xor eax, eax
mov dword [ebp - 0x3c], 7
cmp dword [ebp - 0x114], 0x10
mov dword [ebp - 0x40], 0
mov word [ebp - 0x50], ax
jb 0x40e924
push dword [ebp - 0x128]
jmp 0x40e91f
cmp dword [ebp - 0x3c], 8
jb 0x40e403
push dword [ebp - 0x50]
call ebx
add esp, 4
xor eax, eax
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x114], 0x10
mov dword [ebp - 0x3c], 7
mov dword [ebp - 0x40], 0
mov word [ebp - 0x50], ax
jb 0x40e432
push dword [ebp - 0x128]
call ebx
add esp, 4
mov edi, dword [ebp - 0x14]
push 0x459a18
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push str.doing_install
push 0x117
push str.LDHelperDownloadItem::startInstallApk
call fcn.00427290
add esp, 0xc
cmp byte [edi + 0x8c], 0
je 0x40e487
push 0x459a18
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push str.it_is_stopping
push 0x11a
push str.LDHelperDownloadItem::startInstallApk
call fcn.00427290
add esp, 0xc
jmp 0x40e924
xor eax, eax
mov dword [ebp - 0x6c], 7
mov dword [ebp - 0x70], 0
mov word [ebp - 0x80], ax
mov dword [ebp - 4], 0x10
mov eax, 0x2aaaaaab
mov ecx, dword [edi + 0x50]
xorps xmm0, xmm0
sub ecx, dword [edi + 0x4c]
imul ecx
movlpd qword [ebp - 0x110], xmm0
xor ecx, ecx
sar edx, 1
mov eax, edx
mov dword [ebp - 0x214], ecx
shr eax, 0x1f
add eax, edx
test eax, eax
jle 0x40e8ee
mov dword [ebp - 0x210], ecx
lea esp, [esp]
mov ecx, dword [edi + 0x50]
mov eax, 0x2aaaaaab
mov esi, dword [edi + 0x4c]
sub ecx, esi
imul ecx
mov ecx, dword [ebp - 0x214]
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, ecx
jbe 0x40da38
mov eax, dword [ebp - 0x210]
inc ecx
mov dword [ebp - 0x214], ecx
movq xmm0, qword [esi + eax]
mov ebx, dword [esi + eax + 8]
add eax, 0xc
movq qword [ebp - 0x20], xmm0
mov dword [ebp - 0x210], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x218], ebx
cmp eax, 1
jne 0x40e622
mov ecx, dword [ebp - 0x110]
mov eax, ecx
mov edx, dword [ebp - 0x10c]
or eax, edx
jne 0x40e56d
lea eax, [ebp - 0x110]
push eax
lea eax, [edi + 0x1c]
push eax
call fcn.0042f2f0
mov edx, dword [ebp - 0x10c]
add esp, 8
mov ecx, dword [ebp - 0x110]
push 0
push 0x400
push edx
push ecx
call fcn.00437710
test edx, edx
jl 0x40e5c7
jg 0x40e588
cmp eax, 0x200000
jbe 0x40e5c7
push str.file_size_more_than_2G
push 0x12e
push str.LDHelperDownloadItem::startInstallApk
call fcn.00427290
add esp, 0xc
push 7
push ebx
mov ecx, 0x4570b0
call fcn.00416d10
mov ecx, dword [edi + 0x50]
mov eax, 0x2aaaaaab
sub ecx, dword [edi + 0x4c]
imul ecx
sar edx, 1
mov esi, edx
shr esi, 0x1f
add esi, edx
jmp 0x40e8e2
push dword [ebp - 0x20]
lea eax, [ebp - 0x38]
mov ecx, 0x459b70
push eax
call fcn.0041f300
cmp dword [eax + 0x14], 8
jb 0x40e5e0
mov eax, dword [eax]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
cmp eax, 5
sete byte [ebp - 0x209]
cmp dword [ebp - 0x24], 8
jb 0x40e60f
push dword [ebp - 0x38]
call ebx
add esp, 4
lea eax, [ebp - 0x38]
mov ecx, 0x4570b0
push eax
call fcn.004171a0
jmp 0x40e6ce
push dword [ebp - 0x20]
cmp eax, 2
lea eax, [ebp - 0x38]
push eax
jne 0x40e67f
mov ecx, 0x459cb0
call fcn.0041f300
cmp dword [eax + 0x14], 8
jb 0x40e640
mov eax, dword [eax]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
cmp eax, 5
sete byte [ebp - 0x209]
cmp dword [ebp - 0x24], 8
jb 0x40e66f
push dword [ebp - 0x38]
call ebx
add esp, 4
lea eax, [ebp - 0x38]
mov ecx, 0x4570b0
push eax
call fcn.004171e0
jmp 0x40e6ce
mov ecx, 0x459df0
call fcn.0041f300
cmp dword [eax + 0x14], 8
jb 0x40e691
mov eax, dword [eax]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
cmp eax, 5
sete byte [ebp - 0x209]
cmp dword [ebp - 0x24], 8
jb 0x40e6c0
push dword [ebp - 0x38]
call ebx
add esp, 4
lea eax, [ebp - 0x38]
mov ecx, 0x4570b0
push eax
call fcn.00417160
mov esi, eax
lea eax, [ebp - 0x80]
cmp eax, esi
je 0x40e6fe
cmp dword [ebp - 0x6c], 8
jb 0x40e6e5
push dword [ebp - 0x80]
call ebx
add esp, 4
xor eax, eax
mov dword [ebp - 0x6c], 7
push esi
lea ecx, [ebp - 0x80]
mov dword [ebp - 0x70], eax
mov word [ebp - 0x80], ax
call fcn.0040b970
cmp dword [ebp - 0x24], 8
jb 0x40e70c
push dword [ebp - 0x38]
call ebx
add esp, 4
cmp dword [ebp - 0x6c], 8
lea ecx, [ebp - 0x80]
mov bl, byte [ebp - 0x209]
cmovae ecx, dword [ebp - 0x80]
movzx eax, bl
push eax
push ecx
push str._s_exist:_d
push 0x142
push str.LDHelperDownloadItem::startInstallApk
call fcn.00427290
add esp, 0x14
test bl, bl
jne 0x40e74a
push 3
push dword [ebp - 0x218]
jmp 0x40e5a2
push str.ldconsole.exe
lea edx, [ebp - 0x80]
lea ecx, [ebp - 0x98]
call fcn.0040f240
add esp, 4
xor eax, eax
mov dword [ebp - 0x54], 7
mov dword [ebp - 0x58], 0
mov word [ebp - 0x68], ax
push 0x13
push str.installapk___index
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 0x12
call fcn.0040a6f0
mov edx, dword [ebp - 0x20]
lea ecx, [ebp - 0x38]
call fcn.0040f590
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 0x13
call fcn.0040bbe0
mov byte [ebp - 4], 0x12
cmp dword [ebp - 0x24], 8
mov ebx, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
jb 0x40e7bb
push dword [ebp - 0x38]
call ebx
add esp, 4
push 0xc
push str.___filename
lea ecx, [ebp - 0x68]
call fcn.0040a6f0
push 0xffffffffffffffff
push 0
lea eax, [edi + 0x1c]
push eax
lea ecx, [ebp - 0x68]
call fcn.0040bbe0
push 8
push str.____wait
lea ecx, [ebp - 0x68]
call fcn.0040a6f0
cmp dword [ebp - 0x54], 8
lea eax, [ebp - 0x68]
cmovae eax, dword [ebp - 0x68]
push eax
push str.install_apk:__s
push 0x153
push str.LDHelperDownloadItem::startInstallApk
call fcn.00427290
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push 0xea60
push 0
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x98]
push eax
call fcn.0042fcb0
add esp, 0x24
push dword [ebp - 0x14]
push str.install_apk_end:__d
push 0x156
push str.LDHelperDownloadItem::startInstallApk
call fcn.00427290
add esp, 0x10
cmp dword [ebp - 0x14], 1
jne 0x40e869
push str.post_install_sucess
push 0x159
push str.LDHelperDownloadItem::startInstallApk
call fcn.00427290
add esp, 0xc
push 2
jmp 0x40e882
push str.post_install_error
push 0x15d
push str.LDHelperDownloadItem::startInstallApk
call fcn.00427290
add esp, 0xc
push 6
push dword [ebp - 0x218]
mov ecx, 0x4570b0
call fcn.00416d10
mov ecx, dword [edi + 0x50]
mov eax, 0x2aaaaaab
sub ecx, dword [edi + 0x4c]
imul ecx
sar edx, 1
mov esi, edx
shr esi, 0x1f
add esi, edx
cmp dword [ebp - 0x54], 8
jb 0x40e8b6
push dword [ebp - 0x68]
call ebx
add esp, 4
xor eax, eax
mov byte [ebp - 4], 0x10
cmp dword [ebp - 0x84], 8
mov dword [ebp - 0x54], 7
mov dword [ebp - 0x58], 0
mov word [ebp - 0x68], ax
jb 0x40e8e2
push dword [ebp - 0x98]
call ebx
add esp, 4
cmp dword [ebp - 0x214], esi
jl 0x40e4e0
push str.doing_install_end
push 0x163
push str.LDHelperDownloadItem::startInstallApk
call fcn.00427290
add esp, 0xc
push 0x459a18
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [ebp - 0x6c], 8
jb 0x40e924
push dword [ebp - 0x80]
mov esi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
call esi
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00436c68
mov esp, ebp
pop ebp
ret