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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x62e814
mov eax, dword fs:[0]
push eax
sub esp, 0x848
mov eax, dword [0x721970]
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 fcn.0060f700
add esp, 0xc
mov dword [ebp - 0x844], 0
push str.shfolder.dll
lea ecx, [ebp - 0x854]
call fcn.00418d40
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x854]
call fcn.00419160
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x83c], eax
cmp dword [ebp - 0x83c], 0
je 0x40d3a3
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 0x40d396
lea eax, [ebp - 0x218]
push eax
push 0
push 0
push 0x801a
push 0
call dword [ebp - 0x844]
test eax, eax
jl 0x40d396
mov byte [ebp - 0x832], 0
lea ecx, [ebp - 0x218]
push ecx
call fcn.00610037
add esp, 4
mov dword [ebp - 0x840], eax
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
cmp eax, dword [ebp - 0x840]
jle 0x40d38b
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 fcn.0061006f
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 0x40d4c7
xor ecx, ecx
mov word [ebp - 0x830], cx
push 0x206
push 0
lea edx, [ebp - 0x82e]
push edx
call fcn.0060f700
add esp, 0xc
xor eax, eax
mov word [ebp - 0x420], ax
push 0x206
push 0
lea ecx, [ebp - 0x41e]
push ecx
call fcn.0060f700
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 fcn.0060f700
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 fcn.00610037
add esp, 4
mov dword [ebp - 0x838], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
cmp edx, dword [ebp - 0x838]
jle 0x40d4bc
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 fcn.0061006f
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.00418cc0
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.0060f7c8
mov esp, ebp
pop ebp
ret