Function at 0x46a930
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d8c4c
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
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
mov esi, ecx
mov dword [ebp - 0x234], esi
mov ebx, dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push str.libraryWin_msvc2015x64_
mov edx, ebx
mov dword [esi + 0x54], 2
lea ecx, [ebp - 0x230]
call fcn.0041c010
add esp, 4
push str.vcrt_x64.7z
mov edx, eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x228]
call fcn.0041c010
add esp, 4
mov byte [ebp - 4], 2
or edi, 0xffffffff
mov esi, dword [ebp - 0x230]
mov eax, edi
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x46a9cb
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
push str.libraryWin_msvc2015x64System64
mov edx, ebx
lea ecx, [ebp - 0x224]
call fcn.0041c010
add esp, 4
push 0x20a
lea eax, [ebp - 0x220]
mov byte [ebp - 4], 3
push 0
push eax
call fcn.004a83c0
add esp, 0xc
lea eax, [ebp - 0x220]
push 0
push 0x25
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x4f8a34
push 0x515488
call fcn.0048cf90
add esp, 8
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x228]
push eax
call fcn.0046b330
test eax, eax
jne 0x46aa55
push dword [ebp - 0x228]
push 0x4f83ac
push 0x515488
call fcn.0048cf90
add esp, 0xc
xor esi, esi
jmp 0x46ab6c
mov eax, dword [0x515c64]
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x46aa8d
push str.Kernel32.dll
call esi
test eax, eax
je 0x46aa84
push str.Wow64EnableWow64FsRedirection
push eax
call ebx
mov dword [0x515c64], eax
jmp 0x46aa89
mov eax, dword [0x515c64]
test eax, eax
je 0x46aa99
push 0
call eax
test eax, eax
je 0x46ab3c
lea eax, [ebp - 0x220]
push eax
push dword [ebp - 0x224]
push 0x4f8a60
push 0x515488
call fcn.0048cf90
add esp, 0x10
lea eax, [ebp - 0x220]
lea ecx, [ebp - 0x22c]
push eax
call fcn.0041c970
mov ecx, dword [ebp - 0x234]
lea eax, [ebp - 0x22c]
push 1
push eax
lea eax, [ebp - 0x224]
mov byte [ebp - 4], 4
push eax
call fcn.0046abd0
mov byte [ebp - 4], 3
mov eax, edi
mov edx, dword [ebp - 0x22c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x46ab0a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [0x515c64]
test eax, eax
jne 0x46ab36
push str.Kernel32.dll
call esi
test eax, eax
je 0x46ab2d
push str.Wow64EnableWow64FsRedirection
push eax
call ebx
mov dword [0x515c64], eax
jmp 0x46ab32
mov eax, dword [0x515c64]
test eax, eax
je 0x46ab55
push 1
call eax
jmp 0x46ab55
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x4f8a9c
push 0x515488
call fcn.0048cf90
add esp, 0xc
push str._vc_runtime__MsiInstallProduct_vc_runtimeMinimum_x64
push 0x515488
call fcn.0048cf90
add esp, 8
mov esi, 1
mov byte [ebp - 4], 2
mov eax, edi
mov edx, dword [ebp - 0x224]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x46ab8d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x228]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], edi
dec edi
test edi, edi
jg 0x46abaf
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
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.004a578d
mov esp, ebp
pop ebp
ret 8