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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e02ac
mov eax, dword fs:[0]
push eax
sub esp, 0x850
mov eax, dword [0x520404]
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 eax, dword [0x528084]
test eax, eax
jne 0x49094e
push 0x4e9488
push 0x2c
call fcn.004a7f94
add esp, 8
mov dword [ebp - 0x850], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x490940
mov ecx, eax
call fcn.00484580
jmp 0x490942
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov dword [0x528084], eax
push str.deleteAppShortcuts
push str.App___SetupHelper
push eax
call fcn.00484be0
lea eax, [ebp - 0x858]
push eax
call fcn.004914f0
lea eax, [ebp - 0x854]
mov dword [ebp - 4], 1
push eax
call fcn.00491600
push 0x208
lea eax, [ebp - 0x420]
mov byte [ebp - 4], 2
push 0
push eax
call fcn.004ac800
add esp, 0x20
lea eax, [ebp - 0x420]
push eax
push 0
push 0
push 2
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x4909ee
call fcn.004782d0
test eax, eax
je 0x490d19
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x84c], eax
push 0x4f8bb8
lea ecx, [ebp - 0x84c]
mov byte [ebp - 4], 3
call fcn.00477ee0
test al, al
jne 0x490a52
push 0
push 0x4f8bb8
jmp 0x490a47
call fcn.004782d0
mov ecx, eax
test ecx, ecx
je 0x490d19
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x84c], eax
lea eax, [ebp - 0x420]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x84c]
call fcn.00477ee0
test al, al
jne 0x490a52
lea ecx, [ebp - 0x420]
lea edx, [ecx + 2]
mov edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x490a30
sub ecx, edx
lea eax, [ebp - 0x420]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x84c]
call fcn.00478540
mov esi, dword [ebp - 0x84c]
mov byte [ebp - 4], 5
test esi, esi
je 0x490b65
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004ac800
mov ebx, dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x218]
add esp, 0xc
push str.GameAssistant
push esi
push eax
call ebx
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
jmp 0x490aa0
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x490aa0
sub ecx, edx
sar ecx, 1
je 0x490b65
push 0x208
lea eax, [ebp - 0x628]
push 0
push eax
call fcn.004ac800
add esp, 0xc
lea eax, [ebp - 0x218]
push dword [ebp - 0x858]
push eax
lea eax, [ebp - 0x628]
push eax
call ebx
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea eax, [ebp - 0x628]
push eax
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x490b03
lea eax, [ebp - 0x628]
push eax
call ebx
push 0x208
lea eax, [ebp - 0x830]
push 0
push eax
call fcn.004ac800
add esp, 0xc
lea eax, [ebp - 0x218]
push dword [ebp - 0x854]
push eax
lea eax, [ebp - 0x830]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x830]
push eax
call edi
test eax, eax
je 0x490b49
lea eax, [ebp - 0x830]
push eax
call ebx
lea eax, [ebp - 0x218]
push eax
call edi
test eax, eax
je 0x490b65
lea eax, [ebp - 0x218]
push eax
call fcn.004926f0
add esp, 4
lea eax, [ebp - 0x850]
push eax
call fcn.00491400
add esp, 4
mov eax, dword [eax]
xor ecx, ecx
mov dword [ebp - 0x848], 0
mov word [ebp - 0x848], cx
lea ecx, [ebp - 0x848]
push eax
mov byte [ebp - 4], 6
mov dword [ebp - 0x838], 0
mov dword [ebp - 0x834], 7
call fcn.00408a70
mov edx, dword [ebp - 0x850]
or edi, 0xffffffff
mov byte [ebp - 4], 8
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x490bd1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x834], 8
lea eax, [ebp - 0x848]
jb 0x490be6
mov eax, dword [ebp - 0x848]
push 0
push eax
call fcn.0048ebb0
mov eax, dword [0x528084]
add esp, 8
test eax, eax
jne 0x490c2b
push 0x4e9488
push 0x2c
call fcn.004a7f94
add esp, 8
mov dword [ebp - 0x85c], eax
mov byte [ebp - 4], 9
test eax, eax
je 0x490c20
mov ecx, eax
call fcn.00484580
jmp 0x490c22
xor eax, eax
mov byte [ebp - 4], 8
mov dword [0x528084], eax
push str.deleteAppShortcuts_over
push str.App___SetupHelper
push eax
call fcn.00484be0
mov edx, dword [ebp - 0x834]
add esp, 0xc
mov byte [ebp - 4], 5
cmp edx, 8
jb 0x490c82
mov ecx, dword [ebp - 0x848]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x490c78
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x490d23
push edx
push ecx
call fcn.004a7d37
add esp, 8
xor eax, eax
mov dword [ebp - 0x838], 0
mov word [ebp - 0x848], ax
add esi, 0xfffffff0
mov dword [ebp - 0x834], 7
mov eax, edi
mov byte [ebp - 4], 2
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x490cba
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x854]
mov eax, edi
mov byte [ebp - 4], 1
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x490cdb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x858]
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x490cfd
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
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.004a7f4e
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00477ec0
call fcn.004af45f
int3