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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d9187
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x511070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ebp + 8], 0
jne 0x46a63b
xor eax, eax
jmp 0x46a97c
call dword [sym.imp.KERNEL32.dll_GetTickCount]
call fcn.0041bed0
mov ecx, eax
test ecx, ecx
jne 0x46a656
push 0x80004005
call fcn.0041cdf0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x228], eax
push str.Microsoft_Visual_C_2015_Redistributable__x64_
lea ecx, [ebp - 0x224]
mov dword [ebp - 4], 0
call fcn.0041c970
push str.14.0.24215.1
lea ecx, [ebp - 0x234]
mov byte [ebp - 4], 1
call fcn.0041c970
push 0x20a
lea eax, [ebp - 0x220]
mov byte [ebp - 4], 2
push 0
push eax
call fcn.004a8960
add esp, 0xc
lea eax, [ebp - 0x220]
push 0
push 0x25
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x224]
push eax
push 0x20219
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.00469f70
or esi, 0xffffffff
test eax, eax
je 0x46a6ed
push dword [ebp - 0x224]
push str._vc_runtime__Software_WOW6432Node_..._Uninstall_
jmp 0x46a74b
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x224]
push eax
push 0x20119
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.00469f70
test eax, eax
je 0x46a71b
push dword [ebp - 0x224]
push str._vc_runtime__Software_..._Uninstall_
jmp 0x46a74b
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x224]
push eax
push 0x20019
push SysReAllocString
call fcn.00469f70
push dword [ebp - 0x224]
test eax, eax
je 0x46a902
push str._vc_runtime__HKEY_CURRENT_USER_Software_..._Uninstall_
push 0x515488
call fcn.0048d4b0
mov eax, dword [ebp - 0x234]
add esp, 0xc
test eax, eax
jne 0x46a76c
push 0x80004005
call fcn.0041cdf0
mov edi, dword [ebp - 0x228]
mov ecx, edi
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x46a79a
test dx, dx
je 0x46a796
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x46a79a
add ecx, 4
add eax, 4
test dx, dx
jne 0x46a774
xor ebx, ebx
jmp 0x46a79f
sbb ebx, ebx
or ebx, 1
call fcn.0041bed0
mov ecx, eax
test ecx, ecx
jne 0x46a7b4
push 0x80004005
call fcn.0041cdf0
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x230], esi
push str._vcruntime140.dll
lea eax, [ebp - 0x220]
mov byte [ebp - 4], 3
push 0x104
push eax
call fcn.004b12b5
mov eax, dword [0x515c64]
add esp, 0xc
test eax, eax
jne 0x46a813
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x46a80a
push str.Wow64EnableWow64FsRedirection
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x515c64], eax
jmp 0x46a80f
mov eax, dword [0x515c64]
test eax, eax
je 0x46a81f
push 0
call eax
test eax, eax
je 0x46a8dd
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x46a8a2
test al, 0x10
jne 0x46a8a2
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x22c]
call fcn.0041c970
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x22c]
push eax
call fcn.0046b500
mov byte [ebp - 4], 3
or eax, 0xffffffff
mov edx, dword [ebp - 0x22c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x46a880
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x230]
lea eax, [ebp - 0x220]
push esi
push eax
push 0x4f8954
push 0x515488
call fcn.0048d4b0
add esp, 0x10
jmp 0x46a8a5
or ebx, 0xffffffff
mov eax, dword [0x515c64]
test eax, eax
jne 0x46a8d9
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x46a8d0
push str.Wow64EnableWow64FsRedirection
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x515c64], eax
jmp 0x46a8d5
mov eax, dword [0x515c64]
test eax, eax
je 0x46a8dd
push 1
call eax
lea edx, [esi - 0x10]
mov byte [ebp - 4], 2
not ebx
or esi, 0xffffffff
shr ebx, 0x1f
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x46a91c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x46a91c
push 0x4f8908
push 0x515488
call fcn.0048d4b0
mov edi, dword [ebp - 0x228]
add esp, 0xc
xor ebx, ebx
mov byte [ebp - 4], 1
mov eax, esi
mov edx, dword [ebp - 0x234]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x46a93d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov eax, esi
mov edx, dword [ebp - 0x224]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x46a95e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], esi
dec esi
test esi, esi
jg 0x46a97a
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a5d13
mov esp, ebp
pop ebp
ret 4