Function at 0x45f3b1
Capabilities:
Check if file exists
Check os version
Get common file path
Get file attributes

Disassembly:
mov eax, 0x47a334
call fcn.00465b54
sub esp, 0x26c
and dword [ebp - 0x14], 0
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jbe 0x45f3e5
cmp dword [ebp + 0xc], 5
je 0x45f3de
cmp dword [ebp + 0xc], 0x1a
jne 0x45f3e5
mov dword [ebp + 0xc], 2
and byte [ebp - 0x278], 0
push ebx
push esi
push edi
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x277]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x38]
mov byte [ebp - 0x15], 1
push eax
push dword [ebp + 0xc]
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jl 0x45f451
and byte [ebp - 0x15], 0
lea eax, [ebp - 0x278]
push eax
push dword [ebp - 0x38]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
je 0x45f451
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jl 0x45f451
mov eax, dword [ebp - 0x3c]
push dword [ebp - 0x38]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 0x3c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
and byte [ebp - 0xd], 0
cmp dword [ebp + 0xc], 0x26
mov ebx, 0x47bd74
mov edi, 0x47bd6c
mov esi, 0x47bd68
je 0x45f474
cmp dword [ebp + 0xc], 0x2b
jne 0x45f533
lea eax, [ebp - 0x278]
push 0
push eax
lea ecx, [ebp - 0x90]
mov dword [ebp - 0x84], ebx
mov dword [ebp - 0x7c], edi
call fcn.0041a02a
mov dword [ebp - 0x90], esi
push 0x491d34
lea ecx, [ebp - 0x90]
mov dword [ebp - 4], 1
call fcn.0045fa07
push 0
push eax
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x60], edi
call fcn.0041a0ba
mov dword [ebp - 0x74], esi
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 3
call fcn.0041a168
lea ecx, [ebp - 0x74]
call fcn.0041a79e
push dword [ebp - 0x70]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x45f523
lea eax, [ebp - 0xb8]
push 0
push eax
lea ecx, [ebp - 0x74]
call fcn.00418a33
mov eax, dword [eax + 0x10]
test eax, eax
je 0x45f506
push eax
call dword [sym.imp.OLEAUT32.dll_VariantInit]
test eax, eax
lea ecx, [ebp - 0xb8]
setne byte [ebp - 0xd]
call fcn.0041a168
cmp byte [ebp - 0xd], 0
je 0x45f523
and byte [ebp - 0xd], 0
jmp 0x45f527
mov byte [ebp - 0xd], 1
and byte [ebp - 4], 0
lea ecx, [ebp - 0x74]
call fcn.0041a168
cmp byte [ebp - 0x15], 0
jne 0x45f53f
cmp byte [ebp - 0xd], 0
je 0x45f55d
cmp dword [ebp + 0xc], 0x1a
je 0x45f7c3
cmp dword [ebp + 0xc], 0x26
je 0x45f6db
cmp dword [ebp + 0xc], 0x2b
je 0x45f615
cmp byte [ebp - 0x278], 0
je 0x45f59d
lea eax, [ebp - 0x278]
push 0
push eax
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x44], edi
call fcn.0041a02a
mov dword [ebp - 0x58], esi
mov dword [ebp - 0x14], 2
push 0x491d34
lea ecx, [ebp - 0x58]
mov dword [ebp - 4], 0xe
call fcn.0045fa07
jmp 0x45f5c8
lea eax, [ebp - 0x278]
push 0
push eax
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x20], edi
call fcn.0041a02a
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x14], 4
lea eax, [ebp - 0x34]
mov dword [ebp - 4], 0xf
mov ecx, dword [ebp + 8]
push 0
push eax
mov dword [ecx + 0xc], ebx
mov dword [ecx + 0x14], edi
call fcn.0041a0ba
mov edi, dword [ebp + 8]
or dword [ebp - 0x14], 1
test byte [ebp - 0x14], 4
mov dword [edi], esi
mov dword [ebp - 4], 0xe
je 0x45f5fb
and dword [ebp - 0x14], 0xfffffffb
lea ecx, [ebp - 0x34]
call fcn.0041a168
and dword [ebp - 4], 0
test byte [ebp - 0x14], 2
je 0x45f85e
and dword [ebp - 0x14], 0xfffffffd
lea ecx, [ebp - 0x58]
jmp 0x45f859
lea eax, [ebp - 0x34]
push 1
push eax
call fcn.0045fb1a
pop ecx
pop ecx
lea ecx, [ebp - 0x34]
mov dword [ebp - 4], 9
call fcn.0041a79e
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x45f675
lea eax, [ebp - 0x174]
push 0
push eax
lea ecx, [ebp - 0x34]
call fcn.00418a33
mov eax, dword [eax + 0x10]
test eax, eax
je 0x45f65e
push eax
call dword [sym.imp.OLEAUT32.dll_VariantInit]
test eax, eax
lea ecx, [ebp - 0x174]
sete byte [ebp + 0xf]
call fcn.0041a168
cmp byte [ebp + 0xf], 0
je 0x45f6af
lea eax, [ebp - 0x58]
push 0x26
push eax
call fcn.0045f3b1
pop ecx
pop ecx
mov ecx, eax
mov byte [ebp - 4], 0xa
call fcn.0045f987
push eax
lea ecx, [ebp - 0x34]
call fcn.0041a294
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 9
call fcn.0041a168
push 0x49272c
lea ecx, [ebp - 0x34]
call fcn.0045fa07
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x34]
push 0
push eax
mov dword [ecx + 0xc], ebx
mov dword [ecx + 0x14], edi
call fcn.0041a0ba
mov edi, dword [ebp + 8]
and byte [ebp - 4], 0
mov dword [ebp - 0x14], 1
lea ecx, [ebp - 0x34]
mov dword [edi], esi
jmp 0x45f859
lea eax, [ebp - 0x34]
push 0
push eax
call fcn.0045fb1a
pop ecx
pop ecx
lea ecx, [ebp - 0x34]
mov dword [ebp - 4], 0xb
call fcn.0041a79e
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x45f73b
lea eax, [ebp - 0xfc]
push 0
push eax
lea ecx, [ebp - 0x34]
call fcn.00418a33
mov eax, dword [eax + 0x10]
test eax, eax
je 0x45f724
push eax
call dword [sym.imp.OLEAUT32.dll_VariantInit]
test eax, eax
lea ecx, [ebp - 0xfc]
sete byte [ebp + 0xf]
call fcn.0041a168
cmp byte [ebp + 0xf], 0
je 0x45f797
lea eax, [ebp - 0xd4]
push 0
push eax
call fcn.0045f86f
pop ecx
pop ecx
lea ecx, [ebp - 0x124]
push 0
push ecx
mov ecx, eax
mov byte [ebp - 4], 0xc
call fcn.00418a33
push eax
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0xd
call fcn.0041a294
lea ecx, [ebp - 0x124]
mov byte [ebp - 4], 0xc
call fcn.0041a168
lea ecx, [ebp - 0xd4]
mov byte [ebp - 4], 0xb
call fcn.0041a168
push 0x497b60
lea ecx, [ebp - 0x34]
call fcn.0045fa94
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x34]
push 0
push eax
mov dword [ecx + 0xc], ebx
mov dword [ecx + 0x14], edi
call fcn.0041a0ba
mov edi, dword [ebp + 8]
and byte [ebp - 4], 0
mov dword [ebp - 0x14], 1
lea ecx, [ebp - 0x34]
mov dword [edi], esi
jmp 0x45f859
lea eax, [ebp - 0xac]
push 5
push eax
call fcn.0045f3b1
pop ecx
pop ecx
lea ecx, [ebp - 0x14c]
mov dword [ebp - 4], 4
push ecx
mov ecx, eax
call fcn.0045f987
mov ecx, eax
call fcn.004188ec
push 0
push eax
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 5
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x20], edi
call fcn.0041a0ba
mov dword [ebp - 0x34], esi
lea ecx, [ebp - 0x14c]
mov byte [ebp - 4], 8
call fcn.0041a168
lea ecx, [ebp - 0xac]
mov byte [ebp - 4], 7
call fcn.0041a168
push 0x492748
lea ecx, [ebp - 0x34]
call fcn.0045fa07
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x34]
push 0
push eax
mov dword [ecx + 0xc], ebx
mov dword [ecx + 0x14], edi
call fcn.0041a0ba
mov edi, dword [ebp + 8]
mov dword [ebp - 0x14], 1
mov dword [edi], esi
and byte [ebp - 4], 0
lea ecx, [ebp - 0x34]
call fcn.0041a168
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret