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

Disassembly:
push ebp
lea ebp, [esp - 0x828]
sub esp, 0x828
push 0xffffffffffffffff
push 0x5cf74b
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x671580]
xor eax, ebp
mov dword [ebp + 0x824], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.00454a60
mov esi, eax
mov dword [ebp - 0x14], esi
test esi, esi
je 0x4884bd
mov ecx, esi
call fcn.00459de0
mov dword [ebp - 4], 0
mov eax, dword [0x678094]
test al, 1
jne 0x4884fb
or eax, 1
mov dword [0x678094], eax
mov byte [ebp - 4], 1
push 0x5d75e0
mov dword [0x67808c], 0
mov byte [0x678090], 0
call fcn.004c4698
add esp, 4
mov byte [ebp - 4], 0
cmp byte [0x678090], 0
jne 0x4886cc
push 0x410
lea eax, [ebp + 0x414]
mov byte [0x678090], 1
push 0
push eax
call fcn.004cf790
add esp, 0xc
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x10]
push eax
push 0x1a
push 0
call sub.SHELL32.dll_SHGetSpecialFolderLocation
test eax, eax
jne 0x48856a
lea eax, [ebp + 0x414]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x488561
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x48856a
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
jmp 0x48856a
xor eax, eax
mov word [ebp + 0x414], ax
lea edi, [ebp + 0x414]
add edi, 0xfffffffe
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x488573
mov eax, dword [0x655c48]
lea ecx, [ebp + 0x414]
mov dword [edi], eax
add ecx, 0xfffffffe
nop
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x488590
mov eax, dword [0x5d8658]
mov dword [ecx], eax
mov eax, dword [0x5d865c]
mov dword [ecx + 4], eax
mov eax, dword [0x5d8660]
mov dword [ecx + 8], eax
mov eax, dword [0x5d8664]
mov dword [ecx + 0xc], eax
lea eax, [ebp + 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4885d6
xor eax, eax
mov word [ebp + 0x414], ax
push 0x412
lea eax, [ebp]
push 0
push eax
call fcn.004cf790
lea ecx, [ebp + 0x414]
add esp, 0xc
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4885f2
sub ecx, edx
sar ecx, 1
je 0x48869b
push 0x207
lea eax, [ebp + 0x414]
push eax
lea eax, [ebp]
push eax
call fcn.004de45a
lea ecx, [ebp]
add esp, 0xc
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x488625
sub ecx, edx
sar ecx, 1
je 0x48869b
lea edi, [ebp]
add edi, 0xfffffffe
nop dword [eax]
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x488640
mov eax, dword [0x655c48]
lea ecx, [ebp]
mov dword [edi], eax
add ecx, 0xfffffffe
nop dword [eax]
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x488660
mov eax, dword [0x5d8c5c]
mov dword [ecx], eax
mov eax, dword [0x5d8c60]
mov dword [ecx + 4], eax
mov eax, dword [0x5d8c64]
mov dword [ecx + 8], eax
mov eax, dword [0x5d8c68]
mov dword [ecx + 0xc], eax
mov eax, dword [0x5d8c6c]
mov dword [ecx + 0x10], eax
mov eax, dword [0x5d8c70]
mov dword [ecx + 0x14], eax
call fcn.0044f790
lea ecx, [ebp]
mov edx, eax
lea edi, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4886b0
sub ecx, edi
sar ecx, 1
je 0x4886cc
lea eax, [ebp]
mov ecx, edx
push eax
call fcn.0044f890
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x4886e5
mov ecx, esi
call fcn.00459df0
mov dword [ebp - 0x14], 0
mov eax, 0x67808c
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp + 0x824]
xor ecx, ebp
call fcn.004c4309
lea esp, [ebp + 0x828]
pop ebp
ret