Function at 0x40a0e0
Capabilities:
Get common file path
Get session user name

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e2e74
mov eax, dword fs:[0]
push eax
sub esp, 0x848
mov eax, dword [0x572734]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov byte [ebp - 0x831], 0
mov byte [ebp - 0x832], 1
xor eax, eax
mov word [ebp - 0x218], ax
push 0x206
push 0
lea ecx, [ebp - 0x216]
push ecx
call sub.MSVCR120.dll_memset
add esp, 0xc
mov dword [ebp - 0x844], 0
push str.shfolder.dll
lea ecx, [ebp - 0x854]
call fcn.004153a0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x854]
call fcn.004157f0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x83c], eax
cmp dword [ebp - 0x83c], 0
je 0x40a225
push str.SHGetFolderPathW
mov edx, dword [ebp - 0x83c]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x844], eax
cmp dword [ebp - 0x844], 0
je 0x40a218
lea eax, [ebp - 0x218]
push eax
push 0
push 0
push 0x801a
push 0
call dword [ebp - 0x844]
test eax, eax
jl 0x40a218
mov byte [ebp - 0x832], 0
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.MSVCR120.dll_wcslen]
add esp, 4
mov dword [ebp - 0x840], eax
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
cmp eax, dword [ebp - 0x840]
jle 0x40a20d
mov byte [ebp - 0x831], 1
mov ecx, dword [ebp - 0x840]
push ecx
lea edx, [ebp - 0x218]
push edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.MSVCR120.dll_wcsncpy_s]
add esp, 0x10
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x840]
mov dword [eax], ecx
mov edx, dword [ebp - 0x83c]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
movzx eax, byte [ebp - 0x832]
test eax, eax
je 0x40a34b
xor ecx, ecx
mov word [ebp - 0x830], cx
push 0x206
push 0
lea edx, [ebp - 0x82e]
push edx
call sub.MSVCR120.dll_memset
add esp, 0xc
xor eax, eax
mov word [ebp - 0x420], ax
push 0x206
push 0
lea ecx, [ebp - 0x41e]
push ecx
call sub.MSVCR120.dll_memset
add esp, 0xc
mov dword [ebp - 0x848], 0x104
xor edx, edx
mov word [ebp - 0x628], dx
push 0x206
push 0
lea eax, [ebp - 0x626]
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x830]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea edx, [ebp - 0x848]
push edx
lea eax, [ebp - 0x628]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
push str.Application_Data
lea ecx, [ebp - 0x830]
push ecx
lea edx, [ebp - 0x420]
push edx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x628]
push eax
lea ecx, [ebp - 0x420]
push ecx
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.MSVCR120.dll_wcslen]
add esp, 4
mov dword [ebp - 0x838], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
cmp edx, dword [ebp - 0x838]
jle 0x40a340
mov byte [ebp - 0x831], 1
mov eax, dword [ebp - 0x838]
push eax
lea ecx, [ebp - 0x218]
push ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.MSVCR120.dll_wcsncpy_s]
add esp, 0x10
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x838]
mov dword [edx], eax
mov cl, byte [ebp - 0x831]
mov byte [ebp - 0x833], cl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x854]
call fcn.00415310
mov al, byte [ebp - 0x833]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004e11cc
mov esp, ebp
pop ebp
ret