Function at 0x461b70
Capabilities:
Get session user name
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53d816
mov eax, dword fs:[0]
push eax
sub esp, 0x45c
mov eax, dword [0x57506c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x458], ebx
push 0x104
lea eax, [ebp - 0x31c]
push 0
push eax
call fcn.004ac860
push 0x104
lea eax, [ebp - 0x114]
push 0
push eax
call fcn.004ac860
add esp, 0x18
mov dword [ebp - 0x460], 0x104
lea eax, [ebp - 0x460]
push eax
lea eax, [ebp - 0x31c]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
push 0x104
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004ac860
push 0x104
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.004ac860
add esp, 0x18
mov dword [ebp - 0x454], 0x104
lea eax, [ebp - 0x468]
mov dword [ebp - 0x464], 0x104
push eax
lea eax, [ebp - 0x464]
push eax
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x454]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x31c]
push eax
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.ADVAPI32.dll_GetSidIdentifierAuthority]
push 1
mov esi, eax
lea eax, [ebp - 0x114]
push str.S__lu_
push eax
call fcn.0045a840
lea ecx, [ebp - 0x114]
mov dword [ebp - 0x454], eax
add esp, 0xc
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x461c90
movzx eax, byte [esi + 5]
sub ecx, edx
push eax
lea eax, [ebp - 0x114]
add eax, ecx
push 0x567a98
push eax
call fcn.0045a840
add dword [ebp - 0x454], eax
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.ADVAPI32.dll_GetSidSubAuthorityCount]
xor esi, esi
movzx edi, byte [eax]
test edi, edi
je 0x461d0f
mov ebx, dword [sym.imp.ADVAPI32.dll_GetSidSubAuthority]
push esi
lea eax, [ebp - 0x218]
push eax
call ebx
lea ecx, [ebp - 0x114]
push dword [eax]
mov eax, dword [ebp - 0x454]
add eax, ecx
push str.__lu
push eax
call fcn.0045a840
add dword [ebp - 0x454], eax
inc esi
add esp, 0xc
cmp esi, edi
jl 0x461cd6
mov ebx, dword [ebp - 0x458]
xor ecx, ecx
mov dword [ebp - 0x45c], 0x5671d0
cmp byte [0x5671d0], cl
lea edx, [ebp - 0x45c]
mov eax, 3
cmove eax, ecx
push ecx
lea ecx, [ebp - 0x450]
mov dword [ebp - 0x458], eax
call fcn.00417760
push ecx
lea eax, [ebp - 0x450]
mov dword [ebp - 4], 0
push eax
push ecx
mov ecx, ebx
call fcn.00411830
cmp byte [ebp - 0x114], 0
lea eax, [ebp - 0x114]
mov dword [ebp - 0x45c], eax
jne 0x461d79
mov dword [ebp - 0x458], 0
jmp 0x461d91
lea ecx, [ebp - 0x114]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x461d82
sub ecx, edx
mov dword [ebp - 0x458], ecx
push 0
lea edx, [ebp - 0x45c]
lea ecx, [ebp - 0x438]
call fcn.00417760
push ecx
lea eax, [ebp - 0x438]
mov byte [ebp - 4], 1
push eax
push ecx
mov ecx, ebx
call fcn.00411830
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x424]
cmp eax, 8
jb 0x461dda
inc eax
lea ecx, [ebp - 0x438]
push eax
push dword [ebp - 0x438]
call fcn.00403930
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov word [ebp - 0x438], ax
mov eax, dword [ebp - 0x43c]
mov dword [ebp - 0x424], 7
mov dword [ebp - 0x428], 0
cmp eax, 8
jb 0x461e1c
inc eax
lea ecx, [ebp - 0x450]
push eax
push dword [ebp - 0x450]
call fcn.00403930
xor eax, eax
mov dword [ebp - 0x43c], 7
mov word [ebp - 0x450], ax
mov al, 1
mov dword [ebp - 0x440], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00469c8e
mov esp, ebp
pop ebp
ret