Function at 0x46ac20
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d924c
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 0x46acbb
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.004a8960
add esp, 0xc
lea eax, [ebp - 0x220]
push 0
push 0x25
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x4f8b94
push 0x515488
call fcn.0048d4b0
add esp, 8
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x228]
push eax
call fcn.0046b620
test eax, eax
jne 0x46ad45
push dword [ebp - 0x228]
push 0x4f850c
push 0x515488
call fcn.0048d4b0
add esp, 0xc
xor esi, esi
jmp 0x46ae5c
mov eax, dword [0x515c64]
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x46ad7d
push str.Kernel32.dll
call esi
test eax, eax
je 0x46ad74
push str.Wow64EnableWow64FsRedirection
push eax
call ebx
mov dword [0x515c64], eax
jmp 0x46ad79
mov eax, dword [0x515c64]
test eax, eax
je 0x46ad89
push 0
call eax
test eax, eax
je 0x46ae2c
lea eax, [ebp - 0x220]
push eax
push dword [ebp - 0x224]
push 0x4f8bc0
push 0x515488
call fcn.0048d4b0
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.0046aec0
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 0x46adfa
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [0x515c64]
test eax, eax
jne 0x46ae26
push str.Kernel32.dll
call esi
test eax, eax
je 0x46ae1d
push str.Wow64EnableWow64FsRedirection
push eax
call ebx
mov dword [0x515c64], eax
jmp 0x46ae22
mov eax, dword [0x515c64]
test eax, eax
je 0x46ae45
push 1
call eax
jmp 0x46ae45
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x4f8bfc
push 0x515488
call fcn.0048d4b0
add esp, 0xc
push str._vc_runtime__MsiInstallProduct_vc_runtimeMinimum_x64
push 0x515488
call fcn.0048d4b0
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 0x46ae7d
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 0x46ae9f
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.004a5d13
mov esp, ebp
pop ebp
ret 8