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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1018d573
mov eax, dword fs:[0]
push eax
sub esp, 0x844
mov eax, dword [0x101ed40c]
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 edi, dword [ebp + 8]
mov dword [ebp - 0x850], edi
mov dword [ebp - 0x848], 0
push edi
mov dword [ebp - 4], 0
mov dword [ebp - 0x84c], edi
mov dword [edi], 0
call fcn.10091ed0
add esp, 4
mov eax, dword [edi]
mov ebx, 1
mov dword [ebp - 4], 0
mov dword [ebp - 0x848], ebx
cmp dword [eax - 0xc], 0
jne 0x10092307
lea eax, [ebp - 0x838]
mov dword [ebp - 0x840], 0
push eax
lea eax, [ebp - 0x834]
push eax
call fcn.10090d90
add esp, 8
test al, al
je 0x100922b4
mov ebx, dword [ebp - 0x834]
lea eax, [ebp - 0x840]
push eax
push ebx
call sub.ADVAPI32.dll_ConvertSidToStringSidW
test eax, eax
je 0x10092269
push dword [ebp - 0x840]
push str.Current_user_SID:
push 0x101f3f18
call fcn.100880a0
add esp, 8
mov ecx, eax
call fcn.1008f330
mov esi, eax
push 0xa
mov eax, dword [esi]
mov ecx, dword [eax + 4]
add ecx, esi
call fcn.10093950
movzx eax, al
mov ecx, esi
push eax
call fcn.1008a750
mov ecx, esi
call fcn.1006ef40
push dword [ebp - 0x840]
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x100922ab
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ConvertSidToStringSid_failed:
push 0x101f3da8
call fcn.100880a0
add esp, 8
mov ecx, eax
call fcn.100651f0
mov esi, eax
push 0xa
mov eax, dword [esi]
mov ecx, dword [eax + 4]
add ecx, esi
call fcn.10093950
movzx eax, al
mov ecx, esi
push eax
call fcn.1008a750
mov ecx, esi
call fcn.1006ef40
push ebx
call fcn.1012694d
add esp, 4
push dword [ebp - 0x840]
lea ecx, [ebp - 0x844]
call fcn.10041f60
mov ebx, 3
mov dword [ebp - 0x848], ebx
lea eax, [ebp - 0x844]
mov dword [ebp - 4], 1
push eax
mov ecx, edi
call fcn.1004e420
mov edx, dword [ebp - 0x844]
or eax, 0xffffffff
mov byte [ebp - 4], 0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10092307
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
jne 0x10092552
push 0x208
lea eax, [ebp - 0x628]
push 0
push eax
call fcn.1014de30
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.1014de30
add esp, 0x18
mov dword [ebp - 0x834], 0x208
lea eax, [ebp - 0x834]
push eax
lea eax, [ebp - 0x628]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.1014de30
push 0x208
lea eax, [ebp - 0x830]
push 0
push eax
call fcn.1014de30
add esp, 0x18
mov dword [ebp - 0x840], 0x208
lea eax, [ebp - 0x83c]
mov dword [ebp - 0x838], 0x208
push eax
lea eax, [ebp - 0x838]
push eax
lea eax, [ebp - 0x830]
push eax
lea eax, [ebp - 0x840]
push eax
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x628]
push eax
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.ADVAPI32.dll_GetSidIdentifierAuthority]
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
push 1
mov dword [ebp - 0x844], eax
lea eax, [ebp - 0x218]
push str.S__lu_
push eax
call esi
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x840], eax
add esp, 0xc
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10092404
mov eax, dword [ebp - 0x844]
sub ecx, edx
sar ecx, 1
movzx eax, byte [eax + 5]
push eax
lea eax, [ebp - 0x218]
lea eax, [eax + ecx*2]
push 0x101a34e0
push eax
call esi
add dword [ebp - 0x840], eax
add esp, 0xc
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.ADVAPI32.dll_GetSidSubAuthorityCount]
xor esi, esi
movzx eax, byte [eax]
mov dword [ebp - 0x844], eax
test eax, eax
je 0x10092495
mov edi, eax
push esi
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.ADVAPI32.dll_GetSidSubAuthority]
lea ecx, [ebp - 0x218]
push dword [eax]
mov eax, dword [ebp - 0x840]
push str.__lu
lea eax, [ecx + eax*2]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add dword [ebp - 0x840], eax
inc esi
add esp, 0xc
cmp esi, edi
jl 0x10092456
mov edi, dword [ebp - 0x84c]
lea eax, [ebp - 0x218]
push eax
push str.current_sid_is__s_n
call fcn.100939e0
add esp, 8
call fcn.10043000
mov ecx, eax
test ecx, ecx
je 0x10092570
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x844], eax
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 2
push eax
lea ecx, [ebp - 0x844]
call fcn.10042d30
test al, al
jne 0x10092512
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100924f0
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x844]
call fcn.10043c10
or ebx, 4
mov dword [ebp - 0x848], ebx
lea eax, [ebp - 0x844]
mov dword [ebp - 4], 3
push eax
mov ecx, edi
call fcn.1004e420
mov eax, dword [ebp - 0x844]
or ecx, 0xffffffff
mov byte [ebp - 4], 0
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x10092552
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
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.10126919
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.10042d10
int3