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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c4b36
mov eax, dword fs:[0]
push eax
sub esp, 0x474
mov eax, dword [0x67c3c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [0x685078], 0
jne 0x465176
push 0x18
call fcn.0059ae0f
add esp, 4
test eax, eax
je 0x464f22
xorps xmm0, xmm0
xor ecx, ecx
movups xmmword [eax], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
jmp 0x464f24
xor eax, eax
mov dword [0x685078], eax
xorps xmm0, xmm0
xor eax, eax
mov dword [ebp - 0x428], 0
movups xmmword [ebp - 0x438], xmm0
mov dword [ebp - 0x424], 7
mov word [ebp - 0x438], ax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x218]
push 0x104
push eax
push 0x400000
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xorps xmm0, xmm0
mov dword [ebp - 0x458], 0
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x454], 0
movups xmmword [ebp - 0x468], xmm0
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x464f91
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x468]
call fcn.00442860
lea eax, [ebp - 0x468]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x480]
push eax
call fcn.005439d0
mov esi, eax
add esp, 8
lea eax, [ebp - 0x438]
cmp eax, esi
je 0x46500a
mov ecx, eax
call fcn.004443f0
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [ebp - 0x438], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x428], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
lea ecx, [ebp - 0x480]
call fcn.004443f0
lea ecx, [ebp - 0x468]
mov byte [ebp - 4], 0
call fcn.004443f0
push str..thprac_data_backup
lea eax, [ebp - 0x438]
push eax
lea eax, [ebp - 0x450]
push eax
call fcn.0045dab0
add esp, 0xc
cmp dword [ebp - 0x43c], 7
lea eax, [ebp - 0x450]
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmova eax, dword [ebp - 0x450]
push eax
mov byte [ebp - 4], 2
call esi
cmp eax, 0xffffffff
je 0x465070
test al, 0x10
je 0x465070
mov byte [0x685080], 1
push str..thprac_data
lea ecx, [ebp - 0x438]
call fcn.004690f0
cmp dword [ebp - 0x424], 7
lea eax, [ebp - 0x438]
cmova eax, dword [ebp - 0x438]
push eax
call esi
cmp eax, 0xffffffff
je 0x4650bc
test al, 0x10
je 0x4650bc
push 0x5d5a4c
lea ecx, [ebp - 0x438]
mov dword [0x68507c], 1
call fcn.004690f0
jmp 0x465136
lea eax, [ebp - 0x420]
mov dword [0x68507c], 0
push eax
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x465124
lea ecx, [ebp - 0x420]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4650f0
sub ecx, edx
lea eax, [ebp - 0x420]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x438]
call fcn.00469260
push 0x5d5a50
lea ecx, [ebp - 0x438]
call fcn.004690f0
jmp 0x465136
push 0
push 0x5d5a64
lea ecx, [ebp - 0x438]
call fcn.00469260
mov ecx, dword [0x685078]
lea eax, [ebp - 0x438]
cmp ecx, eax
je 0x465160
cmp dword [ebp - 0x424], 7
push dword [ebp - 0x428]
cmova eax, dword [ebp - 0x438]
push eax
call fcn.00469260
lea ecx, [ebp - 0x450]
call fcn.004443f0
lea ecx, [ebp - 0x438]
call fcn.004443f0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0059a5ad
mov esp, ebp
pop ebp
ret