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

Disassembly:
mov eax, 0x4aea30
call fcn.004a9484
sub esp, 0x1c
mov eax, dword [0x4dc148]
push ebx
push esi
push edi
mov ecx, 0x4dc148
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.00408cd5
pop ecx
pop ecx
lea eax, [ebp - 0x1c]
push eax
call fcn.0045f80f
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x18]
push ecx
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.00408a21
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.004074cd
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.00407f26
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.00407f26
add esi, 0x548
call fcn.004662d2
test eax, eax
je 0x45fbd2
cmp dword [esi + 8], 0x100000
jb 0x45fbd2
call fcn.00466381
test eax, eax
jne 0x45fafa
mov ebx, esi
call fcn.004663d9
test eax, eax
je 0x45fbd2
push dword [edi]
mov ecx, esi
push 0
call fcn.00466134
lea eax, [ebp - 0x18]
push 0x4bbf90
push eax
mov ecx, edi
call fcn.0040acae
lea ecx, [ebp - 0x1c]
push 0x4dd150
push ecx
mov ecx, eax
mov byte [ebp - 4], 3
call fcn.00408a21
add esp, 0x10
push eax
push ecx
mov byte [ebp - 4], 4
call fcn.00467146
pop ecx
mov ecx, eax
call fcn.004671aa
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.00407f26
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.00407f26
push dword [edi]
lea eax, [ebp - 0x24]
push eax
call fcn.0045ec9d
pop ecx
pop ecx
mov byte [ebp - 4], 5
mov eax, dword [eax]
mov dword [ebp - 0x20], eax
call fcn.00467146
mov esi, dword [eax + 0x14]
call fcn.00467146
mov edi, dword [eax + 0x10]
call fcn.00467146
mov ebx, dword [eax + 0xc]
call fcn.00467146
mov eax, dword [eax + 8]
mov dword [ebp - 0x18], eax
call fcn.00467146
mov eax, dword [eax + 4]
mov dword [ebp - 0x1c], eax
call fcn.00457577
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.004083bc
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
call fcn.00407f26
mov ebx, dword [ebp + 8]
call fcn.00460fa3
mov edi, ebx
push edi
call fcn.00461144
call fcn.0045f420
push edi
call fcn.0045f8d5
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x10]
push str._res
push eax
call fcn.0040acae
pop ecx
pop ecx
mov byte [ebp - 4], 6
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x45fc2b
push dword [ebp - 0x10]
call fcn.0040ede3
push eax
call fcn.004083bc
call fcn.0040f341
mov ebx, eax
call fcn.0040f36c
call fcn.0045dd97
call fcn.0045e0db
call fcn.0045e265
xor ebx, ebx
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00407f26
push ebx
push 0x26
lea esi, [edi + 0x53c]
push 0x104
call fcn.00408062
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov edi, eax
mov eax, dword [esi]
cmp eax, ebx
jne 0x45fc71
xor eax, eax
jmp 0x45fc78
push eax
call fcn.00479b8e
pop ecx
mov edx, esi
call fcn.0040801e
cmp edi, ebx
jne 0x45fc8e
push str.c:program_files
push esi
call fcn.004083bc
push 0x4bbf90
push esi
call fcn.00408830
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x94c]
push dword [eax - 0xc]
push eax
mov eax, esi
call fcn.00408d5e
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.00407f26
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4