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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f1ee1
mov eax, dword fs:[0]
push eax
sub esp, 0x47c
mov eax, dword [0x56b114]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x488], ecx
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004c5d00
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.004c5d00
add esp, 0x18
mov dword [ebp - 0x484], 0
lea eax, [ebp - 0x484]
push eax
push 0x19
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov esi, dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
jne 0x4318ab
lea eax, [ebp - 0x420]
push eax
push dword [ebp - 0x484]
call esi
push dword [ebp - 0x484]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
push str.R2_Games_Hub.lnk
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x218]
push 0x51703c
push eax
call fcn.0040f7d0
add esp, 0x10
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4318ee
test al, 0x10
jne 0x4318ee
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.004c5d00
add esp, 0xc
lea eax, [ebp - 0x484]
push eax
push 2
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x431934
lea eax, [ebp - 0x420]
push eax
push dword [ebp - 0x484]
call esi
push dword [ebp - 0x484]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
push str.R2Games_
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x218]
push 0x51703c
push eax
call fcn.0040f7d0
add esp, 0x10
mov dword [ebp - 0x428], 0
xor eax, eax
mov dword [ebp - 0x424], 7
lea ecx, [ebp - 0x438]
mov word [ebp - 0x438], ax
push 0x10
push str.R2_Games_Hub.lnk
call fcn.0040e140
lea ecx, [ebp - 0x218]
mov dword [ebp - 4], 0
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x431993
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
push ecx
lea ecx, [ebp - 0x438]
call fcn.0040ef70
mov dword [ebp - 0x458], 0
xor ecx, ecx
mov dword [ebp - 0x454], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x468], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x458], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x424]
cmp edx, 8
jb 0x431a38
mov ecx, dword [ebp - 0x438]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x431a2e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x431c7a
push edx
push ecx
call fcn.004c3d01
add esp, 8
xor eax, eax
mov dword [ebp - 0x428], 0
push 0xd
push str.Uninstall.lnk
lea ecx, [ebp - 0x480]
mov dword [ebp - 0x424], 7
mov word [ebp - 0x438], ax
mov dword [ebp - 0x470], eax
mov dword [ebp - 0x46c], 7
mov word [ebp - 0x480], ax
call fcn.0040e140
lea ecx, [ebp - 0x218]
mov byte [ebp - 4], 3
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x431a90
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
push ecx
lea ecx, [ebp - 0x480]
call fcn.0040ef70
xor ecx, ecx
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x450], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x440], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov edx, dword [ebp - 0x46c]
cmp edx, 8
jb 0x431b1d
mov ecx, dword [ebp - 0x480]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x431b13
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x431c7f
push edx
push ecx
call fcn.004c3d01
add esp, 8
cmp dword [ebp - 0x454], 8
lea eax, [ebp - 0x468]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmovae eax, dword [ebp - 0x468]
push eax
call esi
cmp dword [ebp - 0x43c], 8
lea eax, [ebp - 0x450]
cmovae eax, dword [ebp - 0x450]
push eax
call esi
mov ecx, dword [ebp - 0x488]
lea eax, [ebp - 0x218]
push eax
call sym.R2ClientInstall.exe_private:_int___thiscall_CShellFolder::DeleteFolder_wchar_t__
mov esi, dword [sym.imp.SHELL32.dll_SHChangeNotify]
lea eax, [ebp - 0x420]
push 0
push eax
push 0x1005
push VariantClear
call esi
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp word [ebp + eax*2 - 0x422], 0x5c
lea eax, [ebp + eax*2 - 0x422]
je 0x431ba9
nop dword [eax]
sub eax, 2
cmp word [eax], 0x5c
jne 0x431ba0
xor ecx, ecx
push ecx
mov word [eax], cx
lea eax, [ebp - 0x420]
push eax
push 0x1005
push 0x80001000
call esi
mov edx, dword [ebp - 0x43c]
cmp edx, 8
jb 0x431c02
mov ecx, dword [ebp - 0x450]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x431bf8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x431c84
push edx
push ecx
call fcn.004c3d01
add esp, 8
mov edx, dword [ebp - 0x454]
xor eax, eax
mov dword [ebp - 0x440], 0
mov dword [ebp - 0x43c], 7
mov word [ebp - 0x450], ax
cmp edx, 8
jb 0x431c5b
mov ecx, dword [ebp - 0x468]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x431c51
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x431c89
push edx
push ecx
call fcn.004c3d01
add esp, 8
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004c360c
mov esp, ebp
pop ebp
ret
call fcn.004cac9c
call fcn.004cac9c
call fcn.004cac9c
call fcn.004cac9c
int3