Function at 0x551850
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5ad28b
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x614040]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [esp + 0x18], ebx
mov esi, dword [ebp + 8]
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
jne 0x5518a5
or eax, 0xffffffff
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
call fcn.00414eab
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x5518c1
push 0x80004005
call fcn.00402740
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x14], eax
lea eax, [esp + 0x10]
mov dword [esp + 0x40], 0
push eax
lea edx, [esp + 0x18]
mov dword [esp + 0x14], 0
mov ecx, esi
call fcn.0058c350
mov eax, dword [esi]
add esp, 4
mov ecx, str.AdobeDC
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x551926
test dx, dx
je 0x551922
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x551926
add eax, 4
add ecx, 4
test dx, dx
jne 0x551900
xor eax, eax
jmp 0x55192b
sbb eax, eax
or eax, 1
mov edi, dword [esp + 0x14]
test eax, eax
sete al
test al, al
je 0x55195a
cmp dword [edi - 0xc], 0
je 0x551960
mov ecx, dword [ebx + 0x100]
call fcn.0058b580
test al, al
jne 0x55195a
lea ecx, [esp + 0x14]
call fcn.00403500
mov edi, dword [esp + 0x14]
cmp dword [edi - 0xc], 0
jne 0x55199e
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
jge 0x551972
push 0x80070057
call fcn.00402740
cmp word [eax], 0x40
je 0x551998
push str.AdobeDC
push esi
call fcn.00403cf0
add esp, 8
test al, al
je 0x551998
push esi
lea ecx, [esp + 0x18]
call fcn.004032d0
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
jmp 0x5519db
mov eax, dword [esp + 0x10]
mov dword [esp + 0x10], eax
test eax, eax
jne 0x5519df
mov dword [esp + 0x1c], 0xffffffff
mov dword [esp + 0x20], 0xffffff
call fcn.00416b46
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x20]
mov eax, dword [eax + 8]
push ecx
push 0x20
push 1
push 1
push 1
push eax
call dword [sym.imp.USER32.dll_CreateIcon]
mov dword [esp + 0x10], eax
mov ecx, dword [ebx + 0x46c]
xor esi, esi
mov eax, dword [ebx + 0x464]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x20], esi
test ecx, ecx
jle 0x551bad
lea ecx, [ecx]
mov esi, eax
test eax, eax
je 0x551dcc
mov esi, dword [esi + 8]
mov eax, dword [eax]
mov dword [esp + 0x30], eax
mov ecx, dword [esi - 0x10]
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp dword [esi - 4], 0
lea edx, [esi - 4]
mov ecx, eax
jl 0x551a39
cmp ecx, dword [esi - 0x10]
jne 0x551a39
lea ebx, [esi - 0x10]
mov eax, 1
lock xadd dword [edx], eax
jmp 0x551a72
mov eax, dword [ecx]
push 2
push dword [esi - 0xc]
call dword [eax]
mov ebx, eax
test ebx, ebx
je 0x551c08
mov ecx, dword [esi - 0xc]
mov dword [ebx + 4], ecx
mov ecx, dword [esi - 0xc]
lea eax, [ecx*2 + 2]
push eax
lea eax, [ecx*2 + 2]
push esi
push eax
lea eax, [ebx + 0x10]
push eax
call fcn.00528cf5
add esp, 0x10
lea esi, [ebx + 0x10]
mov dword [esp + 0x1c], esi
mov byte [esp + 0x40], 1
cmp dword [esi - 0xc], 0
jl 0x551968
cmp word [esi], 0x40
jne 0x551b25
lea edx, [esp + 0x1c]
lea ecx, [esp + 0x28]
call fcn.0058b300
mov byte [esp + 0x40], 2
lea ebx, [esi - 0x10]
mov ecx, dword [eax]
lea edx, [ecx - 0x10]
cmp edx, ebx
je 0x551afe
cmp dword [ebx + 0xc], 0
lea esi, [ebx + 0xc]
jl 0x551aed
mov eax, dword [edx]
cmp eax, dword [ebx]
jne 0x551aed
push edx
call fcn.00403660
add esp, 4
mov dword [esp + 0x24], eax
or ecx, 0xffffffff
lock xadd dword [esi], ecx
dec ecx
test ecx, ecx
jg 0x551ae4
mov ecx, dword [ebx]
push ebx
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [esp + 0x24]
lea esi, [eax + 0x10]
mov dword [esp + 0x1c], esi
jmp 0x551afe
push dword [ecx - 0xc]
push ecx
lea ecx, [esp + 0x24]
call fcn.004035a0
mov esi, dword [esp + 0x1c]
mov byte [esp + 0x40], 1
or ebx, 0xffffffff
mov edx, dword [esp + 0x28]
mov ecx, ebx
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x551b28
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x551b28
or ebx, 0xffffffff
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
xor eax, eax
test ecx, ecx
setne al
test eax, eax
je 0x5518b7
mov eax, esi
mov edi, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x551b66
test dx, dx
je 0x551b62
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x551b66
add eax, 4
add ecx, 4
test dx, dx
jne 0x551b40
xor eax, eax
jmp 0x551b6b
sbb eax, eax
or eax, 1
test eax, eax
mov byte [esp + 0x40], 0
mov ecx, ebx
sete al
add esi, 0xfffffff0
test al, al
lea eax, [esi + 0xc]
jne 0x551be6
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x551b92
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [esp + 0x20]
inc eax
cmp eax, dword [esp + 0x2c]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x30]
jl 0x551a00
mov ebx, dword [esp + 0x18]
mov eax, dword [ebp + 8]
mov ecx, str._None
mov esi, dword [eax]
mov eax, esi
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x551c0d
test dx, dx
je 0x551be2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x551c0d
add eax, 4
add ecx, 4
test dx, dx
jne 0x551bc0
xor eax, eax
jmp 0x551c12
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x551bf7
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [esp + 0x20]
test esi, esi
js 0x551ba9
mov ecx, dword [esp + 0x18]
jmp 0x551e09
call fcn.00402c80
sbb eax, eax
or eax, 1
test eax, eax
je 0x551e2d
mov ecx, dword [ebx + 0x458]
xor eax, eax
cmp ecx, 6
ja case.default.0x551c27
jmp dword [ecx*4 + 0x5520bc]
mov eax, 2
jmp case.default.0x551c27
mov eax, 1
jmp case.default.0x551c27
mov eax, 3
test al, 1
je 0x551cf6
cmp dword [esi - 0xc], 0
jge 0x551c59
push 0x80070057
call fcn.00402740
cmp word [esi], 0x40
je 0x551cf6
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
mov esi, dword [ebp + 8]
test eax, eax
je 0x551cf9
mov edx, esi
lea ecx, [esp + 0x1c]
call fcn.0058b300
mov ecx, dword [esp + 0x1c]
call fcn.0058c1f0
test al, al
jne 0x551ca3
mov eax, dword [esp + 0x10]
test eax, eax
je 0x551c9c
push eax
call dword [sym.imp.USER32.dll_DestroyIcon]
mov esi, 0x9f401
jmp 0x551cc4
mov eax, dword [esp + 0x1c]
cmp dword [eax - 0xc], 0xae
jle 0x551ceb
mov eax, dword [esp + 0x10]
test eax, eax
je 0x551cbf
push eax
call dword [sym.imp.USER32.dll_DestroyIcon]
mov esi, 0x97901
mov edx, dword [esp + 0x1c]
or ecx, 0xffffffff
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x552081
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x552081
lea ecx, [esp + 0x1c]
call fcn.00402b60
jmp 0x551cf9
mov esi, dword [ebp + 8]
mov ecx, dword [ebx + 0x458]
xor eax, eax
cmp ecx, 6
ja case.default.0x551d06
jmp dword [ecx*4 + 0x5520d8]
mov eax, 2
jmp case.default.0x551d06
mov eax, 1
jmp case.default.0x551d06
mov eax, 3
test al, 2
je 0x551d57
mov ecx, dword [esi]
cmp dword [ecx - 0xc], 0
jge 0x551d36
push 0x80070057
call fcn.00402740
cmp word [ecx], 0x40
je 0x551d57
push ecx
call dword [sym.imp.SHELL32.dll_PathIsExe]
test eax, eax
je 0x551d57
push dword [esi]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x551e2d
cmp dword [ebp + 0xc], 0
je 0x551d88
push 0x1f60
mov ecx, ebx
call fcn.0041485e
test eax, eax
je 0x551d88
push 0
push 0
push 0x18b
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xa
jge 0x551e2d
mov esi, dword [ebx + 0x46c]
mov dword [esp + 0x30], esi
cmp esi, esi
jg 0x551dbc
jmp 0x551da0
push 0x5e7af0
lea ecx, [ebx + 0x460]
call fcn.004192b5
cmp dword [ebx + 0x46c], esi
jle 0x551da0
mov edi, dword [esp + 0x14]
push esi
lea ecx, [ebx + 0x460]
call fcn.00419321
test eax, eax
jne 0x551dd1
call fcn.004152f4
mov esi, dword [ebp + 8]
lea ecx, [eax + 8]
push esi
call fcn.004032d0
cmp dword [edi - 0xc], 0
jne 0x551e44
push 0x1f60
mov ecx, ebx
xor esi, esi
call fcn.0041485e
test eax, eax
je 0x551e07
push esi
push esi
push 0x18b
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_SendMessageW]
mov esi, eax
mov ecx, ebx
push 0x1f60
call fcn.0041485e
test eax, eax
je 0x551e2d
mov eax, dword [eax + 0x20]
test eax, eax
je 0x551e2d
push 0
push esi
push 0x186
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x551e3c
push eax
call dword [sym.imp.USER32.dll_DestroyIcon]
or esi, 0xffffffff
jmp 0x552081
lea eax, [esp + 0x30]
push eax
lea ecx, [ebx + 0x47c]
call fcn.00404360
mov eax, dword [ebx + 0x488]
push dword [eax + 4]
call dword [sym.imp.COMCTL32.dll_ImageList_GetImageCount]
mov ecx, dword [esi]
mov ebx, eax
mov edx, str._Evernote
lea esp, [esp]
mov si, word [ecx]
cmp si, word [edx]
jne 0x551e96
test si, si
je 0x551e92
mov ax, word [ecx + 2]
cmp ax, word [edx + 2]
jne 0x551e96
add ecx, 4
add edx, 4
test ax, ax
jne 0x551e70
xor eax, eax
jmp 0x551e9b
sbb eax, eax
or eax, 1
test eax, eax
jne 0x551ef3
mov edx, 0x259
mov dword [esp + 0x1c], eax
lea ecx, [esp + 0x1c]
call fcn.0058a330
mov esi, dword [esp + 0x18]
mov eax, dword [esi + 0x488]
push dword [eax + 4]
mov eax, dword [sym.imp.COMCTL32.dll_ImageList_GetImageCount]
call eax
push dword [esp + 0x1c]
cmp ebx, eax
jge 0x551fb7
call fcn.00415fa2
push ecx
mov ecx, dword [esi + 0x488]
push eax
push ebx
call fcn.004037e0
push dword [esp + 0x1c]
call dword [sym.imp.GDI32.dll_DeleteObject]
jmp 0x552006
mov esi, dword [ebp + 8]
mov ecx, esi
push str._Box_Sync
call fcn.00403940
test eax, eax
jne 0x551f5a
mov edx, 0x25d
mov dword [esp + 0x1c], eax
lea ecx, [esp + 0x1c]
call fcn.0058a330
mov esi, dword [esp + 0x18]
mov eax, dword [esi + 0x488]
push dword [eax + 4]
mov eax, dword [sym.imp.COMCTL32.dll_ImageList_GetImageCount]
call eax
push dword [esp + 0x1c]
cmp ebx, eax
jge 0x551fb7
call fcn.00415fa2
push ecx
mov ecx, dword [esi + 0x488]
push eax
push ebx
call fcn.004037e0
push dword [esp + 0x1c]
call dword [sym.imp.GDI32.dll_DeleteObject]
jmp 0x552006
push str._OneDrive
mov ecx, esi
call fcn.00403940
test eax, eax
jne 0x551fd6
mov edx, 0x25f
mov dword [esp + 0x1c], eax
lea ecx, [esp + 0x1c]
call fcn.0058a330
mov esi, dword [esp + 0x18]
mov eax, dword [esi + 0x488]
push dword [eax + 4]
mov eax, dword [sym.imp.COMCTL32.dll_ImageList_GetImageCount]
call eax
push dword [esp + 0x1c]
cmp ebx, eax
jge 0x551fb7
call fcn.00415fa2
push ecx
mov ecx, dword [esi + 0x488]
push eax
push ebx
call fcn.004037e0
push dword [esp + 0x1c]
call dword [sym.imp.GDI32.dll_DeleteObject]
jmp 0x552006
call fcn.00415fa2
mov ecx, dword [esi + 0x488]
push 0
push eax
call fcn.004037a0
push dword [esp + 0x1c]
call dword [sym.imp.GDI32.dll_DeleteObject]
jmp 0x552006
mov esi, dword [esp + 0x18]
mov eax, dword [esi + 0x488]
push dword [eax + 4]
mov eax, dword [sym.imp.COMCTL32.dll_ImageList_GetImageCount]
call eax
push dword [esp + 0x10]
cmp ebx, eax
mov eax, dword [esi + 0x488]
jge 0x551ffb
push ebx
jmp 0x551ffd
push 0xffffffffffffffff
push dword [eax + 4]
call dword [sym.imp.COMCTL32.dll_ImageList_ReplaceIcon]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x552015
push eax
call dword [sym.imp.USER32.dll_DestroyIcon]
push 0x1f60
mov ecx, esi
call fcn.0041485e
mov dword [esp + 0x30], eax
test eax, eax
je 0x552052
cmp dword [eax + 0x20], 0
je 0x552052
push ebx
push ecx
lea eax, [edi - 0x10]
mov esi, esp
push eax
call fcn.00403660
mov ecx, dword [esp + 0x3c]
add esp, 4
add eax, 0x10
mov dword [esi], eax
push ebx
call fcn.00571ad0
mov esi, dword [esp + 0x18]
push 0x1f60
mov ecx, esi
call fcn.0041485e
test eax, eax
je 0x552078
mov eax, dword [eax + 0x20]
test eax, eax
je 0x552078
push 0
push ebx
push 0x186
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, esi
call fcn.00552b20
xor esi, esi
add edi, 0xfffffff0
mov dword [esp + 0x40], 0xffffffff
or ecx, 0xffffffff
lea eax, [edi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x5520a3
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8