Function at 0x41a7b3
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x32c
mov eax, dword [0x5c2460]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor ebx, ebx
push edi
mov dword [ebp - 0x270], ebx
call fcn.00464040
cmp eax, 3
jl 0x41aa2b
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
je 0x41aa2b
push ecx
push ecx
mov esi, esp
mov eax, 0x54a6b8
push eax
mov dword [esi], eax
call fcn.004049e1
pop ecx
mov dword [esi + 4], eax
call fcn.0041fa7f
add eax, 0x18
lea ecx, [ebp - 0x260]
push eax
call fcn.00409846
lea eax, [ebp - 0x248]
push eax
push ecx
push ecx
lea eax, [ebp - 0x260]
mov ecx, esp
push eax
call fcn.004050d6
lea ecx, [ebp - 0x228]
call fcn.00458fb0
mov ecx, eax
call fcn.00459bb0
lea ecx, [ebp - 0x228]
call fcn.00459030
push ebx
push 1
lea ecx, [ebp - 0x260]
call fcn.0040536f
lea ecx, [ebp - 0x248]
call fcn.00457b40
test al, al
je 0x41aa1c
cmp dword [ebp - 0x234], 8
mov eax, dword [ebp - 0x248]
mov dword [ebp - 0x264], ebx
mov dword [ebp - 0x26c], ebx
mov dword [ebp - 0x268], ebx
jae 0x41a892
lea eax, [ebp - 0x248]
lea ecx, [ebp - 0x268]
push ecx
push ebx
lea ecx, [ebp - 0x26c]
push ecx
push ebx
push ebx
push 4
push 1
push eax
call dword [sym.imp.ADVAPI32.dll_GetNamedSecurityInfoW]
test eax, eax
jne 0x41a9f4
push 8
pop ecx
lea edi, [ebp - 0x230]
rep stosd dword es:[edi], eax
inc eax
mov dword [ebp - 0x230], 0x10000000
mov dword [ebp - 0x22c], eax
mov dword [ebp - 0x21c], eax
xor eax, eax
push 0x206
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push ebx
push eax
mov dword [ebp - 0x228], 3
call fcn.005091d0
add esp, 0xc
mov dword [ebp - 0x274], 0x104
lea eax, [ebp - 0x274]
push eax
lea eax, [ebp - 0x210]
push eax
push 2
pop esi
push esi
call dword [sym.imp.Secur32.dll_GetUserNameExW]
test al, al
je 0x41a947
cmp word [ebp - 0x210], bx
je 0x41a947
lea eax, [ebp - 0x210]
mov dword [ebp - 0x218], 1
mov dword [ebp - 0x214], eax
jmp 0x41a9a5
push 0x46
mov edi, str.e:360chrome37_srcchromeinstaller_tdsetupinstallinstall_logic.cpp
pop edx
mov ecx, edi
call fcn.0045ce40
cmp eax, 1
jl 0x41a981
push 0xffffffffffffffff
push 0x385
push edi
lea ecx, [ebp - 0x328]
mov dword [ebp - 0x270], esi
call fcn.0045ce90
mov edx, str.Cannot_acquire_current_user_name
lea ecx, [eax + 8]
call fcn.00405723
test byte [ebp - 0x270], 2
je 0x41a995
lea ecx, [ebp - 0x328]
call fcn.0045cee0
mov dword [ebp - 0x218], esi
mov dword [ebp - 0x214], str.Authenticated_Users
lea eax, [ebp - 0x264]
push eax
push dword [ebp - 0x26c]
lea eax, [ebp - 0x230]
push eax
push 1
call dword [sym.imp.ADVAPI32.dll_SetEntriesInAclW]
test eax, eax
jne 0x41a9f4
cmp dword [ebp - 0x234], 8
mov eax, dword [ebp - 0x248]
jae 0x41a9da
lea eax, [ebp - 0x248]
push ebx
push dword [ebp - 0x264]
push ebx
push ebx
push 4
push 1
push eax
call dword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoW]
test eax, eax
jne 0x41a9f4
mov bl, 1
cmp dword [ebp - 0x268], 0
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
je 0x41aa0b
push dword [ebp - 0x268]
call esi
cmp dword [ebp - 0x264], 0
je 0x41aa1c
push dword [ebp - 0x264]
call esi
lea ecx, [ebp - 0x248]
call fcn.00459030
mov al, bl
jmp 0x41aa2d
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00501d03
mov esp, ebp
pop ebp
ret