Function at 0x4020ba
Capabilities:
Check if file exists
Get common file path
Get file attributes
Get session user name

Disassembly:
push 0x820
mov eax, 0x41ac80
call fcn.0040c4ca
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x104
lea ecx, [ebp - 0x420]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x420]
mov dword [ebp - 0x828], ebx
push eax
lea ecx, [ebp - 0x828]
call fcn.0040250c
mov dword [ebp - 4], ebx
push 0x5c
push dword [ebp - 0x828]
mov dword [ebp - 0x824], ebx
call fcn.004097c3
pop ecx
pop ecx
test eax, eax
jne 0x40211e
or eax, 0xffffffff
jmp 0x402126
sub eax, dword [ebp - 0x828]
sar eax, 1
lea ecx, [ebp - 0x420]
lea eax, [ecx + eax*2]
push eax
lea ecx, [ebp - 0x824]
call fcn.0040250c
push ecx
push ecx
lea ecx, [ebp - 0x824]
mov byte [ebp - 4], 1
call fcn.00402320
lea eax, [ebp - 0x218]
push eax
push ebx
push ebx
push 0x1c
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea edi, [ebp - 0x218]
sub edi, 2
mov ax, word [edi + 2]
lea edi, [edi + 2]
cmp ax, bx
jne 0x402167
mov ebx, dword [ebp - 0x824]
xor ecx, ecx
mov eax, dword [0x4236a4]
mov edx, ebx
mov dword [edi], eax
mov esi, edx
mov ax, word [edx]
add edx, 2
cmp ax, cx
jne 0x402186
lea edi, [ebp - 0x218]
sub edx, esi
sub edi, 2
mov ax, word [edi + 2]
add edi, 2
cmp ax, cx
jne 0x40219c
mov ecx, edx
lea eax, [ebp - 0x218]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4022d9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x4021e0
cmp eax, 3
jne 0x4022d9
lea eax, [ebp - 0x218]
mov dword [ebp - 0x82c], 0x200
push eax
xor eax, eax
push eax
push eax
push 0x23
push eax
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea eax, [ebp - 0x82c]
push eax
lea eax, [ebp - 0x820]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
lea edi, [ebp - 0x218]
sub edi, 2
xor edx, edx
mov ax, word [edi + 2]
lea edi, [edi + 2]
cmp ax, dx
jne 0x40221d
mov eax, dword [0x4236a4]
mov esi, ebx
mov dword [edi], eax
mov cx, word [ebx]
add ebx, 2
cmp cx, dx
jne 0x402232
lea edi, [ebp - 0x218]
sub ebx, esi
sub edi, 2
mov cx, word [edi + 2]
add edi, 2
cmp cx, dx
jne 0x402248
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x218]
push 2
sub edi, 2
pop ebx
mov cx, word [edi + 2]
add edi, ebx
cmp cx, dx
jne 0x40226e
lea edx, [ebp - 0x820]
mov dword [edi], eax
mov esi, edx
xor ecx, ecx
mov ax, word [edx]
add edx, ebx
cmp ax, cx
jne 0x402285
lea edi, [ebp - 0x218]
sub edx, esi
sub edi, 2
mov ax, word [edi + 2]
add edi, ebx
cmp ax, cx
jne 0x40229a
mov ecx, edx
lea eax, [ebp - 0x218]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4022d9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
je 0x4022d4
cmp eax, 3
jne 0x4022d9
xor ebx, ebx
inc ebx
jmp 0x4022db
xor bl, bl
lea ecx, [ebp - 0x824]
mov byte [ebp - 4], 0
call fcn.00401dc4
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x828]
call fcn.00401dc4
mov al, bl
call fcn.0040c479
ret