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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c09ec
mov eax, dword fs:[0]
push eax
sub esp, 0x4a4
mov eax, dword [0x4e2210]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ebp + 8], 0
je 0x407851
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x407858
xor eax, eax
jmp 0x407bca
mov ecx, dword [ebp + 8]
push ecx
call fcn.00407480
add esp, 4
mov edx, dword [ebp + 8]
push edx
lea ecx, [ebp - 0x430]
call fcn.004089f0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x430]
push eax
lea ecx, [ebp - 0x488]
call fcn.0048a4f0
mov dword [ebp - 0x4a4], eax
mov ecx, dword [ebp - 0x4a4]
mov dword [ebp - 0x4a8], ecx
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x4a8]
push edx
lea ecx, [ebp - 0x430]
call fcn.004089d0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x488]
call fcn.0042a190
lea ecx, [ebp - 0x440]
call fcn.00407fe0
mov byte [ebp - 4], 2
mov dword [ebp - 0x468], 1
push 0
lea eax, [ebp - 0x440]
push eax
lea eax, [ebp - 0x430]
call fcn.0047db40
mov ecx, eax
call fcn.00401cb0
push eax
call fcn.00407ce0
add esp, 0xc
test eax, eax
jne 0x40793a
mov dword [ebp - 0x48c], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x440]
call fcn.00408020
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x430]
call fcn.0042a190
mov eax, dword [ebp - 0x48c]
jmp 0x407bca
lea ecx, [ebp - 0x448]
push ecx
lea ecx, [ebp - 0x440]
call fcn.00413230
lea edx, [ebp - 0x448]
push edx
lea eax, [ebp - 0x494]
push eax
lea ecx, [ebp - 0x440]
call fcn.004706f0
mov ecx, eax
call fcn.00471c00
movzx ecx, al
test ecx, ecx
je 0x407a12
lea ecx, [ebp - 0x448]
call fcn.00413290
call fcn.0047db40
mov ecx, eax
call fcn.00401cb0
push eax
call fcn.00407bf0
add esp, 4
mov dword [ebp - 0x46c], eax
mov edx, dword [ebp - 0x46c]
push edx
lea ecx, [ebp - 0x448]
call fcn.00413290
call fcn.0047db40
mov ecx, eax
call fcn.00401cb0
push eax
push 0x4cd66c
mov esi, 0x4e77f8
call fcn.004897f0
add esp, 0xc
cmp dword [ebp - 0x46c], 0
je 0x4079ec
cmp dword [ebp - 0x468], 0
je 0x4079ec
mov dword [ebp - 0x4ac], 1
jmp 0x4079f6
mov dword [ebp - 0x4ac], 0
mov eax, dword [ebp - 0x4ac]
mov dword [ebp - 0x468], eax
lea ecx, [ebp - 0x448]
call fcn.004132b0
jmp 0x40794c
mov word [ebp - 0x414], 0
push 0x3fe
push 0
lea ecx, [ebp - 0x412]
push ecx
call fcn.0049d120
add esp, 0xc
push 0
push 0x1a
lea edx, [ebp - 0x414]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x407a7e
mov dword [ebp - 0x498], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x440]
call fcn.00408020
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x430]
call fcn.0042a190
mov eax, dword [ebp - 0x498]
jmp 0x407bca
lea eax, [ebp - 0x414]
push eax
lea ecx, [ebp - 0x464]
call fcn.004089f0
mov byte [ebp - 4], 3
lea esi, [ebp - 0x464]
call fcn.0048a5f0
push str.MicrosoftInternet_ExplorerQuick_LaunchUser_PinnedStartMenu
lea edi, [ebp - 0x464]
call fcn.0048a8a0
lea eax, [ebp - 0x464]
call fcn.0047db40
mov ecx, eax
call fcn.00401cb0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x407b13
mov ecx, dword [ebp - 0x468]
mov dword [ebp - 0x49c], ecx
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x464]
call fcn.0042a190
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x440]
call fcn.00408020
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x430]
call fcn.0042a190
mov eax, dword [ebp - 0x49c]
jmp 0x407bca
lea eax, [ebp - 0x464]
call fcn.0047db40
mov ecx, eax
call fcn.00401cb0
push eax
call fcn.00407bf0
add esp, 4
mov dword [ebp - 0x434], eax
mov edx, dword [ebp - 0x434]
push edx
lea eax, [ebp - 0x464]
call fcn.0047db40
mov ecx, eax
call fcn.00401cb0
push eax
push str.UnPin___s__Result___d_
mov esi, 0x4e77f8
call fcn.004897f0
add esp, 0xc
cmp dword [ebp - 0x468], 0
je 0x407b7e
cmp dword [ebp - 0x434], 0
je 0x407b7e
mov dword [ebp - 0x4b0], 1
jmp 0x407b88
mov dword [ebp - 0x4b0], 0
mov eax, dword [ebp - 0x4b0]
mov dword [ebp - 0x4a0], eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x464]
call fcn.0042a190
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x440]
call fcn.00408020
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x430]
call fcn.0042a190
mov eax, dword [ebp - 0x4a0]
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.0049d270
mov esp, ebp
pop ebp
ret