Function at 0x1007eba0
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1015e9f8
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x101c0618]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x14], eax
mov eax, dword [eax + 0xd0]
sub eax, 0x10
push eax
call fcn.1000bc60
add eax, 0x10
mov dword [ebp - 0x10], eax
push dword [0x101c03e8]
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0
push 0x101735f8
push eax
call fcn.1000efe0
mov ebx, dword [ebp + 0x14]
add esp, 0x10
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push dword [ebx]
call edi
or esi, 0xffffffff
test eax, eax
je 0x1007ec4a
push dword [ebx]
push str.CInstaller::_CreateShortcutImpl___s_exists__delete
call fcn.1004a190
add esp, 8
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [ebx]
call edi
test eax, eax
je 0x1007ec4a
push dword [ebx]
push str.CInstaller::_CreateShortcutImpl__delete__s_failed__skip
call fcn.1004a170
add esp, 8
lea ebx, [esi + 2]
jmp 0x1007ed87
call fcn.1000c0e0
mov ecx, eax
test ecx, ecx
je 0x1007edbc
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 0x14], eax
mov eax, dword [ebp + 0xc]
mov byte [ebp - 4], 1
mov ecx, dword [eax]
mov eax, dword [ebp + 0x18]
cmp dword [ecx - 0xc], 0
push dword [eax]
lea eax, [ebp + 0x14]
je 0x1007ec8c
push ecx
push str.__gameid_s___from_s
push eax
call fcn.10012500
add esp, 0x10
jmp 0x1007ec9a
push str.__from_s
push eax
call fcn.10012500
add esp, 0xc
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
sub eax, 0x10
push eax
call fcn.1000bc60
add esp, 4
lea esi, [eax + 0x10]
mov dword [ebp + 0x18], esi
cmp dword [esi - 0xc], 0
mov byte [ebp - 4], 2
je 0x1007ecc2
push esi
call edi
test eax, eax
jne 0x1007ecd1
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp + 0x18]
call fcn.1000b6e0
mov esi, dword [ebp + 0x18]
push dword [0x101c0408]
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x14]
push 0
push esi
push dword [ebx]
push edi
push dword [ebp - 0x10]
push dword [eax]
call fcn.1007aa40
push dword [ebx]
test eax, eax
jne 0x1007ed07
push str.CInstaller::_CreatePushShortcut__InternalCreateShortcut_failed__savePath_s
call fcn.1004a170
add esp, 8
xor ebx, ebx
jmp 0x1007ed4e
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1007ed24
push dword [ebx]
push str.CInstaller::_CreatePushShortcut__savePath_not_exists__s
call fcn.1004a170
add esp, 8
xor ebx, ebx
jmp 0x1007ed4e
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 ebx, 1
lea edx, [esi - 0x10]
mov byte [ebp - 4], 1
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1007ed6c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
add edi, 0xfffffff0
mov eax, esi
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x1007ed87
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x1007eda6
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
push 0x80004005
call fcn.10007270
int3