Function at 0x40c0e0
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x4e656e
mov eax, dword fs:[0]
push eax
sub esp, 0xa2c
mov eax, dword [0x50f130]
xor eax, esp
mov dword [esp + 0xa28], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x50f130]
xor eax, esp
push eax
lea eax, [esp + 0xa40]
mov dword fs:[0], eax
mov eax, dword [esp + 0xa50]
mov dword [esp + 0xa48], 1
push eax
xor ebx, ebx
xor ebp, ebp
mov dword [0x5156e4], eax
mov dword [0x515690], 9
call fcn.004114e0
test eax, eax
je 0x40c19a
cmp dword [0x5156e4], ebx
je 0x40c165
call fcn.0040c5b0
cmp dword [esp + 0xa54], ebx
je 0x40c19a
lea ebp, [ebx + 1]
jmp 0x40c19a
lea eax, [esp + 0x24]
push eax
call fcn.0043ae90
lea ecx, [esp + 0x24]
push ecx
mov byte [esp + 0xa4c], 2
call fcn.00413c50
cmp eax, 1
jne 0x40c188
mov ebp, eax
lea edx, [esp + 0x24]
push edx
mov byte [esp + 0xa4c], 1
call fcn.0043b070
mov edi, dword [esp + 0xa58]
xor eax, eax
cmp dword [0x515690], ebx
sete al
mov esi, eax
cmp esi, ebx
mov dword [esp + 0x20], esi
je 0x40c395
cmp dword [edi - 0xc], ebx
je 0x40c232
mov eax, dword [0x515718]
add eax, 0xfffffff0
call fcn.004012e0
add eax, 0x10
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
mov byte [esp + 0xa48], 3
call fcn.004214e0
mov eax, dword [edi - 0xc]
push eax
push edi
lea ecx, [esp + 0x20]
push ecx
call fcn.004060a0
mov esi, dword [esp + 0x18]
mov edx, dword [esp + 0xa5c]
push ebx
push ebx
push esi
mov ecx, 1
call fcn.00422000
lea eax, [esi - 0x10]
add esp, 0xc
mov byte [esp + 0xa48], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40c232
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push str.AcLayers.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp eax, ebx
je 0x40c24b
mov dword [0x5157ac], 1
cmp ebp, ebx
je 0x40c254
call fcn.00412830
lea ecx, [esp + 0x1c]
push ecx
push str.SOFTWARETencentQQPCMgr
mov byte [esp + 0xa50], 4
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x24], 1
mov dword [esp + 0x28], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
cmp eax, ebx
jne 0x40c294
lea edx, [esp + 0x18]
push edx
push str.autostart
lea eax, [esp + 0x24]
call fcn.004098d0
call fcn.0040be10
test eax, eax
je 0x40c2a7
cmp dword [esp + 0x18], ebx
jne 0x40c367
cmp dword [0x5157ac], ebx
jne 0x40c367
push str.Run_QQPCTray
mov ecx, 0x5158b0
call fcn.00489840
add esp, 4
lea eax, [esp + 0x18]
push 0x515718
push eax
mov ebx, str.QQPCTray.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 + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c307
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
je 0x40c365
lea ecx, [esp + 0x18]
push 0x515718
push ecx
mov ebx, str.QQPCTray.exe
call fcn.00413a60
push 0
mov byte [esp + 0xa54], 5
mov eax, dword [eax]
push 0
push eax
xor ecx, ecx
mov edx, str._regrun
call fcn.00422000
mov byte [esp + 0xa5c], 4
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
add esp, 0x14
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40c365
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor ebx, ebx
call fcn.004129b0
call fcn.00412c50
call fcn.0040c460
mov byte [esp + 0xa48], 1
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x40c38d
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [esp + 0x20]
mov dword [esp + 0x1c], ebx
mov ecx, dword [0x515690]
push ecx
call fcn.0040cd20
mov eax, dword [0x51570c]
cmp eax, ebx
je 0x40c3ad
push esi
call eax
mov eax, dword [0x515700]
cmp eax, ebx
je 0x40c3e1
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x515700], ebx
mov dword [0x515704], ebx
mov dword [0x515708], ebx
mov dword [0x51570c], ebx
mov dword [0x515710], ebx
mov dword [0x515714], ebx
lea eax, [edi - 0x10]
mov byte [esp + 0xa48], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40c404
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0xa48], 0xffffffff
mov eax, dword [esp + 0xa5c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c432
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0xa40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xa28]
xor ecx, esp
call fcn.004b83ee
add esp, 0xa38
ret 0x10