Function at 0x462f19
Capabilities:
Check if file exists
Get common file path
Get program files directory

Disassembly:
mov eax, 0x4d5d40
call fcn.004cdff0
sub esp, 0x1c
mov eax, dword [0x50c868]
push ebx
push esi
push edi
mov ecx, 0x50c868
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
and dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
push eax
push str._x_
lea eax, [ebp - 0x14]
call fcn.00408eea
pop ecx
pop ecx
lea eax, [ebp - 0x1c]
push eax
call fcn.00462cf0
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x18]
push ecx
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.00408c03
pop ecx
pop ecx
mov esi, dword [ebp + 8]
lea edi, [esi + 0x568]
mov byte [ebp - 4], 2
mov dword [ebp - 0x10], edi
call fcn.00407526
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.00407fe5
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.00407fe5
add esi, 0x548
call fcn.0046a6fa
test eax, eax
je 0x4630b3
cmp dword [esi + 8], 0x100000
jb 0x4630b3
call fcn.0046a7a9
test eax, eax
jne 0x462fdb
mov ebx, esi
call fcn.0046a801
test eax, eax
je 0x4630b3
push dword [edi]
mov ecx, esi
push 0
call fcn.0046a55c
lea eax, [ebp - 0x18]
push 0x4e6a40
push eax
mov ecx, edi
call fcn.0040b01a
lea ecx, [ebp - 0x1c]
push 0x50e280
push ecx
mov ecx, eax
mov byte [ebp - 4], 3
call fcn.00408c03
add esp, 0x10
push eax
push ecx
mov byte [ebp - 4], 4
call fcn.0046b593
pop ecx
mov ecx, eax
call fcn.0046b5f7
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.00407fe5
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.00407fe5
push dword [edi]
lea eax, [ebp - 0x24]
push eax
call fcn.00462029
pop ecx
pop ecx
mov byte [ebp - 4], 5
mov eax, dword [eax]
mov dword [ebp - 0x20], eax
call fcn.0046b593
mov esi, dword [eax + 0x14]
call fcn.0046b593
mov edi, dword [eax + 0x10]
call fcn.0046b593
mov ebx, dword [eax + 0xc]
call fcn.0046b593
mov eax, dword [eax + 8]
mov dword [ebp - 0x18], eax
call fcn.0046b593
mov eax, dword [eax + 4]
mov dword [ebp - 0x1c], eax
call fcn.0045a6ab
mov ecx, dword [ebp - 0x1c]
push dword [ebp - 0x20]
mov dword [eax + 4], ecx
mov ecx, dword [ebp - 0x18]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], edi
mov dword [eax + 0x14], esi
add eax, 0x18
push eax
call fcn.0040849e
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
call fcn.00407fe5
mov ebx, dword [ebp + 8]
call fcn.00464462
mov edi, ebx
push edi
call fcn.00464605
call fcn.004627cb
push edi
call fcn.00462db6
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x10]
push str._res
push eax
call fcn.0040b01a
pop ecx
pop ecx
mov byte [ebp - 4], 6
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x46310d
mov esi, dword [ebp - 0x10]
call fcn.0040f1db
push esi
push eax
call fcn.0040849e
call fcn.0040f739
mov ebx, eax
call fcn.0040f764
call fcn.00461115
call fcn.00461459
call fcn.004615e3
xor ebx, ebx
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00407fe5
push ebx
push 0x26
lea esi, [edi + 0x53c]
push 0x104
call fcn.00408130
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov edi, eax
mov eax, dword [esi]
cmp eax, ebx
jne 0x463153
xor eax, eax
jmp 0x46315a
push eax
call fcn.0048a91e
pop ecx
mov edx, esi
call fcn.004080e0
cmp edi, ebx
jne 0x463170
push str.c:program_files
push esi
call fcn.0040849e
push 0x4e6a40
push esi
call fcn.00408995
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x94c]
push dword [eax - 0xc]
push eax
mov eax, esi
call fcn.00408f7c
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.00407fe5
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4