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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e7230
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x430
push esi
mov esi, ecx
mov ecx, 0x524e73
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x14], 0
call fcn.004e6414
push 0x208
lea eax, [ebp - 0x234]
mov dword [ebp - 4], 1
push 0
push eax
call fcn.004bc490
add esp, 0xc
lea eax, [ebp - 0x234]
push eax
push 0
push 0
push 0x1c
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea eax, [ebp - 0x234]
mov ecx, esi
push eax
call fcn.00408580
push 1
push 0x50fad0
mov ecx, esi
mov dword [ebp - 0x14], 2
call fcn.00408e20
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 1
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
je 0x4051f2
push edi
lea ecx, [ebp - 0x10]
call fcn.00404cf0
push 0x208
lea eax, [ebp - 0x43c]
mov dword [ebp - 4], 2
push 0
push eax
call fcn.004bc490
add esp, 0xc
mov dword [ebp - 0x24], 0x104
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x43c]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
lea eax, [ebp - 0x43c]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00408580
mov byte [ebp - 4], 3
or edi, 0xffffffff
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], 0
je 0x4051bf
mov eax, dword [ebp - 0x1c]
cmp dword [eax - 0xc], 0
je 0x4051bf
lea edx, [ebp - 0x1c]
lea ecx, [ebp - 0x10]
call fcn.004077c0
test al, al
je 0x4051bf
push ebx
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 4
call fcn.00404e10
push 7
push 0x50fbc8
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x14], 5
call fcn.00408e20
lea eax, [ebp - 0x10]
push eax
lea edx, [ebp - 0x18]
lea ecx, [ebp - 0x2c]
call fcn.00407b60
push 0x50fbdc
mov edx, eax
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x28]
call fcn.004079d0
add esp, 8
mov byte [ebp - 4], 6
mov edx, dword [eax]
mov ebx, dword [esi]
sub ebx, 0x10
lea ecx, [edx - 0x10]
cmp ecx, ebx
je 0x405170
cmp dword [ebx + 0xc], 0
jl 0x405165
mov eax, dword [ecx]
cmp eax, dword [ebx]
jne 0x405165
call fcn.00408b90
mov dword [ebp - 0x20], eax
lea edx, [ebx + 0xc]
mov ecx, edi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40515e
mov ecx, dword [ebx]
push ebx
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x20]
add eax, 0x10
mov dword [esi], eax
jmp 0x405170
push dword [edx - 0xc]
mov ecx, esi
push edx
call fcn.00408c90
mov edx, dword [ebp - 0x28]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
pop ebx
test eax, eax
jg 0x40518b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x2c]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4051a5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x18]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4051bf
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x1c]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4051d9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
pop edi
jg 0x4051f2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret