Function at 0x413430
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x4e3e78
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 ebp, dword [esp + 0x80]
mov ecx, dword [ebp + 0x94]
xor edi, edi
mov ebx, 7
mov eax, ecx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x64], edi
mov word [esp + 0x54], di
lea esi, [eax + 2]
jmp 0x413490
mov dx, word [eax]
add eax, 2
cmp dx, di
jne 0x413490
sub eax, esi
sar eax, 1
push eax
push ecx
lea esi, [esp + 0x58]
call fcn.00402530
mov dword [esp + 0x78], edi
push 0x12
push str.UpdateTrayIcon.exe
lea esi, [esp + 0x20]
mov dword [esp + 0x38], ebx
mov dword [esp + 0x34], edi
mov word [esp + 0x24], di
call fcn.00402530
mov byte [esp + 0x78], 1
mov ecx, dword [esp + 0x54]
mov edi, 8
cmp dword [esp + 0x68], edi
jae 0x4134e3
lea ecx, [esp + 0x54]
lea ebx, [esp + 0x18]
lea edx, [esp + 0x34]
call fcn.00416a90
cmp dword [eax + 0x18], edi
jb 0x4134fa
mov eax, dword [eax + 4]
jmp 0x4134fd
add eax, 4
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp dword [esp + 0x4c], edi
mov esi, eax
jb 0x413519
mov eax, dword [esp + 0x38]
push eax
call fcn.004b83e9
add esp, 4
xor ebx, ebx
mov byte [esp + 0x78], bl
cmp dword [esp + 0x30], edi
mov dword [esp + 0x4c], 7
mov dword [esp + 0x48], ebx
mov word [esp + 0x38], bx
jb 0x413543
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.004b83e9
add esp, 4
cmp esi, ebx
je 0x413671
lea edx, [esp + 0x14]
push edx
mov ecx, str._DoRollback_1
call fcn.00409c00
push 5
push str.__d__
lea eax, [esp + 0x1c]
push eax
mov byte [esp + 0x84], 2
call fcn.004060a0
mov eax, dword [ebp + 0x90]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x1c]
push ecx
call fcn.004060a0
push 1
push 0x4f0b70
lea edx, [esp + 0x1c]
push edx
call fcn.004060a0
mov eax, dword [esp + 0x14]
push eax
push str.UpdateTrayIcon.exe__ws
mov ecx, 0x5158b0
call fcn.00489840
add esp, 8
push 0x12
push str.UpdateTrayIcon.exe
lea esi, [esp + 0x20]
mov dword [esp + 0x38], 7
mov dword [esp + 0x34], ebx
mov word [esp + 0x24], bx
call fcn.00402530
mov byte [esp + 0x78], 3
cmp dword [esp + 0x68], edi
mov ecx, dword [esp + 0x54]
jae 0x4135e4
lea ecx, [esp + 0x54]
lea ebx, [esp + 0x18]
lea edx, [esp + 0x34]
call fcn.00416a90
mov byte [esp + 0x78], 4
cmp dword [eax + 0x18], edi
jb 0x413600
mov eax, dword [eax + 4]
jmp 0x413603
add eax, 4
mov edx, dword [esp + 0x14]
xor ebx, ebx
push ebx
push ebx
push eax
xor ecx, ecx
call fcn.00422000
add esp, 0xc
cmp dword [esp + 0x4c], edi
jb 0x413629
mov ecx, dword [esp + 0x38]
push ecx
call fcn.004b83e9
add esp, 4
cmp dword [esp + 0x30], edi
mov dword [esp + 0x4c], 7
mov dword [esp + 0x48], ebx
mov word [esp + 0x38], bx
jb 0x41364d
mov edx, dword [esp + 0x1c]
push edx
call fcn.004b83e9
add esp, 4
mov byte [esp + 0x78], bl
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413671
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x68], edi
jb 0x413684
mov ecx, dword [esp + 0x54]
push ecx
call fcn.004b83e9
add esp, 4
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.004b83ee
add esp, 0x68
ret 4