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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1015e0e8
mov eax, dword fs:[0]
push eax
mov eax, 0x1824
call fcn.100b4660
mov eax, dword [0x101c0618]
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 - 0x182c], esi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x1830], eax
lea eax, [ebp - 0x181c]
push eax
call fcn.100125c0
mov ecx, eax
call fcn.1000f150
lea ecx, [ebp - 0x1811]
mov dword [ebp - 4], 0
call fcn.1014d830
lea ecx, [ebp - 0x1811]
mov byte [ebp - 4], 1
call fcn.1014eaf0
test eax, eax
je 0x10079be8
push str.CInstaller::CreateDesktopShortcut__IsAnyProductGameCenterShortcutExisting__skip
call fcn.1004a190
add esp, 4
push dword [ebp - 0x181c]
lea ecx, [ebp - 0x1811]
call fcn.1014eb20
test eax, eax
je 0x10079c10
push dword [ebp - 0x181c]
push str.CInstaller::CreateDesktopShortcut__IsGameCenterShortcutExisting__s___skip
call fcn.1004a190
add esp, 8
or ebx, 0xffffffff
cmp dword [ebp + 8], 0
je 0x10079c34
push dword [ebp - 0x181c]
push str.CInstaller::CreateDesktopShortcut__wont_create_if_not_exists__s.lnk__skip
call fcn.1004a190
add esp, 8
lea esi, [ebx + 2]
jmp 0x10079f09
call fcn.1000c0e0
mov ecx, eax
test ecx, ecx
je 0x10079f56
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1818], eax
push 0x101735e8
lea ecx, [ebp - 0x1818]
mov byte [ebp - 4], 2
call fcn.1001aad0
test al, al
jne 0x10079c7b
push 6
push 0x101735e8
lea ecx, [ebp - 0x1818]
call fcn.1000adf0
mov byte [ebp - 4], 3
call fcn.100125c0
mov ecx, eax
call fcn.1000fef0
test eax, eax
je 0x10079ca6
mov eax, dword [esi + 0x14]
cmp dword [eax - 0xc], 0
je 0x10079ca6
mov eax, dword [esi + 0x10]
cmp dword [eax - 0xc], 0
je 0x10079ca6
push dword [esi + 0x1c]
jmp 0x10079cb4
call fcn.100125c0
mov ecx, eax
call fcn.1000f1d0
push dword [eax]
lea eax, [ebp - 0x1818]
push str._s_dsk
push eax
call fcn.1000efe0
add esp, 0xc
lea eax, [ebp - 0x1810]
push 0x800
push 0
push eax
call fcn.100ec480
add esp, 0xc
lea eax, [ebp - 0x1810]
push 1
push 0x19
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x800
lea eax, [ebp - 0x810]
push 0
push eax
call fcn.100ec480
add esp, 0xc
call fcn.1000c0e0
mov ecx, eax
test ecx, ecx
je 0x10079f60
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1820], eax
push dword [ebp - 0x181c]
lea eax, [ebp - 0x1820]
mov byte [ebp - 4], 4
push 0x10180670
push eax
call fcn.10012500
mov edi, dword [ebp - 0x1820]
lea eax, [ebp - 0x1810]
mov esi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
add esp, 0xc
push edi
push eax
lea eax, [ebp - 0x810]
push eax
call esi
push 0x800
lea eax, [ebp - 0x1010]
push 0
push eax
call fcn.100ec480
mov eax, dword [ebp - 0x1830]
add esp, 0xc
push dword [0x101c03e8]
push dword [eax]
lea eax, [ebp - 0x1010]
push eax
call esi
lea eax, [ebp - 0x810]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10079dbe
lea eax, [ebp - 0x810]
push eax
push str.CInstaller::CreateDesktopShortcut__exists__s.lnk__skip
call fcn.1004a190
add esp, 8
lea eax, [ebp - 0x810]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, dword [ebp - 0x1818]
lea eax, [ebp - 0x1010]
mov ecx, dword [ebp - 0x182c]
push 0
push 0
push eax
lea eax, [ebp - 0x810]
push eax
push esi
lea eax, [ebp - 0x1010]
push eax
push dword [ebp - 0x181c]
call fcn.1007aa40
test eax, eax
jne 0x10079dfe
mov dword [ebp - 0x1820], eax
jmp 0x10079ecd
push str.create_dsk_shortcut
lea ecx, [ebp - 0x1828]
call fcn.1006e770
push str.install
lea ecx, [ebp - 0x1824]
mov byte [ebp - 4], 5
call fcn.1000b130
sub esp, 0x28
mov eax, esp
mov dword [ebp - 0x182c], esp
mov dword [eax + 0x24], 0
push 0
push 0
push 1
lea eax, [ebp - 0x1828]
mov byte [ebp - 4], 7
push eax
lea eax, [ebp - 0x1824]
push eax
call fcn.1006f2a0
mov ecx, eax
mov byte [ebp - 4], 6
call fcn.10070290
mov edx, dword [ebp - 0x1824]
mov eax, ebx
mov byte [ebp - 4], 5
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10079e7d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x1828]
mov eax, ebx
mov byte [ebp - 4], 4
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10079e9e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0
push 0x2a
push 0x1a
push 0xffff
call dword [sym.imp.USER32.dll_PostMessageW]
push 0
push 0
push 0x1000
push 0x8000000
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
mov dword [ebp - 0x1820], 1
mov byte [ebp - 4], 3
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x10079ee8
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x10079f03
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x1820]
lea ecx, [ebp - 0x1811]
call fcn.1014d9b0
mov eax, dword [ebp - 0x181c]
mov dword [ebp - 4], 0xffffffff
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x10079f36
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
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.100b4568
mov esp, ebp
pop ebp
ret 8
push 0x80004005
call fcn.10007270
push 0x80004005
call fcn.10007270
int3