Function at 0x40e400
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x4e5028
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 [0x5143ac]
mov edx, dword [eax + 0xc]
mov ecx, 0x5143ac
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 0x40e459
cmp eax, 3
jge 0x40e45f
mov edx, dword [edi + 0x90]
lea ecx, [esp + 0x1c]
call fcn.004211b0
push str.Set_Dir_Power
mov ecx, 0x515890
call fcn.004899e0
mov eax, dword [edi + 0x90]
add esp, 4
sub eax, 0x10
call fcn.004012d0
add eax, 0x10
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x48], 1
call fcn.00421490
lea eax, [esp + 0x20]
push 0x4f0b70
push eax
lea ecx, [esp + 0x20]
call fcn.00416bc0
push eax
lea ecx, [esp + 0x30]
push ecx
mov ebx, str.___t__e__c__g_SYSTEM:f
mov byte [esp + 0x58], 2
call fcn.00413810
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.00422020
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 0x40e506
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 0x40e52b
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 0x40e54f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [edi + 0x60], ebx
jne 0x40e634
lea ebx, [esp + 0x14]
call fcn.00422b10
mov byte [esp + 0x48], 4
mov eax, dword [edi + 0x90]
sub eax, 0x10
call fcn.004012d0
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 0x40e5ba
lea edx, [eax - 1]
test edx, edx
jl 0x40e62a
cmp edx, eax
jg 0x40e62a
movzx eax, word [ecx + edx*2]
cmp ax, 0x5c
je 0x40e5ba
cmp ax, 0x2f
je 0x40e5ba
mov edx, 0x4f09a4
mov edi, ebx
call fcn.00413750
mov ecx, dword [esi - 0xc]
test ecx, ecx
je 0x40e5ea
lea eax, [ecx - 1]
test eax, eax
jl 0x40e62a
cmp eax, ecx
jg 0x40e62a
movzx eax, word [esi + eax*2]
cmp ax, 0x5c
je 0x40e5ea
cmp ax, 0x2f
je 0x40e5ea
mov edx, 0x4f09a4
lea edi, [esp + 0x18]
call fcn.00413750
lea ebx, [esp + 0x18]
lea esi, [esp + 0x14]
call fcn.0040e100
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 0x40e61c
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 0x40e9a6
push 0x80070057
call fcn.00401340
push 1
push ebx
mov ecx, edi
call fcn.004118f0
mov eax, dword [0x5157dc]
cmp eax, ebx
je 0x40e67a
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 0x40e698
mov ecx, dword [edi + 0x98]
push ecx
push 0x4f0b80
push ebx
push 0x19
call eax
add esp, 0x10
push str.StopAllProgress...
mov ecx, 0x515890
call fcn.004899e0
mov eax, dword [edi + 0x88]
add esp, 4
cmp eax, ebx
je 0x40e6b6
call eax
push str.StopRTPService...
mov ecx, 0x515890
call fcn.004899e0
add esp, 4
lea ecx, [esp + 0x1c]
call fcn.00421280
push eax
push str.StopRTPService_return:_d
mov ecx, 0x515890
call fcn.004899e0
mov eax, dword [edi + 0x88]
add esp, 8
cmp eax, ebx
je 0x40e6f0
call eax
cmp dword [edi + 0x5c], ebx
jne 0x40e702
push str.QQPCMgrUpdate.exe
call fcn.0048cdc0
add esp, 4
mov ecx, edi
call fcn.00410c90
test eax, eax
jne 0x40e9c2
mov eax, dword [ebp]
sub eax, 0x10
call fcn.004012d0
add eax, 0x10
mov dword [esp + 0x24], eax
mov byte [esp + 0x48], 6
mov eax, dword [edi + 0x90]
sub eax, 0x10
call fcn.004012d0
add eax, 0x10
mov dword [esp + 0x20], eax
lea eax, [esp + 0x24]
mov byte [esp + 0x48], 7
call fcn.00421450
lea eax, [esp + 0x20]
call fcn.00421450
lea ebx, [esp + 0x20]
lea esi, [esp + 0x24]
call fcn.0040e100
mov eax, dword [edi + 0x68]
push ecx
sub eax, 0x10
mov dword [esp + 0x30], esp
mov esi, esp
call fcn.004012d0
add eax, 0x10
push edi
mov dword [esi], eax
call fcn.0040e1d0
push str.Run_Uninst.exe....
mov ecx, 0x515890
call fcn.004899e0
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 0x40e7cb
lea eax, [esp + 0x14]
push eax
push 0x4f0c0c
lea eax, [esp + 0x20]
call fcn.004096b0
lea ecx, [esp + 0x28]
push ebp
push ecx
mov ebx, str.Uninst.exe
call fcn.00413810
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 0x40e809
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor ebx, ebx
cmp esi, ebx
je 0x40e917
mov eax, dword [0x5157dc]
cmp eax, ebx
je 0x40e84f
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 0x40e86d
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.004049e0
mov eax, dword [ebp]
mov ecx, dword [eax - 0xc]
push ecx
push eax
push edi
call fcn.00405fb0
lea edx, [esp + 0x2c]
push str._S_skiprtpprotect1setupover1___
push edx
mov ecx, ebp
call fcn.00416bc0
mov edi, eax
lea eax, [esp + 0x30]
push ebp
push eax
mov ebx, str.Uninst.exe
mov byte [esp + 0x58], 9
call fcn.00413810
mov byte [esp + 0x58], 0xa
mov eax, dword [eax]
mov edx, dword [edi]
push 0
push 0xffffffffffffffff
push eax
xor ecx, ecx
call fcn.00422020
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 0x40e8f0
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 0x40e915
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 0x40e96a
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 0x40e95b
push esi
mov edx, 0x4f0c0c
lea eax, [esp + 0x18]
call fcn.00409850
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x40e966
push eax
call edi
mov dword [esp + 0x14], ebx
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x40e975
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 0x40e99e
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 0x40e9c2
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 0x40e9ea
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