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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4de770
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x430
push ebx
mov ebx, ecx
mov ecx, 0x51bcaa
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x10], 0
call fcn.004dd904
push 0x208
lea eax, [ebp - 0x234]
mov dword [ebp - 4], 1
push 0
push eax
call fcn.004b4000
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, ebx
push eax
call fcn.00406300
push 1
push 0x506308
mov ecx, ebx
mov dword [ebp - 0x10], 2
call fcn.00406970
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 1
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
je 0x404e84
push esi
push edi
lea ecx, [ebp - 0x1c]
call fcn.00403fd0
push 0x208
lea eax, [ebp - 0x43c]
mov dword [ebp - 4], 2
push 0
push eax
call fcn.004b4000
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 - 0x18]
call fcn.00406300
mov byte [ebp - 4], 3
or edi, 0xffffffff
mov eax, dword [ebp - 0x1c]
cmp dword [eax - 0xc], 0
je 0x404e50
mov ecx, dword [ebp - 0x18]
cmp dword [ecx - 0xc], 0
je 0x404e53
mov byte [ebp - 4], 4
test ecx, ecx
je 0x404e95
mov edx, ecx
mov si, word [eax]
cmp si, word [edx]
jne 0x404d59
test si, si
je 0x404d55
mov si, word [eax + 2]
cmp si, word [edx + 2]
jne 0x404d59
add eax, 4
add edx, 4
test si, si
jne 0x404d33
xor eax, eax
jmp 0x404d5e
sbb eax, eax
or eax, 1
mov byte [ebp - 4], 3
test eax, eax
je 0x404e53
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 5
call fcn.00404a70
push 7
push str.Users_
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x10], 9
call fcn.00406970
lea eax, [ebp - 0x1c]
push eax
lea edx, [ebp - 0x14]
lea ecx, [ebp - 0x2c]
call fcn.00405910
push str.AppDataLocal_
mov edx, eax
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x28]
call fcn.00405780
add esp, 8
mov byte [ebp - 4], 7
mov edx, dword [eax]
mov esi, dword [ebx]
sub esi, 0x10
lea ecx, [edx - 0x10]
cmp ecx, esi
je 0x404e02
cmp dword [esi + 0xc], 0
jl 0x404df7
mov eax, dword [ecx]
cmp eax, dword [esi]
jne 0x404df7
call fcn.00406700
mov dword [ebp - 0x20], eax
lea edx, [esi + 0xc]
mov ecx, edi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x404df0
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x20]
add eax, 0x10
mov dword [ebx], eax
jmp 0x404e02
push dword [edx - 0xc]
mov ecx, ebx
push edx
call fcn.004067e0
mov edx, dword [ebp - 0x28]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x404e1c
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 0x404e36
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x14]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x404e50
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x18]
lea edx, [ecx - 0x10]
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x404e6a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
pop edi
pop esi
jg 0x404e84
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov eax, ebx
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00402c50
int3