Function at 0x40e650
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x4e4e78
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x50f130]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [0x5143cc]
mov edx, dword [eax + 0xc]
mov ecx, 0x5143cc
call edx
add eax, 0x10
mov dword [esp + 0x1c], eax
mov dword [esp + 0x48], 0
mov edx, dword [edi + 0x64]
mov eax, dword [edx - 0xc]
test eax, eax
lea ebp, [edi + 0x64]
je 0x40e6a9
cmp eax, 3
jge 0x40e6af
mov edx, dword [edi + 0x90]
lea ecx, [esp + 0x1c]
call fcn.00421240
push str.Set_Dir_Power
mov ecx, 0x5158b0
call fcn.00489840
mov eax, dword [edi + 0x90]
add esp, 4
sub eax, 0x10
call fcn.004012e0
add eax, 0x10
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x48], 1
call fcn.00421520
lea eax, [esp + 0x20]
push 0x4f0b70
push eax
lea ecx, [esp + 0x20]
call fcn.00416c70
push eax
lea ecx, [esp + 0x30]
push ecx
mov ebx, str.___t__e__c__g_SYSTEM:f
mov byte [esp + 0x58], 2
call fcn.00413a60
xor ebx, ebx
push ebx
mov byte [esp + 0x5c], 3
mov eax, dword [eax]
push ebx
push 0x4f0b74
xor ecx, ecx
mov edx, eax
call fcn.00422000
mov byte [esp + 0x64], 2
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
add esp, 0x1c
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40e756
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x48], 1
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e77b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x48], bl
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e79f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [edi + 0x60], ebx
jne 0x40e884
lea ebx, [esp + 0x14]
call fcn.00422af0
mov byte [esp + 0x48], 4
mov eax, dword [edi + 0x90]
sub eax, 0x10
call fcn.004012e0
lea esi, [eax + 0x10]
mov dword [esp + 0x18], esi
mov byte [esp + 0x48], 5
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx - 0xc]
test eax, eax
je 0x40e80a
lea edx, [eax - 1]
test edx, edx
jl 0x40e87a
cmp edx, eax
jg 0x40e87a
movzx eax, word [ecx + edx*2]
cmp ax, 0x5c
je 0x40e80a
cmp ax, 0x2f
je 0x40e80a
mov edx, 0x4f09a4
mov edi, ebx
call fcn.004139a0
mov ecx, dword [esi - 0xc]
test ecx, ecx
je 0x40e83a
lea eax, [ecx - 1]
test eax, eax
jl 0x40e87a
cmp eax, ecx
jg 0x40e87a
movzx eax, word [esi + eax*2]
cmp ax, 0x5c
je 0x40e83a
cmp ax, 0x2f
je 0x40e83a
mov edx, 0x4f09a4
lea edi, [esp + 0x18]
call fcn.004139a0
lea ebx, [esp + 0x18]
lea esi, [esp + 0x14]
call fcn.0040e350
mov byte [esp + 0x48], 4
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e86c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x48], 0
mov eax, dword [esp + 0x14]
jmp 0x40ebf6
push 0x80070057
call fcn.00401350
push 1
push ebx
mov ecx, edi
call fcn.00411b40
mov eax, dword [0x5157fc]
cmp eax, ebx
je 0x40e8ca
lea edx, [esp + 0x34]
push edx
push ebx
push 0x4a
lea ecx, [esp + 0x38]
push eax
mov dword [esp + 0x3c], 0x19
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], 0x2711
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x48], 8
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [edi + 0xf4]
cmp eax, ebx
je 0x40e8e8
mov ecx, dword [edi + 0x98]
push ecx
push 0x4f0b80
push ebx
push 0x19
call eax
add esp, 0x10
push str.StopAllProgress...
mov ecx, 0x5158b0
call fcn.00489840
mov eax, dword [edi + 0x88]
add esp, 4
cmp eax, ebx
je 0x40e906
call eax
push str.StopRTPService...
mov ecx, 0x5158b0
call fcn.00489840
add esp, 4
lea ecx, [esp + 0x1c]
call fcn.00421310
push eax
push str.StopRTPService_return:_d
mov ecx, 0x5158b0
call fcn.00489840
mov eax, dword [edi + 0x88]
add esp, 8
cmp eax, ebx
je 0x40e940
call eax
cmp dword [edi + 0x5c], ebx
jne 0x40e952
push str.QQPCMgrUpdate.exe
call fcn.0048cc80
add esp, 4
mov ecx, edi
call fcn.00410ee0
test eax, eax
jne 0x40ec12
mov eax, dword [ebp]
sub eax, 0x10
call fcn.004012e0
add eax, 0x10
mov dword [esp + 0x24], eax
mov byte [esp + 0x48], 6
mov eax, dword [edi + 0x90]
sub eax, 0x10
call fcn.004012e0
add eax, 0x10
mov dword [esp + 0x20], eax
lea eax, [esp + 0x24]
mov byte [esp + 0x48], 7
call fcn.004214e0
lea eax, [esp + 0x20]
call fcn.004214e0
lea ebx, [esp + 0x20]
lea esi, [esp + 0x24]
call fcn.0040e350
mov eax, dword [edi + 0x68]
push ecx
sub eax, 0x10
mov dword [esp + 0x30], esp
mov esi, esp
call fcn.004012e0
add eax, 0x10
push edi
mov dword [esi], eax
call fcn.0040e420
push str.Run_Uninst.exe....
mov ecx, 0x5158b0
call fcn.00489840
xor esi, esi
add esp, 4
mov dword [esp + 0x14], esi
lea edx, [esp + 0x18]
push edx
push str.SOFTWARETencentQQPCMgr
mov byte [esp + 0x50], 8
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x24], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
cmp eax, esi
jne 0x40ea1b
lea eax, [esp + 0x14]
push eax
push 0x4f0c0c
lea eax, [esp + 0x20]
call fcn.004098d0
lea ecx, [esp + 0x28]
push ebp
push ecx
mov ebx, str.Uninst.exe
call fcn.00413a60
mov eax, dword [eax]
add esp, 8
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov esi, eax
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40ea59
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor ebx, ebx
cmp esi, ebx
je 0x40eb67
mov eax, dword [0x5157fc]
cmp eax, ebx
je 0x40ea9f
lea edx, [esp + 0x34]
push edx
push ebx
push 0x4a
lea ecx, [esp + 0x38]
push eax
mov dword [esp + 0x3c], 0x1e
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], 0x2711
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x48], 8
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [edi + 0xf4]
cmp eax, ebx
je 0x40eabd
mov ecx, dword [edi + 0x98]
push ecx
push str.ck_WxS
push ebx
push 0x1e
call eax
add esp, 0x10
add edi, 0xf0
mov edx, str._S_skiprtpprotect1setupover1___
call fcn.00404a50
mov eax, dword [ebp]
mov ecx, dword [eax - 0xc]
push ecx
push eax
push edi
call fcn.004060a0
lea edx, [esp + 0x2c]
push str._S_skiprtpprotect1setupover1___
push edx
mov ecx, ebp
call fcn.00416c70
mov edi, eax
lea eax, [esp + 0x30]
push ebp
push eax
mov ebx, str.Uninst.exe
mov byte [esp + 0x58], 9
call fcn.00413a60
mov byte [esp + 0x58], 0xa
mov eax, dword [eax]
mov edx, dword [edi]
push 0
push 0xffffffffffffffff
push eax
xor ecx, ecx
call fcn.00422000
mov byte [esp + 0x64], 9
mov eax, dword [esp + 0x44]
add eax, 0xfffffff0
add esp, 0x1c
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40eb40
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x48], 8
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40eb65
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor ebx, ebx
mov esi, dword [esp + 0x14]
cmp esi, ebx
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x40ebba
push ebx
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push str.SOFTWARETencentQQPCMgr
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x38], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, ebx
jne 0x40ebab
push esi
mov edx, 0x4f0c0c
lea eax, [esp + 0x18]
call fcn.00409a70
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x40ebb6
push eax
call edi
mov dword [esp + 0x14], ebx
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x40ebc5
push eax
call edi
mov byte [esp + 0x48], 6
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov dword [esp + 0x18], ebx
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40ebee
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x48], bl
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ec12
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x48], 0xffffffff
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ec3a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret