Function at 0x409d40
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x433651
mov eax, dword fs:[0]
push eax
sub esp, 0xf4
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 - 0xd4], edi
lea esi, [edi + 0x1c]
lea eax, [ebp - 0x44]
mov dword [ebp - 0xcc], esi
push esi
push eax
call fcn.00427850
add esp, 8
mov edx, eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x70]
call fcn.004055a0
mov byte [ebp - 4], 2
cmp dword [ebp - 0x30], 0x10
mov ebx, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
jb 0x409db5
push dword [ebp - 0x44]
call ebx
add esp, 4
lea eax, [ebp - 0x70]
mov dword [ebp - 0x30], 0xf
push eax
mov dword [ebp - 0x34], 0
mov byte [ebp - 0x44], 0
call fcn.00427990
add esp, 4
cmp dword [ebp - 0x60], 0x21
jb 0x409e35
push 0x20
push 0
lea eax, [ebp - 0xc4]
push eax
lea ecx, [ebp - 0x70]
call fcn.0040a730
mov esi, eax
lea eax, [ebp - 0x70]
cmp eax, esi
je 0x409e1e
cmp dword [ebp - 0x5c], 0x10
jb 0x409e03
push dword [ebp - 0x70]
call ebx
add esp, 4
push esi
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x5c], 0xf
mov dword [ebp - 0x60], 0
mov byte [ebp - 0x70], 0
call fcn.00407850
cmp dword [ebp - 0xb0], 0x10
jb 0x409e32
push dword [ebp - 0xc4]
call ebx
add esp, 4
lea esi, [edi + 0x1c]
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x88]
push eax
call fcn.004277d0
mov byte [ebp - 4], 3
lea eax, [ebp - 0x88]
cmp dword [ebp - 0x74], 8
cmovae eax, dword [ebp - 0x88]
push eax
push str.md5:_s
push 0xc9
push str.LDHelperDownloadItem::startInstallApk
call fcn.00423690
add esp, 0x18
cmp dword [edi + 0x44], 0
je 0x409f70
cmp dword [ebp - 0x60], 0
je 0x409f70
cmp dword [edi + 0x48], 8
lea eax, [edi + 0x34]
mov ecx, dword [eax + 0x10]
jb 0x409e94
mov eax, dword [eax]
push ecx
push eax
push dword [ebp - 0x78]
push ecx
lea ecx, [ebp - 0x88]
call fcn.004093c0
test eax, eax
je 0x409f70
cmp dword [esi + 0x14], 8
jb 0x409eb5
mov esi, dword [esi]
cmp dword [ebp - 0x74], 8
lea eax, [ebp - 0x88]
push esi
cmovae eax, dword [ebp - 0x88]
push eax
push str.not_same_md5.__s__s
push 0xcc
push str.LDHelperDownloadItem::startInstallApk
call fcn.00423690
mov esi, dword [ebp - 0xd4]
add esp, 0x14
mov edi, dword [edi + 0x50]
mov esi, dword [esi + 0x4c]
cmp esi, edi
je 0x40a630
mov ebx, dword [esi + 8]
movq xmm0, qword [esi]
push 9
push ebx
push str.req_apk_install_status__d__d
push 0x200
push str.LDPlayerHelperModel::reqInstallAppStatus
movq qword [ebp - 0x94], xmm0
call fcn.00423690
add esp, 0x14
mov dword [ebp - 0x48], 0
xorps xmm0, xmm0
movq qword [ebp - 0x50], xmm0
mov dword [ebp - 0x50], 0x452070
push dword [ebp - 0xcc]
mov dword [ebp - 0x4c], ebx
push dword [ebp - 0xcc]
movq xmm0, qword [ebp - 0x50]
sub esp, 0xc
mov eax, esp
movq qword [eax], xmm0
mov dword [eax + 8], 9
call fcn.00415880
add esi, 0xc
add esp, 0x14
cmp esi, edi
jne 0x409ef3
mov ebx, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
jmp 0x40a630
push 0x454998
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push str.doing_install
push 0xd4
push str.LDHelperDownloadItem::startInstallApk
call fcn.00423690
add esp, 0xc
cmp byte [edi + 0x8c], 0
je 0x409fc2
push 0x454998
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push str.it_is_stopping
push 0xd7
push str.LDHelperDownloadItem::startInstallApk
call fcn.00423690
add esp, 0xc
jmp 0x40a630
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
mov byte [ebp - 4], 4
mov eax, 0x2aaaaaab
mov ecx, dword [edi + 0x50]
xorps xmm0, xmm0
sub ecx, dword [edi + 0x4c]
imul ecx
movlpd qword [ebp - 0x58], xmm0
xor ecx, ecx
sar edx, 1
mov eax, edx
mov dword [ebp - 0xd8], ecx
shr eax, 0x1f
add eax, edx
test eax, eax
jle 0x40a5ec
mov dword [ebp - 0xf4], ecx
mov edi, edi
mov ecx, dword [edi + 0x50]
mov eax, 0x2aaaaaab
mov esi, dword [edi + 0x4c]
sub ecx, esi
imul ecx
mov ecx, dword [ebp - 0xd8]
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, ecx
jbe 0x40a682
mov eax, dword [ebp - 0xf4]
inc ecx
mov dword [ebp - 0xd8], ecx
movq xmm0, qword [esi + eax]
mov esi, dword [esi + eax + 8]
add eax, 0xc
movq qword [ebp - 0x100], xmm0
mov dword [ebp - 0xf4], eax
mov eax, dword [ebp - 0xfc]
mov dword [ebp - 0xd0], esi
cmp eax, 1
jne 0x40a1aa
mov ecx, dword [ebp - 0x58]
mov eax, ecx
mov edx, dword [ebp - 0x54]
or eax, edx
jne 0x40a094
lea eax, [ebp - 0x58]
push eax
lea eax, [edi + 0x1c]
push eax
call fcn.0042ae50
mov edx, dword [ebp - 0x54]
add esp, 8
mov ecx, dword [ebp - 0x58]
push 0
push 0x400
push edx
push ecx
call fcn.00432b50
test edx, edx
jl 0x40a145
jg 0x40a0b7
cmp eax, 0x200000
jbe 0x40a145
push str.file_size_more_than_2G
push 0xeb
push str.LDHelperDownloadItem::startInstallApk
call fcn.00423690
add esp, 0xc
push 7
push esi
push str.req_apk_install_status__d__d
push 0x200
push str.LDPlayerHelperModel::reqInstallAppStatus
call fcn.00423690
add esp, 0x14
mov dword [ebp - 0x48], 0
xorps xmm0, xmm0
movq qword [ebp - 0x50], xmm0
mov dword [ebp - 0x50], 0x452070
push dword [ebp - 0xcc]
mov dword [ebp - 0x4c], esi
push dword [ebp - 0xcc]
movq xmm0, qword [ebp - 0x50]
sub esp, 0xc
mov eax, esp
movq qword [eax], xmm0
mov dword [eax + 8], 7
call fcn.00415880
mov ecx, dword [edi + 0x50]
mov eax, 0x2aaaaaab
sub ecx, dword [edi + 0x4c]
add esp, 0x14
imul ecx
sar edx, 1
mov esi, edx
shr esi, 0x1f
add esi, edx
jmp 0x40a5e0
mov edi, dword [ebp - 0x100]
lea eax, [ebp - 0xf0]
push edi
push eax
mov ecx, 0x454af0
call fcn.0041b4f0
cmp dword [eax + 0x14], 8
jb 0x40a165
mov eax, dword [eax]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
sete byte [ebp - 0xc5]
cmp dword [ebp - 0xdc], 8
jb 0x40a194
push dword [ebp - 0xf0]
call ebx
add esp, 4
lea eax, [ebp - 0xf0]
mov ecx, 0x452070
push eax
call fcn.004130b0
jmp 0x40a263
mov edi, dword [ebp - 0x100]
cmp eax, 2
push edi
lea eax, [ebp - 0xf0]
push eax
jne 0x40a211
mov ecx, 0x454c30
call fcn.0041b4f0
cmp dword [eax + 0x14], 8
jb 0x40a1cf
mov eax, dword [eax]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
sete byte [ebp - 0xc5]
cmp dword [ebp - 0xdc], 8
jb 0x40a1fe
push dword [ebp - 0xf0]
call ebx
add esp, 4
lea eax, [ebp - 0xf0]
mov ecx, 0x452070
push eax
call fcn.004130f0
jmp 0x40a263
mov ecx, 0x454d70
call fcn.0041b4f0
cmp dword [eax + 0x14], 8
jb 0x40a223
mov eax, dword [eax]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
sete byte [ebp - 0xc5]
cmp dword [ebp - 0xdc], 8
jb 0x40a252
push dword [ebp - 0xf0]
call ebx
add esp, 4
lea eax, [ebp - 0xf0]
mov ecx, 0x452070
push eax
call fcn.00413070
mov esi, eax
lea eax, [ebp - 0x28]
cmp eax, esi
je 0x40a293
cmp dword [ebp - 0x14], 8
jb 0x40a27a
push dword [ebp - 0x28]
call ebx
add esp, 4
xor eax, eax
mov dword [ebp - 0x14], 7
push esi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], eax
mov word [ebp - 0x28], ax
call fcn.0040b680
cmp dword [ebp - 0xdc], 8
jb 0x40a2a7
push dword [ebp - 0xf0]
call ebx
add esp, 4
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
movzx eax, byte [ebp - 0xc5]
cmovae ecx, dword [ebp - 0x28]
push eax
push ecx
push str._s_exist:_d
push 0xff
push str.LDHelperDownloadItem::startInstallApk
call fcn.00423690
add esp, 0x14
cmp byte [ebp - 0xc5], 0
jne 0x40a371
mov esi, dword [ebp - 0xd0]
push 3
push esi
push str.req_apk_install_status__d__d
push 0x200
push str.LDPlayerHelperModel::reqInstallAppStatus
call fcn.00423690
add esp, 0x14
mov dword [ebp - 0x98], 0
xorps xmm0, xmm0
movq qword [ebp - 0xa0], xmm0
mov dword [ebp - 0xa0], 0x452070
push dword [ebp - 0xcc]
mov dword [ebp - 0x9c], esi
push dword [ebp - 0xcc]
movq xmm0, qword [ebp - 0xa0]
sub esp, 0xc
mov eax, esp
movq qword [eax], xmm0
mov dword [eax + 8], 3
call fcn.00415880
mov edi, dword [ebp - 0xd4]
mov eax, 0x2aaaaaab
add esp, 0x14
mov ecx, dword [edi + 0x50]
sub ecx, dword [edi + 0x4c]
imul ecx
sar edx, 1
mov esi, edx
shr esi, 0x1f
add esi, edx
jmp 0x40a5e0
push str.ldconsole.exe
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0xc4]
call fcn.0040b070
add esp, 4
xor eax, eax
mov dword [ebp - 0x30], 7
mov dword [ebp - 0x34], 0
mov word [ebp - 0x44], ax
push 0x13
push str.installapk___index
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 6
call fcn.0040a920
mov edx, edi
lea ecx, [ebp - 0xf0]
call fcn.0040b430
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 7
call fcn.0040b550
mov byte [ebp - 4], 6
cmp dword [ebp - 0xdc], 8
jb 0x40a3e4
push dword [ebp - 0xf0]
call ebx
add esp, 4
push 0xc
push str.___filename
lea ecx, [ebp - 0x44]
call fcn.0040a920
push 0xffffffffffffffff
push 0
push dword [ebp - 0xcc]
lea ecx, [ebp - 0x44]
call fcn.0040b550
push 8
push str.____wait
lea ecx, [ebp - 0x44]
call fcn.0040a920
cmp dword [ebp - 0x30], 8
lea eax, [ebp - 0x44]
cmovae eax, dword [ebp - 0x44]
push eax
push str.install_apk:__s
push pe_nt_image_headers32
push str.LDHelperDownloadItem::startInstallApk
call fcn.00423690
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0
push eax
push 0xea60
push 0
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0xc4]
push eax
call fcn.0042cbf0
add esp, 0x24
push dword [ebp - 0x2c]
push str.install_apk_end:__d
push 0x113
push str.LDHelperDownloadItem::startInstallApk
call fcn.00423690
add esp, 0x10
cmp dword [ebp - 0x2c], 1
jne 0x40a502
push str.post_install_sucess
push 0x116
push str.LDHelperDownloadItem::startInstallApk
call fcn.00423690
mov esi, dword [ebp - 0xd0]
add esp, 0xc
push 2
push esi
push str.req_apk_install_status__d__d
push 0x200
push str.LDPlayerHelperModel::reqInstallAppStatus
call fcn.00423690
add esp, 0x14
mov dword [ebp - 0xa4], 0
xorps xmm0, xmm0
movq qword [ebp - 0xac], xmm0
mov dword [ebp - 0xac], 0x452070
push dword [ebp - 0xcc]
mov dword [ebp - 0xa8], esi
push dword [ebp - 0xcc]
movq xmm0, qword [ebp - 0xac]
sub esp, 0xc
mov eax, esp
movq qword [eax], xmm0
mov dword [eax + 8], 2
jmp 0x40a582
push str.post_install_error
push 0x11a
push str.LDHelperDownloadItem::startInstallApk
call fcn.00423690
mov esi, dword [ebp - 0xd0]
add esp, 0xc
push 6
push esi
push str.req_apk_install_status__d__d
push 0x200
push str.LDPlayerHelperModel::reqInstallAppStatus
call fcn.00423690
add esp, 0x14
mov dword [ebp - 0x8c], 0
xorps xmm0, xmm0
movq qword [ebp - 0x94], xmm0
mov dword [ebp - 0x94], 0x452070
push dword [ebp - 0xcc]
mov dword [ebp - 0x90], esi
push dword [ebp - 0xcc]
movq xmm0, qword [ebp - 0x94]
sub esp, 0xc
mov eax, esp
movq qword [eax], xmm0
mov dword [eax + 8], 6
call fcn.00415880
mov edi, dword [ebp - 0xd4]
mov eax, 0x2aaaaaab
add esp, 0x14
mov ecx, dword [edi + 0x50]
sub ecx, dword [edi + 0x4c]
imul ecx
sar edx, 1
mov esi, edx
shr esi, 0x1f
add esi, edx
cmp dword [ebp - 0x30], 8
jb 0x40a5b4
push dword [ebp - 0x44]
call ebx
add esp, 4
xor eax, eax
mov byte [ebp - 4], 4
cmp dword [ebp - 0xb0], 8
mov dword [ebp - 0x30], 7
mov dword [ebp - 0x34], 0
mov word [ebp - 0x44], ax
jb 0x40a5e0
push dword [ebp - 0xc4]
call ebx
add esp, 4
cmp dword [ebp - 0xd8], esi
jl 0x40a010
push str.doing_install_end
push 0x120
push str.LDHelperDownloadItem::startInstallApk
call fcn.00423690
add esp, 0xc
push 0x454998
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [ebp - 0x14], 8
jb 0x40a61c
push dword [ebp - 0x28]
call ebx
add esp, 4
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
cmp dword [ebp - 0x74], 8
jb 0x40a641
push dword [ebp - 0x88]
call ebx
add esp, 4
xor eax, eax
mov dword [ebp - 0x74], 7
cmp dword [ebp - 0x5c], 0x10
mov dword [ebp - 0x78], 0
mov word [ebp - 0x88], ax
jb 0x40a666
push dword [ebp - 0x70]
call ebx
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.004320a8
mov esp, ebp
pop ebp
ret
push str.invalid_vector_T__subscript
call dword [sym.imp.MSVCP120.dll_void___cdecl_std::_Xout_of_range_char_const__]
int3