Function at 0x4131e0
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x4e3ff8
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 0x413240
mov dx, word [eax]
add eax, 2
cmp dx, di
jne 0x413240
sub eax, esi
sar eax, 1
push eax
push ecx
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], ebx
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 0x413293
lea ecx, [esp + 0x54]
lea ebx, [esp + 0x18]
lea edx, [esp + 0x34]
call fcn.004169b0
cmp dword [eax + 0x18], edi
jb 0x4132aa
mov eax, dword [eax + 4]
jmp 0x4132ad
add eax, 4
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp dword [esp + 0x4c], edi
mov esi, eax
jb 0x4132c9
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], 7
mov dword [esp + 0x48], ebx
mov word [esp + 0x38], bx
jb 0x4132f3
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.004b84d9
add esp, 4
cmp esi, ebx
je 0x413421
lea edx, [esp + 0x14]
push edx
mov ecx, str._DoRollback_1
call fcn.004099e0
push 5
push str.__d__
lea eax, [esp + 0x1c]
push eax
mov byte [esp + 0x84], 2
call fcn.00405fb0
mov eax, dword [ebp + 0x90]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x1c]
push ecx
call fcn.00405fb0
push 1
push 0x4f0b70
lea edx, [esp + 0x1c]
push edx
call fcn.00405fb0
mov eax, dword [esp + 0x14]
push eax
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], 7
mov dword [esp + 0x34], ebx
mov word [esp + 0x24], bx
call fcn.004024d0
mov byte [esp + 0x78], 3
cmp dword [esp + 0x68], edi
mov ecx, dword [esp + 0x54]
jae 0x413394
lea ecx, [esp + 0x54]
lea ebx, [esp + 0x18]
lea edx, [esp + 0x34]
call fcn.004169b0
mov byte [esp + 0x78], 4
cmp dword [eax + 0x18], edi
jb 0x4133b0
mov eax, dword [eax + 4]
jmp 0x4133b3
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 0x4133d9
mov ecx, dword [esp + 0x38]
push ecx
call fcn.004b84d9
add esp, 4
cmp dword [esp + 0x30], edi
mov dword [esp + 0x4c], 7
mov dword [esp + 0x48], ebx
mov word [esp + 0x38], bx
jb 0x4133fd
mov edx, dword [esp + 0x1c]
push edx
call fcn.004b84d9
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 0x413421
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x68], edi
jb 0x413434
mov ecx, dword [esp + 0x54]
push ecx
call fcn.004b84d9
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.004b84de
add esp, 0x68
ret 4