Function at 0x412760
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x4e4118
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x50f130]
xor eax, esp
mov dword [esp + 0x58], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x50f130]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov edx, dword [0x5156fc]
xor edi, edi
mov ebp, 7
mov eax, edx
mov dword [esp + 0x68], ebp
mov dword [esp + 0x64], edi
mov word [esp + 0x54], di
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x4127b1
sub eax, esi
sar eax, 1
push eax
push edx
lea esi, [esp + 0x58]
call fcn.004024d0
mov dword [esp + 0x78], edi
push 0x12
push str.UpdateTrayIcon.exe
lea esi, [esp + 0x20]
mov dword [esp + 0x38], ebp
mov dword [esp + 0x34], edi
mov word [esp + 0x24], di
call fcn.004024d0
mov byte [esp + 0x78], 1
mov ecx, dword [esp + 0x54]
mov edi, 8
cmp dword [esp + 0x68], edi
jae 0x412804
lea ecx, [esp + 0x54]
lea ebx, [esp + 0x18]
lea edx, [esp + 0x34]
call fcn.004169b0
cmp dword [eax + 0x18], edi
jb 0x41281b
mov eax, dword [eax + 4]
jmp 0x41281e
add eax, 4
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp dword [esp + 0x4c], edi
mov esi, eax
jb 0x41283a
mov eax, dword [esp + 0x38]
push eax
call fcn.004b84d9
add esp, 4
xor ebx, ebx
mov byte [esp + 0x78], bl
cmp dword [esp + 0x30], edi
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x48], ebx
mov word [esp + 0x38], bx
jb 0x412860
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.004b84d9
add esp, 4
cmp esi, ebx
je 0x4129c1
lea edx, [esp + 0x14]
push edx
mov ecx, str._t_QQPCTray.exe__c_1
call fcn.004099e0
push 5
push str.__p_1
lea eax, [esp + 0x1c]
push eax
mov byte [esp + 0x84], 2
call fcn.00405fb0
cmp dword [0x5157a4], ebx
je 0x4128bb
push str.CheckRtp
mov ecx, 0x515890
call fcn.004899e0
add esp, 4
push 0xc
push str.__CheckRtp_1
lea ecx, [esp + 0x1c]
push ecx
call fcn.00405fb0
push 5
push str.__d__
lea edx, [esp + 0x1c]
push edx
call fcn.00405fb0
mov eax, dword [0x5156f8]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.00405fb0
push 1
push 0x4f0b70
lea ecx, [esp + 0x1c]
push ecx
call fcn.00405fb0
mov edx, dword [esp + 0x14]
push edx
push str.UpdateTrayIcon.exe__ws
mov ecx, 0x515890
call fcn.004899e0
add esp, 8
push 0x12
push str.UpdateTrayIcon.exe
lea esi, [esp + 0x20]
mov dword [esp + 0x38], ebp
mov dword [esp + 0x34], ebx
mov word [esp + 0x24], bx
call fcn.004024d0
mov byte [esp + 0x78], 5
cmp dword [esp + 0x68], edi
mov ecx, dword [esp + 0x54]
jae 0x412938
lea ecx, [esp + 0x54]
lea ebx, [esp + 0x18]
lea edx, [esp + 0x34]
call fcn.004169b0
mov byte [esp + 0x78], 6
cmp dword [eax + 0x18], edi
jb 0x412954
mov eax, dword [eax + 4]
jmp 0x412957
add eax, 4
mov edx, dword [esp + 0x14]
xor ebx, ebx
push ebx
push ebx
push eax
xor ecx, ecx
call fcn.00422020
add esp, 0xc
cmp dword [esp + 0x4c], edi
jb 0x41297d
mov eax, dword [esp + 0x38]
push eax
call fcn.004b84d9
add esp, 4
cmp dword [esp + 0x30], edi
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x48], ebx
mov word [esp + 0x38], bx
jb 0x41299d
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.004b84d9
add esp, 4
mov byte [esp + 0x78], bl
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4129c1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x68], edi
jb 0x4129d4
mov ecx, dword [esp + 0x54]
push ecx
call fcn.004b84d9
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.004b84de
add esp, 0x68
ret