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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5359d3
mov eax, dword fs:[0]
push eax
sub esp, 0x6a8
mov eax, dword [0x579258]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x644]
call fcn.00416e80
mov dword [ebp - 4], 0
call fcn.00438430
cmp eax, 0x12
jl 0x457f47
lea ecx, [ebp - 0x644]
call fcn.00416f40
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 0x684]
mov dword [ebp - 0x684], 0
push eax
push 0x1a
push 0
call sub.SHELL32.dll_SHGetSpecialFolderLocation
test eax, eax
js 0x4587b2
push 0x104
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.004ecad0
add esp, 0xc
lea eax, [ebp - 0x420]
push eax
push dword [ebp - 0x684]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
js 0x4587b2
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004ecad0
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x457fc0
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.004203b0
add esp, 0x14
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x458001
mov dword [ebp - 0x648], 2
jmp 0x4587bc
push str.Shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
call fcn.004472c0
mov ecx, eax
test ecx, ecx
je 0x4587e8
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [ebp - 0x688], edi
mov eax, dword [edi - 8]
mov ecx, 1
sub ecx, dword [edi - 4]
sub eax, 0x100
or eax, ecx
mov byte [ebp - 4], 1
jge 0x45805b
push 0x100
lea ecx, [ebp - 0x688]
call fcn.0043e170
mov edi, dword [ebp - 0x688]
push 0x100
push edi
push 0x150b
push esi
call dword [sym.imp.USER32.dll_LoadStringW]
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push dword [edi - 8]
push edi
call fcn.00501c22
add esp, 8
test eax, eax
js 0x4587fc
cmp eax, dword [edi - 8]
jg 0x4587fc
xor ecx, ecx
mov dword [edi - 0xc], eax
mov word [edi + eax*2], cx
or esi, 0xffffffff
cmp dword [edi - 0xc], ecx
jne 0x4580b1
mov dword [ebp - 0x648], 0x800401fa
jmp 0x45875c
lea eax, [ebp - 0x430]
push eax
push str.Shell.Application
call dword [sym.imp.ole32.dll_CLSIDFromProgID]
mov dword [ebp - 0x680], 0
lea eax, [ebp - 0x680]
mov byte [ebp - 4], 2
push eax
push 0x542bbc
push 1
push 0
push 0x542bcc
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov ecx, eax
mov dword [ebp - 0x648], ecx
test ecx, ecx
js 0x458748
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea ecx, [ebp - 0x694]
call fcn.00458970
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x67c]
call fcn.00458810
lea ecx, [ebp - 0x67c]
mov byte [ebp - 4], 4
call fcn.00458d00
lea eax, [ebp - 0x67c]
push eax
lea ecx, [ebp - 0x690]
call fcn.004588b0
mov esi, dword [ebp - 0x690]
lea ecx, [ebp - 0x6b4]
push esi
mov byte [ebp - 4], 5
call fcn.00458a10
mov dword [ebp - 0x670], 0
mov eax, dword [ebp - 0x680]
lea ecx, [ebp - 0x670]
movups xmm0, xmmword [ebp - 0x6b4]
push ecx
sub esp, 0x10
mov byte [ebp - 4], 7
mov edx, dword [eax]
mov ecx, esp
push eax
movups xmmword [ecx], xmm0
call dword [edx + 0x24]
mov eax, dword [ebp - 0x670]
test eax, eax
jne 0x4581ab
mov dword [ebp - 0x648], 0x80004002
jmp 0x4586cc
mov ecx, dword [ebp - 0x694]
test ecx, ecx
jne 0x4581bf
xor esi, esi
mov dword [ebp - 0x678], esi
jmp 0x4581dc
push ecx
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov esi, eax
mov dword [ebp - 0x678], esi
test esi, esi
je 0x4587f2
mov eax, dword [ebp - 0x670]
mov dword [ebp - 0x66c], 0
mov ecx, dword [eax]
lea edx, [ebp - 0x66c]
push edx
push esi
push eax
mov byte [ebp - 4], 9
call dword [ecx + 0x30]
mov eax, dword [ebp - 0x66c]
test eax, eax
jne 0x458211
mov dword [ebp - 0x648], 0x80004002
jmp 0x4586ab
mov dword [ebp - 0x668], 0
mov ecx, dword [eax]
lea edx, [ebp - 0x668]
push edx
push eax
mov byte [ebp - 4], 0xa
call dword [ecx + 0x58]
mov eax, dword [ebp - 0x668]
lea edx, [ebp - 0x674]
mov dword [ebp - 0x674], 0
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
xor eax, eax
mov dword [ebp - 0x68c], eax
cmp dword [ebp - 0x674], eax
jle 0x458681
mov edx, 3
mov dword [ebp - 0x658], 0
mov word [ebp - 0x6a4], dx
mov dword [ebp - 0x69c], eax
mov eax, dword [ebp - 0x668]
lea ecx, [ebp - 0x658]
movups xmm0, xmmword [ebp - 0x6a4]
push ecx
sub esp, 0x10
mov byte [ebp - 4], 0xc
mov edx, dword [eax]
mov ecx, esp
push eax
movups xmmword [ecx], xmm0
call dword [edx + 0x28]
lea eax, [ebp - 0x6a4]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov dword [ebp - 0x664], 0
mov eax, dword [ebp - 0x658]
lea edx, [ebp - 0x664]
push edx
push eax
mov byte [ebp - 4], 0xd
mov ecx, dword [eax]
call dword [ecx + 0x24]
mov eax, dword [ebp - 0x664]
mov dword [ebp - 0x650], eax
call fcn.004472c0
mov ecx, eax
test ecx, ecx
je 0x4587e8
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [ebp - 0x660], esi
mov edx, dword [ebp - 0x650]
mov byte [ebp - 4], 0xe
test edx, edx
je 0x45858c
test edx, 0xffff0000
jne 0x458467
movzx eax, dx
mov ecx, 0x583214
push 0
mov dword [ebp - 0x654], eax
call fcn.00499b6d
mov dword [ebp - 0x64c], eax
mov dword [ebp - 0x648], 1
test eax, eax
je 0x4585e2
mov ecx, dword [ebp - 0x654]
shr ecx, 4
inc ecx
mov dword [ebp - 0x650], ecx
push 0
push ecx
push 6
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
test eax, eax
je 0x45837c
push dword [ebp - 0x654]
push eax
push dword [ebp - 0x64c]
call fcn.00447870
add esp, 0xc
test eax, eax
jne 0x4583a8
push dword [ebp - 0x648]
mov ecx, 0x583214
call fcn.00499b6d
inc dword [ebp - 0x648]
mov dword [ebp - 0x64c], eax
test eax, eax
je 0x4585e2
mov ecx, dword [ebp - 0x650]
jmp 0x458353
mov eax, dword [ebp - 0x64c]
test eax, eax
je 0x4585e2
push 6
push dword [ebp - 0x650]
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4585e2
push dword [ebp - 0x654]
push eax
push dword [ebp - 0x64c]
call fcn.00447870
add esp, 0xc
mov dword [ebp - 0x650], eax
test eax, eax
je 0x4585e2
movzx edx, word [eax]
mov ecx, 1
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, edx
or eax, ecx
mov dword [ebp - 0x64c], edx
jge 0x458427
push edx
lea ecx, [ebp - 0x660]
call fcn.0043e170
mov eax, dword [ebp - 0x650]
mov esi, dword [ebp - 0x660]
movzx edx, word [eax]
jmp 0x45842d
mov eax, dword [ebp - 0x650]
movzx ecx, dx
add eax, 2
push ecx
push eax
push dword [ebp - 0x64c]
push esi
call fcn.00501e15
push eax
call fcn.00458b30
mov eax, dword [ebp - 0x64c]
add esp, 0x14
cmp eax, dword [esi - 8]
jg 0x4587fc
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
jmp 0x4585e2
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x654], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x458472
sub ecx, dword [ebp - 0x654]
sar ecx, 1
mov dword [ebp - 0x648], ecx
je 0x45858c
mov eax, dword [esi - 0xc]
mov dword [ebp - 0x65c], eax
mov eax, edx
sub eax, esi
sar eax, 1
mov dword [ebp - 0x654], eax
test ecx, ecx
js 0x4587fc
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, dword [ebp - 0x648]
or eax, ecx
jge 0x4584da
push dword [ebp - 0x648]
lea ecx, [ebp - 0x660]
call fcn.0043e170
mov esi, dword [ebp - 0x660]
mov ecx, dword [ebp - 0x648]
mov eax, dword [ebp - 0x654]
lea edx, [ecx + ecx]
mov dword [ebp - 0x64c], edx
cmp eax, dword [ebp - 0x65c]
ja 0x458530
lea eax, [esi + eax*2]
mov dword [ebp - 0x65c], eax
test edx, edx
je 0x458578
test eax, eax
jne 0x458515
call fcn.004f5bf4
mov dword [eax], 0x16
jmp 0x458567
mov eax, dword [esi - 8]
add eax, eax
cmp eax, edx
jb 0x45855c
push edx
push dword [ebp - 0x65c]
push esi
call fcn.004ec550
add esp, 0xc
jmp 0x45856c
mov eax, dword [esi - 8]
add eax, eax
test edx, edx
je 0x458578
cmp eax, edx
jb 0x458550
mov eax, dword [ebp - 0x650]
push edx
push eax
push esi
call fcn.004ebfd0
add esp, 0xc
jmp 0x45856c
push eax
push 0
push esi
call fcn.004ecad0
add esp, 0xc
call fcn.004f5bf4
mov dword [eax], 0x22
call fcn.004f5b1a
mov ecx, dword [ebp - 0x648]
mov edx, dword [ebp - 0x64c]
cmp ecx, dword [esi - 8]
jg 0x4587fc
xor eax, eax
mov dword [esi - 0xc], ecx
mov word [edx + esi], ax
jmp 0x4585e2
cmp dword [esi - 0xc], 0
lea edx, [esi - 0x10]
mov eax, dword [edx]
mov dword [ebp - 0x65c], eax
je 0x4585e2
cmp dword [edx + 0xc], 0
lea ecx, [edx + 0xc]
jge 0x4585be
cmp dword [esi - 8], 0
jl 0x4587fc
xor eax, eax
mov dword [esi - 0xc], 0
mov word [esi], ax
jmp 0x4585e2
or eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x4585d2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x65c]
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
lea esi, [eax + 0x10]
mov ecx, edi
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x458614
test dx, dx
je 0x458608
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x458614
add eax, 4
add ecx, 4
test dx, dx
jne 0x4585e6
mov dword [ebp - 0x650], 0
jmp 0x45861f
sbb ecx, ecx
or ecx, 1
mov dword [ebp - 0x650], ecx
mov byte [ebp - 4], 0xd
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x45863b
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x650], 0
je 0x458777
push dword [ebp - 0x664]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp - 0x658]
mov byte [ebp - 4], 0xa
test eax, eax
je 0x458668
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x68c]
inc eax
mov dword [ebp - 0x68c], eax
cmp eax, dword [ebp - 0x674]
jl 0x45825d
mov dword [ebp - 0x648], 0x80004005
mov eax, dword [ebp - 0x668]
mov byte [ebp - 4], 9
test eax, eax
je 0x45869f
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov esi, dword [ebp - 0x678]
mov eax, dword [ebp - 0x66c]
mov byte [ebp - 4], 8
test eax, eax
je 0x4586b9
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push esi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp - 0x670]
mov esi, dword [ebp - 0x690]
mov byte [ebp - 4], 6
test eax, eax
je 0x4586da
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea eax, [ebp - 0x6b4]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov byte [ebp - 4], 4
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x458703
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x67c]
or esi, 0xffffffff
mov byte [ebp - 4], 3
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x458727
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x694]
mov eax, esi
mov byte [ebp - 4], 2
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x458748
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x680]
mov byte [ebp - 4], 1
test eax, eax
je 0x45875c
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 0
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], esi
dec esi
test esi, esi
jg 0x4587bc
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x4587bc
mov eax, dword [ebp - 0x658]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x28]
push dword [ebp - 0x664]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp - 0x658]
mov byte [ebp - 4], 0xa
test eax, eax
je 0x4587a3
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 0x648], 0
jmp 0x45868b
mov dword [ebp - 0x648], 0x80004005
lea ecx, [ebp - 0x644]
call fcn.00416ea0
mov eax, dword [ebp - 0x648]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00460412
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.0043e090
push 0x8007000e
call fcn.0043e090
push 0x80070057
call fcn.0043e090
int3