Function at 0x411860
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48a495
mov eax, dword fs:[0]
push eax
sub esp, 0x6a4
mov eax, dword [0x4b135c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x440], 0
mov dword [ebp - 0x438], 0
mov dword [ebp - 4], 0
call fcn.00405e60
cmp eax, 0x12
jl 0x4118c0
lea ecx, [ebp - 0x648]
call fcn.00402310
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 0x674]
mov dword [ebp - 0x674], 0
push eax
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
js 0x411e2f
push 0x104
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.00421df0
add esp, 0xc
lea eax, [ebp - 0x420]
push eax
push dword [ebp - 0x674]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
js 0x411e2f
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00421df0
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x41193a
mov esi, dword [esi]
push esi
push str.MicrosoftInternet_ExplorerQuick_Launch_
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x218]
push str._s_s_s.lnk
push eax
call fcn.00403350
add esp, 0x14
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x41197b
mov dword [ebp - 0x64c], 2
jmp 0x411e39
push str.Shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
call fcn.004102f0
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x4119a4
push 0x80004005
call fcn.0040ffe0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x664], esi
mov byte [ebp - 4], 1
mov ecx, 1
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, 0x100
or eax, ecx
jge 0x4119e2
push 0x100
lea ecx, [ebp - 0x664]
call fcn.004121e0
mov esi, dword [ebp - 0x664]
push 0x100
push esi
push 0x150b
push edi
call dword [sym.imp.USER32.dll_LoadStringW]
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push ecx
lea ecx, [ebp - 0x664]
call fcn.00411f80
or edi, 0xffffffff
cmp dword [esi - 0xc], 0
jne 0x411a1a
mov ebx, 0x800401fa
jmp 0x411dd7
lea eax, [ebp - 0x430]
push eax
push str.Shell.Application
call dword [sym.imp.ole32.dll_CLSIDFromProgID]
mov dword [ebp - 0x668], 0
lea eax, [ebp - 0x668]
mov byte [ebp - 4], 2
push eax
push 0x48f6c8
push 1
push 0
push 0x48f6d8
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov ebx, eax
mov dword [ebp - 0x64c], ebx
test ebx, ebx
jns 0x411a66
jmp 0x411dc3
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea ecx, [ebp - 0x67c]
call fcn.00411e70
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x66c]
call fcn.00411e70
lea ecx, [ebp - 0x66c]
mov byte [ebp - 4], 4
call fcn.00412060
mov ecx, dword [ebp - 0x66c]
lea ecx, [ecx - 0x10]
call fcn.00412250
lea edi, [eax + 0x10]
mov dword [ebp - 0x69c], edi
xor eax, eax
mov byte [ebp - 4], 5
mov word [ebp - 0x690], ax
lea eax, [ebp - 0x690]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
test eax, eax
jns 0x411adf
push eax
call fcn.0040ffe0
mov eax, 8
push edi
mov word [ebp - 0x690], ax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [ebp - 0x688], eax
test eax, eax
jne 0x411b20
test edi, edi
je 0x411b20
mov eax, 0xa
mov dword [ebp - 0x688], 0x8007000e
push 0x8007000e
mov word [ebp - 0x690], ax
call fcn.0040ffe0
mov dword [ebp - 0x658], 0
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x658]
mov eax, dword [ebp - 0x668]
movdqu xmm0, xmmword [ebp - 0x690]
push ecx
sub esp, 0x10
mov edx, dword [eax]
mov ecx, esp
push eax
movdqu xmmword [ecx], xmm0
call dword [edx + 0x24]
mov eax, dword [ebp - 0x658]
test eax, eax
jne 0x411b66
mov ebx, 0x80004002
jmp 0x411d42
push dword [ebp - 0x67c]
lea ecx, [ebp - 0x698]
call fcn.004101c0
mov dword [ebp - 0x654], 0
mov byte [ebp - 4], 9
lea edx, [ebp - 0x654]
mov eax, dword [ebp - 0x658]
mov ebx, dword [ebp - 0x698]
push edx
push ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x30]
mov eax, dword [ebp - 0x654]
test eax, eax
jne 0x411bb8
mov dword [ebp - 0x64c], 0x80004002
jmp 0x411d21
mov dword [ebp - 0x660], 0
mov byte [ebp - 4], 0xa
lea edx, [ebp - 0x660]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x58]
mov eax, dword [ebp - 0x660]
lea edx, [ebp - 0x670]
mov dword [ebp - 0x670], 0
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
xor eax, eax
mov dword [ebp - 0x678], eax
cmp dword [ebp - 0x670], eax
jle 0x411cfd
mov ecx, 3
lea esp, [esp]
mov dword [ebp - 0x64c], 0
mov word [ebp - 0x6b0], cx
mov dword [ebp - 0x6a8], eax
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x64c]
mov eax, dword [ebp - 0x660]
movdqu xmm0, xmmword [ebp - 0x6b0]
push ecx
sub esp, 0x10
mov edx, dword [eax]
mov ecx, esp
push eax
movdqu xmmword [ecx], xmm0
call dword [edx + 0x28]
lea eax, [ebp - 0x6b0]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov dword [ebp - 0x65c], 0
mov byte [ebp - 4], 0xd
lea edx, [ebp - 0x65c]
mov eax, dword [ebp - 0x64c]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
push dword [ebp - 0x65c]
lea ecx, [ebp - 0x694]
call fcn.00411e70
push esi
mov ecx, eax
mov byte [ebp - 4], 0xe
call fcn.00411f30
test eax, eax
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x694]
sete byte [ebp - 0x64d]
call fcn.00411840
cmp byte [ebp - 0x64d], 0
jne 0x411df4
push dword [ebp - 0x65c]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov byte [ebp - 4], 0xa
mov eax, dword [ebp - 0x64c]
test eax, eax
je 0x411cdf
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x678]
mov ecx, 3
inc eax
mov dword [ebp - 0x678], eax
cmp eax, dword [ebp - 0x670]
jl 0x411c10
mov dword [ebp - 0x64c], 0x80004005
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0x660]
test eax, eax
je 0x411d1b
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x654]
mov byte [ebp - 4], 8
test eax, eax
je 0x411d2f
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push ebx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp - 0x658]
mov ebx, dword [ebp - 0x64c]
mov byte [ebp - 4], 6
test eax, eax
je 0x411d50
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea eax, [ebp - 0x690]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea edx, [edi - 0x10]
mov byte [ebp - 4], 4
or edi, 0xffffffff
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x411d7d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 3
mov ecx, edi
mov edx, dword [ebp - 0x66c]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x411da0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 2
mov ecx, edi
mov edx, dword [ebp - 0x67c]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x411dc3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x668]
test eax, eax
je 0x411dd7
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
add esi, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [esi + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x411e3f
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x411e3f
mov eax, dword [ebp - 0x64c]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x28]
push dword [ebp - 0x65c]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov byte [ebp - 4], 0xa
mov eax, dword [ebp - 0x64c]
test eax, eax
je 0x411e20
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 0x64c], 0
jmp 0x411d07
mov dword [ebp - 0x64c], 0x80004005
mov ebx, dword [ebp - 0x64c]
lea ecx, [ebp - 0x648]
call fcn.00402270
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041d30f
mov esp, ebp
pop ebp
ret