Function at 0x40be90
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x4e666e
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 [0x5156c4], eax
mov dword [0x515670], 9
call fcn.00411290
test eax, eax
je 0x40bf4a
cmp dword [0x5156c4], ebx
je 0x40bf15
call fcn.0040c360
cmp dword [esp + 0xa54], ebx
je 0x40bf4a
lea ebp, [ebx + 1]
jmp 0x40bf4a
lea eax, [esp + 0x24]
push eax
call fcn.0043aa80
lea ecx, [esp + 0x24]
push ecx
mov byte [esp + 0xa4c], 2
call fcn.00413a00
cmp eax, 1
jne 0x40bf38
mov ebp, eax
lea edx, [esp + 0x24]
push edx
mov byte [esp + 0xa4c], 1
call fcn.0043ac60
mov edi, dword [esp + 0xa58]
xor eax, eax
cmp dword [0x515670], ebx
sete al
mov esi, eax
cmp esi, ebx
mov dword [esp + 0x20], esi
je 0x40c145
cmp dword [edi - 0xc], ebx
je 0x40bfe2
mov eax, dword [0x5156f8]
add eax, 0xfffffff0
call fcn.004012d0
add eax, 0x10
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
mov byte [esp + 0xa48], 3
call fcn.00421450
mov eax, dword [edi - 0xc]
push eax
push edi
lea ecx, [esp + 0x20]
push ecx
call fcn.00405fb0
mov esi, dword [esp + 0x18]
mov edx, dword [esp + 0xa5c]
push ebx
push ebx
push esi
mov ecx, 1
call fcn.00422020
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 0x40bfe2
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 0x40bffb
mov dword [0x51578c], 1
cmp ebp, ebx
je 0x40c004
call fcn.004125e0
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 0x40c044
lea edx, [esp + 0x18]
push edx
push str.autostart
lea eax, [esp + 0x24]
call fcn.004096b0
call fcn.0040bbf0
test eax, eax
je 0x40c057
cmp dword [esp + 0x18], ebx
jne 0x40c117
cmp dword [0x51578c], ebx
jne 0x40c117
push str.Run_QQPCTray
mov ecx, 0x515890
call fcn.004899e0
add esp, 4
lea eax, [esp + 0x18]
push 0x5156f8
push eax
mov ebx, str.QQPCTray.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 + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c0b7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
je 0x40c115
lea ecx, [esp + 0x18]
push 0x5156f8
push ecx
mov ebx, str.QQPCTray.exe
call fcn.00413810
push 0
mov byte [esp + 0xa54], 5
mov eax, dword [eax]
push 0
push eax
xor ecx, ecx
mov edx, str._regrun
call fcn.00422020
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 0x40c115
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor ebx, ebx
call fcn.00412760
call fcn.00412a00
call fcn.0040c210
mov byte [esp + 0xa48], 1
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x40c13d
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [esp + 0x20]
mov dword [esp + 0x1c], ebx
mov ecx, dword [0x515670]
push ecx
call fcn.0040cad0
mov eax, dword [0x5156ec]
cmp eax, ebx
je 0x40c15d
push esi
call eax
mov eax, dword [0x5156e0]
cmp eax, ebx
je 0x40c191
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x5156e0], ebx
mov dword [0x5156e4], ebx
mov dword [0x5156e8], ebx
mov dword [0x5156ec], ebx
mov dword [0x5156f0], ebx
mov dword [0x5156f4], 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 0x40c1b4
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 0x40c1e2
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.004b84de
add esp, 0xa38
ret 0x10